@ampsec/platform-client 58.9.2 → 58.10.0

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 (45) hide show
  1. package/build/src/FilterCriteria.d.ts +795 -40
  2. package/build/src/FilterCriteria.js +82 -0
  3. package/build/src/FilterCriteria.js.map +1 -1
  4. package/build/src/dto/assets.dto.d.ts +10 -1
  5. package/build/src/dto/base.dto.d.ts +27 -9
  6. package/build/src/dto/base.dto.js +2 -4
  7. package/build/src/dto/base.dto.js.map +1 -1
  8. package/build/src/dto/coverage.dto.d.ts +11 -11
  9. package/build/src/dto/flows.dto.d.ts +819 -0
  10. package/build/src/dto/flows.dto.js +85 -0
  11. package/build/src/dto/flows.dto.js.map +1 -0
  12. package/build/src/dto/index.d.ts +1 -0
  13. package/build/src/dto/index.js +1 -0
  14. package/build/src/dto/index.js.map +1 -1
  15. package/build/src/dto/platform/index.d.ts +1 -0
  16. package/build/src/dto/platform/index.js +1 -0
  17. package/build/src/dto/platform/index.js.map +1 -1
  18. package/build/src/dto/platform/platform.flows.dto.d.ts +540 -0
  19. package/build/src/dto/platform/platform.flows.dto.js +32 -0
  20. package/build/src/dto/platform/platform.flows.dto.js.map +1 -0
  21. package/build/src/dto/platform/tenant.based.dto.d.ts +40 -8
  22. package/build/src/dto/platform/tenant.based.dto.js +7 -0
  23. package/build/src/dto/platform/tenant.based.dto.js.map +1 -1
  24. package/build/src/dto/saasAssets.dto.d.ts +10 -1
  25. package/build/src/dto/saasUsers.dto.d.ts +15 -6
  26. package/build/src/services/AmpSdk.d.ts +3 -0
  27. package/build/src/services/AmpSdk.js +2 -0
  28. package/build/src/services/AmpSdk.js.map +1 -1
  29. package/build/src/services/constants.d.ts +2 -0
  30. package/build/src/services/constants.js +2 -0
  31. package/build/src/services/constants.js.map +1 -1
  32. package/build/src/services/utils.d.ts +3 -0
  33. package/build/src/services/utils.js +16 -1
  34. package/build/src/services/utils.js.map +1 -1
  35. package/package.json +2 -1
  36. package/src/FilterCriteria.ts +104 -39
  37. package/src/dto/base.dto.ts +4 -6
  38. package/src/dto/flows.dto.ts +107 -0
  39. package/src/dto/index.ts +1 -0
  40. package/src/dto/platform/index.ts +1 -0
  41. package/src/dto/platform/platform.flows.dto.ts +38 -0
  42. package/src/dto/platform/tenant.based.dto.ts +8 -9
  43. package/src/services/AmpSdk.ts +5 -0
  44. package/src/services/constants.ts +2 -0
  45. package/src/services/utils.ts +16 -0
@@ -1,44 +1,800 @@
1
- type OptionalStringValue = string | null;
2
- type OptionalNumberValue = number | null;
3
- export type IdMatcher = {
4
- $eq?: OptionalStringValue;
5
- $ne?: OptionalStringValue;
6
- $in?: OptionalStringValue[];
7
- $nin?: OptionalStringValue[];
8
- };
9
- export type StringMatcher = {
10
- $eq?: OptionalStringValue;
11
- $neq?: OptionalStringValue;
12
- $lt?: string;
13
- $gt?: string;
14
- $lte?: string;
15
- $gte?: string;
16
- $like?: string;
17
- $nlike?: string;
18
- $in?: OptionalStringValue[];
19
- $nin?: OptionalStringValue[];
20
- };
21
- export type NumberMatcher = {
22
- $eq?: OptionalNumberValue;
23
- $neq?: OptionalNumberValue;
24
- $lt?: number;
25
- $gt?: number;
26
- $lte?: number;
27
- $gte?: number;
28
- $in?: OptionalNumberValue[];
29
- $nin?: OptionalNumberValue[];
30
- };
31
- export type DateMatcher = {
32
- $eq?: OptionalStringValue;
33
- $neq?: OptionalStringValue;
34
- $lt?: string;
35
- $gt?: string;
36
- $lte?: string;
37
- $gte?: string;
38
- };
1
+ import { z } from 'zod';
2
+ export declare const _IdMatcher: z.ZodObject<{
3
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
6
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ $eq?: string | null | undefined;
9
+ $ne?: string | null | undefined;
10
+ $in?: (string | null)[] | undefined;
11
+ $nin?: (string | null)[] | undefined;
12
+ }, {
13
+ $eq?: string | null | undefined;
14
+ $ne?: string | null | undefined;
15
+ $in?: (string | null)[] | undefined;
16
+ $nin?: (string | null)[] | undefined;
17
+ }>;
18
+ export type IdMatcher = z.infer<typeof _IdMatcher>;
19
+ export declare const _StringMatcher: z.ZodObject<{
20
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ $lt: z.ZodOptional<z.ZodString>;
23
+ $gt: z.ZodOptional<z.ZodString>;
24
+ $lte: z.ZodOptional<z.ZodString>;
25
+ $gte: z.ZodOptional<z.ZodString>;
26
+ $like: z.ZodOptional<z.ZodString>;
27
+ $nlike: z.ZodOptional<z.ZodString>;
28
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
29
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ $eq?: string | null | undefined;
32
+ $neq?: string | null | undefined;
33
+ $lt?: string | undefined;
34
+ $gt?: string | undefined;
35
+ $lte?: string | undefined;
36
+ $gte?: string | undefined;
37
+ $like?: string | undefined;
38
+ $nlike?: string | undefined;
39
+ $in?: (string | null)[] | undefined;
40
+ $nin?: (string | null)[] | undefined;
41
+ }, {
42
+ $eq?: string | null | undefined;
43
+ $neq?: string | null | undefined;
44
+ $lt?: string | undefined;
45
+ $gt?: string | undefined;
46
+ $lte?: string | undefined;
47
+ $gte?: string | undefined;
48
+ $like?: string | undefined;
49
+ $nlike?: string | undefined;
50
+ $in?: (string | null)[] | undefined;
51
+ $nin?: (string | null)[] | undefined;
52
+ }>;
53
+ export type StringMatcher = z.infer<typeof _StringMatcher>;
54
+ export declare const _NumberMatcher: z.ZodObject<{
55
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
56
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
57
+ $lt: z.ZodOptional<z.ZodNumber>;
58
+ $gt: z.ZodOptional<z.ZodNumber>;
59
+ $lte: z.ZodOptional<z.ZodNumber>;
60
+ $gte: z.ZodOptional<z.ZodNumber>;
61
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
62
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ $eq?: number | null | undefined;
65
+ $neq?: number | null | undefined;
66
+ $lt?: number | undefined;
67
+ $gt?: number | undefined;
68
+ $lte?: number | undefined;
69
+ $gte?: number | undefined;
70
+ $in?: (number | null)[] | undefined;
71
+ $nin?: (number | null)[] | undefined;
72
+ }, {
73
+ $eq?: number | null | undefined;
74
+ $neq?: number | null | undefined;
75
+ $lt?: number | undefined;
76
+ $gt?: number | undefined;
77
+ $lte?: number | undefined;
78
+ $gte?: number | undefined;
79
+ $in?: (number | null)[] | undefined;
80
+ $nin?: (number | null)[] | undefined;
81
+ }>;
82
+ export type NumberMatcher = z.infer<typeof _NumberMatcher>;
83
+ export declare const _DateMatcher: z.ZodObject<{
84
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ $lt: z.ZodOptional<z.ZodString>;
87
+ $gt: z.ZodOptional<z.ZodString>;
88
+ $lte: z.ZodOptional<z.ZodString>;
89
+ $gte: z.ZodOptional<z.ZodString>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ $eq?: string | null | undefined;
92
+ $neq?: string | null | undefined;
93
+ $lt?: string | undefined;
94
+ $gt?: string | undefined;
95
+ $lte?: string | undefined;
96
+ $gte?: string | undefined;
97
+ }, {
98
+ $eq?: string | null | undefined;
99
+ $neq?: string | null | undefined;
100
+ $lt?: string | undefined;
101
+ $gt?: string | undefined;
102
+ $lte?: string | undefined;
103
+ $gte?: string | undefined;
104
+ }>;
105
+ export type DateMatcher = z.infer<typeof _DateMatcher>;
39
106
  export type SortOptions = {
40
107
  [key: string]: 'ASC' | 'DESC';
41
108
  };
109
+ export declare const _PaginationFilter: z.ZodObject<{
110
+ limit: z.ZodOptional<z.ZodNumber>;
111
+ offset: z.ZodOptional<z.ZodNumber>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ limit?: number | undefined;
114
+ offset?: number | undefined;
115
+ }, {
116
+ limit?: number | undefined;
117
+ offset?: number | undefined;
118
+ }>;
119
+ export type PaginationFilter = z.infer<typeof _PaginationFilter>;
120
+ export declare const _SortFilter: z.ZodObject<{
121
+ sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ASC", "DESC"]>>>;
122
+ }, "strip", z.ZodTypeAny, {
123
+ sort?: Record<string, "ASC" | "DESC"> | undefined;
124
+ }, {
125
+ sort?: Record<string, "ASC" | "DESC"> | undefined;
126
+ }>;
127
+ export type SortFilter = z.infer<typeof _SortFilter>;
128
+ export declare const _BaseFilter: z.ZodObject<{
129
+ limit: z.ZodOptional<z.ZodNumber>;
130
+ offset: z.ZodOptional<z.ZodNumber>;
131
+ sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ASC", "DESC"]>>>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ limit?: number | undefined;
134
+ offset?: number | undefined;
135
+ sort?: Record<string, "ASC" | "DESC"> | undefined;
136
+ }, {
137
+ limit?: number | undefined;
138
+ offset?: number | undefined;
139
+ sort?: Record<string, "ASC" | "DESC"> | undefined;
140
+ }>;
141
+ export type BaseFilter = z.infer<typeof _BaseFilter>;
142
+ export declare const _FilterCriteria: z.ZodObject<{
143
+ sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ASC", "DESC"]>>>;
144
+ limit: z.ZodOptional<z.ZodNumber>;
145
+ offset: z.ZodOptional<z.ZodNumber>;
146
+ id: z.ZodOptional<z.ZodObject<{
147
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
150
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ $eq?: string | null | undefined;
153
+ $ne?: string | null | undefined;
154
+ $in?: (string | null)[] | undefined;
155
+ $nin?: (string | null)[] | undefined;
156
+ }, {
157
+ $eq?: string | null | undefined;
158
+ $ne?: string | null | undefined;
159
+ $in?: (string | null)[] | undefined;
160
+ $nin?: (string | null)[] | undefined;
161
+ }>>;
162
+ tid: z.ZodOptional<z.ZodObject<{
163
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
166
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ $eq?: string | null | undefined;
169
+ $ne?: string | null | undefined;
170
+ $in?: (string | null)[] | undefined;
171
+ $nin?: (string | null)[] | undefined;
172
+ }, {
173
+ $eq?: string | null | undefined;
174
+ $ne?: string | null | undefined;
175
+ $in?: (string | null)[] | undefined;
176
+ $nin?: (string | null)[] | undefined;
177
+ }>>;
178
+ cid: z.ZodOptional<z.ZodObject<{
179
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
181
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
182
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ $eq?: string | null | undefined;
185
+ $ne?: string | null | undefined;
186
+ $in?: (string | null)[] | undefined;
187
+ $nin?: (string | null)[] | undefined;
188
+ }, {
189
+ $eq?: string | null | undefined;
190
+ $ne?: string | null | undefined;
191
+ $in?: (string | null)[] | undefined;
192
+ $nin?: (string | null)[] | undefined;
193
+ }>>;
194
+ organization: z.ZodOptional<z.ZodString>;
195
+ department: z.ZodOptional<z.ZodString>;
196
+ uid: z.ZodOptional<z.ZodObject<{
197
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
198
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
200
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ $eq?: string | null | undefined;
203
+ $ne?: string | null | undefined;
204
+ $in?: (string | null)[] | undefined;
205
+ $nin?: (string | null)[] | undefined;
206
+ }, {
207
+ $eq?: string | null | undefined;
208
+ $ne?: string | null | undefined;
209
+ $in?: (string | null)[] | undefined;
210
+ $nin?: (string | null)[] | undefined;
211
+ }>>;
212
+ aid: z.ZodOptional<z.ZodObject<{
213
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
214
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
216
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ $eq?: string | null | undefined;
219
+ $ne?: string | null | undefined;
220
+ $in?: (string | null)[] | undefined;
221
+ $nin?: (string | null)[] | undefined;
222
+ }, {
223
+ $eq?: string | null | undefined;
224
+ $ne?: string | null | undefined;
225
+ $in?: (string | null)[] | undefined;
226
+ $nin?: (string | null)[] | undefined;
227
+ }>>;
228
+ createdAt: z.ZodOptional<z.ZodObject<{
229
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
+ $lt: z.ZodOptional<z.ZodString>;
232
+ $gt: z.ZodOptional<z.ZodString>;
233
+ $lte: z.ZodOptional<z.ZodString>;
234
+ $gte: z.ZodOptional<z.ZodString>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ $eq?: string | null | undefined;
237
+ $neq?: string | null | undefined;
238
+ $lt?: string | undefined;
239
+ $gt?: string | undefined;
240
+ $lte?: string | undefined;
241
+ $gte?: string | undefined;
242
+ }, {
243
+ $eq?: string | null | undefined;
244
+ $neq?: string | null | undefined;
245
+ $lt?: string | undefined;
246
+ $gt?: string | undefined;
247
+ $lte?: string | undefined;
248
+ $gte?: string | undefined;
249
+ }>>;
250
+ updatedAt: z.ZodOptional<z.ZodObject<{
251
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
252
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
+ $lt: z.ZodOptional<z.ZodString>;
254
+ $gt: z.ZodOptional<z.ZodString>;
255
+ $lte: z.ZodOptional<z.ZodString>;
256
+ $gte: z.ZodOptional<z.ZodString>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ $eq?: string | null | undefined;
259
+ $neq?: string | null | undefined;
260
+ $lt?: string | undefined;
261
+ $gt?: string | undefined;
262
+ $lte?: string | undefined;
263
+ $gte?: string | undefined;
264
+ }, {
265
+ $eq?: string | null | undefined;
266
+ $neq?: string | null | undefined;
267
+ $lt?: string | undefined;
268
+ $gt?: string | undefined;
269
+ $lte?: string | undefined;
270
+ $gte?: string | undefined;
271
+ }>>;
272
+ deletedAt: z.ZodOptional<z.ZodObject<{
273
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
274
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
275
+ $lt: z.ZodOptional<z.ZodString>;
276
+ $gt: z.ZodOptional<z.ZodString>;
277
+ $lte: z.ZodOptional<z.ZodString>;
278
+ $gte: z.ZodOptional<z.ZodString>;
279
+ }, "strip", z.ZodTypeAny, {
280
+ $eq?: string | null | undefined;
281
+ $neq?: string | null | undefined;
282
+ $lt?: string | undefined;
283
+ $gt?: string | undefined;
284
+ $lte?: string | undefined;
285
+ $gte?: string | undefined;
286
+ }, {
287
+ $eq?: string | null | undefined;
288
+ $neq?: string | null | undefined;
289
+ $lt?: string | undefined;
290
+ $gt?: string | undefined;
291
+ $lte?: string | undefined;
292
+ $gte?: string | undefined;
293
+ }>>;
294
+ }, "strip", z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodObject<{
295
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
296
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
297
+ $lt: z.ZodOptional<z.ZodString>;
298
+ $gt: z.ZodOptional<z.ZodString>;
299
+ $lte: z.ZodOptional<z.ZodString>;
300
+ $gte: z.ZodOptional<z.ZodString>;
301
+ $like: z.ZodOptional<z.ZodString>;
302
+ $nlike: z.ZodOptional<z.ZodString>;
303
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
304
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ $eq?: string | null | undefined;
307
+ $neq?: string | null | undefined;
308
+ $lt?: string | undefined;
309
+ $gt?: string | undefined;
310
+ $lte?: string | undefined;
311
+ $gte?: string | undefined;
312
+ $like?: string | undefined;
313
+ $nlike?: string | undefined;
314
+ $in?: (string | null)[] | undefined;
315
+ $nin?: (string | null)[] | undefined;
316
+ }, {
317
+ $eq?: string | null | undefined;
318
+ $neq?: string | null | undefined;
319
+ $lt?: string | undefined;
320
+ $gt?: string | undefined;
321
+ $lte?: string | undefined;
322
+ $gte?: string | undefined;
323
+ $like?: string | undefined;
324
+ $nlike?: string | undefined;
325
+ $in?: (string | null)[] | undefined;
326
+ $nin?: (string | null)[] | undefined;
327
+ }>, z.ZodNumber, z.ZodObject<{
328
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
329
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
330
+ $lt: z.ZodOptional<z.ZodNumber>;
331
+ $gt: z.ZodOptional<z.ZodNumber>;
332
+ $lte: z.ZodOptional<z.ZodNumber>;
333
+ $gte: z.ZodOptional<z.ZodNumber>;
334
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
335
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
336
+ }, "strip", z.ZodTypeAny, {
337
+ $eq?: number | null | undefined;
338
+ $neq?: number | null | undefined;
339
+ $lt?: number | undefined;
340
+ $gt?: number | undefined;
341
+ $lte?: number | undefined;
342
+ $gte?: number | undefined;
343
+ $in?: (number | null)[] | undefined;
344
+ $nin?: (number | null)[] | undefined;
345
+ }, {
346
+ $eq?: number | null | undefined;
347
+ $neq?: number | null | undefined;
348
+ $lt?: number | undefined;
349
+ $gt?: number | undefined;
350
+ $lte?: number | undefined;
351
+ $gte?: number | undefined;
352
+ $in?: (number | null)[] | undefined;
353
+ $nin?: (number | null)[] | undefined;
354
+ }>, z.ZodBoolean, z.ZodNull, z.ZodUndefined, z.ZodObject<{
355
+ sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ASC", "DESC"]>>>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ sort?: Record<string, "ASC" | "DESC"> | undefined;
358
+ }, {
359
+ sort?: Record<string, "ASC" | "DESC"> | undefined;
360
+ }>]>>, z.objectOutputType<{
361
+ sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ASC", "DESC"]>>>;
362
+ limit: z.ZodOptional<z.ZodNumber>;
363
+ offset: z.ZodOptional<z.ZodNumber>;
364
+ id: z.ZodOptional<z.ZodObject<{
365
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
366
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
367
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
368
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
369
+ }, "strip", z.ZodTypeAny, {
370
+ $eq?: string | null | undefined;
371
+ $ne?: string | null | undefined;
372
+ $in?: (string | null)[] | undefined;
373
+ $nin?: (string | null)[] | undefined;
374
+ }, {
375
+ $eq?: string | null | undefined;
376
+ $ne?: string | null | undefined;
377
+ $in?: (string | null)[] | undefined;
378
+ $nin?: (string | null)[] | undefined;
379
+ }>>;
380
+ tid: z.ZodOptional<z.ZodObject<{
381
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
382
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
383
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
384
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ $eq?: string | null | undefined;
387
+ $ne?: string | null | undefined;
388
+ $in?: (string | null)[] | undefined;
389
+ $nin?: (string | null)[] | undefined;
390
+ }, {
391
+ $eq?: string | null | undefined;
392
+ $ne?: string | null | undefined;
393
+ $in?: (string | null)[] | undefined;
394
+ $nin?: (string | null)[] | undefined;
395
+ }>>;
396
+ cid: z.ZodOptional<z.ZodObject<{
397
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
398
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
399
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
400
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ $eq?: string | null | undefined;
403
+ $ne?: string | null | undefined;
404
+ $in?: (string | null)[] | undefined;
405
+ $nin?: (string | null)[] | undefined;
406
+ }, {
407
+ $eq?: string | null | undefined;
408
+ $ne?: string | null | undefined;
409
+ $in?: (string | null)[] | undefined;
410
+ $nin?: (string | null)[] | undefined;
411
+ }>>;
412
+ organization: z.ZodOptional<z.ZodString>;
413
+ department: z.ZodOptional<z.ZodString>;
414
+ uid: z.ZodOptional<z.ZodObject<{
415
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
418
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
419
+ }, "strip", z.ZodTypeAny, {
420
+ $eq?: string | null | undefined;
421
+ $ne?: string | null | undefined;
422
+ $in?: (string | null)[] | undefined;
423
+ $nin?: (string | null)[] | undefined;
424
+ }, {
425
+ $eq?: string | null | undefined;
426
+ $ne?: string | null | undefined;
427
+ $in?: (string | null)[] | undefined;
428
+ $nin?: (string | null)[] | undefined;
429
+ }>>;
430
+ aid: z.ZodOptional<z.ZodObject<{
431
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
432
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
433
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
434
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
435
+ }, "strip", z.ZodTypeAny, {
436
+ $eq?: string | null | undefined;
437
+ $ne?: string | null | undefined;
438
+ $in?: (string | null)[] | undefined;
439
+ $nin?: (string | null)[] | undefined;
440
+ }, {
441
+ $eq?: string | null | undefined;
442
+ $ne?: string | null | undefined;
443
+ $in?: (string | null)[] | undefined;
444
+ $nin?: (string | null)[] | undefined;
445
+ }>>;
446
+ createdAt: z.ZodOptional<z.ZodObject<{
447
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
448
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
449
+ $lt: z.ZodOptional<z.ZodString>;
450
+ $gt: z.ZodOptional<z.ZodString>;
451
+ $lte: z.ZodOptional<z.ZodString>;
452
+ $gte: z.ZodOptional<z.ZodString>;
453
+ }, "strip", z.ZodTypeAny, {
454
+ $eq?: string | null | undefined;
455
+ $neq?: string | null | undefined;
456
+ $lt?: string | undefined;
457
+ $gt?: string | undefined;
458
+ $lte?: string | undefined;
459
+ $gte?: string | undefined;
460
+ }, {
461
+ $eq?: string | null | undefined;
462
+ $neq?: string | null | undefined;
463
+ $lt?: string | undefined;
464
+ $gt?: string | undefined;
465
+ $lte?: string | undefined;
466
+ $gte?: string | undefined;
467
+ }>>;
468
+ updatedAt: z.ZodOptional<z.ZodObject<{
469
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
+ $lt: z.ZodOptional<z.ZodString>;
472
+ $gt: z.ZodOptional<z.ZodString>;
473
+ $lte: z.ZodOptional<z.ZodString>;
474
+ $gte: z.ZodOptional<z.ZodString>;
475
+ }, "strip", z.ZodTypeAny, {
476
+ $eq?: string | null | undefined;
477
+ $neq?: string | null | undefined;
478
+ $lt?: string | undefined;
479
+ $gt?: string | undefined;
480
+ $lte?: string | undefined;
481
+ $gte?: string | undefined;
482
+ }, {
483
+ $eq?: string | null | undefined;
484
+ $neq?: string | null | undefined;
485
+ $lt?: string | undefined;
486
+ $gt?: string | undefined;
487
+ $lte?: string | undefined;
488
+ $gte?: string | undefined;
489
+ }>>;
490
+ deletedAt: z.ZodOptional<z.ZodObject<{
491
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
492
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
493
+ $lt: z.ZodOptional<z.ZodString>;
494
+ $gt: z.ZodOptional<z.ZodString>;
495
+ $lte: z.ZodOptional<z.ZodString>;
496
+ $gte: z.ZodOptional<z.ZodString>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ $eq?: string | null | undefined;
499
+ $neq?: string | null | undefined;
500
+ $lt?: string | undefined;
501
+ $gt?: string | undefined;
502
+ $lte?: string | undefined;
503
+ $gte?: string | undefined;
504
+ }, {
505
+ $eq?: string | null | undefined;
506
+ $neq?: string | null | undefined;
507
+ $lt?: string | undefined;
508
+ $gt?: string | undefined;
509
+ $lte?: string | undefined;
510
+ $gte?: string | undefined;
511
+ }>>;
512
+ }, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodObject<{
513
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
514
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
515
+ $lt: z.ZodOptional<z.ZodString>;
516
+ $gt: z.ZodOptional<z.ZodString>;
517
+ $lte: z.ZodOptional<z.ZodString>;
518
+ $gte: z.ZodOptional<z.ZodString>;
519
+ $like: z.ZodOptional<z.ZodString>;
520
+ $nlike: z.ZodOptional<z.ZodString>;
521
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
522
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
523
+ }, "strip", z.ZodTypeAny, {
524
+ $eq?: string | null | undefined;
525
+ $neq?: string | null | undefined;
526
+ $lt?: string | undefined;
527
+ $gt?: string | undefined;
528
+ $lte?: string | undefined;
529
+ $gte?: string | undefined;
530
+ $like?: string | undefined;
531
+ $nlike?: string | undefined;
532
+ $in?: (string | null)[] | undefined;
533
+ $nin?: (string | null)[] | undefined;
534
+ }, {
535
+ $eq?: string | null | undefined;
536
+ $neq?: string | null | undefined;
537
+ $lt?: string | undefined;
538
+ $gt?: string | undefined;
539
+ $lte?: string | undefined;
540
+ $gte?: string | undefined;
541
+ $like?: string | undefined;
542
+ $nlike?: string | undefined;
543
+ $in?: (string | null)[] | undefined;
544
+ $nin?: (string | null)[] | undefined;
545
+ }>, z.ZodNumber, z.ZodObject<{
546
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
547
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
548
+ $lt: z.ZodOptional<z.ZodNumber>;
549
+ $gt: z.ZodOptional<z.ZodNumber>;
550
+ $lte: z.ZodOptional<z.ZodNumber>;
551
+ $gte: z.ZodOptional<z.ZodNumber>;
552
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
553
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
554
+ }, "strip", z.ZodTypeAny, {
555
+ $eq?: number | null | undefined;
556
+ $neq?: number | null | undefined;
557
+ $lt?: number | undefined;
558
+ $gt?: number | undefined;
559
+ $lte?: number | undefined;
560
+ $gte?: number | undefined;
561
+ $in?: (number | null)[] | undefined;
562
+ $nin?: (number | null)[] | undefined;
563
+ }, {
564
+ $eq?: number | null | undefined;
565
+ $neq?: number | null | undefined;
566
+ $lt?: number | undefined;
567
+ $gt?: number | undefined;
568
+ $lte?: number | undefined;
569
+ $gte?: number | undefined;
570
+ $in?: (number | null)[] | undefined;
571
+ $nin?: (number | null)[] | undefined;
572
+ }>, z.ZodBoolean, z.ZodNull, z.ZodUndefined, z.ZodObject<{
573
+ sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ASC", "DESC"]>>>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ sort?: Record<string, "ASC" | "DESC"> | undefined;
576
+ }, {
577
+ sort?: Record<string, "ASC" | "DESC"> | undefined;
578
+ }>]>>, "strip">, z.objectInputType<{
579
+ sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ASC", "DESC"]>>>;
580
+ limit: z.ZodOptional<z.ZodNumber>;
581
+ offset: z.ZodOptional<z.ZodNumber>;
582
+ id: z.ZodOptional<z.ZodObject<{
583
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
584
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
585
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
586
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
587
+ }, "strip", z.ZodTypeAny, {
588
+ $eq?: string | null | undefined;
589
+ $ne?: string | null | undefined;
590
+ $in?: (string | null)[] | undefined;
591
+ $nin?: (string | null)[] | undefined;
592
+ }, {
593
+ $eq?: string | null | undefined;
594
+ $ne?: string | null | undefined;
595
+ $in?: (string | null)[] | undefined;
596
+ $nin?: (string | null)[] | undefined;
597
+ }>>;
598
+ tid: z.ZodOptional<z.ZodObject<{
599
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
600
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
601
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
602
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
603
+ }, "strip", z.ZodTypeAny, {
604
+ $eq?: string | null | undefined;
605
+ $ne?: string | null | undefined;
606
+ $in?: (string | null)[] | undefined;
607
+ $nin?: (string | null)[] | undefined;
608
+ }, {
609
+ $eq?: string | null | undefined;
610
+ $ne?: string | null | undefined;
611
+ $in?: (string | null)[] | undefined;
612
+ $nin?: (string | null)[] | undefined;
613
+ }>>;
614
+ cid: z.ZodOptional<z.ZodObject<{
615
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
617
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
618
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
619
+ }, "strip", z.ZodTypeAny, {
620
+ $eq?: string | null | undefined;
621
+ $ne?: string | null | undefined;
622
+ $in?: (string | null)[] | undefined;
623
+ $nin?: (string | null)[] | undefined;
624
+ }, {
625
+ $eq?: string | null | undefined;
626
+ $ne?: string | null | undefined;
627
+ $in?: (string | null)[] | undefined;
628
+ $nin?: (string | null)[] | undefined;
629
+ }>>;
630
+ organization: z.ZodOptional<z.ZodString>;
631
+ department: z.ZodOptional<z.ZodString>;
632
+ uid: z.ZodOptional<z.ZodObject<{
633
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
634
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
635
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
636
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
637
+ }, "strip", z.ZodTypeAny, {
638
+ $eq?: string | null | undefined;
639
+ $ne?: string | null | undefined;
640
+ $in?: (string | null)[] | undefined;
641
+ $nin?: (string | null)[] | undefined;
642
+ }, {
643
+ $eq?: string | null | undefined;
644
+ $ne?: string | null | undefined;
645
+ $in?: (string | null)[] | undefined;
646
+ $nin?: (string | null)[] | undefined;
647
+ }>>;
648
+ aid: z.ZodOptional<z.ZodObject<{
649
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
650
+ $ne: z.ZodOptional<z.ZodNullable<z.ZodString>>;
651
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
652
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
653
+ }, "strip", z.ZodTypeAny, {
654
+ $eq?: string | null | undefined;
655
+ $ne?: string | null | undefined;
656
+ $in?: (string | null)[] | undefined;
657
+ $nin?: (string | null)[] | undefined;
658
+ }, {
659
+ $eq?: string | null | undefined;
660
+ $ne?: string | null | undefined;
661
+ $in?: (string | null)[] | undefined;
662
+ $nin?: (string | null)[] | undefined;
663
+ }>>;
664
+ createdAt: z.ZodOptional<z.ZodObject<{
665
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
666
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
667
+ $lt: z.ZodOptional<z.ZodString>;
668
+ $gt: z.ZodOptional<z.ZodString>;
669
+ $lte: z.ZodOptional<z.ZodString>;
670
+ $gte: z.ZodOptional<z.ZodString>;
671
+ }, "strip", z.ZodTypeAny, {
672
+ $eq?: string | null | undefined;
673
+ $neq?: string | null | undefined;
674
+ $lt?: string | undefined;
675
+ $gt?: string | undefined;
676
+ $lte?: string | undefined;
677
+ $gte?: string | undefined;
678
+ }, {
679
+ $eq?: string | null | undefined;
680
+ $neq?: string | null | undefined;
681
+ $lt?: string | undefined;
682
+ $gt?: string | undefined;
683
+ $lte?: string | undefined;
684
+ $gte?: string | undefined;
685
+ }>>;
686
+ updatedAt: z.ZodOptional<z.ZodObject<{
687
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
688
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
689
+ $lt: z.ZodOptional<z.ZodString>;
690
+ $gt: z.ZodOptional<z.ZodString>;
691
+ $lte: z.ZodOptional<z.ZodString>;
692
+ $gte: z.ZodOptional<z.ZodString>;
693
+ }, "strip", z.ZodTypeAny, {
694
+ $eq?: string | null | undefined;
695
+ $neq?: string | null | undefined;
696
+ $lt?: string | undefined;
697
+ $gt?: string | undefined;
698
+ $lte?: string | undefined;
699
+ $gte?: string | undefined;
700
+ }, {
701
+ $eq?: string | null | undefined;
702
+ $neq?: string | null | undefined;
703
+ $lt?: string | undefined;
704
+ $gt?: string | undefined;
705
+ $lte?: string | undefined;
706
+ $gte?: string | undefined;
707
+ }>>;
708
+ deletedAt: z.ZodOptional<z.ZodObject<{
709
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
710
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
711
+ $lt: z.ZodOptional<z.ZodString>;
712
+ $gt: z.ZodOptional<z.ZodString>;
713
+ $lte: z.ZodOptional<z.ZodString>;
714
+ $gte: z.ZodOptional<z.ZodString>;
715
+ }, "strip", z.ZodTypeAny, {
716
+ $eq?: string | null | undefined;
717
+ $neq?: string | null | undefined;
718
+ $lt?: string | undefined;
719
+ $gt?: string | undefined;
720
+ $lte?: string | undefined;
721
+ $gte?: string | undefined;
722
+ }, {
723
+ $eq?: string | null | undefined;
724
+ $neq?: string | null | undefined;
725
+ $lt?: string | undefined;
726
+ $gt?: string | undefined;
727
+ $lte?: string | undefined;
728
+ $gte?: string | undefined;
729
+ }>>;
730
+ }, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodObject<{
731
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
732
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodString>>;
733
+ $lt: z.ZodOptional<z.ZodString>;
734
+ $gt: z.ZodOptional<z.ZodString>;
735
+ $lte: z.ZodOptional<z.ZodString>;
736
+ $gte: z.ZodOptional<z.ZodString>;
737
+ $like: z.ZodOptional<z.ZodString>;
738
+ $nlike: z.ZodOptional<z.ZodString>;
739
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
740
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>;
741
+ }, "strip", z.ZodTypeAny, {
742
+ $eq?: string | null | undefined;
743
+ $neq?: string | null | undefined;
744
+ $lt?: string | undefined;
745
+ $gt?: string | undefined;
746
+ $lte?: string | undefined;
747
+ $gte?: string | undefined;
748
+ $like?: string | undefined;
749
+ $nlike?: string | undefined;
750
+ $in?: (string | null)[] | undefined;
751
+ $nin?: (string | null)[] | undefined;
752
+ }, {
753
+ $eq?: string | null | undefined;
754
+ $neq?: string | null | undefined;
755
+ $lt?: string | undefined;
756
+ $gt?: string | undefined;
757
+ $lte?: string | undefined;
758
+ $gte?: string | undefined;
759
+ $like?: string | undefined;
760
+ $nlike?: string | undefined;
761
+ $in?: (string | null)[] | undefined;
762
+ $nin?: (string | null)[] | undefined;
763
+ }>, z.ZodNumber, z.ZodObject<{
764
+ $eq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
765
+ $neq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
766
+ $lt: z.ZodOptional<z.ZodNumber>;
767
+ $gt: z.ZodOptional<z.ZodNumber>;
768
+ $lte: z.ZodOptional<z.ZodNumber>;
769
+ $gte: z.ZodOptional<z.ZodNumber>;
770
+ $in: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
771
+ $nin: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
772
+ }, "strip", z.ZodTypeAny, {
773
+ $eq?: number | null | undefined;
774
+ $neq?: number | null | undefined;
775
+ $lt?: number | undefined;
776
+ $gt?: number | undefined;
777
+ $lte?: number | undefined;
778
+ $gte?: number | undefined;
779
+ $in?: (number | null)[] | undefined;
780
+ $nin?: (number | null)[] | undefined;
781
+ }, {
782
+ $eq?: number | null | undefined;
783
+ $neq?: number | null | undefined;
784
+ $lt?: number | undefined;
785
+ $gt?: number | undefined;
786
+ $lte?: number | undefined;
787
+ $gte?: number | undefined;
788
+ $in?: (number | null)[] | undefined;
789
+ $nin?: (number | null)[] | undefined;
790
+ }>, z.ZodBoolean, z.ZodNull, z.ZodUndefined, z.ZodObject<{
791
+ sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["ASC", "DESC"]>>>;
792
+ }, "strip", z.ZodTypeAny, {
793
+ sort?: Record<string, "ASC" | "DESC"> | undefined;
794
+ }, {
795
+ sort?: Record<string, "ASC" | "DESC"> | undefined;
796
+ }>]>>, "strip">>;
797
+ export type FilterCriteria2 = z.infer<typeof _FilterCriteria>;
42
798
  export type FilterCriteria = {
43
799
  /** Number of records to return. */
44
800
  limit?: number;
@@ -67,6 +823,5 @@ export type FilterCriteria = {
67
823
  /** Deleted at Date. `null` if not deleted */
68
824
  deletedAt?: DateMatcher | null;
69
825
  /** catch all bucket for other fields */
70
- [key: string]: string | string[] | StringMatcher | number | NumberMatcher | boolean | null | undefined;
826
+ [key: string]: string | string[] | StringMatcher | number | NumberMatcher | boolean | null | undefined | SortOptions;
71
827
  };
72
- export {};