@orq-ai/node 3.5.12 → 3.5.14

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 (82) hide show
  1. package/bin/mcp-server.js +39 -39
  2. package/bin/mcp-server.js.map +21 -21
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/mcp-server/mcp-server.js +1 -1
  7. package/mcp-server/server.js +1 -1
  8. package/models/operations/bulkcreatedatapoints.js +2 -2
  9. package/models/operations/createcontact.js +2 -2
  10. package/models/operations/createdataset.js +2 -2
  11. package/models/operations/createdatasetitem.js +2 -2
  12. package/models/operations/createdatasource.js +2 -2
  13. package/models/operations/fileget.js +2 -2
  14. package/models/operations/filelist.js +2 -2
  15. package/models/operations/fileupload.js +2 -2
  16. package/models/operations/listdatasetdatapoints.js +2 -2
  17. package/models/operations/listdatasets.js +2 -2
  18. package/models/operations/listdatasources.js +2 -2
  19. package/models/operations/retrievedatapoint.js +2 -2
  20. package/models/operations/retrievedataset.js +2 -2
  21. package/models/operations/retrievedatasource.js +2 -2
  22. package/models/operations/updatedatapoint.js +2 -2
  23. package/models/operations/updatedataset.js +2 -2
  24. package/models/operations/updatedatasource.js +2 -2
  25. package/package.json +1 -1
  26. package/packages/orq-rc/README.md +2 -0
  27. package/packages/orq-rc/docs/sdks/knowledge/README.md +77 -0
  28. package/packages/orq-rc/jsr.json +1 -1
  29. package/packages/orq-rc/package-lock.json +2 -2
  30. package/packages/orq-rc/package.json +1 -1
  31. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +161 -0
  32. package/packages/orq-rc/src/lib/config.ts +3 -3
  33. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  34. package/packages/orq-rc/src/mcp-server/server.ts +3 -1
  35. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +37 -0
  36. package/packages/orq-rc/src/models/components/deployments.ts +3229 -134
  37. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2 -2
  38. package/packages/orq-rc/src/models/operations/createchunk.ts +65 -35
  39. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  40. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  41. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  42. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  43. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +3208 -91
  44. package/packages/orq-rc/src/models/operations/deploymentstream.ts +3518 -95
  45. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  46. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  47. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  48. package/packages/orq-rc/src/models/operations/getonechunk.ts +55 -5
  49. package/packages/orq-rc/src/models/operations/index.ts +1 -0
  50. package/packages/orq-rc/src/models/operations/listchunks.ts +55 -5
  51. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  52. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  53. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  54. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  55. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  56. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  57. package/packages/orq-rc/src/models/operations/searchknowledge.ts +3783 -0
  58. package/packages/orq-rc/src/models/operations/updatechunk.ts +65 -35
  59. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  61. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  62. package/packages/orq-rc/src/sdk/knowledge.ts +18 -0
  63. package/src/lib/config.ts +2 -2
  64. package/src/mcp-server/mcp-server.ts +1 -1
  65. package/src/mcp-server/server.ts +1 -1
  66. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  67. package/src/models/operations/createcontact.ts +2 -2
  68. package/src/models/operations/createdataset.ts +2 -2
  69. package/src/models/operations/createdatasetitem.ts +2 -2
  70. package/src/models/operations/createdatasource.ts +2 -2
  71. package/src/models/operations/fileget.ts +2 -2
  72. package/src/models/operations/filelist.ts +2 -2
  73. package/src/models/operations/fileupload.ts +2 -2
  74. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  75. package/src/models/operations/listdatasets.ts +2 -2
  76. package/src/models/operations/listdatasources.ts +2 -2
  77. package/src/models/operations/retrievedatapoint.ts +2 -2
  78. package/src/models/operations/retrievedataset.ts +2 -2
  79. package/src/models/operations/retrievedatasource.ts +2 -2
  80. package/src/models/operations/updatedatapoint.ts +2 -2
  81. package/src/models/operations/updatedataset.ts +2 -2
  82. package/src/models/operations/updatedatasource.ts +2 -2
@@ -0,0 +1,3783 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Exists
13
+ */
14
+ export type SearchKnowledgeDollarOrDollarExists = {
15
+ dollarExists: boolean;
16
+ };
17
+
18
+ export type SearchKnowledgeDollarOrKnowledgeDollarNin =
19
+ | string
20
+ | number
21
+ | boolean;
22
+
23
+ /**
24
+ * Not in
25
+ */
26
+ export type SearchKnowledgeDollarOrDollarNin = {
27
+ dollarNin: Array<string | number | boolean>;
28
+ };
29
+
30
+ export type SearchKnowledgeDollarOrKnowledgeDollarIn =
31
+ | string
32
+ | number
33
+ | boolean;
34
+
35
+ /**
36
+ * In
37
+ */
38
+ export type SearchKnowledgeDollarOrDollarIn = {
39
+ dollarIn: Array<string | number | boolean>;
40
+ };
41
+
42
+ /**
43
+ * Less than or equal to
44
+ */
45
+ export type SearchKnowledgeDollarOrDollarLte = {
46
+ dollarLte: number;
47
+ };
48
+
49
+ /**
50
+ * Less than
51
+ */
52
+ export type SearchKnowledgeDollarOrDollarLt = {
53
+ dollarLt: number;
54
+ };
55
+
56
+ /**
57
+ * Greater than or equal to
58
+ */
59
+ export type SearchKnowledgeDollarOrDollarGte = {
60
+ dollarGte: number;
61
+ };
62
+
63
+ export type SearchKnowledgeDollarOr3 = {
64
+ dollarGt: number;
65
+ };
66
+
67
+ export type SearchKnowledgeDollarOrKnowledgeDollarNe =
68
+ | string
69
+ | number
70
+ | boolean;
71
+
72
+ /**
73
+ * Not equal to
74
+ */
75
+ export type SearchKnowledgeDollarOrDollarNe = {
76
+ dollarNe: string | number | boolean;
77
+ };
78
+
79
+ export type SearchKnowledgeDollarOrKnowledgeDollarEq =
80
+ | string
81
+ | number
82
+ | boolean;
83
+
84
+ /**
85
+ * Equal to
86
+ */
87
+ export type SearchKnowledgeDollarOrDollarEq = {
88
+ dollarEq: string | number | boolean;
89
+ };
90
+
91
+ export type SearchKnowledgeFilterDollarOr =
92
+ | SearchKnowledgeDollarOrDollarEq
93
+ | SearchKnowledgeDollarOrDollarNe
94
+ | SearchKnowledgeDollarOr3
95
+ | SearchKnowledgeDollarOrDollarGte
96
+ | SearchKnowledgeDollarOrDollarLt
97
+ | SearchKnowledgeDollarOrDollarLte
98
+ | SearchKnowledgeDollarOrDollarIn
99
+ | SearchKnowledgeDollarOrDollarNin
100
+ | SearchKnowledgeDollarOrDollarExists;
101
+
102
+ /**
103
+ * Or
104
+ */
105
+ export type FilterDollarOr = {
106
+ dollarOr: Array<
107
+ {
108
+ [k: string]:
109
+ | SearchKnowledgeDollarOrDollarEq
110
+ | SearchKnowledgeDollarOrDollarNe
111
+ | SearchKnowledgeDollarOr3
112
+ | SearchKnowledgeDollarOrDollarGte
113
+ | SearchKnowledgeDollarOrDollarLt
114
+ | SearchKnowledgeDollarOrDollarLte
115
+ | SearchKnowledgeDollarOrDollarIn
116
+ | SearchKnowledgeDollarOrDollarNin
117
+ | SearchKnowledgeDollarOrDollarExists;
118
+ }
119
+ >;
120
+ };
121
+
122
+ /**
123
+ * Exists
124
+ */
125
+ export type SearchKnowledgeDollarAndDollarExists = {
126
+ dollarExists: boolean;
127
+ };
128
+
129
+ export type SearchKnowledgeDollarAndKnowledgeDollarNin =
130
+ | string
131
+ | number
132
+ | boolean;
133
+
134
+ /**
135
+ * Not in
136
+ */
137
+ export type SearchKnowledgeDollarAndDollarNin = {
138
+ dollarNin: Array<string | number | boolean>;
139
+ };
140
+
141
+ export type SearchKnowledgeDollarAndKnowledgeDollarIn =
142
+ | string
143
+ | number
144
+ | boolean;
145
+
146
+ /**
147
+ * In
148
+ */
149
+ export type SearchKnowledgeDollarAndDollarIn = {
150
+ dollarIn: Array<string | number | boolean>;
151
+ };
152
+
153
+ /**
154
+ * Less than or equal to
155
+ */
156
+ export type SearchKnowledgeDollarAndDollarLte = {
157
+ dollarLte: number;
158
+ };
159
+
160
+ /**
161
+ * Less than
162
+ */
163
+ export type SearchKnowledgeDollarAndDollarLt = {
164
+ dollarLt: number;
165
+ };
166
+
167
+ /**
168
+ * Greater than or equal to
169
+ */
170
+ export type SearchKnowledgeDollarAndDollarGte = {
171
+ dollarGte: number;
172
+ };
173
+
174
+ export type SearchKnowledgeDollarAnd3 = {
175
+ dollarGt: number;
176
+ };
177
+
178
+ export type SearchKnowledgeDollarAndKnowledgeDollarNe =
179
+ | string
180
+ | number
181
+ | boolean;
182
+
183
+ /**
184
+ * Not equal to
185
+ */
186
+ export type SearchKnowledgeDollarAndDollarNe = {
187
+ dollarNe: string | number | boolean;
188
+ };
189
+
190
+ export type SearchKnowledgeDollarAndKnowledgeDollarEq =
191
+ | string
192
+ | number
193
+ | boolean;
194
+
195
+ /**
196
+ * Equal to
197
+ */
198
+ export type SearchKnowledgeDollarAndDollarEq = {
199
+ dollarEq: string | number | boolean;
200
+ };
201
+
202
+ export type SearchKnowledgeFilterDollarAnd =
203
+ | SearchKnowledgeDollarAndDollarEq
204
+ | SearchKnowledgeDollarAndDollarNe
205
+ | SearchKnowledgeDollarAnd3
206
+ | SearchKnowledgeDollarAndDollarGte
207
+ | SearchKnowledgeDollarAndDollarLt
208
+ | SearchKnowledgeDollarAndDollarLte
209
+ | SearchKnowledgeDollarAndDollarIn
210
+ | SearchKnowledgeDollarAndDollarNin
211
+ | SearchKnowledgeDollarAndDollarExists;
212
+
213
+ /**
214
+ * And
215
+ */
216
+ export type FilterDollarAnd = {
217
+ dollarAnd: Array<
218
+ {
219
+ [k: string]:
220
+ | SearchKnowledgeDollarAndDollarEq
221
+ | SearchKnowledgeDollarAndDollarNe
222
+ | SearchKnowledgeDollarAnd3
223
+ | SearchKnowledgeDollarAndDollarGte
224
+ | SearchKnowledgeDollarAndDollarLt
225
+ | SearchKnowledgeDollarAndDollarLte
226
+ | SearchKnowledgeDollarAndDollarIn
227
+ | SearchKnowledgeDollarAndDollarNin
228
+ | SearchKnowledgeDollarAndDollarExists;
229
+ }
230
+ >;
231
+ };
232
+
233
+ /**
234
+ * Exists
235
+ */
236
+ export type SearchKnowledge1DollarExists = {
237
+ dollarExists: boolean;
238
+ };
239
+
240
+ export type SearchKnowledge1KnowledgeDollarNin = string | number | boolean;
241
+
242
+ /**
243
+ * Not in
244
+ */
245
+ export type SearchKnowledge1DollarNin = {
246
+ dollarNin: Array<string | number | boolean>;
247
+ };
248
+
249
+ export type SearchKnowledge1KnowledgeDollarIn = string | number | boolean;
250
+
251
+ /**
252
+ * In
253
+ */
254
+ export type SearchKnowledge1DollarIn = {
255
+ dollarIn: Array<string | number | boolean>;
256
+ };
257
+
258
+ /**
259
+ * Less than or equal to
260
+ */
261
+ export type SearchKnowledge1DollarLte = {
262
+ dollarLte: number;
263
+ };
264
+
265
+ /**
266
+ * Less than
267
+ */
268
+ export type SearchKnowledge1DollarLt = {
269
+ dollarLt: number;
270
+ };
271
+
272
+ /**
273
+ * Greater than or equal to
274
+ */
275
+ export type SearchKnowledge1DollarGte = {
276
+ dollarGte: number;
277
+ };
278
+
279
+ export type SearchKnowledge13 = {
280
+ dollarGt: number;
281
+ };
282
+
283
+ export type SearchKnowledge1KnowledgeDollarNe = string | number | boolean;
284
+
285
+ /**
286
+ * Not equal to
287
+ */
288
+ export type SearchKnowledge1DollarNe = {
289
+ dollarNe: string | number | boolean;
290
+ };
291
+
292
+ export type SearchKnowledge1KnowledgeDollarEq = string | number | boolean;
293
+
294
+ /**
295
+ * Equal to
296
+ */
297
+ export type SearchKnowledge1DollarEq = {
298
+ dollarEq: string | number | boolean;
299
+ };
300
+
301
+ export type Filter1 =
302
+ | SearchKnowledge1DollarEq
303
+ | SearchKnowledge1DollarNe
304
+ | SearchKnowledge13
305
+ | SearchKnowledge1DollarGte
306
+ | SearchKnowledge1DollarLt
307
+ | SearchKnowledge1DollarLte
308
+ | SearchKnowledge1DollarIn
309
+ | SearchKnowledge1DollarNin
310
+ | SearchKnowledge1DollarExists;
311
+
312
+ /**
313
+ * The filter to apply to the search
314
+ */
315
+ export type Filter = FilterDollarAnd | FilterDollarOr | {
316
+ [k: string]:
317
+ | SearchKnowledge1DollarEq
318
+ | SearchKnowledge1DollarNe
319
+ | SearchKnowledge13
320
+ | SearchKnowledge1DollarGte
321
+ | SearchKnowledge1DollarLt
322
+ | SearchKnowledge1DollarLte
323
+ | SearchKnowledge1DollarIn
324
+ | SearchKnowledge1DollarNin
325
+ | SearchKnowledge1DollarExists;
326
+ };
327
+
328
+ /**
329
+ * Additional search options
330
+ */
331
+ export type SearchOptions = {
332
+ /**
333
+ * Whether to include the vector in the chunk
334
+ */
335
+ includeVectors?: boolean | undefined;
336
+ /**
337
+ * Whether to include the metadata in the chunk
338
+ */
339
+ includeMetadata?: boolean | undefined;
340
+ /**
341
+ * Whether to include the scores in the chunk
342
+ */
343
+ includeScores?: boolean | undefined;
344
+ };
345
+
346
+ /**
347
+ * A search request for chunks in a knowledge base
348
+ */
349
+ export type SearchKnowledgeRequestBody = {
350
+ /**
351
+ * The query to use to search the knowledge base
352
+ */
353
+ query: string;
354
+ /**
355
+ * The number of results to return. If not provided, will default to the knowledge base configured `top_k`
356
+ */
357
+ topK?: number | undefined;
358
+ /**
359
+ * The threshold to apply to the search. If not provided, will default to the knowledge base configured `threshold`
360
+ */
361
+ threshold?: number | undefined;
362
+ /**
363
+ * The filter to apply to the search
364
+ */
365
+ filter?: FilterDollarAnd | FilterDollarOr | {
366
+ [k: string]:
367
+ | SearchKnowledge1DollarEq
368
+ | SearchKnowledge1DollarNe
369
+ | SearchKnowledge13
370
+ | SearchKnowledge1DollarGte
371
+ | SearchKnowledge1DollarLt
372
+ | SearchKnowledge1DollarLte
373
+ | SearchKnowledge1DollarIn
374
+ | SearchKnowledge1DollarNin
375
+ | SearchKnowledge1DollarExists;
376
+ } | undefined;
377
+ /**
378
+ * Additional search options
379
+ */
380
+ searchOptions?: SearchOptions | undefined;
381
+ };
382
+
383
+ export type SearchKnowledgeRequest = {
384
+ /**
385
+ * The unique identifier or key of the knowledge base
386
+ */
387
+ knowledgeId: string;
388
+ /**
389
+ * A search request for chunks in a knowledge base
390
+ */
391
+ requestBody?: SearchKnowledgeRequestBody | undefined;
392
+ };
393
+
394
+ export type Scores = {
395
+ rerankScore?: number | undefined;
396
+ searchScore?: number | undefined;
397
+ };
398
+
399
+ export type Matches = {
400
+ id: string;
401
+ text: string;
402
+ vector?: Array<number> | undefined;
403
+ metadata?: { [k: string]: any } | undefined;
404
+ scores?: Scores | undefined;
405
+ };
406
+
407
+ /**
408
+ * Search knowledge base
409
+ */
410
+ export type SearchKnowledgeResponseBody = {
411
+ matches: Array<Matches>;
412
+ };
413
+
414
+ /** @internal */
415
+ export const SearchKnowledgeDollarOrDollarExists$inboundSchema: z.ZodType<
416
+ SearchKnowledgeDollarOrDollarExists,
417
+ z.ZodTypeDef,
418
+ unknown
419
+ > = z.object({
420
+ $exists: z.boolean(),
421
+ }).transform((v) => {
422
+ return remap$(v, {
423
+ "$exists": "dollarExists",
424
+ });
425
+ });
426
+
427
+ /** @internal */
428
+ export type SearchKnowledgeDollarOrDollarExists$Outbound = {
429
+ $exists: boolean;
430
+ };
431
+
432
+ /** @internal */
433
+ export const SearchKnowledgeDollarOrDollarExists$outboundSchema: z.ZodType<
434
+ SearchKnowledgeDollarOrDollarExists$Outbound,
435
+ z.ZodTypeDef,
436
+ SearchKnowledgeDollarOrDollarExists
437
+ > = z.object({
438
+ dollarExists: z.boolean(),
439
+ }).transform((v) => {
440
+ return remap$(v, {
441
+ dollarExists: "$exists",
442
+ });
443
+ });
444
+
445
+ /**
446
+ * @internal
447
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
448
+ */
449
+ export namespace SearchKnowledgeDollarOrDollarExists$ {
450
+ /** @deprecated use `SearchKnowledgeDollarOrDollarExists$inboundSchema` instead. */
451
+ export const inboundSchema =
452
+ SearchKnowledgeDollarOrDollarExists$inboundSchema;
453
+ /** @deprecated use `SearchKnowledgeDollarOrDollarExists$outboundSchema` instead. */
454
+ export const outboundSchema =
455
+ SearchKnowledgeDollarOrDollarExists$outboundSchema;
456
+ /** @deprecated use `SearchKnowledgeDollarOrDollarExists$Outbound` instead. */
457
+ export type Outbound = SearchKnowledgeDollarOrDollarExists$Outbound;
458
+ }
459
+
460
+ export function searchKnowledgeDollarOrDollarExistsToJSON(
461
+ searchKnowledgeDollarOrDollarExists: SearchKnowledgeDollarOrDollarExists,
462
+ ): string {
463
+ return JSON.stringify(
464
+ SearchKnowledgeDollarOrDollarExists$outboundSchema.parse(
465
+ searchKnowledgeDollarOrDollarExists,
466
+ ),
467
+ );
468
+ }
469
+
470
+ export function searchKnowledgeDollarOrDollarExistsFromJSON(
471
+ jsonString: string,
472
+ ): SafeParseResult<SearchKnowledgeDollarOrDollarExists, SDKValidationError> {
473
+ return safeParse(
474
+ jsonString,
475
+ (x) =>
476
+ SearchKnowledgeDollarOrDollarExists$inboundSchema.parse(JSON.parse(x)),
477
+ `Failed to parse 'SearchKnowledgeDollarOrDollarExists' from JSON`,
478
+ );
479
+ }
480
+
481
+ /** @internal */
482
+ export const SearchKnowledgeDollarOrKnowledgeDollarNin$inboundSchema: z.ZodType<
483
+ SearchKnowledgeDollarOrKnowledgeDollarNin,
484
+ z.ZodTypeDef,
485
+ unknown
486
+ > = z.union([z.string(), z.number(), z.boolean()]);
487
+
488
+ /** @internal */
489
+ export type SearchKnowledgeDollarOrKnowledgeDollarNin$Outbound =
490
+ | string
491
+ | number
492
+ | boolean;
493
+
494
+ /** @internal */
495
+ export const SearchKnowledgeDollarOrKnowledgeDollarNin$outboundSchema:
496
+ z.ZodType<
497
+ SearchKnowledgeDollarOrKnowledgeDollarNin$Outbound,
498
+ z.ZodTypeDef,
499
+ SearchKnowledgeDollarOrKnowledgeDollarNin
500
+ > = z.union([z.string(), z.number(), z.boolean()]);
501
+
502
+ /**
503
+ * @internal
504
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
505
+ */
506
+ export namespace SearchKnowledgeDollarOrKnowledgeDollarNin$ {
507
+ /** @deprecated use `SearchKnowledgeDollarOrKnowledgeDollarNin$inboundSchema` instead. */
508
+ export const inboundSchema =
509
+ SearchKnowledgeDollarOrKnowledgeDollarNin$inboundSchema;
510
+ /** @deprecated use `SearchKnowledgeDollarOrKnowledgeDollarNin$outboundSchema` instead. */
511
+ export const outboundSchema =
512
+ SearchKnowledgeDollarOrKnowledgeDollarNin$outboundSchema;
513
+ /** @deprecated use `SearchKnowledgeDollarOrKnowledgeDollarNin$Outbound` instead. */
514
+ export type Outbound = SearchKnowledgeDollarOrKnowledgeDollarNin$Outbound;
515
+ }
516
+
517
+ export function searchKnowledgeDollarOrKnowledgeDollarNinToJSON(
518
+ searchKnowledgeDollarOrKnowledgeDollarNin:
519
+ SearchKnowledgeDollarOrKnowledgeDollarNin,
520
+ ): string {
521
+ return JSON.stringify(
522
+ SearchKnowledgeDollarOrKnowledgeDollarNin$outboundSchema.parse(
523
+ searchKnowledgeDollarOrKnowledgeDollarNin,
524
+ ),
525
+ );
526
+ }
527
+
528
+ export function searchKnowledgeDollarOrKnowledgeDollarNinFromJSON(
529
+ jsonString: string,
530
+ ): SafeParseResult<
531
+ SearchKnowledgeDollarOrKnowledgeDollarNin,
532
+ SDKValidationError
533
+ > {
534
+ return safeParse(
535
+ jsonString,
536
+ (x) =>
537
+ SearchKnowledgeDollarOrKnowledgeDollarNin$inboundSchema.parse(
538
+ JSON.parse(x),
539
+ ),
540
+ `Failed to parse 'SearchKnowledgeDollarOrKnowledgeDollarNin' from JSON`,
541
+ );
542
+ }
543
+
544
+ /** @internal */
545
+ export const SearchKnowledgeDollarOrDollarNin$inboundSchema: z.ZodType<
546
+ SearchKnowledgeDollarOrDollarNin,
547
+ z.ZodTypeDef,
548
+ unknown
549
+ > = z.object({
550
+ $nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
551
+ }).transform((v) => {
552
+ return remap$(v, {
553
+ "$nin": "dollarNin",
554
+ });
555
+ });
556
+
557
+ /** @internal */
558
+ export type SearchKnowledgeDollarOrDollarNin$Outbound = {
559
+ $nin: Array<string | number | boolean>;
560
+ };
561
+
562
+ /** @internal */
563
+ export const SearchKnowledgeDollarOrDollarNin$outboundSchema: z.ZodType<
564
+ SearchKnowledgeDollarOrDollarNin$Outbound,
565
+ z.ZodTypeDef,
566
+ SearchKnowledgeDollarOrDollarNin
567
+ > = z.object({
568
+ dollarNin: z.array(z.union([z.string(), z.number(), z.boolean()])),
569
+ }).transform((v) => {
570
+ return remap$(v, {
571
+ dollarNin: "$nin",
572
+ });
573
+ });
574
+
575
+ /**
576
+ * @internal
577
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
578
+ */
579
+ export namespace SearchKnowledgeDollarOrDollarNin$ {
580
+ /** @deprecated use `SearchKnowledgeDollarOrDollarNin$inboundSchema` instead. */
581
+ export const inboundSchema = SearchKnowledgeDollarOrDollarNin$inboundSchema;
582
+ /** @deprecated use `SearchKnowledgeDollarOrDollarNin$outboundSchema` instead. */
583
+ export const outboundSchema = SearchKnowledgeDollarOrDollarNin$outboundSchema;
584
+ /** @deprecated use `SearchKnowledgeDollarOrDollarNin$Outbound` instead. */
585
+ export type Outbound = SearchKnowledgeDollarOrDollarNin$Outbound;
586
+ }
587
+
588
+ export function searchKnowledgeDollarOrDollarNinToJSON(
589
+ searchKnowledgeDollarOrDollarNin: SearchKnowledgeDollarOrDollarNin,
590
+ ): string {
591
+ return JSON.stringify(
592
+ SearchKnowledgeDollarOrDollarNin$outboundSchema.parse(
593
+ searchKnowledgeDollarOrDollarNin,
594
+ ),
595
+ );
596
+ }
597
+
598
+ export function searchKnowledgeDollarOrDollarNinFromJSON(
599
+ jsonString: string,
600
+ ): SafeParseResult<SearchKnowledgeDollarOrDollarNin, SDKValidationError> {
601
+ return safeParse(
602
+ jsonString,
603
+ (x) => SearchKnowledgeDollarOrDollarNin$inboundSchema.parse(JSON.parse(x)),
604
+ `Failed to parse 'SearchKnowledgeDollarOrDollarNin' from JSON`,
605
+ );
606
+ }
607
+
608
+ /** @internal */
609
+ export const SearchKnowledgeDollarOrKnowledgeDollarIn$inboundSchema: z.ZodType<
610
+ SearchKnowledgeDollarOrKnowledgeDollarIn,
611
+ z.ZodTypeDef,
612
+ unknown
613
+ > = z.union([z.string(), z.number(), z.boolean()]);
614
+
615
+ /** @internal */
616
+ export type SearchKnowledgeDollarOrKnowledgeDollarIn$Outbound =
617
+ | string
618
+ | number
619
+ | boolean;
620
+
621
+ /** @internal */
622
+ export const SearchKnowledgeDollarOrKnowledgeDollarIn$outboundSchema: z.ZodType<
623
+ SearchKnowledgeDollarOrKnowledgeDollarIn$Outbound,
624
+ z.ZodTypeDef,
625
+ SearchKnowledgeDollarOrKnowledgeDollarIn
626
+ > = z.union([z.string(), z.number(), z.boolean()]);
627
+
628
+ /**
629
+ * @internal
630
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
631
+ */
632
+ export namespace SearchKnowledgeDollarOrKnowledgeDollarIn$ {
633
+ /** @deprecated use `SearchKnowledgeDollarOrKnowledgeDollarIn$inboundSchema` instead. */
634
+ export const inboundSchema =
635
+ SearchKnowledgeDollarOrKnowledgeDollarIn$inboundSchema;
636
+ /** @deprecated use `SearchKnowledgeDollarOrKnowledgeDollarIn$outboundSchema` instead. */
637
+ export const outboundSchema =
638
+ SearchKnowledgeDollarOrKnowledgeDollarIn$outboundSchema;
639
+ /** @deprecated use `SearchKnowledgeDollarOrKnowledgeDollarIn$Outbound` instead. */
640
+ export type Outbound = SearchKnowledgeDollarOrKnowledgeDollarIn$Outbound;
641
+ }
642
+
643
+ export function searchKnowledgeDollarOrKnowledgeDollarInToJSON(
644
+ searchKnowledgeDollarOrKnowledgeDollarIn:
645
+ SearchKnowledgeDollarOrKnowledgeDollarIn,
646
+ ): string {
647
+ return JSON.stringify(
648
+ SearchKnowledgeDollarOrKnowledgeDollarIn$outboundSchema.parse(
649
+ searchKnowledgeDollarOrKnowledgeDollarIn,
650
+ ),
651
+ );
652
+ }
653
+
654
+ export function searchKnowledgeDollarOrKnowledgeDollarInFromJSON(
655
+ jsonString: string,
656
+ ): SafeParseResult<
657
+ SearchKnowledgeDollarOrKnowledgeDollarIn,
658
+ SDKValidationError
659
+ > {
660
+ return safeParse(
661
+ jsonString,
662
+ (x) =>
663
+ SearchKnowledgeDollarOrKnowledgeDollarIn$inboundSchema.parse(
664
+ JSON.parse(x),
665
+ ),
666
+ `Failed to parse 'SearchKnowledgeDollarOrKnowledgeDollarIn' from JSON`,
667
+ );
668
+ }
669
+
670
+ /** @internal */
671
+ export const SearchKnowledgeDollarOrDollarIn$inboundSchema: z.ZodType<
672
+ SearchKnowledgeDollarOrDollarIn,
673
+ z.ZodTypeDef,
674
+ unknown
675
+ > = z.object({
676
+ $in: z.array(z.union([z.string(), z.number(), z.boolean()])),
677
+ }).transform((v) => {
678
+ return remap$(v, {
679
+ "$in": "dollarIn",
680
+ });
681
+ });
682
+
683
+ /** @internal */
684
+ export type SearchKnowledgeDollarOrDollarIn$Outbound = {
685
+ $in: Array<string | number | boolean>;
686
+ };
687
+
688
+ /** @internal */
689
+ export const SearchKnowledgeDollarOrDollarIn$outboundSchema: z.ZodType<
690
+ SearchKnowledgeDollarOrDollarIn$Outbound,
691
+ z.ZodTypeDef,
692
+ SearchKnowledgeDollarOrDollarIn
693
+ > = z.object({
694
+ dollarIn: z.array(z.union([z.string(), z.number(), z.boolean()])),
695
+ }).transform((v) => {
696
+ return remap$(v, {
697
+ dollarIn: "$in",
698
+ });
699
+ });
700
+
701
+ /**
702
+ * @internal
703
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
704
+ */
705
+ export namespace SearchKnowledgeDollarOrDollarIn$ {
706
+ /** @deprecated use `SearchKnowledgeDollarOrDollarIn$inboundSchema` instead. */
707
+ export const inboundSchema = SearchKnowledgeDollarOrDollarIn$inboundSchema;
708
+ /** @deprecated use `SearchKnowledgeDollarOrDollarIn$outboundSchema` instead. */
709
+ export const outboundSchema = SearchKnowledgeDollarOrDollarIn$outboundSchema;
710
+ /** @deprecated use `SearchKnowledgeDollarOrDollarIn$Outbound` instead. */
711
+ export type Outbound = SearchKnowledgeDollarOrDollarIn$Outbound;
712
+ }
713
+
714
+ export function searchKnowledgeDollarOrDollarInToJSON(
715
+ searchKnowledgeDollarOrDollarIn: SearchKnowledgeDollarOrDollarIn,
716
+ ): string {
717
+ return JSON.stringify(
718
+ SearchKnowledgeDollarOrDollarIn$outboundSchema.parse(
719
+ searchKnowledgeDollarOrDollarIn,
720
+ ),
721
+ );
722
+ }
723
+
724
+ export function searchKnowledgeDollarOrDollarInFromJSON(
725
+ jsonString: string,
726
+ ): SafeParseResult<SearchKnowledgeDollarOrDollarIn, SDKValidationError> {
727
+ return safeParse(
728
+ jsonString,
729
+ (x) => SearchKnowledgeDollarOrDollarIn$inboundSchema.parse(JSON.parse(x)),
730
+ `Failed to parse 'SearchKnowledgeDollarOrDollarIn' from JSON`,
731
+ );
732
+ }
733
+
734
+ /** @internal */
735
+ export const SearchKnowledgeDollarOrDollarLte$inboundSchema: z.ZodType<
736
+ SearchKnowledgeDollarOrDollarLte,
737
+ z.ZodTypeDef,
738
+ unknown
739
+ > = z.object({
740
+ $lte: z.number(),
741
+ }).transform((v) => {
742
+ return remap$(v, {
743
+ "$lte": "dollarLte",
744
+ });
745
+ });
746
+
747
+ /** @internal */
748
+ export type SearchKnowledgeDollarOrDollarLte$Outbound = {
749
+ $lte: number;
750
+ };
751
+
752
+ /** @internal */
753
+ export const SearchKnowledgeDollarOrDollarLte$outboundSchema: z.ZodType<
754
+ SearchKnowledgeDollarOrDollarLte$Outbound,
755
+ z.ZodTypeDef,
756
+ SearchKnowledgeDollarOrDollarLte
757
+ > = z.object({
758
+ dollarLte: z.number(),
759
+ }).transform((v) => {
760
+ return remap$(v, {
761
+ dollarLte: "$lte",
762
+ });
763
+ });
764
+
765
+ /**
766
+ * @internal
767
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
768
+ */
769
+ export namespace SearchKnowledgeDollarOrDollarLte$ {
770
+ /** @deprecated use `SearchKnowledgeDollarOrDollarLte$inboundSchema` instead. */
771
+ export const inboundSchema = SearchKnowledgeDollarOrDollarLte$inboundSchema;
772
+ /** @deprecated use `SearchKnowledgeDollarOrDollarLte$outboundSchema` instead. */
773
+ export const outboundSchema = SearchKnowledgeDollarOrDollarLte$outboundSchema;
774
+ /** @deprecated use `SearchKnowledgeDollarOrDollarLte$Outbound` instead. */
775
+ export type Outbound = SearchKnowledgeDollarOrDollarLte$Outbound;
776
+ }
777
+
778
+ export function searchKnowledgeDollarOrDollarLteToJSON(
779
+ searchKnowledgeDollarOrDollarLte: SearchKnowledgeDollarOrDollarLte,
780
+ ): string {
781
+ return JSON.stringify(
782
+ SearchKnowledgeDollarOrDollarLte$outboundSchema.parse(
783
+ searchKnowledgeDollarOrDollarLte,
784
+ ),
785
+ );
786
+ }
787
+
788
+ export function searchKnowledgeDollarOrDollarLteFromJSON(
789
+ jsonString: string,
790
+ ): SafeParseResult<SearchKnowledgeDollarOrDollarLte, SDKValidationError> {
791
+ return safeParse(
792
+ jsonString,
793
+ (x) => SearchKnowledgeDollarOrDollarLte$inboundSchema.parse(JSON.parse(x)),
794
+ `Failed to parse 'SearchKnowledgeDollarOrDollarLte' from JSON`,
795
+ );
796
+ }
797
+
798
+ /** @internal */
799
+ export const SearchKnowledgeDollarOrDollarLt$inboundSchema: z.ZodType<
800
+ SearchKnowledgeDollarOrDollarLt,
801
+ z.ZodTypeDef,
802
+ unknown
803
+ > = z.object({
804
+ $lt: z.number(),
805
+ }).transform((v) => {
806
+ return remap$(v, {
807
+ "$lt": "dollarLt",
808
+ });
809
+ });
810
+
811
+ /** @internal */
812
+ export type SearchKnowledgeDollarOrDollarLt$Outbound = {
813
+ $lt: number;
814
+ };
815
+
816
+ /** @internal */
817
+ export const SearchKnowledgeDollarOrDollarLt$outboundSchema: z.ZodType<
818
+ SearchKnowledgeDollarOrDollarLt$Outbound,
819
+ z.ZodTypeDef,
820
+ SearchKnowledgeDollarOrDollarLt
821
+ > = z.object({
822
+ dollarLt: z.number(),
823
+ }).transform((v) => {
824
+ return remap$(v, {
825
+ dollarLt: "$lt",
826
+ });
827
+ });
828
+
829
+ /**
830
+ * @internal
831
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
832
+ */
833
+ export namespace SearchKnowledgeDollarOrDollarLt$ {
834
+ /** @deprecated use `SearchKnowledgeDollarOrDollarLt$inboundSchema` instead. */
835
+ export const inboundSchema = SearchKnowledgeDollarOrDollarLt$inboundSchema;
836
+ /** @deprecated use `SearchKnowledgeDollarOrDollarLt$outboundSchema` instead. */
837
+ export const outboundSchema = SearchKnowledgeDollarOrDollarLt$outboundSchema;
838
+ /** @deprecated use `SearchKnowledgeDollarOrDollarLt$Outbound` instead. */
839
+ export type Outbound = SearchKnowledgeDollarOrDollarLt$Outbound;
840
+ }
841
+
842
+ export function searchKnowledgeDollarOrDollarLtToJSON(
843
+ searchKnowledgeDollarOrDollarLt: SearchKnowledgeDollarOrDollarLt,
844
+ ): string {
845
+ return JSON.stringify(
846
+ SearchKnowledgeDollarOrDollarLt$outboundSchema.parse(
847
+ searchKnowledgeDollarOrDollarLt,
848
+ ),
849
+ );
850
+ }
851
+
852
+ export function searchKnowledgeDollarOrDollarLtFromJSON(
853
+ jsonString: string,
854
+ ): SafeParseResult<SearchKnowledgeDollarOrDollarLt, SDKValidationError> {
855
+ return safeParse(
856
+ jsonString,
857
+ (x) => SearchKnowledgeDollarOrDollarLt$inboundSchema.parse(JSON.parse(x)),
858
+ `Failed to parse 'SearchKnowledgeDollarOrDollarLt' from JSON`,
859
+ );
860
+ }
861
+
862
+ /** @internal */
863
+ export const SearchKnowledgeDollarOrDollarGte$inboundSchema: z.ZodType<
864
+ SearchKnowledgeDollarOrDollarGte,
865
+ z.ZodTypeDef,
866
+ unknown
867
+ > = z.object({
868
+ $gte: z.number(),
869
+ }).transform((v) => {
870
+ return remap$(v, {
871
+ "$gte": "dollarGte",
872
+ });
873
+ });
874
+
875
+ /** @internal */
876
+ export type SearchKnowledgeDollarOrDollarGte$Outbound = {
877
+ $gte: number;
878
+ };
879
+
880
+ /** @internal */
881
+ export const SearchKnowledgeDollarOrDollarGte$outboundSchema: z.ZodType<
882
+ SearchKnowledgeDollarOrDollarGte$Outbound,
883
+ z.ZodTypeDef,
884
+ SearchKnowledgeDollarOrDollarGte
885
+ > = z.object({
886
+ dollarGte: z.number(),
887
+ }).transform((v) => {
888
+ return remap$(v, {
889
+ dollarGte: "$gte",
890
+ });
891
+ });
892
+
893
+ /**
894
+ * @internal
895
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
896
+ */
897
+ export namespace SearchKnowledgeDollarOrDollarGte$ {
898
+ /** @deprecated use `SearchKnowledgeDollarOrDollarGte$inboundSchema` instead. */
899
+ export const inboundSchema = SearchKnowledgeDollarOrDollarGte$inboundSchema;
900
+ /** @deprecated use `SearchKnowledgeDollarOrDollarGte$outboundSchema` instead. */
901
+ export const outboundSchema = SearchKnowledgeDollarOrDollarGte$outboundSchema;
902
+ /** @deprecated use `SearchKnowledgeDollarOrDollarGte$Outbound` instead. */
903
+ export type Outbound = SearchKnowledgeDollarOrDollarGte$Outbound;
904
+ }
905
+
906
+ export function searchKnowledgeDollarOrDollarGteToJSON(
907
+ searchKnowledgeDollarOrDollarGte: SearchKnowledgeDollarOrDollarGte,
908
+ ): string {
909
+ return JSON.stringify(
910
+ SearchKnowledgeDollarOrDollarGte$outboundSchema.parse(
911
+ searchKnowledgeDollarOrDollarGte,
912
+ ),
913
+ );
914
+ }
915
+
916
+ export function searchKnowledgeDollarOrDollarGteFromJSON(
917
+ jsonString: string,
918
+ ): SafeParseResult<SearchKnowledgeDollarOrDollarGte, SDKValidationError> {
919
+ return safeParse(
920
+ jsonString,
921
+ (x) => SearchKnowledgeDollarOrDollarGte$inboundSchema.parse(JSON.parse(x)),
922
+ `Failed to parse 'SearchKnowledgeDollarOrDollarGte' from JSON`,
923
+ );
924
+ }
925
+
926
+ /** @internal */
927
+ export const SearchKnowledgeDollarOr3$inboundSchema: z.ZodType<
928
+ SearchKnowledgeDollarOr3,
929
+ z.ZodTypeDef,
930
+ unknown
931
+ > = z.object({
932
+ $gt: z.number(),
933
+ }).transform((v) => {
934
+ return remap$(v, {
935
+ "$gt": "dollarGt",
936
+ });
937
+ });
938
+
939
+ /** @internal */
940
+ export type SearchKnowledgeDollarOr3$Outbound = {
941
+ $gt: number;
942
+ };
943
+
944
+ /** @internal */
945
+ export const SearchKnowledgeDollarOr3$outboundSchema: z.ZodType<
946
+ SearchKnowledgeDollarOr3$Outbound,
947
+ z.ZodTypeDef,
948
+ SearchKnowledgeDollarOr3
949
+ > = z.object({
950
+ dollarGt: z.number(),
951
+ }).transform((v) => {
952
+ return remap$(v, {
953
+ dollarGt: "$gt",
954
+ });
955
+ });
956
+
957
+ /**
958
+ * @internal
959
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
960
+ */
961
+ export namespace SearchKnowledgeDollarOr3$ {
962
+ /** @deprecated use `SearchKnowledgeDollarOr3$inboundSchema` instead. */
963
+ export const inboundSchema = SearchKnowledgeDollarOr3$inboundSchema;
964
+ /** @deprecated use `SearchKnowledgeDollarOr3$outboundSchema` instead. */
965
+ export const outboundSchema = SearchKnowledgeDollarOr3$outboundSchema;
966
+ /** @deprecated use `SearchKnowledgeDollarOr3$Outbound` instead. */
967
+ export type Outbound = SearchKnowledgeDollarOr3$Outbound;
968
+ }
969
+
970
+ export function searchKnowledgeDollarOr3ToJSON(
971
+ searchKnowledgeDollarOr3: SearchKnowledgeDollarOr3,
972
+ ): string {
973
+ return JSON.stringify(
974
+ SearchKnowledgeDollarOr3$outboundSchema.parse(searchKnowledgeDollarOr3),
975
+ );
976
+ }
977
+
978
+ export function searchKnowledgeDollarOr3FromJSON(
979
+ jsonString: string,
980
+ ): SafeParseResult<SearchKnowledgeDollarOr3, SDKValidationError> {
981
+ return safeParse(
982
+ jsonString,
983
+ (x) => SearchKnowledgeDollarOr3$inboundSchema.parse(JSON.parse(x)),
984
+ `Failed to parse 'SearchKnowledgeDollarOr3' from JSON`,
985
+ );
986
+ }
987
+
988
+ /** @internal */
989
+ export const SearchKnowledgeDollarOrKnowledgeDollarNe$inboundSchema: z.ZodType<
990
+ SearchKnowledgeDollarOrKnowledgeDollarNe,
991
+ z.ZodTypeDef,
992
+ unknown
993
+ > = z.union([z.string(), z.number(), z.boolean()]);
994
+
995
+ /** @internal */
996
+ export type SearchKnowledgeDollarOrKnowledgeDollarNe$Outbound =
997
+ | string
998
+ | number
999
+ | boolean;
1000
+
1001
+ /** @internal */
1002
+ export const SearchKnowledgeDollarOrKnowledgeDollarNe$outboundSchema: z.ZodType<
1003
+ SearchKnowledgeDollarOrKnowledgeDollarNe$Outbound,
1004
+ z.ZodTypeDef,
1005
+ SearchKnowledgeDollarOrKnowledgeDollarNe
1006
+ > = z.union([z.string(), z.number(), z.boolean()]);
1007
+
1008
+ /**
1009
+ * @internal
1010
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1011
+ */
1012
+ export namespace SearchKnowledgeDollarOrKnowledgeDollarNe$ {
1013
+ /** @deprecated use `SearchKnowledgeDollarOrKnowledgeDollarNe$inboundSchema` instead. */
1014
+ export const inboundSchema =
1015
+ SearchKnowledgeDollarOrKnowledgeDollarNe$inboundSchema;
1016
+ /** @deprecated use `SearchKnowledgeDollarOrKnowledgeDollarNe$outboundSchema` instead. */
1017
+ export const outboundSchema =
1018
+ SearchKnowledgeDollarOrKnowledgeDollarNe$outboundSchema;
1019
+ /** @deprecated use `SearchKnowledgeDollarOrKnowledgeDollarNe$Outbound` instead. */
1020
+ export type Outbound = SearchKnowledgeDollarOrKnowledgeDollarNe$Outbound;
1021
+ }
1022
+
1023
+ export function searchKnowledgeDollarOrKnowledgeDollarNeToJSON(
1024
+ searchKnowledgeDollarOrKnowledgeDollarNe:
1025
+ SearchKnowledgeDollarOrKnowledgeDollarNe,
1026
+ ): string {
1027
+ return JSON.stringify(
1028
+ SearchKnowledgeDollarOrKnowledgeDollarNe$outboundSchema.parse(
1029
+ searchKnowledgeDollarOrKnowledgeDollarNe,
1030
+ ),
1031
+ );
1032
+ }
1033
+
1034
+ export function searchKnowledgeDollarOrKnowledgeDollarNeFromJSON(
1035
+ jsonString: string,
1036
+ ): SafeParseResult<
1037
+ SearchKnowledgeDollarOrKnowledgeDollarNe,
1038
+ SDKValidationError
1039
+ > {
1040
+ return safeParse(
1041
+ jsonString,
1042
+ (x) =>
1043
+ SearchKnowledgeDollarOrKnowledgeDollarNe$inboundSchema.parse(
1044
+ JSON.parse(x),
1045
+ ),
1046
+ `Failed to parse 'SearchKnowledgeDollarOrKnowledgeDollarNe' from JSON`,
1047
+ );
1048
+ }
1049
+
1050
+ /** @internal */
1051
+ export const SearchKnowledgeDollarOrDollarNe$inboundSchema: z.ZodType<
1052
+ SearchKnowledgeDollarOrDollarNe,
1053
+ z.ZodTypeDef,
1054
+ unknown
1055
+ > = z.object({
1056
+ $ne: z.union([z.string(), z.number(), z.boolean()]),
1057
+ }).transform((v) => {
1058
+ return remap$(v, {
1059
+ "$ne": "dollarNe",
1060
+ });
1061
+ });
1062
+
1063
+ /** @internal */
1064
+ export type SearchKnowledgeDollarOrDollarNe$Outbound = {
1065
+ $ne: string | number | boolean;
1066
+ };
1067
+
1068
+ /** @internal */
1069
+ export const SearchKnowledgeDollarOrDollarNe$outboundSchema: z.ZodType<
1070
+ SearchKnowledgeDollarOrDollarNe$Outbound,
1071
+ z.ZodTypeDef,
1072
+ SearchKnowledgeDollarOrDollarNe
1073
+ > = z.object({
1074
+ dollarNe: z.union([z.string(), z.number(), z.boolean()]),
1075
+ }).transform((v) => {
1076
+ return remap$(v, {
1077
+ dollarNe: "$ne",
1078
+ });
1079
+ });
1080
+
1081
+ /**
1082
+ * @internal
1083
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1084
+ */
1085
+ export namespace SearchKnowledgeDollarOrDollarNe$ {
1086
+ /** @deprecated use `SearchKnowledgeDollarOrDollarNe$inboundSchema` instead. */
1087
+ export const inboundSchema = SearchKnowledgeDollarOrDollarNe$inboundSchema;
1088
+ /** @deprecated use `SearchKnowledgeDollarOrDollarNe$outboundSchema` instead. */
1089
+ export const outboundSchema = SearchKnowledgeDollarOrDollarNe$outboundSchema;
1090
+ /** @deprecated use `SearchKnowledgeDollarOrDollarNe$Outbound` instead. */
1091
+ export type Outbound = SearchKnowledgeDollarOrDollarNe$Outbound;
1092
+ }
1093
+
1094
+ export function searchKnowledgeDollarOrDollarNeToJSON(
1095
+ searchKnowledgeDollarOrDollarNe: SearchKnowledgeDollarOrDollarNe,
1096
+ ): string {
1097
+ return JSON.stringify(
1098
+ SearchKnowledgeDollarOrDollarNe$outboundSchema.parse(
1099
+ searchKnowledgeDollarOrDollarNe,
1100
+ ),
1101
+ );
1102
+ }
1103
+
1104
+ export function searchKnowledgeDollarOrDollarNeFromJSON(
1105
+ jsonString: string,
1106
+ ): SafeParseResult<SearchKnowledgeDollarOrDollarNe, SDKValidationError> {
1107
+ return safeParse(
1108
+ jsonString,
1109
+ (x) => SearchKnowledgeDollarOrDollarNe$inboundSchema.parse(JSON.parse(x)),
1110
+ `Failed to parse 'SearchKnowledgeDollarOrDollarNe' from JSON`,
1111
+ );
1112
+ }
1113
+
1114
+ /** @internal */
1115
+ export const SearchKnowledgeDollarOrKnowledgeDollarEq$inboundSchema: z.ZodType<
1116
+ SearchKnowledgeDollarOrKnowledgeDollarEq,
1117
+ z.ZodTypeDef,
1118
+ unknown
1119
+ > = z.union([z.string(), z.number(), z.boolean()]);
1120
+
1121
+ /** @internal */
1122
+ export type SearchKnowledgeDollarOrKnowledgeDollarEq$Outbound =
1123
+ | string
1124
+ | number
1125
+ | boolean;
1126
+
1127
+ /** @internal */
1128
+ export const SearchKnowledgeDollarOrKnowledgeDollarEq$outboundSchema: z.ZodType<
1129
+ SearchKnowledgeDollarOrKnowledgeDollarEq$Outbound,
1130
+ z.ZodTypeDef,
1131
+ SearchKnowledgeDollarOrKnowledgeDollarEq
1132
+ > = z.union([z.string(), z.number(), z.boolean()]);
1133
+
1134
+ /**
1135
+ * @internal
1136
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1137
+ */
1138
+ export namespace SearchKnowledgeDollarOrKnowledgeDollarEq$ {
1139
+ /** @deprecated use `SearchKnowledgeDollarOrKnowledgeDollarEq$inboundSchema` instead. */
1140
+ export const inboundSchema =
1141
+ SearchKnowledgeDollarOrKnowledgeDollarEq$inboundSchema;
1142
+ /** @deprecated use `SearchKnowledgeDollarOrKnowledgeDollarEq$outboundSchema` instead. */
1143
+ export const outboundSchema =
1144
+ SearchKnowledgeDollarOrKnowledgeDollarEq$outboundSchema;
1145
+ /** @deprecated use `SearchKnowledgeDollarOrKnowledgeDollarEq$Outbound` instead. */
1146
+ export type Outbound = SearchKnowledgeDollarOrKnowledgeDollarEq$Outbound;
1147
+ }
1148
+
1149
+ export function searchKnowledgeDollarOrKnowledgeDollarEqToJSON(
1150
+ searchKnowledgeDollarOrKnowledgeDollarEq:
1151
+ SearchKnowledgeDollarOrKnowledgeDollarEq,
1152
+ ): string {
1153
+ return JSON.stringify(
1154
+ SearchKnowledgeDollarOrKnowledgeDollarEq$outboundSchema.parse(
1155
+ searchKnowledgeDollarOrKnowledgeDollarEq,
1156
+ ),
1157
+ );
1158
+ }
1159
+
1160
+ export function searchKnowledgeDollarOrKnowledgeDollarEqFromJSON(
1161
+ jsonString: string,
1162
+ ): SafeParseResult<
1163
+ SearchKnowledgeDollarOrKnowledgeDollarEq,
1164
+ SDKValidationError
1165
+ > {
1166
+ return safeParse(
1167
+ jsonString,
1168
+ (x) =>
1169
+ SearchKnowledgeDollarOrKnowledgeDollarEq$inboundSchema.parse(
1170
+ JSON.parse(x),
1171
+ ),
1172
+ `Failed to parse 'SearchKnowledgeDollarOrKnowledgeDollarEq' from JSON`,
1173
+ );
1174
+ }
1175
+
1176
+ /** @internal */
1177
+ export const SearchKnowledgeDollarOrDollarEq$inboundSchema: z.ZodType<
1178
+ SearchKnowledgeDollarOrDollarEq,
1179
+ z.ZodTypeDef,
1180
+ unknown
1181
+ > = z.object({
1182
+ $eq: z.union([z.string(), z.number(), z.boolean()]),
1183
+ }).transform((v) => {
1184
+ return remap$(v, {
1185
+ "$eq": "dollarEq",
1186
+ });
1187
+ });
1188
+
1189
+ /** @internal */
1190
+ export type SearchKnowledgeDollarOrDollarEq$Outbound = {
1191
+ $eq: string | number | boolean;
1192
+ };
1193
+
1194
+ /** @internal */
1195
+ export const SearchKnowledgeDollarOrDollarEq$outboundSchema: z.ZodType<
1196
+ SearchKnowledgeDollarOrDollarEq$Outbound,
1197
+ z.ZodTypeDef,
1198
+ SearchKnowledgeDollarOrDollarEq
1199
+ > = z.object({
1200
+ dollarEq: z.union([z.string(), z.number(), z.boolean()]),
1201
+ }).transform((v) => {
1202
+ return remap$(v, {
1203
+ dollarEq: "$eq",
1204
+ });
1205
+ });
1206
+
1207
+ /**
1208
+ * @internal
1209
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1210
+ */
1211
+ export namespace SearchKnowledgeDollarOrDollarEq$ {
1212
+ /** @deprecated use `SearchKnowledgeDollarOrDollarEq$inboundSchema` instead. */
1213
+ export const inboundSchema = SearchKnowledgeDollarOrDollarEq$inboundSchema;
1214
+ /** @deprecated use `SearchKnowledgeDollarOrDollarEq$outboundSchema` instead. */
1215
+ export const outboundSchema = SearchKnowledgeDollarOrDollarEq$outboundSchema;
1216
+ /** @deprecated use `SearchKnowledgeDollarOrDollarEq$Outbound` instead. */
1217
+ export type Outbound = SearchKnowledgeDollarOrDollarEq$Outbound;
1218
+ }
1219
+
1220
+ export function searchKnowledgeDollarOrDollarEqToJSON(
1221
+ searchKnowledgeDollarOrDollarEq: SearchKnowledgeDollarOrDollarEq,
1222
+ ): string {
1223
+ return JSON.stringify(
1224
+ SearchKnowledgeDollarOrDollarEq$outboundSchema.parse(
1225
+ searchKnowledgeDollarOrDollarEq,
1226
+ ),
1227
+ );
1228
+ }
1229
+
1230
+ export function searchKnowledgeDollarOrDollarEqFromJSON(
1231
+ jsonString: string,
1232
+ ): SafeParseResult<SearchKnowledgeDollarOrDollarEq, SDKValidationError> {
1233
+ return safeParse(
1234
+ jsonString,
1235
+ (x) => SearchKnowledgeDollarOrDollarEq$inboundSchema.parse(JSON.parse(x)),
1236
+ `Failed to parse 'SearchKnowledgeDollarOrDollarEq' from JSON`,
1237
+ );
1238
+ }
1239
+
1240
+ /** @internal */
1241
+ export const SearchKnowledgeFilterDollarOr$inboundSchema: z.ZodType<
1242
+ SearchKnowledgeFilterDollarOr,
1243
+ z.ZodTypeDef,
1244
+ unknown
1245
+ > = z.union([
1246
+ z.lazy(() => SearchKnowledgeDollarOrDollarEq$inboundSchema),
1247
+ z.lazy(() => SearchKnowledgeDollarOrDollarNe$inboundSchema),
1248
+ z.lazy(() => SearchKnowledgeDollarOr3$inboundSchema),
1249
+ z.lazy(() => SearchKnowledgeDollarOrDollarGte$inboundSchema),
1250
+ z.lazy(() => SearchKnowledgeDollarOrDollarLt$inboundSchema),
1251
+ z.lazy(() => SearchKnowledgeDollarOrDollarLte$inboundSchema),
1252
+ z.lazy(() => SearchKnowledgeDollarOrDollarIn$inboundSchema),
1253
+ z.lazy(() => SearchKnowledgeDollarOrDollarNin$inboundSchema),
1254
+ z.lazy(() => SearchKnowledgeDollarOrDollarExists$inboundSchema),
1255
+ ]);
1256
+
1257
+ /** @internal */
1258
+ export type SearchKnowledgeFilterDollarOr$Outbound =
1259
+ | SearchKnowledgeDollarOrDollarEq$Outbound
1260
+ | SearchKnowledgeDollarOrDollarNe$Outbound
1261
+ | SearchKnowledgeDollarOr3$Outbound
1262
+ | SearchKnowledgeDollarOrDollarGte$Outbound
1263
+ | SearchKnowledgeDollarOrDollarLt$Outbound
1264
+ | SearchKnowledgeDollarOrDollarLte$Outbound
1265
+ | SearchKnowledgeDollarOrDollarIn$Outbound
1266
+ | SearchKnowledgeDollarOrDollarNin$Outbound
1267
+ | SearchKnowledgeDollarOrDollarExists$Outbound;
1268
+
1269
+ /** @internal */
1270
+ export const SearchKnowledgeFilterDollarOr$outboundSchema: z.ZodType<
1271
+ SearchKnowledgeFilterDollarOr$Outbound,
1272
+ z.ZodTypeDef,
1273
+ SearchKnowledgeFilterDollarOr
1274
+ > = z.union([
1275
+ z.lazy(() => SearchKnowledgeDollarOrDollarEq$outboundSchema),
1276
+ z.lazy(() => SearchKnowledgeDollarOrDollarNe$outboundSchema),
1277
+ z.lazy(() => SearchKnowledgeDollarOr3$outboundSchema),
1278
+ z.lazy(() => SearchKnowledgeDollarOrDollarGte$outboundSchema),
1279
+ z.lazy(() => SearchKnowledgeDollarOrDollarLt$outboundSchema),
1280
+ z.lazy(() => SearchKnowledgeDollarOrDollarLte$outboundSchema),
1281
+ z.lazy(() => SearchKnowledgeDollarOrDollarIn$outboundSchema),
1282
+ z.lazy(() => SearchKnowledgeDollarOrDollarNin$outboundSchema),
1283
+ z.lazy(() => SearchKnowledgeDollarOrDollarExists$outboundSchema),
1284
+ ]);
1285
+
1286
+ /**
1287
+ * @internal
1288
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1289
+ */
1290
+ export namespace SearchKnowledgeFilterDollarOr$ {
1291
+ /** @deprecated use `SearchKnowledgeFilterDollarOr$inboundSchema` instead. */
1292
+ export const inboundSchema = SearchKnowledgeFilterDollarOr$inboundSchema;
1293
+ /** @deprecated use `SearchKnowledgeFilterDollarOr$outboundSchema` instead. */
1294
+ export const outboundSchema = SearchKnowledgeFilterDollarOr$outboundSchema;
1295
+ /** @deprecated use `SearchKnowledgeFilterDollarOr$Outbound` instead. */
1296
+ export type Outbound = SearchKnowledgeFilterDollarOr$Outbound;
1297
+ }
1298
+
1299
+ export function searchKnowledgeFilterDollarOrToJSON(
1300
+ searchKnowledgeFilterDollarOr: SearchKnowledgeFilterDollarOr,
1301
+ ): string {
1302
+ return JSON.stringify(
1303
+ SearchKnowledgeFilterDollarOr$outboundSchema.parse(
1304
+ searchKnowledgeFilterDollarOr,
1305
+ ),
1306
+ );
1307
+ }
1308
+
1309
+ export function searchKnowledgeFilterDollarOrFromJSON(
1310
+ jsonString: string,
1311
+ ): SafeParseResult<SearchKnowledgeFilterDollarOr, SDKValidationError> {
1312
+ return safeParse(
1313
+ jsonString,
1314
+ (x) => SearchKnowledgeFilterDollarOr$inboundSchema.parse(JSON.parse(x)),
1315
+ `Failed to parse 'SearchKnowledgeFilterDollarOr' from JSON`,
1316
+ );
1317
+ }
1318
+
1319
+ /** @internal */
1320
+ export const FilterDollarOr$inboundSchema: z.ZodType<
1321
+ FilterDollarOr,
1322
+ z.ZodTypeDef,
1323
+ unknown
1324
+ > = z.object({
1325
+ $or: z.array(
1326
+ z.record(z.union([
1327
+ z.lazy(() => SearchKnowledgeDollarOrDollarEq$inboundSchema),
1328
+ z.lazy(() =>
1329
+ SearchKnowledgeDollarOrDollarNe$inboundSchema
1330
+ ),
1331
+ z.lazy(() => SearchKnowledgeDollarOr3$inboundSchema),
1332
+ z.lazy(() => SearchKnowledgeDollarOrDollarGte$inboundSchema),
1333
+ z.lazy(() => SearchKnowledgeDollarOrDollarLt$inboundSchema),
1334
+ z.lazy(() => SearchKnowledgeDollarOrDollarLte$inboundSchema),
1335
+ z.lazy(() => SearchKnowledgeDollarOrDollarIn$inboundSchema),
1336
+ z.lazy(() => SearchKnowledgeDollarOrDollarNin$inboundSchema),
1337
+ z.lazy(() => SearchKnowledgeDollarOrDollarExists$inboundSchema),
1338
+ ])),
1339
+ ),
1340
+ }).transform((v) => {
1341
+ return remap$(v, {
1342
+ "$or": "dollarOr",
1343
+ });
1344
+ });
1345
+
1346
+ /** @internal */
1347
+ export type FilterDollarOr$Outbound = {
1348
+ $or: Array<
1349
+ {
1350
+ [k: string]:
1351
+ | SearchKnowledgeDollarOrDollarEq$Outbound
1352
+ | SearchKnowledgeDollarOrDollarNe$Outbound
1353
+ | SearchKnowledgeDollarOr3$Outbound
1354
+ | SearchKnowledgeDollarOrDollarGte$Outbound
1355
+ | SearchKnowledgeDollarOrDollarLt$Outbound
1356
+ | SearchKnowledgeDollarOrDollarLte$Outbound
1357
+ | SearchKnowledgeDollarOrDollarIn$Outbound
1358
+ | SearchKnowledgeDollarOrDollarNin$Outbound
1359
+ | SearchKnowledgeDollarOrDollarExists$Outbound;
1360
+ }
1361
+ >;
1362
+ };
1363
+
1364
+ /** @internal */
1365
+ export const FilterDollarOr$outboundSchema: z.ZodType<
1366
+ FilterDollarOr$Outbound,
1367
+ z.ZodTypeDef,
1368
+ FilterDollarOr
1369
+ > = z.object({
1370
+ dollarOr: z.array(
1371
+ z.record(z.union([
1372
+ z.lazy(() => SearchKnowledgeDollarOrDollarEq$outboundSchema),
1373
+ z.lazy(() =>
1374
+ SearchKnowledgeDollarOrDollarNe$outboundSchema
1375
+ ),
1376
+ z.lazy(() => SearchKnowledgeDollarOr3$outboundSchema),
1377
+ z.lazy(() => SearchKnowledgeDollarOrDollarGte$outboundSchema),
1378
+ z.lazy(() => SearchKnowledgeDollarOrDollarLt$outboundSchema),
1379
+ z.lazy(() => SearchKnowledgeDollarOrDollarLte$outboundSchema),
1380
+ z.lazy(() => SearchKnowledgeDollarOrDollarIn$outboundSchema),
1381
+ z.lazy(() => SearchKnowledgeDollarOrDollarNin$outboundSchema),
1382
+ z.lazy(() => SearchKnowledgeDollarOrDollarExists$outboundSchema),
1383
+ ])),
1384
+ ),
1385
+ }).transform((v) => {
1386
+ return remap$(v, {
1387
+ dollarOr: "$or",
1388
+ });
1389
+ });
1390
+
1391
+ /**
1392
+ * @internal
1393
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1394
+ */
1395
+ export namespace FilterDollarOr$ {
1396
+ /** @deprecated use `FilterDollarOr$inboundSchema` instead. */
1397
+ export const inboundSchema = FilterDollarOr$inboundSchema;
1398
+ /** @deprecated use `FilterDollarOr$outboundSchema` instead. */
1399
+ export const outboundSchema = FilterDollarOr$outboundSchema;
1400
+ /** @deprecated use `FilterDollarOr$Outbound` instead. */
1401
+ export type Outbound = FilterDollarOr$Outbound;
1402
+ }
1403
+
1404
+ export function filterDollarOrToJSON(filterDollarOr: FilterDollarOr): string {
1405
+ return JSON.stringify(FilterDollarOr$outboundSchema.parse(filterDollarOr));
1406
+ }
1407
+
1408
+ export function filterDollarOrFromJSON(
1409
+ jsonString: string,
1410
+ ): SafeParseResult<FilterDollarOr, SDKValidationError> {
1411
+ return safeParse(
1412
+ jsonString,
1413
+ (x) => FilterDollarOr$inboundSchema.parse(JSON.parse(x)),
1414
+ `Failed to parse 'FilterDollarOr' from JSON`,
1415
+ );
1416
+ }
1417
+
1418
+ /** @internal */
1419
+ export const SearchKnowledgeDollarAndDollarExists$inboundSchema: z.ZodType<
1420
+ SearchKnowledgeDollarAndDollarExists,
1421
+ z.ZodTypeDef,
1422
+ unknown
1423
+ > = z.object({
1424
+ $exists: z.boolean(),
1425
+ }).transform((v) => {
1426
+ return remap$(v, {
1427
+ "$exists": "dollarExists",
1428
+ });
1429
+ });
1430
+
1431
+ /** @internal */
1432
+ export type SearchKnowledgeDollarAndDollarExists$Outbound = {
1433
+ $exists: boolean;
1434
+ };
1435
+
1436
+ /** @internal */
1437
+ export const SearchKnowledgeDollarAndDollarExists$outboundSchema: z.ZodType<
1438
+ SearchKnowledgeDollarAndDollarExists$Outbound,
1439
+ z.ZodTypeDef,
1440
+ SearchKnowledgeDollarAndDollarExists
1441
+ > = z.object({
1442
+ dollarExists: z.boolean(),
1443
+ }).transform((v) => {
1444
+ return remap$(v, {
1445
+ dollarExists: "$exists",
1446
+ });
1447
+ });
1448
+
1449
+ /**
1450
+ * @internal
1451
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1452
+ */
1453
+ export namespace SearchKnowledgeDollarAndDollarExists$ {
1454
+ /** @deprecated use `SearchKnowledgeDollarAndDollarExists$inboundSchema` instead. */
1455
+ export const inboundSchema =
1456
+ SearchKnowledgeDollarAndDollarExists$inboundSchema;
1457
+ /** @deprecated use `SearchKnowledgeDollarAndDollarExists$outboundSchema` instead. */
1458
+ export const outboundSchema =
1459
+ SearchKnowledgeDollarAndDollarExists$outboundSchema;
1460
+ /** @deprecated use `SearchKnowledgeDollarAndDollarExists$Outbound` instead. */
1461
+ export type Outbound = SearchKnowledgeDollarAndDollarExists$Outbound;
1462
+ }
1463
+
1464
+ export function searchKnowledgeDollarAndDollarExistsToJSON(
1465
+ searchKnowledgeDollarAndDollarExists: SearchKnowledgeDollarAndDollarExists,
1466
+ ): string {
1467
+ return JSON.stringify(
1468
+ SearchKnowledgeDollarAndDollarExists$outboundSchema.parse(
1469
+ searchKnowledgeDollarAndDollarExists,
1470
+ ),
1471
+ );
1472
+ }
1473
+
1474
+ export function searchKnowledgeDollarAndDollarExistsFromJSON(
1475
+ jsonString: string,
1476
+ ): SafeParseResult<SearchKnowledgeDollarAndDollarExists, SDKValidationError> {
1477
+ return safeParse(
1478
+ jsonString,
1479
+ (x) =>
1480
+ SearchKnowledgeDollarAndDollarExists$inboundSchema.parse(JSON.parse(x)),
1481
+ `Failed to parse 'SearchKnowledgeDollarAndDollarExists' from JSON`,
1482
+ );
1483
+ }
1484
+
1485
+ /** @internal */
1486
+ export const SearchKnowledgeDollarAndKnowledgeDollarNin$inboundSchema:
1487
+ z.ZodType<SearchKnowledgeDollarAndKnowledgeDollarNin, z.ZodTypeDef, unknown> =
1488
+ z.union([z.string(), z.number(), z.boolean()]);
1489
+
1490
+ /** @internal */
1491
+ export type SearchKnowledgeDollarAndKnowledgeDollarNin$Outbound =
1492
+ | string
1493
+ | number
1494
+ | boolean;
1495
+
1496
+ /** @internal */
1497
+ export const SearchKnowledgeDollarAndKnowledgeDollarNin$outboundSchema:
1498
+ z.ZodType<
1499
+ SearchKnowledgeDollarAndKnowledgeDollarNin$Outbound,
1500
+ z.ZodTypeDef,
1501
+ SearchKnowledgeDollarAndKnowledgeDollarNin
1502
+ > = z.union([z.string(), z.number(), z.boolean()]);
1503
+
1504
+ /**
1505
+ * @internal
1506
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1507
+ */
1508
+ export namespace SearchKnowledgeDollarAndKnowledgeDollarNin$ {
1509
+ /** @deprecated use `SearchKnowledgeDollarAndKnowledgeDollarNin$inboundSchema` instead. */
1510
+ export const inboundSchema =
1511
+ SearchKnowledgeDollarAndKnowledgeDollarNin$inboundSchema;
1512
+ /** @deprecated use `SearchKnowledgeDollarAndKnowledgeDollarNin$outboundSchema` instead. */
1513
+ export const outboundSchema =
1514
+ SearchKnowledgeDollarAndKnowledgeDollarNin$outboundSchema;
1515
+ /** @deprecated use `SearchKnowledgeDollarAndKnowledgeDollarNin$Outbound` instead. */
1516
+ export type Outbound = SearchKnowledgeDollarAndKnowledgeDollarNin$Outbound;
1517
+ }
1518
+
1519
+ export function searchKnowledgeDollarAndKnowledgeDollarNinToJSON(
1520
+ searchKnowledgeDollarAndKnowledgeDollarNin:
1521
+ SearchKnowledgeDollarAndKnowledgeDollarNin,
1522
+ ): string {
1523
+ return JSON.stringify(
1524
+ SearchKnowledgeDollarAndKnowledgeDollarNin$outboundSchema.parse(
1525
+ searchKnowledgeDollarAndKnowledgeDollarNin,
1526
+ ),
1527
+ );
1528
+ }
1529
+
1530
+ export function searchKnowledgeDollarAndKnowledgeDollarNinFromJSON(
1531
+ jsonString: string,
1532
+ ): SafeParseResult<
1533
+ SearchKnowledgeDollarAndKnowledgeDollarNin,
1534
+ SDKValidationError
1535
+ > {
1536
+ return safeParse(
1537
+ jsonString,
1538
+ (x) =>
1539
+ SearchKnowledgeDollarAndKnowledgeDollarNin$inboundSchema.parse(
1540
+ JSON.parse(x),
1541
+ ),
1542
+ `Failed to parse 'SearchKnowledgeDollarAndKnowledgeDollarNin' from JSON`,
1543
+ );
1544
+ }
1545
+
1546
+ /** @internal */
1547
+ export const SearchKnowledgeDollarAndDollarNin$inboundSchema: z.ZodType<
1548
+ SearchKnowledgeDollarAndDollarNin,
1549
+ z.ZodTypeDef,
1550
+ unknown
1551
+ > = z.object({
1552
+ $nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
1553
+ }).transform((v) => {
1554
+ return remap$(v, {
1555
+ "$nin": "dollarNin",
1556
+ });
1557
+ });
1558
+
1559
+ /** @internal */
1560
+ export type SearchKnowledgeDollarAndDollarNin$Outbound = {
1561
+ $nin: Array<string | number | boolean>;
1562
+ };
1563
+
1564
+ /** @internal */
1565
+ export const SearchKnowledgeDollarAndDollarNin$outboundSchema: z.ZodType<
1566
+ SearchKnowledgeDollarAndDollarNin$Outbound,
1567
+ z.ZodTypeDef,
1568
+ SearchKnowledgeDollarAndDollarNin
1569
+ > = z.object({
1570
+ dollarNin: z.array(z.union([z.string(), z.number(), z.boolean()])),
1571
+ }).transform((v) => {
1572
+ return remap$(v, {
1573
+ dollarNin: "$nin",
1574
+ });
1575
+ });
1576
+
1577
+ /**
1578
+ * @internal
1579
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1580
+ */
1581
+ export namespace SearchKnowledgeDollarAndDollarNin$ {
1582
+ /** @deprecated use `SearchKnowledgeDollarAndDollarNin$inboundSchema` instead. */
1583
+ export const inboundSchema = SearchKnowledgeDollarAndDollarNin$inboundSchema;
1584
+ /** @deprecated use `SearchKnowledgeDollarAndDollarNin$outboundSchema` instead. */
1585
+ export const outboundSchema =
1586
+ SearchKnowledgeDollarAndDollarNin$outboundSchema;
1587
+ /** @deprecated use `SearchKnowledgeDollarAndDollarNin$Outbound` instead. */
1588
+ export type Outbound = SearchKnowledgeDollarAndDollarNin$Outbound;
1589
+ }
1590
+
1591
+ export function searchKnowledgeDollarAndDollarNinToJSON(
1592
+ searchKnowledgeDollarAndDollarNin: SearchKnowledgeDollarAndDollarNin,
1593
+ ): string {
1594
+ return JSON.stringify(
1595
+ SearchKnowledgeDollarAndDollarNin$outboundSchema.parse(
1596
+ searchKnowledgeDollarAndDollarNin,
1597
+ ),
1598
+ );
1599
+ }
1600
+
1601
+ export function searchKnowledgeDollarAndDollarNinFromJSON(
1602
+ jsonString: string,
1603
+ ): SafeParseResult<SearchKnowledgeDollarAndDollarNin, SDKValidationError> {
1604
+ return safeParse(
1605
+ jsonString,
1606
+ (x) => SearchKnowledgeDollarAndDollarNin$inboundSchema.parse(JSON.parse(x)),
1607
+ `Failed to parse 'SearchKnowledgeDollarAndDollarNin' from JSON`,
1608
+ );
1609
+ }
1610
+
1611
+ /** @internal */
1612
+ export const SearchKnowledgeDollarAndKnowledgeDollarIn$inboundSchema: z.ZodType<
1613
+ SearchKnowledgeDollarAndKnowledgeDollarIn,
1614
+ z.ZodTypeDef,
1615
+ unknown
1616
+ > = z.union([z.string(), z.number(), z.boolean()]);
1617
+
1618
+ /** @internal */
1619
+ export type SearchKnowledgeDollarAndKnowledgeDollarIn$Outbound =
1620
+ | string
1621
+ | number
1622
+ | boolean;
1623
+
1624
+ /** @internal */
1625
+ export const SearchKnowledgeDollarAndKnowledgeDollarIn$outboundSchema:
1626
+ z.ZodType<
1627
+ SearchKnowledgeDollarAndKnowledgeDollarIn$Outbound,
1628
+ z.ZodTypeDef,
1629
+ SearchKnowledgeDollarAndKnowledgeDollarIn
1630
+ > = z.union([z.string(), z.number(), z.boolean()]);
1631
+
1632
+ /**
1633
+ * @internal
1634
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1635
+ */
1636
+ export namespace SearchKnowledgeDollarAndKnowledgeDollarIn$ {
1637
+ /** @deprecated use `SearchKnowledgeDollarAndKnowledgeDollarIn$inboundSchema` instead. */
1638
+ export const inboundSchema =
1639
+ SearchKnowledgeDollarAndKnowledgeDollarIn$inboundSchema;
1640
+ /** @deprecated use `SearchKnowledgeDollarAndKnowledgeDollarIn$outboundSchema` instead. */
1641
+ export const outboundSchema =
1642
+ SearchKnowledgeDollarAndKnowledgeDollarIn$outboundSchema;
1643
+ /** @deprecated use `SearchKnowledgeDollarAndKnowledgeDollarIn$Outbound` instead. */
1644
+ export type Outbound = SearchKnowledgeDollarAndKnowledgeDollarIn$Outbound;
1645
+ }
1646
+
1647
+ export function searchKnowledgeDollarAndKnowledgeDollarInToJSON(
1648
+ searchKnowledgeDollarAndKnowledgeDollarIn:
1649
+ SearchKnowledgeDollarAndKnowledgeDollarIn,
1650
+ ): string {
1651
+ return JSON.stringify(
1652
+ SearchKnowledgeDollarAndKnowledgeDollarIn$outboundSchema.parse(
1653
+ searchKnowledgeDollarAndKnowledgeDollarIn,
1654
+ ),
1655
+ );
1656
+ }
1657
+
1658
+ export function searchKnowledgeDollarAndKnowledgeDollarInFromJSON(
1659
+ jsonString: string,
1660
+ ): SafeParseResult<
1661
+ SearchKnowledgeDollarAndKnowledgeDollarIn,
1662
+ SDKValidationError
1663
+ > {
1664
+ return safeParse(
1665
+ jsonString,
1666
+ (x) =>
1667
+ SearchKnowledgeDollarAndKnowledgeDollarIn$inboundSchema.parse(
1668
+ JSON.parse(x),
1669
+ ),
1670
+ `Failed to parse 'SearchKnowledgeDollarAndKnowledgeDollarIn' from JSON`,
1671
+ );
1672
+ }
1673
+
1674
+ /** @internal */
1675
+ export const SearchKnowledgeDollarAndDollarIn$inboundSchema: z.ZodType<
1676
+ SearchKnowledgeDollarAndDollarIn,
1677
+ z.ZodTypeDef,
1678
+ unknown
1679
+ > = z.object({
1680
+ $in: z.array(z.union([z.string(), z.number(), z.boolean()])),
1681
+ }).transform((v) => {
1682
+ return remap$(v, {
1683
+ "$in": "dollarIn",
1684
+ });
1685
+ });
1686
+
1687
+ /** @internal */
1688
+ export type SearchKnowledgeDollarAndDollarIn$Outbound = {
1689
+ $in: Array<string | number | boolean>;
1690
+ };
1691
+
1692
+ /** @internal */
1693
+ export const SearchKnowledgeDollarAndDollarIn$outboundSchema: z.ZodType<
1694
+ SearchKnowledgeDollarAndDollarIn$Outbound,
1695
+ z.ZodTypeDef,
1696
+ SearchKnowledgeDollarAndDollarIn
1697
+ > = z.object({
1698
+ dollarIn: z.array(z.union([z.string(), z.number(), z.boolean()])),
1699
+ }).transform((v) => {
1700
+ return remap$(v, {
1701
+ dollarIn: "$in",
1702
+ });
1703
+ });
1704
+
1705
+ /**
1706
+ * @internal
1707
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1708
+ */
1709
+ export namespace SearchKnowledgeDollarAndDollarIn$ {
1710
+ /** @deprecated use `SearchKnowledgeDollarAndDollarIn$inboundSchema` instead. */
1711
+ export const inboundSchema = SearchKnowledgeDollarAndDollarIn$inboundSchema;
1712
+ /** @deprecated use `SearchKnowledgeDollarAndDollarIn$outboundSchema` instead. */
1713
+ export const outboundSchema = SearchKnowledgeDollarAndDollarIn$outboundSchema;
1714
+ /** @deprecated use `SearchKnowledgeDollarAndDollarIn$Outbound` instead. */
1715
+ export type Outbound = SearchKnowledgeDollarAndDollarIn$Outbound;
1716
+ }
1717
+
1718
+ export function searchKnowledgeDollarAndDollarInToJSON(
1719
+ searchKnowledgeDollarAndDollarIn: SearchKnowledgeDollarAndDollarIn,
1720
+ ): string {
1721
+ return JSON.stringify(
1722
+ SearchKnowledgeDollarAndDollarIn$outboundSchema.parse(
1723
+ searchKnowledgeDollarAndDollarIn,
1724
+ ),
1725
+ );
1726
+ }
1727
+
1728
+ export function searchKnowledgeDollarAndDollarInFromJSON(
1729
+ jsonString: string,
1730
+ ): SafeParseResult<SearchKnowledgeDollarAndDollarIn, SDKValidationError> {
1731
+ return safeParse(
1732
+ jsonString,
1733
+ (x) => SearchKnowledgeDollarAndDollarIn$inboundSchema.parse(JSON.parse(x)),
1734
+ `Failed to parse 'SearchKnowledgeDollarAndDollarIn' from JSON`,
1735
+ );
1736
+ }
1737
+
1738
+ /** @internal */
1739
+ export const SearchKnowledgeDollarAndDollarLte$inboundSchema: z.ZodType<
1740
+ SearchKnowledgeDollarAndDollarLte,
1741
+ z.ZodTypeDef,
1742
+ unknown
1743
+ > = z.object({
1744
+ $lte: z.number(),
1745
+ }).transform((v) => {
1746
+ return remap$(v, {
1747
+ "$lte": "dollarLte",
1748
+ });
1749
+ });
1750
+
1751
+ /** @internal */
1752
+ export type SearchKnowledgeDollarAndDollarLte$Outbound = {
1753
+ $lte: number;
1754
+ };
1755
+
1756
+ /** @internal */
1757
+ export const SearchKnowledgeDollarAndDollarLte$outboundSchema: z.ZodType<
1758
+ SearchKnowledgeDollarAndDollarLte$Outbound,
1759
+ z.ZodTypeDef,
1760
+ SearchKnowledgeDollarAndDollarLte
1761
+ > = z.object({
1762
+ dollarLte: z.number(),
1763
+ }).transform((v) => {
1764
+ return remap$(v, {
1765
+ dollarLte: "$lte",
1766
+ });
1767
+ });
1768
+
1769
+ /**
1770
+ * @internal
1771
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1772
+ */
1773
+ export namespace SearchKnowledgeDollarAndDollarLte$ {
1774
+ /** @deprecated use `SearchKnowledgeDollarAndDollarLte$inboundSchema` instead. */
1775
+ export const inboundSchema = SearchKnowledgeDollarAndDollarLte$inboundSchema;
1776
+ /** @deprecated use `SearchKnowledgeDollarAndDollarLte$outboundSchema` instead. */
1777
+ export const outboundSchema =
1778
+ SearchKnowledgeDollarAndDollarLte$outboundSchema;
1779
+ /** @deprecated use `SearchKnowledgeDollarAndDollarLte$Outbound` instead. */
1780
+ export type Outbound = SearchKnowledgeDollarAndDollarLte$Outbound;
1781
+ }
1782
+
1783
+ export function searchKnowledgeDollarAndDollarLteToJSON(
1784
+ searchKnowledgeDollarAndDollarLte: SearchKnowledgeDollarAndDollarLte,
1785
+ ): string {
1786
+ return JSON.stringify(
1787
+ SearchKnowledgeDollarAndDollarLte$outboundSchema.parse(
1788
+ searchKnowledgeDollarAndDollarLte,
1789
+ ),
1790
+ );
1791
+ }
1792
+
1793
+ export function searchKnowledgeDollarAndDollarLteFromJSON(
1794
+ jsonString: string,
1795
+ ): SafeParseResult<SearchKnowledgeDollarAndDollarLte, SDKValidationError> {
1796
+ return safeParse(
1797
+ jsonString,
1798
+ (x) => SearchKnowledgeDollarAndDollarLte$inboundSchema.parse(JSON.parse(x)),
1799
+ `Failed to parse 'SearchKnowledgeDollarAndDollarLte' from JSON`,
1800
+ );
1801
+ }
1802
+
1803
+ /** @internal */
1804
+ export const SearchKnowledgeDollarAndDollarLt$inboundSchema: z.ZodType<
1805
+ SearchKnowledgeDollarAndDollarLt,
1806
+ z.ZodTypeDef,
1807
+ unknown
1808
+ > = z.object({
1809
+ $lt: z.number(),
1810
+ }).transform((v) => {
1811
+ return remap$(v, {
1812
+ "$lt": "dollarLt",
1813
+ });
1814
+ });
1815
+
1816
+ /** @internal */
1817
+ export type SearchKnowledgeDollarAndDollarLt$Outbound = {
1818
+ $lt: number;
1819
+ };
1820
+
1821
+ /** @internal */
1822
+ export const SearchKnowledgeDollarAndDollarLt$outboundSchema: z.ZodType<
1823
+ SearchKnowledgeDollarAndDollarLt$Outbound,
1824
+ z.ZodTypeDef,
1825
+ SearchKnowledgeDollarAndDollarLt
1826
+ > = z.object({
1827
+ dollarLt: z.number(),
1828
+ }).transform((v) => {
1829
+ return remap$(v, {
1830
+ dollarLt: "$lt",
1831
+ });
1832
+ });
1833
+
1834
+ /**
1835
+ * @internal
1836
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1837
+ */
1838
+ export namespace SearchKnowledgeDollarAndDollarLt$ {
1839
+ /** @deprecated use `SearchKnowledgeDollarAndDollarLt$inboundSchema` instead. */
1840
+ export const inboundSchema = SearchKnowledgeDollarAndDollarLt$inboundSchema;
1841
+ /** @deprecated use `SearchKnowledgeDollarAndDollarLt$outboundSchema` instead. */
1842
+ export const outboundSchema = SearchKnowledgeDollarAndDollarLt$outboundSchema;
1843
+ /** @deprecated use `SearchKnowledgeDollarAndDollarLt$Outbound` instead. */
1844
+ export type Outbound = SearchKnowledgeDollarAndDollarLt$Outbound;
1845
+ }
1846
+
1847
+ export function searchKnowledgeDollarAndDollarLtToJSON(
1848
+ searchKnowledgeDollarAndDollarLt: SearchKnowledgeDollarAndDollarLt,
1849
+ ): string {
1850
+ return JSON.stringify(
1851
+ SearchKnowledgeDollarAndDollarLt$outboundSchema.parse(
1852
+ searchKnowledgeDollarAndDollarLt,
1853
+ ),
1854
+ );
1855
+ }
1856
+
1857
+ export function searchKnowledgeDollarAndDollarLtFromJSON(
1858
+ jsonString: string,
1859
+ ): SafeParseResult<SearchKnowledgeDollarAndDollarLt, SDKValidationError> {
1860
+ return safeParse(
1861
+ jsonString,
1862
+ (x) => SearchKnowledgeDollarAndDollarLt$inboundSchema.parse(JSON.parse(x)),
1863
+ `Failed to parse 'SearchKnowledgeDollarAndDollarLt' from JSON`,
1864
+ );
1865
+ }
1866
+
1867
+ /** @internal */
1868
+ export const SearchKnowledgeDollarAndDollarGte$inboundSchema: z.ZodType<
1869
+ SearchKnowledgeDollarAndDollarGte,
1870
+ z.ZodTypeDef,
1871
+ unknown
1872
+ > = z.object({
1873
+ $gte: z.number(),
1874
+ }).transform((v) => {
1875
+ return remap$(v, {
1876
+ "$gte": "dollarGte",
1877
+ });
1878
+ });
1879
+
1880
+ /** @internal */
1881
+ export type SearchKnowledgeDollarAndDollarGte$Outbound = {
1882
+ $gte: number;
1883
+ };
1884
+
1885
+ /** @internal */
1886
+ export const SearchKnowledgeDollarAndDollarGte$outboundSchema: z.ZodType<
1887
+ SearchKnowledgeDollarAndDollarGte$Outbound,
1888
+ z.ZodTypeDef,
1889
+ SearchKnowledgeDollarAndDollarGte
1890
+ > = z.object({
1891
+ dollarGte: z.number(),
1892
+ }).transform((v) => {
1893
+ return remap$(v, {
1894
+ dollarGte: "$gte",
1895
+ });
1896
+ });
1897
+
1898
+ /**
1899
+ * @internal
1900
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1901
+ */
1902
+ export namespace SearchKnowledgeDollarAndDollarGte$ {
1903
+ /** @deprecated use `SearchKnowledgeDollarAndDollarGte$inboundSchema` instead. */
1904
+ export const inboundSchema = SearchKnowledgeDollarAndDollarGte$inboundSchema;
1905
+ /** @deprecated use `SearchKnowledgeDollarAndDollarGte$outboundSchema` instead. */
1906
+ export const outboundSchema =
1907
+ SearchKnowledgeDollarAndDollarGte$outboundSchema;
1908
+ /** @deprecated use `SearchKnowledgeDollarAndDollarGte$Outbound` instead. */
1909
+ export type Outbound = SearchKnowledgeDollarAndDollarGte$Outbound;
1910
+ }
1911
+
1912
+ export function searchKnowledgeDollarAndDollarGteToJSON(
1913
+ searchKnowledgeDollarAndDollarGte: SearchKnowledgeDollarAndDollarGte,
1914
+ ): string {
1915
+ return JSON.stringify(
1916
+ SearchKnowledgeDollarAndDollarGte$outboundSchema.parse(
1917
+ searchKnowledgeDollarAndDollarGte,
1918
+ ),
1919
+ );
1920
+ }
1921
+
1922
+ export function searchKnowledgeDollarAndDollarGteFromJSON(
1923
+ jsonString: string,
1924
+ ): SafeParseResult<SearchKnowledgeDollarAndDollarGte, SDKValidationError> {
1925
+ return safeParse(
1926
+ jsonString,
1927
+ (x) => SearchKnowledgeDollarAndDollarGte$inboundSchema.parse(JSON.parse(x)),
1928
+ `Failed to parse 'SearchKnowledgeDollarAndDollarGte' from JSON`,
1929
+ );
1930
+ }
1931
+
1932
+ /** @internal */
1933
+ export const SearchKnowledgeDollarAnd3$inboundSchema: z.ZodType<
1934
+ SearchKnowledgeDollarAnd3,
1935
+ z.ZodTypeDef,
1936
+ unknown
1937
+ > = z.object({
1938
+ $gt: z.number(),
1939
+ }).transform((v) => {
1940
+ return remap$(v, {
1941
+ "$gt": "dollarGt",
1942
+ });
1943
+ });
1944
+
1945
+ /** @internal */
1946
+ export type SearchKnowledgeDollarAnd3$Outbound = {
1947
+ $gt: number;
1948
+ };
1949
+
1950
+ /** @internal */
1951
+ export const SearchKnowledgeDollarAnd3$outboundSchema: z.ZodType<
1952
+ SearchKnowledgeDollarAnd3$Outbound,
1953
+ z.ZodTypeDef,
1954
+ SearchKnowledgeDollarAnd3
1955
+ > = z.object({
1956
+ dollarGt: z.number(),
1957
+ }).transform((v) => {
1958
+ return remap$(v, {
1959
+ dollarGt: "$gt",
1960
+ });
1961
+ });
1962
+
1963
+ /**
1964
+ * @internal
1965
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1966
+ */
1967
+ export namespace SearchKnowledgeDollarAnd3$ {
1968
+ /** @deprecated use `SearchKnowledgeDollarAnd3$inboundSchema` instead. */
1969
+ export const inboundSchema = SearchKnowledgeDollarAnd3$inboundSchema;
1970
+ /** @deprecated use `SearchKnowledgeDollarAnd3$outboundSchema` instead. */
1971
+ export const outboundSchema = SearchKnowledgeDollarAnd3$outboundSchema;
1972
+ /** @deprecated use `SearchKnowledgeDollarAnd3$Outbound` instead. */
1973
+ export type Outbound = SearchKnowledgeDollarAnd3$Outbound;
1974
+ }
1975
+
1976
+ export function searchKnowledgeDollarAnd3ToJSON(
1977
+ searchKnowledgeDollarAnd3: SearchKnowledgeDollarAnd3,
1978
+ ): string {
1979
+ return JSON.stringify(
1980
+ SearchKnowledgeDollarAnd3$outboundSchema.parse(searchKnowledgeDollarAnd3),
1981
+ );
1982
+ }
1983
+
1984
+ export function searchKnowledgeDollarAnd3FromJSON(
1985
+ jsonString: string,
1986
+ ): SafeParseResult<SearchKnowledgeDollarAnd3, SDKValidationError> {
1987
+ return safeParse(
1988
+ jsonString,
1989
+ (x) => SearchKnowledgeDollarAnd3$inboundSchema.parse(JSON.parse(x)),
1990
+ `Failed to parse 'SearchKnowledgeDollarAnd3' from JSON`,
1991
+ );
1992
+ }
1993
+
1994
+ /** @internal */
1995
+ export const SearchKnowledgeDollarAndKnowledgeDollarNe$inboundSchema: z.ZodType<
1996
+ SearchKnowledgeDollarAndKnowledgeDollarNe,
1997
+ z.ZodTypeDef,
1998
+ unknown
1999
+ > = z.union([z.string(), z.number(), z.boolean()]);
2000
+
2001
+ /** @internal */
2002
+ export type SearchKnowledgeDollarAndKnowledgeDollarNe$Outbound =
2003
+ | string
2004
+ | number
2005
+ | boolean;
2006
+
2007
+ /** @internal */
2008
+ export const SearchKnowledgeDollarAndKnowledgeDollarNe$outboundSchema:
2009
+ z.ZodType<
2010
+ SearchKnowledgeDollarAndKnowledgeDollarNe$Outbound,
2011
+ z.ZodTypeDef,
2012
+ SearchKnowledgeDollarAndKnowledgeDollarNe
2013
+ > = z.union([z.string(), z.number(), z.boolean()]);
2014
+
2015
+ /**
2016
+ * @internal
2017
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2018
+ */
2019
+ export namespace SearchKnowledgeDollarAndKnowledgeDollarNe$ {
2020
+ /** @deprecated use `SearchKnowledgeDollarAndKnowledgeDollarNe$inboundSchema` instead. */
2021
+ export const inboundSchema =
2022
+ SearchKnowledgeDollarAndKnowledgeDollarNe$inboundSchema;
2023
+ /** @deprecated use `SearchKnowledgeDollarAndKnowledgeDollarNe$outboundSchema` instead. */
2024
+ export const outboundSchema =
2025
+ SearchKnowledgeDollarAndKnowledgeDollarNe$outboundSchema;
2026
+ /** @deprecated use `SearchKnowledgeDollarAndKnowledgeDollarNe$Outbound` instead. */
2027
+ export type Outbound = SearchKnowledgeDollarAndKnowledgeDollarNe$Outbound;
2028
+ }
2029
+
2030
+ export function searchKnowledgeDollarAndKnowledgeDollarNeToJSON(
2031
+ searchKnowledgeDollarAndKnowledgeDollarNe:
2032
+ SearchKnowledgeDollarAndKnowledgeDollarNe,
2033
+ ): string {
2034
+ return JSON.stringify(
2035
+ SearchKnowledgeDollarAndKnowledgeDollarNe$outboundSchema.parse(
2036
+ searchKnowledgeDollarAndKnowledgeDollarNe,
2037
+ ),
2038
+ );
2039
+ }
2040
+
2041
+ export function searchKnowledgeDollarAndKnowledgeDollarNeFromJSON(
2042
+ jsonString: string,
2043
+ ): SafeParseResult<
2044
+ SearchKnowledgeDollarAndKnowledgeDollarNe,
2045
+ SDKValidationError
2046
+ > {
2047
+ return safeParse(
2048
+ jsonString,
2049
+ (x) =>
2050
+ SearchKnowledgeDollarAndKnowledgeDollarNe$inboundSchema.parse(
2051
+ JSON.parse(x),
2052
+ ),
2053
+ `Failed to parse 'SearchKnowledgeDollarAndKnowledgeDollarNe' from JSON`,
2054
+ );
2055
+ }
2056
+
2057
+ /** @internal */
2058
+ export const SearchKnowledgeDollarAndDollarNe$inboundSchema: z.ZodType<
2059
+ SearchKnowledgeDollarAndDollarNe,
2060
+ z.ZodTypeDef,
2061
+ unknown
2062
+ > = z.object({
2063
+ $ne: z.union([z.string(), z.number(), z.boolean()]),
2064
+ }).transform((v) => {
2065
+ return remap$(v, {
2066
+ "$ne": "dollarNe",
2067
+ });
2068
+ });
2069
+
2070
+ /** @internal */
2071
+ export type SearchKnowledgeDollarAndDollarNe$Outbound = {
2072
+ $ne: string | number | boolean;
2073
+ };
2074
+
2075
+ /** @internal */
2076
+ export const SearchKnowledgeDollarAndDollarNe$outboundSchema: z.ZodType<
2077
+ SearchKnowledgeDollarAndDollarNe$Outbound,
2078
+ z.ZodTypeDef,
2079
+ SearchKnowledgeDollarAndDollarNe
2080
+ > = z.object({
2081
+ dollarNe: z.union([z.string(), z.number(), z.boolean()]),
2082
+ }).transform((v) => {
2083
+ return remap$(v, {
2084
+ dollarNe: "$ne",
2085
+ });
2086
+ });
2087
+
2088
+ /**
2089
+ * @internal
2090
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2091
+ */
2092
+ export namespace SearchKnowledgeDollarAndDollarNe$ {
2093
+ /** @deprecated use `SearchKnowledgeDollarAndDollarNe$inboundSchema` instead. */
2094
+ export const inboundSchema = SearchKnowledgeDollarAndDollarNe$inboundSchema;
2095
+ /** @deprecated use `SearchKnowledgeDollarAndDollarNe$outboundSchema` instead. */
2096
+ export const outboundSchema = SearchKnowledgeDollarAndDollarNe$outboundSchema;
2097
+ /** @deprecated use `SearchKnowledgeDollarAndDollarNe$Outbound` instead. */
2098
+ export type Outbound = SearchKnowledgeDollarAndDollarNe$Outbound;
2099
+ }
2100
+
2101
+ export function searchKnowledgeDollarAndDollarNeToJSON(
2102
+ searchKnowledgeDollarAndDollarNe: SearchKnowledgeDollarAndDollarNe,
2103
+ ): string {
2104
+ return JSON.stringify(
2105
+ SearchKnowledgeDollarAndDollarNe$outboundSchema.parse(
2106
+ searchKnowledgeDollarAndDollarNe,
2107
+ ),
2108
+ );
2109
+ }
2110
+
2111
+ export function searchKnowledgeDollarAndDollarNeFromJSON(
2112
+ jsonString: string,
2113
+ ): SafeParseResult<SearchKnowledgeDollarAndDollarNe, SDKValidationError> {
2114
+ return safeParse(
2115
+ jsonString,
2116
+ (x) => SearchKnowledgeDollarAndDollarNe$inboundSchema.parse(JSON.parse(x)),
2117
+ `Failed to parse 'SearchKnowledgeDollarAndDollarNe' from JSON`,
2118
+ );
2119
+ }
2120
+
2121
+ /** @internal */
2122
+ export const SearchKnowledgeDollarAndKnowledgeDollarEq$inboundSchema: z.ZodType<
2123
+ SearchKnowledgeDollarAndKnowledgeDollarEq,
2124
+ z.ZodTypeDef,
2125
+ unknown
2126
+ > = z.union([z.string(), z.number(), z.boolean()]);
2127
+
2128
+ /** @internal */
2129
+ export type SearchKnowledgeDollarAndKnowledgeDollarEq$Outbound =
2130
+ | string
2131
+ | number
2132
+ | boolean;
2133
+
2134
+ /** @internal */
2135
+ export const SearchKnowledgeDollarAndKnowledgeDollarEq$outboundSchema:
2136
+ z.ZodType<
2137
+ SearchKnowledgeDollarAndKnowledgeDollarEq$Outbound,
2138
+ z.ZodTypeDef,
2139
+ SearchKnowledgeDollarAndKnowledgeDollarEq
2140
+ > = z.union([z.string(), z.number(), z.boolean()]);
2141
+
2142
+ /**
2143
+ * @internal
2144
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2145
+ */
2146
+ export namespace SearchKnowledgeDollarAndKnowledgeDollarEq$ {
2147
+ /** @deprecated use `SearchKnowledgeDollarAndKnowledgeDollarEq$inboundSchema` instead. */
2148
+ export const inboundSchema =
2149
+ SearchKnowledgeDollarAndKnowledgeDollarEq$inboundSchema;
2150
+ /** @deprecated use `SearchKnowledgeDollarAndKnowledgeDollarEq$outboundSchema` instead. */
2151
+ export const outboundSchema =
2152
+ SearchKnowledgeDollarAndKnowledgeDollarEq$outboundSchema;
2153
+ /** @deprecated use `SearchKnowledgeDollarAndKnowledgeDollarEq$Outbound` instead. */
2154
+ export type Outbound = SearchKnowledgeDollarAndKnowledgeDollarEq$Outbound;
2155
+ }
2156
+
2157
+ export function searchKnowledgeDollarAndKnowledgeDollarEqToJSON(
2158
+ searchKnowledgeDollarAndKnowledgeDollarEq:
2159
+ SearchKnowledgeDollarAndKnowledgeDollarEq,
2160
+ ): string {
2161
+ return JSON.stringify(
2162
+ SearchKnowledgeDollarAndKnowledgeDollarEq$outboundSchema.parse(
2163
+ searchKnowledgeDollarAndKnowledgeDollarEq,
2164
+ ),
2165
+ );
2166
+ }
2167
+
2168
+ export function searchKnowledgeDollarAndKnowledgeDollarEqFromJSON(
2169
+ jsonString: string,
2170
+ ): SafeParseResult<
2171
+ SearchKnowledgeDollarAndKnowledgeDollarEq,
2172
+ SDKValidationError
2173
+ > {
2174
+ return safeParse(
2175
+ jsonString,
2176
+ (x) =>
2177
+ SearchKnowledgeDollarAndKnowledgeDollarEq$inboundSchema.parse(
2178
+ JSON.parse(x),
2179
+ ),
2180
+ `Failed to parse 'SearchKnowledgeDollarAndKnowledgeDollarEq' from JSON`,
2181
+ );
2182
+ }
2183
+
2184
+ /** @internal */
2185
+ export const SearchKnowledgeDollarAndDollarEq$inboundSchema: z.ZodType<
2186
+ SearchKnowledgeDollarAndDollarEq,
2187
+ z.ZodTypeDef,
2188
+ unknown
2189
+ > = z.object({
2190
+ $eq: z.union([z.string(), z.number(), z.boolean()]),
2191
+ }).transform((v) => {
2192
+ return remap$(v, {
2193
+ "$eq": "dollarEq",
2194
+ });
2195
+ });
2196
+
2197
+ /** @internal */
2198
+ export type SearchKnowledgeDollarAndDollarEq$Outbound = {
2199
+ $eq: string | number | boolean;
2200
+ };
2201
+
2202
+ /** @internal */
2203
+ export const SearchKnowledgeDollarAndDollarEq$outboundSchema: z.ZodType<
2204
+ SearchKnowledgeDollarAndDollarEq$Outbound,
2205
+ z.ZodTypeDef,
2206
+ SearchKnowledgeDollarAndDollarEq
2207
+ > = z.object({
2208
+ dollarEq: z.union([z.string(), z.number(), z.boolean()]),
2209
+ }).transform((v) => {
2210
+ return remap$(v, {
2211
+ dollarEq: "$eq",
2212
+ });
2213
+ });
2214
+
2215
+ /**
2216
+ * @internal
2217
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2218
+ */
2219
+ export namespace SearchKnowledgeDollarAndDollarEq$ {
2220
+ /** @deprecated use `SearchKnowledgeDollarAndDollarEq$inboundSchema` instead. */
2221
+ export const inboundSchema = SearchKnowledgeDollarAndDollarEq$inboundSchema;
2222
+ /** @deprecated use `SearchKnowledgeDollarAndDollarEq$outboundSchema` instead. */
2223
+ export const outboundSchema = SearchKnowledgeDollarAndDollarEq$outboundSchema;
2224
+ /** @deprecated use `SearchKnowledgeDollarAndDollarEq$Outbound` instead. */
2225
+ export type Outbound = SearchKnowledgeDollarAndDollarEq$Outbound;
2226
+ }
2227
+
2228
+ export function searchKnowledgeDollarAndDollarEqToJSON(
2229
+ searchKnowledgeDollarAndDollarEq: SearchKnowledgeDollarAndDollarEq,
2230
+ ): string {
2231
+ return JSON.stringify(
2232
+ SearchKnowledgeDollarAndDollarEq$outboundSchema.parse(
2233
+ searchKnowledgeDollarAndDollarEq,
2234
+ ),
2235
+ );
2236
+ }
2237
+
2238
+ export function searchKnowledgeDollarAndDollarEqFromJSON(
2239
+ jsonString: string,
2240
+ ): SafeParseResult<SearchKnowledgeDollarAndDollarEq, SDKValidationError> {
2241
+ return safeParse(
2242
+ jsonString,
2243
+ (x) => SearchKnowledgeDollarAndDollarEq$inboundSchema.parse(JSON.parse(x)),
2244
+ `Failed to parse 'SearchKnowledgeDollarAndDollarEq' from JSON`,
2245
+ );
2246
+ }
2247
+
2248
+ /** @internal */
2249
+ export const SearchKnowledgeFilterDollarAnd$inboundSchema: z.ZodType<
2250
+ SearchKnowledgeFilterDollarAnd,
2251
+ z.ZodTypeDef,
2252
+ unknown
2253
+ > = z.union([
2254
+ z.lazy(() => SearchKnowledgeDollarAndDollarEq$inboundSchema),
2255
+ z.lazy(() => SearchKnowledgeDollarAndDollarNe$inboundSchema),
2256
+ z.lazy(() => SearchKnowledgeDollarAnd3$inboundSchema),
2257
+ z.lazy(() => SearchKnowledgeDollarAndDollarGte$inboundSchema),
2258
+ z.lazy(() => SearchKnowledgeDollarAndDollarLt$inboundSchema),
2259
+ z.lazy(() => SearchKnowledgeDollarAndDollarLte$inboundSchema),
2260
+ z.lazy(() => SearchKnowledgeDollarAndDollarIn$inboundSchema),
2261
+ z.lazy(() => SearchKnowledgeDollarAndDollarNin$inboundSchema),
2262
+ z.lazy(() => SearchKnowledgeDollarAndDollarExists$inboundSchema),
2263
+ ]);
2264
+
2265
+ /** @internal */
2266
+ export type SearchKnowledgeFilterDollarAnd$Outbound =
2267
+ | SearchKnowledgeDollarAndDollarEq$Outbound
2268
+ | SearchKnowledgeDollarAndDollarNe$Outbound
2269
+ | SearchKnowledgeDollarAnd3$Outbound
2270
+ | SearchKnowledgeDollarAndDollarGte$Outbound
2271
+ | SearchKnowledgeDollarAndDollarLt$Outbound
2272
+ | SearchKnowledgeDollarAndDollarLte$Outbound
2273
+ | SearchKnowledgeDollarAndDollarIn$Outbound
2274
+ | SearchKnowledgeDollarAndDollarNin$Outbound
2275
+ | SearchKnowledgeDollarAndDollarExists$Outbound;
2276
+
2277
+ /** @internal */
2278
+ export const SearchKnowledgeFilterDollarAnd$outboundSchema: z.ZodType<
2279
+ SearchKnowledgeFilterDollarAnd$Outbound,
2280
+ z.ZodTypeDef,
2281
+ SearchKnowledgeFilterDollarAnd
2282
+ > = z.union([
2283
+ z.lazy(() => SearchKnowledgeDollarAndDollarEq$outboundSchema),
2284
+ z.lazy(() => SearchKnowledgeDollarAndDollarNe$outboundSchema),
2285
+ z.lazy(() => SearchKnowledgeDollarAnd3$outboundSchema),
2286
+ z.lazy(() => SearchKnowledgeDollarAndDollarGte$outboundSchema),
2287
+ z.lazy(() => SearchKnowledgeDollarAndDollarLt$outboundSchema),
2288
+ z.lazy(() => SearchKnowledgeDollarAndDollarLte$outboundSchema),
2289
+ z.lazy(() => SearchKnowledgeDollarAndDollarIn$outboundSchema),
2290
+ z.lazy(() => SearchKnowledgeDollarAndDollarNin$outboundSchema),
2291
+ z.lazy(() => SearchKnowledgeDollarAndDollarExists$outboundSchema),
2292
+ ]);
2293
+
2294
+ /**
2295
+ * @internal
2296
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2297
+ */
2298
+ export namespace SearchKnowledgeFilterDollarAnd$ {
2299
+ /** @deprecated use `SearchKnowledgeFilterDollarAnd$inboundSchema` instead. */
2300
+ export const inboundSchema = SearchKnowledgeFilterDollarAnd$inboundSchema;
2301
+ /** @deprecated use `SearchKnowledgeFilterDollarAnd$outboundSchema` instead. */
2302
+ export const outboundSchema = SearchKnowledgeFilterDollarAnd$outboundSchema;
2303
+ /** @deprecated use `SearchKnowledgeFilterDollarAnd$Outbound` instead. */
2304
+ export type Outbound = SearchKnowledgeFilterDollarAnd$Outbound;
2305
+ }
2306
+
2307
+ export function searchKnowledgeFilterDollarAndToJSON(
2308
+ searchKnowledgeFilterDollarAnd: SearchKnowledgeFilterDollarAnd,
2309
+ ): string {
2310
+ return JSON.stringify(
2311
+ SearchKnowledgeFilterDollarAnd$outboundSchema.parse(
2312
+ searchKnowledgeFilterDollarAnd,
2313
+ ),
2314
+ );
2315
+ }
2316
+
2317
+ export function searchKnowledgeFilterDollarAndFromJSON(
2318
+ jsonString: string,
2319
+ ): SafeParseResult<SearchKnowledgeFilterDollarAnd, SDKValidationError> {
2320
+ return safeParse(
2321
+ jsonString,
2322
+ (x) => SearchKnowledgeFilterDollarAnd$inboundSchema.parse(JSON.parse(x)),
2323
+ `Failed to parse 'SearchKnowledgeFilterDollarAnd' from JSON`,
2324
+ );
2325
+ }
2326
+
2327
+ /** @internal */
2328
+ export const FilterDollarAnd$inboundSchema: z.ZodType<
2329
+ FilterDollarAnd,
2330
+ z.ZodTypeDef,
2331
+ unknown
2332
+ > = z.object({
2333
+ $and: z.array(
2334
+ z.record(z.union([
2335
+ z.lazy(() => SearchKnowledgeDollarAndDollarEq$inboundSchema),
2336
+ z.lazy(() =>
2337
+ SearchKnowledgeDollarAndDollarNe$inboundSchema
2338
+ ),
2339
+ z.lazy(() => SearchKnowledgeDollarAnd3$inboundSchema),
2340
+ z.lazy(() => SearchKnowledgeDollarAndDollarGte$inboundSchema),
2341
+ z.lazy(() => SearchKnowledgeDollarAndDollarLt$inboundSchema),
2342
+ z.lazy(() => SearchKnowledgeDollarAndDollarLte$inboundSchema),
2343
+ z.lazy(() => SearchKnowledgeDollarAndDollarIn$inboundSchema),
2344
+ z.lazy(() => SearchKnowledgeDollarAndDollarNin$inboundSchema),
2345
+ z.lazy(() => SearchKnowledgeDollarAndDollarExists$inboundSchema),
2346
+ ])),
2347
+ ),
2348
+ }).transform((v) => {
2349
+ return remap$(v, {
2350
+ "$and": "dollarAnd",
2351
+ });
2352
+ });
2353
+
2354
+ /** @internal */
2355
+ export type FilterDollarAnd$Outbound = {
2356
+ $and: Array<
2357
+ {
2358
+ [k: string]:
2359
+ | SearchKnowledgeDollarAndDollarEq$Outbound
2360
+ | SearchKnowledgeDollarAndDollarNe$Outbound
2361
+ | SearchKnowledgeDollarAnd3$Outbound
2362
+ | SearchKnowledgeDollarAndDollarGte$Outbound
2363
+ | SearchKnowledgeDollarAndDollarLt$Outbound
2364
+ | SearchKnowledgeDollarAndDollarLte$Outbound
2365
+ | SearchKnowledgeDollarAndDollarIn$Outbound
2366
+ | SearchKnowledgeDollarAndDollarNin$Outbound
2367
+ | SearchKnowledgeDollarAndDollarExists$Outbound;
2368
+ }
2369
+ >;
2370
+ };
2371
+
2372
+ /** @internal */
2373
+ export const FilterDollarAnd$outboundSchema: z.ZodType<
2374
+ FilterDollarAnd$Outbound,
2375
+ z.ZodTypeDef,
2376
+ FilterDollarAnd
2377
+ > = z.object({
2378
+ dollarAnd: z.array(
2379
+ z.record(z.union([
2380
+ z.lazy(() => SearchKnowledgeDollarAndDollarEq$outboundSchema),
2381
+ z.lazy(() =>
2382
+ SearchKnowledgeDollarAndDollarNe$outboundSchema
2383
+ ),
2384
+ z.lazy(() => SearchKnowledgeDollarAnd3$outboundSchema),
2385
+ z.lazy(() => SearchKnowledgeDollarAndDollarGte$outboundSchema),
2386
+ z.lazy(() => SearchKnowledgeDollarAndDollarLt$outboundSchema),
2387
+ z.lazy(() => SearchKnowledgeDollarAndDollarLte$outboundSchema),
2388
+ z.lazy(() => SearchKnowledgeDollarAndDollarIn$outboundSchema),
2389
+ z.lazy(() => SearchKnowledgeDollarAndDollarNin$outboundSchema),
2390
+ z.lazy(() => SearchKnowledgeDollarAndDollarExists$outboundSchema),
2391
+ ])),
2392
+ ),
2393
+ }).transform((v) => {
2394
+ return remap$(v, {
2395
+ dollarAnd: "$and",
2396
+ });
2397
+ });
2398
+
2399
+ /**
2400
+ * @internal
2401
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2402
+ */
2403
+ export namespace FilterDollarAnd$ {
2404
+ /** @deprecated use `FilterDollarAnd$inboundSchema` instead. */
2405
+ export const inboundSchema = FilterDollarAnd$inboundSchema;
2406
+ /** @deprecated use `FilterDollarAnd$outboundSchema` instead. */
2407
+ export const outboundSchema = FilterDollarAnd$outboundSchema;
2408
+ /** @deprecated use `FilterDollarAnd$Outbound` instead. */
2409
+ export type Outbound = FilterDollarAnd$Outbound;
2410
+ }
2411
+
2412
+ export function filterDollarAndToJSON(
2413
+ filterDollarAnd: FilterDollarAnd,
2414
+ ): string {
2415
+ return JSON.stringify(FilterDollarAnd$outboundSchema.parse(filterDollarAnd));
2416
+ }
2417
+
2418
+ export function filterDollarAndFromJSON(
2419
+ jsonString: string,
2420
+ ): SafeParseResult<FilterDollarAnd, SDKValidationError> {
2421
+ return safeParse(
2422
+ jsonString,
2423
+ (x) => FilterDollarAnd$inboundSchema.parse(JSON.parse(x)),
2424
+ `Failed to parse 'FilterDollarAnd' from JSON`,
2425
+ );
2426
+ }
2427
+
2428
+ /** @internal */
2429
+ export const SearchKnowledge1DollarExists$inboundSchema: z.ZodType<
2430
+ SearchKnowledge1DollarExists,
2431
+ z.ZodTypeDef,
2432
+ unknown
2433
+ > = z.object({
2434
+ $exists: z.boolean(),
2435
+ }).transform((v) => {
2436
+ return remap$(v, {
2437
+ "$exists": "dollarExists",
2438
+ });
2439
+ });
2440
+
2441
+ /** @internal */
2442
+ export type SearchKnowledge1DollarExists$Outbound = {
2443
+ $exists: boolean;
2444
+ };
2445
+
2446
+ /** @internal */
2447
+ export const SearchKnowledge1DollarExists$outboundSchema: z.ZodType<
2448
+ SearchKnowledge1DollarExists$Outbound,
2449
+ z.ZodTypeDef,
2450
+ SearchKnowledge1DollarExists
2451
+ > = z.object({
2452
+ dollarExists: z.boolean(),
2453
+ }).transform((v) => {
2454
+ return remap$(v, {
2455
+ dollarExists: "$exists",
2456
+ });
2457
+ });
2458
+
2459
+ /**
2460
+ * @internal
2461
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2462
+ */
2463
+ export namespace SearchKnowledge1DollarExists$ {
2464
+ /** @deprecated use `SearchKnowledge1DollarExists$inboundSchema` instead. */
2465
+ export const inboundSchema = SearchKnowledge1DollarExists$inboundSchema;
2466
+ /** @deprecated use `SearchKnowledge1DollarExists$outboundSchema` instead. */
2467
+ export const outboundSchema = SearchKnowledge1DollarExists$outboundSchema;
2468
+ /** @deprecated use `SearchKnowledge1DollarExists$Outbound` instead. */
2469
+ export type Outbound = SearchKnowledge1DollarExists$Outbound;
2470
+ }
2471
+
2472
+ export function searchKnowledge1DollarExistsToJSON(
2473
+ searchKnowledge1DollarExists: SearchKnowledge1DollarExists,
2474
+ ): string {
2475
+ return JSON.stringify(
2476
+ SearchKnowledge1DollarExists$outboundSchema.parse(
2477
+ searchKnowledge1DollarExists,
2478
+ ),
2479
+ );
2480
+ }
2481
+
2482
+ export function searchKnowledge1DollarExistsFromJSON(
2483
+ jsonString: string,
2484
+ ): SafeParseResult<SearchKnowledge1DollarExists, SDKValidationError> {
2485
+ return safeParse(
2486
+ jsonString,
2487
+ (x) => SearchKnowledge1DollarExists$inboundSchema.parse(JSON.parse(x)),
2488
+ `Failed to parse 'SearchKnowledge1DollarExists' from JSON`,
2489
+ );
2490
+ }
2491
+
2492
+ /** @internal */
2493
+ export const SearchKnowledge1KnowledgeDollarNin$inboundSchema: z.ZodType<
2494
+ SearchKnowledge1KnowledgeDollarNin,
2495
+ z.ZodTypeDef,
2496
+ unknown
2497
+ > = z.union([z.string(), z.number(), z.boolean()]);
2498
+
2499
+ /** @internal */
2500
+ export type SearchKnowledge1KnowledgeDollarNin$Outbound =
2501
+ | string
2502
+ | number
2503
+ | boolean;
2504
+
2505
+ /** @internal */
2506
+ export const SearchKnowledge1KnowledgeDollarNin$outboundSchema: z.ZodType<
2507
+ SearchKnowledge1KnowledgeDollarNin$Outbound,
2508
+ z.ZodTypeDef,
2509
+ SearchKnowledge1KnowledgeDollarNin
2510
+ > = z.union([z.string(), z.number(), z.boolean()]);
2511
+
2512
+ /**
2513
+ * @internal
2514
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2515
+ */
2516
+ export namespace SearchKnowledge1KnowledgeDollarNin$ {
2517
+ /** @deprecated use `SearchKnowledge1KnowledgeDollarNin$inboundSchema` instead. */
2518
+ export const inboundSchema = SearchKnowledge1KnowledgeDollarNin$inboundSchema;
2519
+ /** @deprecated use `SearchKnowledge1KnowledgeDollarNin$outboundSchema` instead. */
2520
+ export const outboundSchema =
2521
+ SearchKnowledge1KnowledgeDollarNin$outboundSchema;
2522
+ /** @deprecated use `SearchKnowledge1KnowledgeDollarNin$Outbound` instead. */
2523
+ export type Outbound = SearchKnowledge1KnowledgeDollarNin$Outbound;
2524
+ }
2525
+
2526
+ export function searchKnowledge1KnowledgeDollarNinToJSON(
2527
+ searchKnowledge1KnowledgeDollarNin: SearchKnowledge1KnowledgeDollarNin,
2528
+ ): string {
2529
+ return JSON.stringify(
2530
+ SearchKnowledge1KnowledgeDollarNin$outboundSchema.parse(
2531
+ searchKnowledge1KnowledgeDollarNin,
2532
+ ),
2533
+ );
2534
+ }
2535
+
2536
+ export function searchKnowledge1KnowledgeDollarNinFromJSON(
2537
+ jsonString: string,
2538
+ ): SafeParseResult<SearchKnowledge1KnowledgeDollarNin, SDKValidationError> {
2539
+ return safeParse(
2540
+ jsonString,
2541
+ (x) =>
2542
+ SearchKnowledge1KnowledgeDollarNin$inboundSchema.parse(JSON.parse(x)),
2543
+ `Failed to parse 'SearchKnowledge1KnowledgeDollarNin' from JSON`,
2544
+ );
2545
+ }
2546
+
2547
+ /** @internal */
2548
+ export const SearchKnowledge1DollarNin$inboundSchema: z.ZodType<
2549
+ SearchKnowledge1DollarNin,
2550
+ z.ZodTypeDef,
2551
+ unknown
2552
+ > = z.object({
2553
+ $nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
2554
+ }).transform((v) => {
2555
+ return remap$(v, {
2556
+ "$nin": "dollarNin",
2557
+ });
2558
+ });
2559
+
2560
+ /** @internal */
2561
+ export type SearchKnowledge1DollarNin$Outbound = {
2562
+ $nin: Array<string | number | boolean>;
2563
+ };
2564
+
2565
+ /** @internal */
2566
+ export const SearchKnowledge1DollarNin$outboundSchema: z.ZodType<
2567
+ SearchKnowledge1DollarNin$Outbound,
2568
+ z.ZodTypeDef,
2569
+ SearchKnowledge1DollarNin
2570
+ > = z.object({
2571
+ dollarNin: z.array(z.union([z.string(), z.number(), z.boolean()])),
2572
+ }).transform((v) => {
2573
+ return remap$(v, {
2574
+ dollarNin: "$nin",
2575
+ });
2576
+ });
2577
+
2578
+ /**
2579
+ * @internal
2580
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2581
+ */
2582
+ export namespace SearchKnowledge1DollarNin$ {
2583
+ /** @deprecated use `SearchKnowledge1DollarNin$inboundSchema` instead. */
2584
+ export const inboundSchema = SearchKnowledge1DollarNin$inboundSchema;
2585
+ /** @deprecated use `SearchKnowledge1DollarNin$outboundSchema` instead. */
2586
+ export const outboundSchema = SearchKnowledge1DollarNin$outboundSchema;
2587
+ /** @deprecated use `SearchKnowledge1DollarNin$Outbound` instead. */
2588
+ export type Outbound = SearchKnowledge1DollarNin$Outbound;
2589
+ }
2590
+
2591
+ export function searchKnowledge1DollarNinToJSON(
2592
+ searchKnowledge1DollarNin: SearchKnowledge1DollarNin,
2593
+ ): string {
2594
+ return JSON.stringify(
2595
+ SearchKnowledge1DollarNin$outboundSchema.parse(searchKnowledge1DollarNin),
2596
+ );
2597
+ }
2598
+
2599
+ export function searchKnowledge1DollarNinFromJSON(
2600
+ jsonString: string,
2601
+ ): SafeParseResult<SearchKnowledge1DollarNin, SDKValidationError> {
2602
+ return safeParse(
2603
+ jsonString,
2604
+ (x) => SearchKnowledge1DollarNin$inboundSchema.parse(JSON.parse(x)),
2605
+ `Failed to parse 'SearchKnowledge1DollarNin' from JSON`,
2606
+ );
2607
+ }
2608
+
2609
+ /** @internal */
2610
+ export const SearchKnowledge1KnowledgeDollarIn$inboundSchema: z.ZodType<
2611
+ SearchKnowledge1KnowledgeDollarIn,
2612
+ z.ZodTypeDef,
2613
+ unknown
2614
+ > = z.union([z.string(), z.number(), z.boolean()]);
2615
+
2616
+ /** @internal */
2617
+ export type SearchKnowledge1KnowledgeDollarIn$Outbound =
2618
+ | string
2619
+ | number
2620
+ | boolean;
2621
+
2622
+ /** @internal */
2623
+ export const SearchKnowledge1KnowledgeDollarIn$outboundSchema: z.ZodType<
2624
+ SearchKnowledge1KnowledgeDollarIn$Outbound,
2625
+ z.ZodTypeDef,
2626
+ SearchKnowledge1KnowledgeDollarIn
2627
+ > = z.union([z.string(), z.number(), z.boolean()]);
2628
+
2629
+ /**
2630
+ * @internal
2631
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2632
+ */
2633
+ export namespace SearchKnowledge1KnowledgeDollarIn$ {
2634
+ /** @deprecated use `SearchKnowledge1KnowledgeDollarIn$inboundSchema` instead. */
2635
+ export const inboundSchema = SearchKnowledge1KnowledgeDollarIn$inboundSchema;
2636
+ /** @deprecated use `SearchKnowledge1KnowledgeDollarIn$outboundSchema` instead. */
2637
+ export const outboundSchema =
2638
+ SearchKnowledge1KnowledgeDollarIn$outboundSchema;
2639
+ /** @deprecated use `SearchKnowledge1KnowledgeDollarIn$Outbound` instead. */
2640
+ export type Outbound = SearchKnowledge1KnowledgeDollarIn$Outbound;
2641
+ }
2642
+
2643
+ export function searchKnowledge1KnowledgeDollarInToJSON(
2644
+ searchKnowledge1KnowledgeDollarIn: SearchKnowledge1KnowledgeDollarIn,
2645
+ ): string {
2646
+ return JSON.stringify(
2647
+ SearchKnowledge1KnowledgeDollarIn$outboundSchema.parse(
2648
+ searchKnowledge1KnowledgeDollarIn,
2649
+ ),
2650
+ );
2651
+ }
2652
+
2653
+ export function searchKnowledge1KnowledgeDollarInFromJSON(
2654
+ jsonString: string,
2655
+ ): SafeParseResult<SearchKnowledge1KnowledgeDollarIn, SDKValidationError> {
2656
+ return safeParse(
2657
+ jsonString,
2658
+ (x) => SearchKnowledge1KnowledgeDollarIn$inboundSchema.parse(JSON.parse(x)),
2659
+ `Failed to parse 'SearchKnowledge1KnowledgeDollarIn' from JSON`,
2660
+ );
2661
+ }
2662
+
2663
+ /** @internal */
2664
+ export const SearchKnowledge1DollarIn$inboundSchema: z.ZodType<
2665
+ SearchKnowledge1DollarIn,
2666
+ z.ZodTypeDef,
2667
+ unknown
2668
+ > = z.object({
2669
+ $in: z.array(z.union([z.string(), z.number(), z.boolean()])),
2670
+ }).transform((v) => {
2671
+ return remap$(v, {
2672
+ "$in": "dollarIn",
2673
+ });
2674
+ });
2675
+
2676
+ /** @internal */
2677
+ export type SearchKnowledge1DollarIn$Outbound = {
2678
+ $in: Array<string | number | boolean>;
2679
+ };
2680
+
2681
+ /** @internal */
2682
+ export const SearchKnowledge1DollarIn$outboundSchema: z.ZodType<
2683
+ SearchKnowledge1DollarIn$Outbound,
2684
+ z.ZodTypeDef,
2685
+ SearchKnowledge1DollarIn
2686
+ > = z.object({
2687
+ dollarIn: z.array(z.union([z.string(), z.number(), z.boolean()])),
2688
+ }).transform((v) => {
2689
+ return remap$(v, {
2690
+ dollarIn: "$in",
2691
+ });
2692
+ });
2693
+
2694
+ /**
2695
+ * @internal
2696
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2697
+ */
2698
+ export namespace SearchKnowledge1DollarIn$ {
2699
+ /** @deprecated use `SearchKnowledge1DollarIn$inboundSchema` instead. */
2700
+ export const inboundSchema = SearchKnowledge1DollarIn$inboundSchema;
2701
+ /** @deprecated use `SearchKnowledge1DollarIn$outboundSchema` instead. */
2702
+ export const outboundSchema = SearchKnowledge1DollarIn$outboundSchema;
2703
+ /** @deprecated use `SearchKnowledge1DollarIn$Outbound` instead. */
2704
+ export type Outbound = SearchKnowledge1DollarIn$Outbound;
2705
+ }
2706
+
2707
+ export function searchKnowledge1DollarInToJSON(
2708
+ searchKnowledge1DollarIn: SearchKnowledge1DollarIn,
2709
+ ): string {
2710
+ return JSON.stringify(
2711
+ SearchKnowledge1DollarIn$outboundSchema.parse(searchKnowledge1DollarIn),
2712
+ );
2713
+ }
2714
+
2715
+ export function searchKnowledge1DollarInFromJSON(
2716
+ jsonString: string,
2717
+ ): SafeParseResult<SearchKnowledge1DollarIn, SDKValidationError> {
2718
+ return safeParse(
2719
+ jsonString,
2720
+ (x) => SearchKnowledge1DollarIn$inboundSchema.parse(JSON.parse(x)),
2721
+ `Failed to parse 'SearchKnowledge1DollarIn' from JSON`,
2722
+ );
2723
+ }
2724
+
2725
+ /** @internal */
2726
+ export const SearchKnowledge1DollarLte$inboundSchema: z.ZodType<
2727
+ SearchKnowledge1DollarLte,
2728
+ z.ZodTypeDef,
2729
+ unknown
2730
+ > = z.object({
2731
+ $lte: z.number(),
2732
+ }).transform((v) => {
2733
+ return remap$(v, {
2734
+ "$lte": "dollarLte",
2735
+ });
2736
+ });
2737
+
2738
+ /** @internal */
2739
+ export type SearchKnowledge1DollarLte$Outbound = {
2740
+ $lte: number;
2741
+ };
2742
+
2743
+ /** @internal */
2744
+ export const SearchKnowledge1DollarLte$outboundSchema: z.ZodType<
2745
+ SearchKnowledge1DollarLte$Outbound,
2746
+ z.ZodTypeDef,
2747
+ SearchKnowledge1DollarLte
2748
+ > = z.object({
2749
+ dollarLte: z.number(),
2750
+ }).transform((v) => {
2751
+ return remap$(v, {
2752
+ dollarLte: "$lte",
2753
+ });
2754
+ });
2755
+
2756
+ /**
2757
+ * @internal
2758
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2759
+ */
2760
+ export namespace SearchKnowledge1DollarLte$ {
2761
+ /** @deprecated use `SearchKnowledge1DollarLte$inboundSchema` instead. */
2762
+ export const inboundSchema = SearchKnowledge1DollarLte$inboundSchema;
2763
+ /** @deprecated use `SearchKnowledge1DollarLte$outboundSchema` instead. */
2764
+ export const outboundSchema = SearchKnowledge1DollarLte$outboundSchema;
2765
+ /** @deprecated use `SearchKnowledge1DollarLte$Outbound` instead. */
2766
+ export type Outbound = SearchKnowledge1DollarLte$Outbound;
2767
+ }
2768
+
2769
+ export function searchKnowledge1DollarLteToJSON(
2770
+ searchKnowledge1DollarLte: SearchKnowledge1DollarLte,
2771
+ ): string {
2772
+ return JSON.stringify(
2773
+ SearchKnowledge1DollarLte$outboundSchema.parse(searchKnowledge1DollarLte),
2774
+ );
2775
+ }
2776
+
2777
+ export function searchKnowledge1DollarLteFromJSON(
2778
+ jsonString: string,
2779
+ ): SafeParseResult<SearchKnowledge1DollarLte, SDKValidationError> {
2780
+ return safeParse(
2781
+ jsonString,
2782
+ (x) => SearchKnowledge1DollarLte$inboundSchema.parse(JSON.parse(x)),
2783
+ `Failed to parse 'SearchKnowledge1DollarLte' from JSON`,
2784
+ );
2785
+ }
2786
+
2787
+ /** @internal */
2788
+ export const SearchKnowledge1DollarLt$inboundSchema: z.ZodType<
2789
+ SearchKnowledge1DollarLt,
2790
+ z.ZodTypeDef,
2791
+ unknown
2792
+ > = z.object({
2793
+ $lt: z.number(),
2794
+ }).transform((v) => {
2795
+ return remap$(v, {
2796
+ "$lt": "dollarLt",
2797
+ });
2798
+ });
2799
+
2800
+ /** @internal */
2801
+ export type SearchKnowledge1DollarLt$Outbound = {
2802
+ $lt: number;
2803
+ };
2804
+
2805
+ /** @internal */
2806
+ export const SearchKnowledge1DollarLt$outboundSchema: z.ZodType<
2807
+ SearchKnowledge1DollarLt$Outbound,
2808
+ z.ZodTypeDef,
2809
+ SearchKnowledge1DollarLt
2810
+ > = z.object({
2811
+ dollarLt: z.number(),
2812
+ }).transform((v) => {
2813
+ return remap$(v, {
2814
+ dollarLt: "$lt",
2815
+ });
2816
+ });
2817
+
2818
+ /**
2819
+ * @internal
2820
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2821
+ */
2822
+ export namespace SearchKnowledge1DollarLt$ {
2823
+ /** @deprecated use `SearchKnowledge1DollarLt$inboundSchema` instead. */
2824
+ export const inboundSchema = SearchKnowledge1DollarLt$inboundSchema;
2825
+ /** @deprecated use `SearchKnowledge1DollarLt$outboundSchema` instead. */
2826
+ export const outboundSchema = SearchKnowledge1DollarLt$outboundSchema;
2827
+ /** @deprecated use `SearchKnowledge1DollarLt$Outbound` instead. */
2828
+ export type Outbound = SearchKnowledge1DollarLt$Outbound;
2829
+ }
2830
+
2831
+ export function searchKnowledge1DollarLtToJSON(
2832
+ searchKnowledge1DollarLt: SearchKnowledge1DollarLt,
2833
+ ): string {
2834
+ return JSON.stringify(
2835
+ SearchKnowledge1DollarLt$outboundSchema.parse(searchKnowledge1DollarLt),
2836
+ );
2837
+ }
2838
+
2839
+ export function searchKnowledge1DollarLtFromJSON(
2840
+ jsonString: string,
2841
+ ): SafeParseResult<SearchKnowledge1DollarLt, SDKValidationError> {
2842
+ return safeParse(
2843
+ jsonString,
2844
+ (x) => SearchKnowledge1DollarLt$inboundSchema.parse(JSON.parse(x)),
2845
+ `Failed to parse 'SearchKnowledge1DollarLt' from JSON`,
2846
+ );
2847
+ }
2848
+
2849
+ /** @internal */
2850
+ export const SearchKnowledge1DollarGte$inboundSchema: z.ZodType<
2851
+ SearchKnowledge1DollarGte,
2852
+ z.ZodTypeDef,
2853
+ unknown
2854
+ > = z.object({
2855
+ $gte: z.number(),
2856
+ }).transform((v) => {
2857
+ return remap$(v, {
2858
+ "$gte": "dollarGte",
2859
+ });
2860
+ });
2861
+
2862
+ /** @internal */
2863
+ export type SearchKnowledge1DollarGte$Outbound = {
2864
+ $gte: number;
2865
+ };
2866
+
2867
+ /** @internal */
2868
+ export const SearchKnowledge1DollarGte$outboundSchema: z.ZodType<
2869
+ SearchKnowledge1DollarGte$Outbound,
2870
+ z.ZodTypeDef,
2871
+ SearchKnowledge1DollarGte
2872
+ > = z.object({
2873
+ dollarGte: z.number(),
2874
+ }).transform((v) => {
2875
+ return remap$(v, {
2876
+ dollarGte: "$gte",
2877
+ });
2878
+ });
2879
+
2880
+ /**
2881
+ * @internal
2882
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2883
+ */
2884
+ export namespace SearchKnowledge1DollarGte$ {
2885
+ /** @deprecated use `SearchKnowledge1DollarGte$inboundSchema` instead. */
2886
+ export const inboundSchema = SearchKnowledge1DollarGte$inboundSchema;
2887
+ /** @deprecated use `SearchKnowledge1DollarGte$outboundSchema` instead. */
2888
+ export const outboundSchema = SearchKnowledge1DollarGte$outboundSchema;
2889
+ /** @deprecated use `SearchKnowledge1DollarGte$Outbound` instead. */
2890
+ export type Outbound = SearchKnowledge1DollarGte$Outbound;
2891
+ }
2892
+
2893
+ export function searchKnowledge1DollarGteToJSON(
2894
+ searchKnowledge1DollarGte: SearchKnowledge1DollarGte,
2895
+ ): string {
2896
+ return JSON.stringify(
2897
+ SearchKnowledge1DollarGte$outboundSchema.parse(searchKnowledge1DollarGte),
2898
+ );
2899
+ }
2900
+
2901
+ export function searchKnowledge1DollarGteFromJSON(
2902
+ jsonString: string,
2903
+ ): SafeParseResult<SearchKnowledge1DollarGte, SDKValidationError> {
2904
+ return safeParse(
2905
+ jsonString,
2906
+ (x) => SearchKnowledge1DollarGte$inboundSchema.parse(JSON.parse(x)),
2907
+ `Failed to parse 'SearchKnowledge1DollarGte' from JSON`,
2908
+ );
2909
+ }
2910
+
2911
+ /** @internal */
2912
+ export const SearchKnowledge13$inboundSchema: z.ZodType<
2913
+ SearchKnowledge13,
2914
+ z.ZodTypeDef,
2915
+ unknown
2916
+ > = z.object({
2917
+ $gt: z.number(),
2918
+ }).transform((v) => {
2919
+ return remap$(v, {
2920
+ "$gt": "dollarGt",
2921
+ });
2922
+ });
2923
+
2924
+ /** @internal */
2925
+ export type SearchKnowledge13$Outbound = {
2926
+ $gt: number;
2927
+ };
2928
+
2929
+ /** @internal */
2930
+ export const SearchKnowledge13$outboundSchema: z.ZodType<
2931
+ SearchKnowledge13$Outbound,
2932
+ z.ZodTypeDef,
2933
+ SearchKnowledge13
2934
+ > = z.object({
2935
+ dollarGt: z.number(),
2936
+ }).transform((v) => {
2937
+ return remap$(v, {
2938
+ dollarGt: "$gt",
2939
+ });
2940
+ });
2941
+
2942
+ /**
2943
+ * @internal
2944
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2945
+ */
2946
+ export namespace SearchKnowledge13$ {
2947
+ /** @deprecated use `SearchKnowledge13$inboundSchema` instead. */
2948
+ export const inboundSchema = SearchKnowledge13$inboundSchema;
2949
+ /** @deprecated use `SearchKnowledge13$outboundSchema` instead. */
2950
+ export const outboundSchema = SearchKnowledge13$outboundSchema;
2951
+ /** @deprecated use `SearchKnowledge13$Outbound` instead. */
2952
+ export type Outbound = SearchKnowledge13$Outbound;
2953
+ }
2954
+
2955
+ export function searchKnowledge13ToJSON(
2956
+ searchKnowledge13: SearchKnowledge13,
2957
+ ): string {
2958
+ return JSON.stringify(
2959
+ SearchKnowledge13$outboundSchema.parse(searchKnowledge13),
2960
+ );
2961
+ }
2962
+
2963
+ export function searchKnowledge13FromJSON(
2964
+ jsonString: string,
2965
+ ): SafeParseResult<SearchKnowledge13, SDKValidationError> {
2966
+ return safeParse(
2967
+ jsonString,
2968
+ (x) => SearchKnowledge13$inboundSchema.parse(JSON.parse(x)),
2969
+ `Failed to parse 'SearchKnowledge13' from JSON`,
2970
+ );
2971
+ }
2972
+
2973
+ /** @internal */
2974
+ export const SearchKnowledge1KnowledgeDollarNe$inboundSchema: z.ZodType<
2975
+ SearchKnowledge1KnowledgeDollarNe,
2976
+ z.ZodTypeDef,
2977
+ unknown
2978
+ > = z.union([z.string(), z.number(), z.boolean()]);
2979
+
2980
+ /** @internal */
2981
+ export type SearchKnowledge1KnowledgeDollarNe$Outbound =
2982
+ | string
2983
+ | number
2984
+ | boolean;
2985
+
2986
+ /** @internal */
2987
+ export const SearchKnowledge1KnowledgeDollarNe$outboundSchema: z.ZodType<
2988
+ SearchKnowledge1KnowledgeDollarNe$Outbound,
2989
+ z.ZodTypeDef,
2990
+ SearchKnowledge1KnowledgeDollarNe
2991
+ > = z.union([z.string(), z.number(), z.boolean()]);
2992
+
2993
+ /**
2994
+ * @internal
2995
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2996
+ */
2997
+ export namespace SearchKnowledge1KnowledgeDollarNe$ {
2998
+ /** @deprecated use `SearchKnowledge1KnowledgeDollarNe$inboundSchema` instead. */
2999
+ export const inboundSchema = SearchKnowledge1KnowledgeDollarNe$inboundSchema;
3000
+ /** @deprecated use `SearchKnowledge1KnowledgeDollarNe$outboundSchema` instead. */
3001
+ export const outboundSchema =
3002
+ SearchKnowledge1KnowledgeDollarNe$outboundSchema;
3003
+ /** @deprecated use `SearchKnowledge1KnowledgeDollarNe$Outbound` instead. */
3004
+ export type Outbound = SearchKnowledge1KnowledgeDollarNe$Outbound;
3005
+ }
3006
+
3007
+ export function searchKnowledge1KnowledgeDollarNeToJSON(
3008
+ searchKnowledge1KnowledgeDollarNe: SearchKnowledge1KnowledgeDollarNe,
3009
+ ): string {
3010
+ return JSON.stringify(
3011
+ SearchKnowledge1KnowledgeDollarNe$outboundSchema.parse(
3012
+ searchKnowledge1KnowledgeDollarNe,
3013
+ ),
3014
+ );
3015
+ }
3016
+
3017
+ export function searchKnowledge1KnowledgeDollarNeFromJSON(
3018
+ jsonString: string,
3019
+ ): SafeParseResult<SearchKnowledge1KnowledgeDollarNe, SDKValidationError> {
3020
+ return safeParse(
3021
+ jsonString,
3022
+ (x) => SearchKnowledge1KnowledgeDollarNe$inboundSchema.parse(JSON.parse(x)),
3023
+ `Failed to parse 'SearchKnowledge1KnowledgeDollarNe' from JSON`,
3024
+ );
3025
+ }
3026
+
3027
+ /** @internal */
3028
+ export const SearchKnowledge1DollarNe$inboundSchema: z.ZodType<
3029
+ SearchKnowledge1DollarNe,
3030
+ z.ZodTypeDef,
3031
+ unknown
3032
+ > = z.object({
3033
+ $ne: z.union([z.string(), z.number(), z.boolean()]),
3034
+ }).transform((v) => {
3035
+ return remap$(v, {
3036
+ "$ne": "dollarNe",
3037
+ });
3038
+ });
3039
+
3040
+ /** @internal */
3041
+ export type SearchKnowledge1DollarNe$Outbound = {
3042
+ $ne: string | number | boolean;
3043
+ };
3044
+
3045
+ /** @internal */
3046
+ export const SearchKnowledge1DollarNe$outboundSchema: z.ZodType<
3047
+ SearchKnowledge1DollarNe$Outbound,
3048
+ z.ZodTypeDef,
3049
+ SearchKnowledge1DollarNe
3050
+ > = z.object({
3051
+ dollarNe: z.union([z.string(), z.number(), z.boolean()]),
3052
+ }).transform((v) => {
3053
+ return remap$(v, {
3054
+ dollarNe: "$ne",
3055
+ });
3056
+ });
3057
+
3058
+ /**
3059
+ * @internal
3060
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3061
+ */
3062
+ export namespace SearchKnowledge1DollarNe$ {
3063
+ /** @deprecated use `SearchKnowledge1DollarNe$inboundSchema` instead. */
3064
+ export const inboundSchema = SearchKnowledge1DollarNe$inboundSchema;
3065
+ /** @deprecated use `SearchKnowledge1DollarNe$outboundSchema` instead. */
3066
+ export const outboundSchema = SearchKnowledge1DollarNe$outboundSchema;
3067
+ /** @deprecated use `SearchKnowledge1DollarNe$Outbound` instead. */
3068
+ export type Outbound = SearchKnowledge1DollarNe$Outbound;
3069
+ }
3070
+
3071
+ export function searchKnowledge1DollarNeToJSON(
3072
+ searchKnowledge1DollarNe: SearchKnowledge1DollarNe,
3073
+ ): string {
3074
+ return JSON.stringify(
3075
+ SearchKnowledge1DollarNe$outboundSchema.parse(searchKnowledge1DollarNe),
3076
+ );
3077
+ }
3078
+
3079
+ export function searchKnowledge1DollarNeFromJSON(
3080
+ jsonString: string,
3081
+ ): SafeParseResult<SearchKnowledge1DollarNe, SDKValidationError> {
3082
+ return safeParse(
3083
+ jsonString,
3084
+ (x) => SearchKnowledge1DollarNe$inboundSchema.parse(JSON.parse(x)),
3085
+ `Failed to parse 'SearchKnowledge1DollarNe' from JSON`,
3086
+ );
3087
+ }
3088
+
3089
+ /** @internal */
3090
+ export const SearchKnowledge1KnowledgeDollarEq$inboundSchema: z.ZodType<
3091
+ SearchKnowledge1KnowledgeDollarEq,
3092
+ z.ZodTypeDef,
3093
+ unknown
3094
+ > = z.union([z.string(), z.number(), z.boolean()]);
3095
+
3096
+ /** @internal */
3097
+ export type SearchKnowledge1KnowledgeDollarEq$Outbound =
3098
+ | string
3099
+ | number
3100
+ | boolean;
3101
+
3102
+ /** @internal */
3103
+ export const SearchKnowledge1KnowledgeDollarEq$outboundSchema: z.ZodType<
3104
+ SearchKnowledge1KnowledgeDollarEq$Outbound,
3105
+ z.ZodTypeDef,
3106
+ SearchKnowledge1KnowledgeDollarEq
3107
+ > = z.union([z.string(), z.number(), z.boolean()]);
3108
+
3109
+ /**
3110
+ * @internal
3111
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3112
+ */
3113
+ export namespace SearchKnowledge1KnowledgeDollarEq$ {
3114
+ /** @deprecated use `SearchKnowledge1KnowledgeDollarEq$inboundSchema` instead. */
3115
+ export const inboundSchema = SearchKnowledge1KnowledgeDollarEq$inboundSchema;
3116
+ /** @deprecated use `SearchKnowledge1KnowledgeDollarEq$outboundSchema` instead. */
3117
+ export const outboundSchema =
3118
+ SearchKnowledge1KnowledgeDollarEq$outboundSchema;
3119
+ /** @deprecated use `SearchKnowledge1KnowledgeDollarEq$Outbound` instead. */
3120
+ export type Outbound = SearchKnowledge1KnowledgeDollarEq$Outbound;
3121
+ }
3122
+
3123
+ export function searchKnowledge1KnowledgeDollarEqToJSON(
3124
+ searchKnowledge1KnowledgeDollarEq: SearchKnowledge1KnowledgeDollarEq,
3125
+ ): string {
3126
+ return JSON.stringify(
3127
+ SearchKnowledge1KnowledgeDollarEq$outboundSchema.parse(
3128
+ searchKnowledge1KnowledgeDollarEq,
3129
+ ),
3130
+ );
3131
+ }
3132
+
3133
+ export function searchKnowledge1KnowledgeDollarEqFromJSON(
3134
+ jsonString: string,
3135
+ ): SafeParseResult<SearchKnowledge1KnowledgeDollarEq, SDKValidationError> {
3136
+ return safeParse(
3137
+ jsonString,
3138
+ (x) => SearchKnowledge1KnowledgeDollarEq$inboundSchema.parse(JSON.parse(x)),
3139
+ `Failed to parse 'SearchKnowledge1KnowledgeDollarEq' from JSON`,
3140
+ );
3141
+ }
3142
+
3143
+ /** @internal */
3144
+ export const SearchKnowledge1DollarEq$inboundSchema: z.ZodType<
3145
+ SearchKnowledge1DollarEq,
3146
+ z.ZodTypeDef,
3147
+ unknown
3148
+ > = z.object({
3149
+ $eq: z.union([z.string(), z.number(), z.boolean()]),
3150
+ }).transform((v) => {
3151
+ return remap$(v, {
3152
+ "$eq": "dollarEq",
3153
+ });
3154
+ });
3155
+
3156
+ /** @internal */
3157
+ export type SearchKnowledge1DollarEq$Outbound = {
3158
+ $eq: string | number | boolean;
3159
+ };
3160
+
3161
+ /** @internal */
3162
+ export const SearchKnowledge1DollarEq$outboundSchema: z.ZodType<
3163
+ SearchKnowledge1DollarEq$Outbound,
3164
+ z.ZodTypeDef,
3165
+ SearchKnowledge1DollarEq
3166
+ > = z.object({
3167
+ dollarEq: z.union([z.string(), z.number(), z.boolean()]),
3168
+ }).transform((v) => {
3169
+ return remap$(v, {
3170
+ dollarEq: "$eq",
3171
+ });
3172
+ });
3173
+
3174
+ /**
3175
+ * @internal
3176
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3177
+ */
3178
+ export namespace SearchKnowledge1DollarEq$ {
3179
+ /** @deprecated use `SearchKnowledge1DollarEq$inboundSchema` instead. */
3180
+ export const inboundSchema = SearchKnowledge1DollarEq$inboundSchema;
3181
+ /** @deprecated use `SearchKnowledge1DollarEq$outboundSchema` instead. */
3182
+ export const outboundSchema = SearchKnowledge1DollarEq$outboundSchema;
3183
+ /** @deprecated use `SearchKnowledge1DollarEq$Outbound` instead. */
3184
+ export type Outbound = SearchKnowledge1DollarEq$Outbound;
3185
+ }
3186
+
3187
+ export function searchKnowledge1DollarEqToJSON(
3188
+ searchKnowledge1DollarEq: SearchKnowledge1DollarEq,
3189
+ ): string {
3190
+ return JSON.stringify(
3191
+ SearchKnowledge1DollarEq$outboundSchema.parse(searchKnowledge1DollarEq),
3192
+ );
3193
+ }
3194
+
3195
+ export function searchKnowledge1DollarEqFromJSON(
3196
+ jsonString: string,
3197
+ ): SafeParseResult<SearchKnowledge1DollarEq, SDKValidationError> {
3198
+ return safeParse(
3199
+ jsonString,
3200
+ (x) => SearchKnowledge1DollarEq$inboundSchema.parse(JSON.parse(x)),
3201
+ `Failed to parse 'SearchKnowledge1DollarEq' from JSON`,
3202
+ );
3203
+ }
3204
+
3205
+ /** @internal */
3206
+ export const Filter1$inboundSchema: z.ZodType<Filter1, z.ZodTypeDef, unknown> =
3207
+ z.union([
3208
+ z.lazy(() => SearchKnowledge1DollarEq$inboundSchema),
3209
+ z.lazy(() => SearchKnowledge1DollarNe$inboundSchema),
3210
+ z.lazy(() => SearchKnowledge13$inboundSchema),
3211
+ z.lazy(() => SearchKnowledge1DollarGte$inboundSchema),
3212
+ z.lazy(() => SearchKnowledge1DollarLt$inboundSchema),
3213
+ z.lazy(() => SearchKnowledge1DollarLte$inboundSchema),
3214
+ z.lazy(() => SearchKnowledge1DollarIn$inboundSchema),
3215
+ z.lazy(() => SearchKnowledge1DollarNin$inboundSchema),
3216
+ z.lazy(() => SearchKnowledge1DollarExists$inboundSchema),
3217
+ ]);
3218
+
3219
+ /** @internal */
3220
+ export type Filter1$Outbound =
3221
+ | SearchKnowledge1DollarEq$Outbound
3222
+ | SearchKnowledge1DollarNe$Outbound
3223
+ | SearchKnowledge13$Outbound
3224
+ | SearchKnowledge1DollarGte$Outbound
3225
+ | SearchKnowledge1DollarLt$Outbound
3226
+ | SearchKnowledge1DollarLte$Outbound
3227
+ | SearchKnowledge1DollarIn$Outbound
3228
+ | SearchKnowledge1DollarNin$Outbound
3229
+ | SearchKnowledge1DollarExists$Outbound;
3230
+
3231
+ /** @internal */
3232
+ export const Filter1$outboundSchema: z.ZodType<
3233
+ Filter1$Outbound,
3234
+ z.ZodTypeDef,
3235
+ Filter1
3236
+ > = z.union([
3237
+ z.lazy(() => SearchKnowledge1DollarEq$outboundSchema),
3238
+ z.lazy(() => SearchKnowledge1DollarNe$outboundSchema),
3239
+ z.lazy(() => SearchKnowledge13$outboundSchema),
3240
+ z.lazy(() => SearchKnowledge1DollarGte$outboundSchema),
3241
+ z.lazy(() => SearchKnowledge1DollarLt$outboundSchema),
3242
+ z.lazy(() => SearchKnowledge1DollarLte$outboundSchema),
3243
+ z.lazy(() => SearchKnowledge1DollarIn$outboundSchema),
3244
+ z.lazy(() => SearchKnowledge1DollarNin$outboundSchema),
3245
+ z.lazy(() => SearchKnowledge1DollarExists$outboundSchema),
3246
+ ]);
3247
+
3248
+ /**
3249
+ * @internal
3250
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3251
+ */
3252
+ export namespace Filter1$ {
3253
+ /** @deprecated use `Filter1$inboundSchema` instead. */
3254
+ export const inboundSchema = Filter1$inboundSchema;
3255
+ /** @deprecated use `Filter1$outboundSchema` instead. */
3256
+ export const outboundSchema = Filter1$outboundSchema;
3257
+ /** @deprecated use `Filter1$Outbound` instead. */
3258
+ export type Outbound = Filter1$Outbound;
3259
+ }
3260
+
3261
+ export function filter1ToJSON(filter1: Filter1): string {
3262
+ return JSON.stringify(Filter1$outboundSchema.parse(filter1));
3263
+ }
3264
+
3265
+ export function filter1FromJSON(
3266
+ jsonString: string,
3267
+ ): SafeParseResult<Filter1, SDKValidationError> {
3268
+ return safeParse(
3269
+ jsonString,
3270
+ (x) => Filter1$inboundSchema.parse(JSON.parse(x)),
3271
+ `Failed to parse 'Filter1' from JSON`,
3272
+ );
3273
+ }
3274
+
3275
+ /** @internal */
3276
+ export const Filter$inboundSchema: z.ZodType<Filter, z.ZodTypeDef, unknown> = z
3277
+ .union([
3278
+ z.lazy(() => FilterDollarAnd$inboundSchema),
3279
+ z.lazy(() => FilterDollarOr$inboundSchema),
3280
+ z.record(z.union([
3281
+ z.lazy(() => SearchKnowledge1DollarEq$inboundSchema),
3282
+ z.lazy(() => SearchKnowledge1DollarNe$inboundSchema),
3283
+ z.lazy(() => SearchKnowledge13$inboundSchema),
3284
+ z.lazy(() => SearchKnowledge1DollarGte$inboundSchema),
3285
+ z.lazy(() => SearchKnowledge1DollarLt$inboundSchema),
3286
+ z.lazy(() => SearchKnowledge1DollarLte$inboundSchema),
3287
+ z.lazy(() => SearchKnowledge1DollarIn$inboundSchema),
3288
+ z.lazy(() => SearchKnowledge1DollarNin$inboundSchema),
3289
+ z.lazy(() => SearchKnowledge1DollarExists$inboundSchema),
3290
+ ])),
3291
+ ]);
3292
+
3293
+ /** @internal */
3294
+ export type Filter$Outbound =
3295
+ | FilterDollarAnd$Outbound
3296
+ | FilterDollarOr$Outbound
3297
+ | {
3298
+ [k: string]:
3299
+ | SearchKnowledge1DollarEq$Outbound
3300
+ | SearchKnowledge1DollarNe$Outbound
3301
+ | SearchKnowledge13$Outbound
3302
+ | SearchKnowledge1DollarGte$Outbound
3303
+ | SearchKnowledge1DollarLt$Outbound
3304
+ | SearchKnowledge1DollarLte$Outbound
3305
+ | SearchKnowledge1DollarIn$Outbound
3306
+ | SearchKnowledge1DollarNin$Outbound
3307
+ | SearchKnowledge1DollarExists$Outbound;
3308
+ };
3309
+
3310
+ /** @internal */
3311
+ export const Filter$outboundSchema: z.ZodType<
3312
+ Filter$Outbound,
3313
+ z.ZodTypeDef,
3314
+ Filter
3315
+ > = z.union([
3316
+ z.lazy(() => FilterDollarAnd$outboundSchema),
3317
+ z.lazy(() => FilterDollarOr$outboundSchema),
3318
+ z.record(z.union([
3319
+ z.lazy(() => SearchKnowledge1DollarEq$outboundSchema),
3320
+ z.lazy(() => SearchKnowledge1DollarNe$outboundSchema),
3321
+ z.lazy(() => SearchKnowledge13$outboundSchema),
3322
+ z.lazy(() => SearchKnowledge1DollarGte$outboundSchema),
3323
+ z.lazy(() => SearchKnowledge1DollarLt$outboundSchema),
3324
+ z.lazy(() => SearchKnowledge1DollarLte$outboundSchema),
3325
+ z.lazy(() => SearchKnowledge1DollarIn$outboundSchema),
3326
+ z.lazy(() => SearchKnowledge1DollarNin$outboundSchema),
3327
+ z.lazy(() => SearchKnowledge1DollarExists$outboundSchema),
3328
+ ])),
3329
+ ]);
3330
+
3331
+ /**
3332
+ * @internal
3333
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3334
+ */
3335
+ export namespace Filter$ {
3336
+ /** @deprecated use `Filter$inboundSchema` instead. */
3337
+ export const inboundSchema = Filter$inboundSchema;
3338
+ /** @deprecated use `Filter$outboundSchema` instead. */
3339
+ export const outboundSchema = Filter$outboundSchema;
3340
+ /** @deprecated use `Filter$Outbound` instead. */
3341
+ export type Outbound = Filter$Outbound;
3342
+ }
3343
+
3344
+ export function filterToJSON(filter: Filter): string {
3345
+ return JSON.stringify(Filter$outboundSchema.parse(filter));
3346
+ }
3347
+
3348
+ export function filterFromJSON(
3349
+ jsonString: string,
3350
+ ): SafeParseResult<Filter, SDKValidationError> {
3351
+ return safeParse(
3352
+ jsonString,
3353
+ (x) => Filter$inboundSchema.parse(JSON.parse(x)),
3354
+ `Failed to parse 'Filter' from JSON`,
3355
+ );
3356
+ }
3357
+
3358
+ /** @internal */
3359
+ export const SearchOptions$inboundSchema: z.ZodType<
3360
+ SearchOptions,
3361
+ z.ZodTypeDef,
3362
+ unknown
3363
+ > = z.object({
3364
+ include_vectors: z.boolean().optional(),
3365
+ include_metadata: z.boolean().optional(),
3366
+ include_scores: z.boolean().optional(),
3367
+ }).transform((v) => {
3368
+ return remap$(v, {
3369
+ "include_vectors": "includeVectors",
3370
+ "include_metadata": "includeMetadata",
3371
+ "include_scores": "includeScores",
3372
+ });
3373
+ });
3374
+
3375
+ /** @internal */
3376
+ export type SearchOptions$Outbound = {
3377
+ include_vectors?: boolean | undefined;
3378
+ include_metadata?: boolean | undefined;
3379
+ include_scores?: boolean | undefined;
3380
+ };
3381
+
3382
+ /** @internal */
3383
+ export const SearchOptions$outboundSchema: z.ZodType<
3384
+ SearchOptions$Outbound,
3385
+ z.ZodTypeDef,
3386
+ SearchOptions
3387
+ > = z.object({
3388
+ includeVectors: z.boolean().optional(),
3389
+ includeMetadata: z.boolean().optional(),
3390
+ includeScores: z.boolean().optional(),
3391
+ }).transform((v) => {
3392
+ return remap$(v, {
3393
+ includeVectors: "include_vectors",
3394
+ includeMetadata: "include_metadata",
3395
+ includeScores: "include_scores",
3396
+ });
3397
+ });
3398
+
3399
+ /**
3400
+ * @internal
3401
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3402
+ */
3403
+ export namespace SearchOptions$ {
3404
+ /** @deprecated use `SearchOptions$inboundSchema` instead. */
3405
+ export const inboundSchema = SearchOptions$inboundSchema;
3406
+ /** @deprecated use `SearchOptions$outboundSchema` instead. */
3407
+ export const outboundSchema = SearchOptions$outboundSchema;
3408
+ /** @deprecated use `SearchOptions$Outbound` instead. */
3409
+ export type Outbound = SearchOptions$Outbound;
3410
+ }
3411
+
3412
+ export function searchOptionsToJSON(searchOptions: SearchOptions): string {
3413
+ return JSON.stringify(SearchOptions$outboundSchema.parse(searchOptions));
3414
+ }
3415
+
3416
+ export function searchOptionsFromJSON(
3417
+ jsonString: string,
3418
+ ): SafeParseResult<SearchOptions, SDKValidationError> {
3419
+ return safeParse(
3420
+ jsonString,
3421
+ (x) => SearchOptions$inboundSchema.parse(JSON.parse(x)),
3422
+ `Failed to parse 'SearchOptions' from JSON`,
3423
+ );
3424
+ }
3425
+
3426
+ /** @internal */
3427
+ export const SearchKnowledgeRequestBody$inboundSchema: z.ZodType<
3428
+ SearchKnowledgeRequestBody,
3429
+ z.ZodTypeDef,
3430
+ unknown
3431
+ > = z.object({
3432
+ query: z.string(),
3433
+ top_k: z.number().int().optional(),
3434
+ threshold: z.number().optional(),
3435
+ filter: z.union([
3436
+ z.lazy(() => FilterDollarAnd$inboundSchema),
3437
+ z.lazy(() => FilterDollarOr$inboundSchema),
3438
+ z.record(z.union([
3439
+ z.lazy(() => SearchKnowledge1DollarEq$inboundSchema),
3440
+ z.lazy(() => SearchKnowledge1DollarNe$inboundSchema),
3441
+ z.lazy(() => SearchKnowledge13$inboundSchema),
3442
+ z.lazy(() => SearchKnowledge1DollarGte$inboundSchema),
3443
+ z.lazy(() => SearchKnowledge1DollarLt$inboundSchema),
3444
+ z.lazy(() => SearchKnowledge1DollarLte$inboundSchema),
3445
+ z.lazy(() => SearchKnowledge1DollarIn$inboundSchema),
3446
+ z.lazy(() => SearchKnowledge1DollarNin$inboundSchema),
3447
+ z.lazy(() => SearchKnowledge1DollarExists$inboundSchema),
3448
+ ])),
3449
+ ]).optional(),
3450
+ search_options: z.lazy(() => SearchOptions$inboundSchema).optional(),
3451
+ }).transform((v) => {
3452
+ return remap$(v, {
3453
+ "top_k": "topK",
3454
+ "search_options": "searchOptions",
3455
+ });
3456
+ });
3457
+
3458
+ /** @internal */
3459
+ export type SearchKnowledgeRequestBody$Outbound = {
3460
+ query: string;
3461
+ top_k?: number | undefined;
3462
+ threshold?: number | undefined;
3463
+ filter?: FilterDollarAnd$Outbound | FilterDollarOr$Outbound | {
3464
+ [k: string]:
3465
+ | SearchKnowledge1DollarEq$Outbound
3466
+ | SearchKnowledge1DollarNe$Outbound
3467
+ | SearchKnowledge13$Outbound
3468
+ | SearchKnowledge1DollarGte$Outbound
3469
+ | SearchKnowledge1DollarLt$Outbound
3470
+ | SearchKnowledge1DollarLte$Outbound
3471
+ | SearchKnowledge1DollarIn$Outbound
3472
+ | SearchKnowledge1DollarNin$Outbound
3473
+ | SearchKnowledge1DollarExists$Outbound;
3474
+ } | undefined;
3475
+ search_options?: SearchOptions$Outbound | undefined;
3476
+ };
3477
+
3478
+ /** @internal */
3479
+ export const SearchKnowledgeRequestBody$outboundSchema: z.ZodType<
3480
+ SearchKnowledgeRequestBody$Outbound,
3481
+ z.ZodTypeDef,
3482
+ SearchKnowledgeRequestBody
3483
+ > = z.object({
3484
+ query: z.string(),
3485
+ topK: z.number().int().optional(),
3486
+ threshold: z.number().optional(),
3487
+ filter: z.union([
3488
+ z.lazy(() => FilterDollarAnd$outboundSchema),
3489
+ z.lazy(() => FilterDollarOr$outboundSchema),
3490
+ z.record(z.union([
3491
+ z.lazy(() => SearchKnowledge1DollarEq$outboundSchema),
3492
+ z.lazy(() => SearchKnowledge1DollarNe$outboundSchema),
3493
+ z.lazy(() => SearchKnowledge13$outboundSchema),
3494
+ z.lazy(() => SearchKnowledge1DollarGte$outboundSchema),
3495
+ z.lazy(() => SearchKnowledge1DollarLt$outboundSchema),
3496
+ z.lazy(() => SearchKnowledge1DollarLte$outboundSchema),
3497
+ z.lazy(() => SearchKnowledge1DollarIn$outboundSchema),
3498
+ z.lazy(() => SearchKnowledge1DollarNin$outboundSchema),
3499
+ z.lazy(() => SearchKnowledge1DollarExists$outboundSchema),
3500
+ ])),
3501
+ ]).optional(),
3502
+ searchOptions: z.lazy(() => SearchOptions$outboundSchema).optional(),
3503
+ }).transform((v) => {
3504
+ return remap$(v, {
3505
+ topK: "top_k",
3506
+ searchOptions: "search_options",
3507
+ });
3508
+ });
3509
+
3510
+ /**
3511
+ * @internal
3512
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3513
+ */
3514
+ export namespace SearchKnowledgeRequestBody$ {
3515
+ /** @deprecated use `SearchKnowledgeRequestBody$inboundSchema` instead. */
3516
+ export const inboundSchema = SearchKnowledgeRequestBody$inboundSchema;
3517
+ /** @deprecated use `SearchKnowledgeRequestBody$outboundSchema` instead. */
3518
+ export const outboundSchema = SearchKnowledgeRequestBody$outboundSchema;
3519
+ /** @deprecated use `SearchKnowledgeRequestBody$Outbound` instead. */
3520
+ export type Outbound = SearchKnowledgeRequestBody$Outbound;
3521
+ }
3522
+
3523
+ export function searchKnowledgeRequestBodyToJSON(
3524
+ searchKnowledgeRequestBody: SearchKnowledgeRequestBody,
3525
+ ): string {
3526
+ return JSON.stringify(
3527
+ SearchKnowledgeRequestBody$outboundSchema.parse(searchKnowledgeRequestBody),
3528
+ );
3529
+ }
3530
+
3531
+ export function searchKnowledgeRequestBodyFromJSON(
3532
+ jsonString: string,
3533
+ ): SafeParseResult<SearchKnowledgeRequestBody, SDKValidationError> {
3534
+ return safeParse(
3535
+ jsonString,
3536
+ (x) => SearchKnowledgeRequestBody$inboundSchema.parse(JSON.parse(x)),
3537
+ `Failed to parse 'SearchKnowledgeRequestBody' from JSON`,
3538
+ );
3539
+ }
3540
+
3541
+ /** @internal */
3542
+ export const SearchKnowledgeRequest$inboundSchema: z.ZodType<
3543
+ SearchKnowledgeRequest,
3544
+ z.ZodTypeDef,
3545
+ unknown
3546
+ > = z.object({
3547
+ knowledge_id: z.string(),
3548
+ RequestBody: z.lazy(() => SearchKnowledgeRequestBody$inboundSchema)
3549
+ .optional(),
3550
+ }).transform((v) => {
3551
+ return remap$(v, {
3552
+ "knowledge_id": "knowledgeId",
3553
+ "RequestBody": "requestBody",
3554
+ });
3555
+ });
3556
+
3557
+ /** @internal */
3558
+ export type SearchKnowledgeRequest$Outbound = {
3559
+ knowledge_id: string;
3560
+ RequestBody?: SearchKnowledgeRequestBody$Outbound | undefined;
3561
+ };
3562
+
3563
+ /** @internal */
3564
+ export const SearchKnowledgeRequest$outboundSchema: z.ZodType<
3565
+ SearchKnowledgeRequest$Outbound,
3566
+ z.ZodTypeDef,
3567
+ SearchKnowledgeRequest
3568
+ > = z.object({
3569
+ knowledgeId: z.string(),
3570
+ requestBody: z.lazy(() => SearchKnowledgeRequestBody$outboundSchema)
3571
+ .optional(),
3572
+ }).transform((v) => {
3573
+ return remap$(v, {
3574
+ knowledgeId: "knowledge_id",
3575
+ requestBody: "RequestBody",
3576
+ });
3577
+ });
3578
+
3579
+ /**
3580
+ * @internal
3581
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3582
+ */
3583
+ export namespace SearchKnowledgeRequest$ {
3584
+ /** @deprecated use `SearchKnowledgeRequest$inboundSchema` instead. */
3585
+ export const inboundSchema = SearchKnowledgeRequest$inboundSchema;
3586
+ /** @deprecated use `SearchKnowledgeRequest$outboundSchema` instead. */
3587
+ export const outboundSchema = SearchKnowledgeRequest$outboundSchema;
3588
+ /** @deprecated use `SearchKnowledgeRequest$Outbound` instead. */
3589
+ export type Outbound = SearchKnowledgeRequest$Outbound;
3590
+ }
3591
+
3592
+ export function searchKnowledgeRequestToJSON(
3593
+ searchKnowledgeRequest: SearchKnowledgeRequest,
3594
+ ): string {
3595
+ return JSON.stringify(
3596
+ SearchKnowledgeRequest$outboundSchema.parse(searchKnowledgeRequest),
3597
+ );
3598
+ }
3599
+
3600
+ export function searchKnowledgeRequestFromJSON(
3601
+ jsonString: string,
3602
+ ): SafeParseResult<SearchKnowledgeRequest, SDKValidationError> {
3603
+ return safeParse(
3604
+ jsonString,
3605
+ (x) => SearchKnowledgeRequest$inboundSchema.parse(JSON.parse(x)),
3606
+ `Failed to parse 'SearchKnowledgeRequest' from JSON`,
3607
+ );
3608
+ }
3609
+
3610
+ /** @internal */
3611
+ export const Scores$inboundSchema: z.ZodType<Scores, z.ZodTypeDef, unknown> = z
3612
+ .object({
3613
+ rerank_score: z.number().optional(),
3614
+ search_score: z.number().optional(),
3615
+ }).transform((v) => {
3616
+ return remap$(v, {
3617
+ "rerank_score": "rerankScore",
3618
+ "search_score": "searchScore",
3619
+ });
3620
+ });
3621
+
3622
+ /** @internal */
3623
+ export type Scores$Outbound = {
3624
+ rerank_score?: number | undefined;
3625
+ search_score?: number | undefined;
3626
+ };
3627
+
3628
+ /** @internal */
3629
+ export const Scores$outboundSchema: z.ZodType<
3630
+ Scores$Outbound,
3631
+ z.ZodTypeDef,
3632
+ Scores
3633
+ > = z.object({
3634
+ rerankScore: z.number().optional(),
3635
+ searchScore: z.number().optional(),
3636
+ }).transform((v) => {
3637
+ return remap$(v, {
3638
+ rerankScore: "rerank_score",
3639
+ searchScore: "search_score",
3640
+ });
3641
+ });
3642
+
3643
+ /**
3644
+ * @internal
3645
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3646
+ */
3647
+ export namespace Scores$ {
3648
+ /** @deprecated use `Scores$inboundSchema` instead. */
3649
+ export const inboundSchema = Scores$inboundSchema;
3650
+ /** @deprecated use `Scores$outboundSchema` instead. */
3651
+ export const outboundSchema = Scores$outboundSchema;
3652
+ /** @deprecated use `Scores$Outbound` instead. */
3653
+ export type Outbound = Scores$Outbound;
3654
+ }
3655
+
3656
+ export function scoresToJSON(scores: Scores): string {
3657
+ return JSON.stringify(Scores$outboundSchema.parse(scores));
3658
+ }
3659
+
3660
+ export function scoresFromJSON(
3661
+ jsonString: string,
3662
+ ): SafeParseResult<Scores, SDKValidationError> {
3663
+ return safeParse(
3664
+ jsonString,
3665
+ (x) => Scores$inboundSchema.parse(JSON.parse(x)),
3666
+ `Failed to parse 'Scores' from JSON`,
3667
+ );
3668
+ }
3669
+
3670
+ /** @internal */
3671
+ export const Matches$inboundSchema: z.ZodType<Matches, z.ZodTypeDef, unknown> =
3672
+ z.object({
3673
+ id: z.string(),
3674
+ text: z.string(),
3675
+ vector: z.array(z.number()).optional(),
3676
+ metadata: z.record(z.any()).optional(),
3677
+ scores: z.lazy(() => Scores$inboundSchema).optional(),
3678
+ });
3679
+
3680
+ /** @internal */
3681
+ export type Matches$Outbound = {
3682
+ id: string;
3683
+ text: string;
3684
+ vector?: Array<number> | undefined;
3685
+ metadata?: { [k: string]: any } | undefined;
3686
+ scores?: Scores$Outbound | undefined;
3687
+ };
3688
+
3689
+ /** @internal */
3690
+ export const Matches$outboundSchema: z.ZodType<
3691
+ Matches$Outbound,
3692
+ z.ZodTypeDef,
3693
+ Matches
3694
+ > = z.object({
3695
+ id: z.string(),
3696
+ text: z.string(),
3697
+ vector: z.array(z.number()).optional(),
3698
+ metadata: z.record(z.any()).optional(),
3699
+ scores: z.lazy(() => Scores$outboundSchema).optional(),
3700
+ });
3701
+
3702
+ /**
3703
+ * @internal
3704
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3705
+ */
3706
+ export namespace Matches$ {
3707
+ /** @deprecated use `Matches$inboundSchema` instead. */
3708
+ export const inboundSchema = Matches$inboundSchema;
3709
+ /** @deprecated use `Matches$outboundSchema` instead. */
3710
+ export const outboundSchema = Matches$outboundSchema;
3711
+ /** @deprecated use `Matches$Outbound` instead. */
3712
+ export type Outbound = Matches$Outbound;
3713
+ }
3714
+
3715
+ export function matchesToJSON(matches: Matches): string {
3716
+ return JSON.stringify(Matches$outboundSchema.parse(matches));
3717
+ }
3718
+
3719
+ export function matchesFromJSON(
3720
+ jsonString: string,
3721
+ ): SafeParseResult<Matches, SDKValidationError> {
3722
+ return safeParse(
3723
+ jsonString,
3724
+ (x) => Matches$inboundSchema.parse(JSON.parse(x)),
3725
+ `Failed to parse 'Matches' from JSON`,
3726
+ );
3727
+ }
3728
+
3729
+ /** @internal */
3730
+ export const SearchKnowledgeResponseBody$inboundSchema: z.ZodType<
3731
+ SearchKnowledgeResponseBody,
3732
+ z.ZodTypeDef,
3733
+ unknown
3734
+ > = z.object({
3735
+ matches: z.array(z.lazy(() => Matches$inboundSchema)),
3736
+ });
3737
+
3738
+ /** @internal */
3739
+ export type SearchKnowledgeResponseBody$Outbound = {
3740
+ matches: Array<Matches$Outbound>;
3741
+ };
3742
+
3743
+ /** @internal */
3744
+ export const SearchKnowledgeResponseBody$outboundSchema: z.ZodType<
3745
+ SearchKnowledgeResponseBody$Outbound,
3746
+ z.ZodTypeDef,
3747
+ SearchKnowledgeResponseBody
3748
+ > = z.object({
3749
+ matches: z.array(z.lazy(() => Matches$outboundSchema)),
3750
+ });
3751
+
3752
+ /**
3753
+ * @internal
3754
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3755
+ */
3756
+ export namespace SearchKnowledgeResponseBody$ {
3757
+ /** @deprecated use `SearchKnowledgeResponseBody$inboundSchema` instead. */
3758
+ export const inboundSchema = SearchKnowledgeResponseBody$inboundSchema;
3759
+ /** @deprecated use `SearchKnowledgeResponseBody$outboundSchema` instead. */
3760
+ export const outboundSchema = SearchKnowledgeResponseBody$outboundSchema;
3761
+ /** @deprecated use `SearchKnowledgeResponseBody$Outbound` instead. */
3762
+ export type Outbound = SearchKnowledgeResponseBody$Outbound;
3763
+ }
3764
+
3765
+ export function searchKnowledgeResponseBodyToJSON(
3766
+ searchKnowledgeResponseBody: SearchKnowledgeResponseBody,
3767
+ ): string {
3768
+ return JSON.stringify(
3769
+ SearchKnowledgeResponseBody$outboundSchema.parse(
3770
+ searchKnowledgeResponseBody,
3771
+ ),
3772
+ );
3773
+ }
3774
+
3775
+ export function searchKnowledgeResponseBodyFromJSON(
3776
+ jsonString: string,
3777
+ ): SafeParseResult<SearchKnowledgeResponseBody, SDKValidationError> {
3778
+ return safeParse(
3779
+ jsonString,
3780
+ (x) => SearchKnowledgeResponseBody$inboundSchema.parse(JSON.parse(x)),
3781
+ `Failed to parse 'SearchKnowledgeResponseBody' from JSON`,
3782
+ );
3783
+ }