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