losant_rest 1.10.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +18838 -4104
  3. data/docs/application.md +85 -0
  4. data/docs/applicationApiTokens.md +2 -2
  5. data/docs/applicationCertificateAuthorities.md +1 -1
  6. data/docs/applicationCertificates.md +1 -1
  7. data/docs/applicationKeys.md +1 -1
  8. data/docs/applicationTemplate.md +46 -0
  9. data/docs/applicationTemplates.md +77 -2
  10. data/docs/applications.md +1 -1
  11. data/docs/auditLogs.md +1 -1
  12. data/docs/dashboards.md +1 -1
  13. data/docs/dataTables.md +1 -1
  14. data/docs/device.md +7 -3
  15. data/docs/deviceRecipes.md +1 -1
  16. data/docs/devices.md +93 -5
  17. data/docs/edgeDeployments.md +1 -1
  18. data/docs/events.md +1 -1
  19. data/docs/experienceEndpoints.md +1 -0
  20. data/docs/experienceGroups.md +1 -1
  21. data/docs/experienceUsers.md +1 -1
  22. data/docs/experienceVersions.md +1 -1
  23. data/docs/experienceViews.md +1 -1
  24. data/docs/file.md +4 -4
  25. data/docs/files.md +1 -1
  26. data/docs/flow.md +94 -1
  27. data/docs/flowVersion.md +96 -1
  28. data/docs/flowVersions.md +1 -1
  29. data/docs/flows.md +2 -2
  30. data/docs/integrations.md +1 -1
  31. data/docs/me.md +0 -36
  32. data/docs/notebooks.md +1 -1
  33. data/docs/orgs.md +1 -1
  34. data/docs/webhooks.md +1 -1
  35. data/lib/losant_rest.rb +1 -0
  36. data/lib/losant_rest/application.rb +48 -0
  37. data/lib/losant_rest/application_api_tokens.rb +1 -1
  38. data/lib/losant_rest/application_template.rb +79 -0
  39. data/lib/losant_rest/application_templates.rb +89 -1
  40. data/lib/losant_rest/client.rb +6 -2
  41. data/lib/losant_rest/device.rb +11 -3
  42. data/lib/losant_rest/devices.rb +103 -3
  43. data/lib/losant_rest/experience_endpoints.rb +2 -0
  44. data/lib/losant_rest/file.rb +3 -3
  45. data/lib/losant_rest/flow.rb +115 -1
  46. data/lib/losant_rest/flow_version.rb +115 -1
  47. data/lib/losant_rest/me.rb +0 -41
  48. data/lib/losant_rest/version.rb +1 -1
  49. data/schemas/advancedDeviceQuery.json +110 -0
  50. data/schemas/advancedEventQuery.json +198 -0
  51. data/schemas/advancedQuery.json +22 -0
  52. data/schemas/application.json +13 -0
  53. data/schemas/applicationApiTokenPost.json +10 -1
  54. data/schemas/applicationApplyTemplatePatch.json +19 -0
  55. data/schemas/applicationCreationByTemplateResult.json +13 -0
  56. data/schemas/applicationPatch.json +5 -0
  57. data/schemas/applicationPost.json +13 -0
  58. data/schemas/applicationTemplate.json +20 -0
  59. data/schemas/applicationTemplateCategories.json +43 -0
  60. data/schemas/applicationTemplateCategory.json +23 -0
  61. data/schemas/applicationTemplates.json +32 -0
  62. data/schemas/applications.json +13 -0
  63. data/schemas/authedUser.json +3 -0
  64. data/schemas/changePassword.json +2 -2
  65. data/schemas/dashboard.json +1288 -145
  66. data/schemas/dashboardPatch.json +1288 -145
  67. data/schemas/dashboardPost.json +1288 -145
  68. data/schemas/dashboards.json +1288 -145
  69. data/schemas/dataExport.json +142 -0
  70. data/schemas/dataTableRowsExport.json +22 -0
  71. data/schemas/device.json +16 -3
  72. data/schemas/deviceAttributeDataTypeFilter.json +29 -0
  73. data/schemas/deviceClassFilter.json +1 -2
  74. data/schemas/devicePatch.json +16 -3
  75. data/schemas/devicePost.json +16 -3
  76. data/schemas/deviceRecipe.json +16 -3
  77. data/schemas/deviceRecipePatch.json +16 -3
  78. data/schemas/deviceRecipePost.json +16 -3
  79. data/schemas/deviceRecipes.json +16 -3
  80. data/schemas/devices.json +16 -3
  81. data/schemas/devicesDataRemoved.json +12 -0
  82. data/schemas/devicesDeletePost.json +1034 -0
  83. data/schemas/devicesDeleted.json +12 -0
  84. data/schemas/devicesExportPost.json +1035 -0
  85. data/schemas/devicesPatch.json +1773 -7
  86. data/schemas/devicesRemoveDataPost.json +1056 -0
  87. data/schemas/devicesUpdated.json +18 -0
  88. data/schemas/eventPost.json +22 -0
  89. data/schemas/eventsExport.json +198 -0
  90. data/schemas/experienceDomain.json +1 -1
  91. data/schemas/experienceDomainPatch.json +1 -1
  92. data/schemas/experienceDomainPost.json +1 -1
  93. data/schemas/experienceDomains.json +1 -1
  94. data/schemas/experienceLinkedResources.json +372 -3
  95. data/schemas/experienceVersion.json +1 -1
  96. data/schemas/experienceVersions.json +1 -1
  97. data/schemas/flow.json +124 -1
  98. data/schemas/flowErrors.json +87 -0
  99. data/schemas/flowPatch.json +124 -1
  100. data/schemas/flowPost.json +124 -1
  101. data/schemas/flowStats.json +54 -0
  102. data/schemas/flowVersion.json +248 -2
  103. data/schemas/flowVersionPost.json +124 -1
  104. data/schemas/flowVersions.json +248 -2
  105. data/schemas/flows.json +124 -1
  106. data/schemas/flowsImportPost.json +248 -2
  107. data/schemas/flowsImportResult.json +372 -3
  108. data/schemas/githubLogin.json +16 -4
  109. data/schemas/me.json +3 -3
  110. data/schemas/mePatch.json +2 -2
  111. data/schemas/multiDeviceCommand.json +1019 -0
  112. data/schemas/notebook.json +89 -0
  113. data/schemas/notebookPatch.json +89 -0
  114. data/schemas/notebookPost.json +89 -0
  115. data/schemas/notebooks.json +89 -0
  116. data/schemas/org.json +1 -1
  117. data/schemas/orgInviteInfo.json +3 -0
  118. data/schemas/orgInvitePost.json +3 -0
  119. data/schemas/orgInvites.json +3 -0
  120. data/schemas/orgPatch.json +1 -1
  121. data/schemas/orgs.json +1 -1
  122. data/schemas/passwordResetFinish.json +2 -2
  123. data/schemas/samlResponse.json +1 -1
  124. data/schemas/templateKeywords.json +14 -0
  125. data/schemas/timeSeriesData.json +101 -12
  126. data/schemas/timeSeriesQuery.json +101 -12
  127. data/schemas/userCredentials.json +14 -3
  128. data/schemas/userPost.json +22 -7
  129. metadata +20 -5
@@ -4,7 +4,8 @@
4
4
  "properties": {
5
5
  "accessToken": {
6
6
  "type": "string",
7
- "minLength": 1
7
+ "minLength": 1,
8
+ "maxLength": 1024
8
9
  },
9
10
  "requestedScopes": {
10
11
  "type": "array",
@@ -68,10 +69,12 @@
68
69
  "notebooks.*",
69
70
  "webhook.*",
70
71
  "webhooks.*",
72
+ "application.applyTemplate",
71
73
  "application.archiveData",
72
74
  "application.backfillArchiveData",
73
75
  "application.clone",
74
76
  "application.export",
77
+ "application.import",
75
78
  "application.fullEventsArchive",
76
79
  "application.fullDataTablesArchive",
77
80
  "application.debug",
@@ -142,7 +145,10 @@
142
145
  "deviceRecipe.patch",
143
146
  "deviceRecipes.get",
144
147
  "deviceRecipes.post",
148
+ "devices.attributeNames",
145
149
  "devices.patch",
150
+ "devices.delete",
151
+ "devices.removeData",
146
152
  "devices.detailedSummary",
147
153
  "devices.export",
148
154
  "devices.get",
@@ -213,23 +219,27 @@
213
219
  "file.upload",
214
220
  "files.get",
215
221
  "files.post",
222
+ "flow.clearStorageEntries",
216
223
  "flow.debug",
217
224
  "flow.delete",
218
- "flow.clearStorageEntries",
225
+ "flow.errors",
219
226
  "flow.get",
220
227
  "flow.getStorageEntries",
221
228
  "flow.log",
222
229
  "flow.patch",
223
230
  "flow.pressVirtualButton",
224
231
  "flow.setStorageEntry",
232
+ "flow.stats",
225
233
  "flows.get",
226
234
  "flows.getByVersion",
227
235
  "flows.import",
228
236
  "flows.post",
229
237
  "flowVersion.delete",
238
+ "flowVersion.errors",
230
239
  "flowVersion.get",
231
240
  "flowVersion.log",
232
241
  "flowVersion.patch",
242
+ "flowVersion.stats",
233
243
  "flowVersions.get",
234
244
  "flowVersions.post",
235
245
  "integration.delete",
@@ -297,8 +307,12 @@
297
307
  "enum": [
298
308
  "all.User",
299
309
  "all.User.read",
310
+ "applicationTemplate.*",
311
+ "applicationTemplate.get",
300
312
  "applicationTemplates.*",
301
313
  "applicationTemplates.get",
314
+ "applicationTemplates.getCategories",
315
+ "applicationTemplates.getUniqueKeywords",
302
316
  "me.*",
303
317
  "orgs.*",
304
318
  "me.get",
@@ -310,8 +324,6 @@
310
324
  "me.disableTwoFactorAuth",
311
325
  "me.disconnectGithub",
312
326
  "me.connectGithub",
313
- "me.disconnectTwitter",
314
- "me.connectTwitter",
315
327
  "me.addRecentItem",
316
328
  "me.fetchRecentItems",
317
329
  "me.payloadCounts",
@@ -64,6 +64,9 @@
64
64
  "emailVerified": {
65
65
  "type": "boolean"
66
66
  },
67
+ "needsToVerifyEmail": {
68
+ "type": "boolean"
69
+ },
67
70
  "twoFactorAuthEnabled": {
68
71
  "type": "boolean"
69
72
  },
@@ -73,9 +76,6 @@
73
76
  "githubName": {
74
77
  "type": "string"
75
78
  },
76
- "twitterName": {
77
- "type": "string"
78
- },
79
79
  "avatarUrl": {
80
80
  "type": "string",
81
81
  "format": "url"
@@ -39,9 +39,9 @@
39
39
  },
40
40
  "password": {
41
41
  "type": "string",
42
- "minLength": 8,
42
+ "minLength": 12,
43
43
  "maxLength": 2048,
44
- "pattern": "^(?=.*[A-Z])(?=.*[^A-z0-9])(?=.*[0-9])(?=.*[a-z]).{8,}$"
44
+ "pattern": "^(?=.*[A-Z])(?=.*[^A-Za-z0-9])(?=.*[0-9])(?=.*[a-z]).{12,}$"
45
45
  },
46
46
  "tokenCutoff": {
47
47
  "type": "string",
@@ -56,6 +56,1025 @@
56
56
  "pattern": "^[A-Fa-f\\d]{24}$"
57
57
  },
58
58
  "maxItems": 1000
59
+ },
60
+ "deviceQuery": {
61
+ "title": "Advanced Device Query",
62
+ "description": "Schema for advanced device queries",
63
+ "type": "object",
64
+ "properties": {
65
+ "$and": {
66
+ "type": "array",
67
+ "items": {
68
+ "$ref": "#/definitions/advancedDeviceQuery"
69
+ },
70
+ "maxItems": 100
71
+ },
72
+ "$or": {
73
+ "type": "array",
74
+ "items": {
75
+ "$ref": "#/definitions/advancedDeviceQuery"
76
+ },
77
+ "maxItems": 100
78
+ },
79
+ "$nor": {
80
+ "type": "array",
81
+ "items": {
82
+ "$ref": "#/definitions/advancedDeviceQuery"
83
+ },
84
+ "maxItems": 100
85
+ },
86
+ "id": {
87
+ "oneOf": [
88
+ {
89
+ "oneOf": [
90
+ {
91
+ "type": "string",
92
+ "pattern": "^[A-Fa-f\\d]{24}$"
93
+ },
94
+ {
95
+ "type": "null"
96
+ }
97
+ ]
98
+ },
99
+ {
100
+ "type": "object",
101
+ "properties": {
102
+ "$eq": {
103
+ "oneOf": [
104
+ {
105
+ "type": "string",
106
+ "pattern": "^[A-Fa-f\\d]{24}$"
107
+ },
108
+ {
109
+ "type": "null"
110
+ }
111
+ ]
112
+ },
113
+ "$ne": {
114
+ "oneOf": [
115
+ {
116
+ "type": "string",
117
+ "pattern": "^[A-Fa-f\\d]{24}$"
118
+ },
119
+ {
120
+ "type": "null"
121
+ }
122
+ ]
123
+ },
124
+ "$in": {
125
+ "type": "array",
126
+ "maxItems": 100,
127
+ "items": {
128
+ "type": "string",
129
+ "pattern": "^[A-Fa-f\\d]{24}$"
130
+ }
131
+ },
132
+ "$nin": {
133
+ "type": "array",
134
+ "maxItems": 100,
135
+ "items": {
136
+ "type": "string",
137
+ "pattern": "^[A-Fa-f\\d]{24}$"
138
+ }
139
+ }
140
+ },
141
+ "additionalProperties": false,
142
+ "minProperties": 1,
143
+ "maxProperties": 1
144
+ }
145
+ ]
146
+ },
147
+ "creationDate": {
148
+ "oneOf": [
149
+ {
150
+ "type": [
151
+ "string",
152
+ "number",
153
+ "boolean",
154
+ "null"
155
+ ]
156
+ },
157
+ {
158
+ "type": "object",
159
+ "properties": {
160
+ "$eq": {
161
+ "type": [
162
+ "string",
163
+ "number",
164
+ "boolean",
165
+ "null"
166
+ ]
167
+ },
168
+ "$ne": {
169
+ "type": [
170
+ "string",
171
+ "number",
172
+ "boolean",
173
+ "null"
174
+ ]
175
+ },
176
+ "$gt": {
177
+ "type": [
178
+ "string",
179
+ "number",
180
+ "boolean",
181
+ "null"
182
+ ]
183
+ },
184
+ "$lt": {
185
+ "type": [
186
+ "string",
187
+ "number",
188
+ "boolean",
189
+ "null"
190
+ ]
191
+ },
192
+ "$gte": {
193
+ "type": [
194
+ "string",
195
+ "number",
196
+ "boolean",
197
+ "null"
198
+ ]
199
+ },
200
+ "$lte": {
201
+ "type": [
202
+ "string",
203
+ "number",
204
+ "boolean",
205
+ "null"
206
+ ]
207
+ },
208
+ "$startsWith": {
209
+ "type": "string",
210
+ "minLength": 1
211
+ },
212
+ "$endsWith": {
213
+ "type": "string",
214
+ "minLength": 1
215
+ },
216
+ "$contains": {
217
+ "type": "string",
218
+ "minLength": 1
219
+ },
220
+ "$ci": {
221
+ "type": "boolean"
222
+ },
223
+ "$in": {
224
+ "type": "array",
225
+ "maxItems": 100,
226
+ "items": {
227
+ "type": [
228
+ "string",
229
+ "number",
230
+ "boolean"
231
+ ]
232
+ }
233
+ },
234
+ "$nin": {
235
+ "type": "array",
236
+ "maxItems": 100,
237
+ "items": {
238
+ "type": [
239
+ "string",
240
+ "number",
241
+ "boolean"
242
+ ]
243
+ }
244
+ }
245
+ },
246
+ "additionalProperties": false
247
+ }
248
+ ]
249
+ },
250
+ "lastUpdated": {
251
+ "oneOf": [
252
+ {
253
+ "type": [
254
+ "string",
255
+ "number",
256
+ "boolean",
257
+ "null"
258
+ ]
259
+ },
260
+ {
261
+ "type": "object",
262
+ "properties": {
263
+ "$eq": {
264
+ "type": [
265
+ "string",
266
+ "number",
267
+ "boolean",
268
+ "null"
269
+ ]
270
+ },
271
+ "$ne": {
272
+ "type": [
273
+ "string",
274
+ "number",
275
+ "boolean",
276
+ "null"
277
+ ]
278
+ },
279
+ "$gt": {
280
+ "type": [
281
+ "string",
282
+ "number",
283
+ "boolean",
284
+ "null"
285
+ ]
286
+ },
287
+ "$lt": {
288
+ "type": [
289
+ "string",
290
+ "number",
291
+ "boolean",
292
+ "null"
293
+ ]
294
+ },
295
+ "$gte": {
296
+ "type": [
297
+ "string",
298
+ "number",
299
+ "boolean",
300
+ "null"
301
+ ]
302
+ },
303
+ "$lte": {
304
+ "type": [
305
+ "string",
306
+ "number",
307
+ "boolean",
308
+ "null"
309
+ ]
310
+ },
311
+ "$startsWith": {
312
+ "type": "string",
313
+ "minLength": 1
314
+ },
315
+ "$endsWith": {
316
+ "type": "string",
317
+ "minLength": 1
318
+ },
319
+ "$contains": {
320
+ "type": "string",
321
+ "minLength": 1
322
+ },
323
+ "$ci": {
324
+ "type": "boolean"
325
+ },
326
+ "$in": {
327
+ "type": "array",
328
+ "maxItems": 100,
329
+ "items": {
330
+ "type": [
331
+ "string",
332
+ "number",
333
+ "boolean"
334
+ ]
335
+ }
336
+ },
337
+ "$nin": {
338
+ "type": "array",
339
+ "maxItems": 100,
340
+ "items": {
341
+ "type": [
342
+ "string",
343
+ "number",
344
+ "boolean"
345
+ ]
346
+ }
347
+ }
348
+ },
349
+ "additionalProperties": false
350
+ }
351
+ ]
352
+ },
353
+ "name": {
354
+ "oneOf": [
355
+ {
356
+ "type": [
357
+ "string",
358
+ "number",
359
+ "boolean",
360
+ "null"
361
+ ]
362
+ },
363
+ {
364
+ "type": "object",
365
+ "properties": {
366
+ "$eq": {
367
+ "type": [
368
+ "string",
369
+ "number",
370
+ "boolean",
371
+ "null"
372
+ ]
373
+ },
374
+ "$ne": {
375
+ "type": [
376
+ "string",
377
+ "number",
378
+ "boolean",
379
+ "null"
380
+ ]
381
+ },
382
+ "$gt": {
383
+ "type": [
384
+ "string",
385
+ "number",
386
+ "boolean",
387
+ "null"
388
+ ]
389
+ },
390
+ "$lt": {
391
+ "type": [
392
+ "string",
393
+ "number",
394
+ "boolean",
395
+ "null"
396
+ ]
397
+ },
398
+ "$gte": {
399
+ "type": [
400
+ "string",
401
+ "number",
402
+ "boolean",
403
+ "null"
404
+ ]
405
+ },
406
+ "$lte": {
407
+ "type": [
408
+ "string",
409
+ "number",
410
+ "boolean",
411
+ "null"
412
+ ]
413
+ },
414
+ "$startsWith": {
415
+ "type": "string",
416
+ "minLength": 1
417
+ },
418
+ "$endsWith": {
419
+ "type": "string",
420
+ "minLength": 1
421
+ },
422
+ "$contains": {
423
+ "type": "string",
424
+ "minLength": 1
425
+ },
426
+ "$ci": {
427
+ "type": "boolean"
428
+ },
429
+ "$in": {
430
+ "type": "array",
431
+ "maxItems": 100,
432
+ "items": {
433
+ "type": [
434
+ "string",
435
+ "number",
436
+ "boolean"
437
+ ]
438
+ }
439
+ },
440
+ "$nin": {
441
+ "type": "array",
442
+ "maxItems": 100,
443
+ "items": {
444
+ "type": [
445
+ "string",
446
+ "number",
447
+ "boolean"
448
+ ]
449
+ }
450
+ }
451
+ },
452
+ "additionalProperties": false
453
+ }
454
+ ]
455
+ },
456
+ "deviceClass": {
457
+ "oneOf": [
458
+ {
459
+ "type": [
460
+ "string",
461
+ "number",
462
+ "boolean",
463
+ "null"
464
+ ]
465
+ },
466
+ {
467
+ "type": "object",
468
+ "properties": {
469
+ "$eq": {
470
+ "type": [
471
+ "string",
472
+ "number",
473
+ "boolean",
474
+ "null"
475
+ ]
476
+ },
477
+ "$ne": {
478
+ "type": [
479
+ "string",
480
+ "number",
481
+ "boolean",
482
+ "null"
483
+ ]
484
+ },
485
+ "$gt": {
486
+ "type": [
487
+ "string",
488
+ "number",
489
+ "boolean",
490
+ "null"
491
+ ]
492
+ },
493
+ "$lt": {
494
+ "type": [
495
+ "string",
496
+ "number",
497
+ "boolean",
498
+ "null"
499
+ ]
500
+ },
501
+ "$gte": {
502
+ "type": [
503
+ "string",
504
+ "number",
505
+ "boolean",
506
+ "null"
507
+ ]
508
+ },
509
+ "$lte": {
510
+ "type": [
511
+ "string",
512
+ "number",
513
+ "boolean",
514
+ "null"
515
+ ]
516
+ },
517
+ "$startsWith": {
518
+ "type": "string",
519
+ "minLength": 1
520
+ },
521
+ "$endsWith": {
522
+ "type": "string",
523
+ "minLength": 1
524
+ },
525
+ "$contains": {
526
+ "type": "string",
527
+ "minLength": 1
528
+ },
529
+ "$ci": {
530
+ "type": "boolean"
531
+ },
532
+ "$in": {
533
+ "type": "array",
534
+ "maxItems": 100,
535
+ "items": {
536
+ "type": [
537
+ "string",
538
+ "number",
539
+ "boolean"
540
+ ]
541
+ }
542
+ },
543
+ "$nin": {
544
+ "type": "array",
545
+ "maxItems": 100,
546
+ "items": {
547
+ "type": [
548
+ "string",
549
+ "number",
550
+ "boolean"
551
+ ]
552
+ }
553
+ }
554
+ },
555
+ "additionalProperties": false
556
+ }
557
+ ]
558
+ },
559
+ "gatewayId": {
560
+ "oneOf": [
561
+ {
562
+ "oneOf": [
563
+ {
564
+ "type": "string",
565
+ "pattern": "^[A-Fa-f\\d]{24}$"
566
+ },
567
+ {
568
+ "type": "null"
569
+ }
570
+ ]
571
+ },
572
+ {
573
+ "type": "object",
574
+ "properties": {
575
+ "$eq": {
576
+ "oneOf": [
577
+ {
578
+ "type": "string",
579
+ "pattern": "^[A-Fa-f\\d]{24}$"
580
+ },
581
+ {
582
+ "type": "null"
583
+ }
584
+ ]
585
+ },
586
+ "$ne": {
587
+ "oneOf": [
588
+ {
589
+ "type": "string",
590
+ "pattern": "^[A-Fa-f\\d]{24}$"
591
+ },
592
+ {
593
+ "type": "null"
594
+ }
595
+ ]
596
+ },
597
+ "$in": {
598
+ "type": "array",
599
+ "maxItems": 100,
600
+ "items": {
601
+ "type": "string",
602
+ "pattern": "^[A-Fa-f\\d]{24}$"
603
+ }
604
+ },
605
+ "$nin": {
606
+ "type": "array",
607
+ "maxItems": 100,
608
+ "items": {
609
+ "type": "string",
610
+ "pattern": "^[A-Fa-f\\d]{24}$"
611
+ }
612
+ }
613
+ },
614
+ "additionalProperties": false,
615
+ "minProperties": 1,
616
+ "maxProperties": 1
617
+ }
618
+ ]
619
+ },
620
+ "parentId": {
621
+ "oneOf": [
622
+ {
623
+ "oneOf": [
624
+ {
625
+ "type": "string",
626
+ "pattern": "^[A-Fa-f\\d]{24}$"
627
+ },
628
+ {
629
+ "type": "null"
630
+ }
631
+ ]
632
+ },
633
+ {
634
+ "type": "object",
635
+ "properties": {
636
+ "$eq": {
637
+ "oneOf": [
638
+ {
639
+ "type": "string",
640
+ "pattern": "^[A-Fa-f\\d]{24}$"
641
+ },
642
+ {
643
+ "type": "null"
644
+ }
645
+ ]
646
+ },
647
+ "$ne": {
648
+ "oneOf": [
649
+ {
650
+ "type": "string",
651
+ "pattern": "^[A-Fa-f\\d]{24}$"
652
+ },
653
+ {
654
+ "type": "null"
655
+ }
656
+ ]
657
+ },
658
+ "$in": {
659
+ "type": "array",
660
+ "maxItems": 100,
661
+ "items": {
662
+ "type": "string",
663
+ "pattern": "^[A-Fa-f\\d]{24}$"
664
+ }
665
+ },
666
+ "$nin": {
667
+ "type": "array",
668
+ "maxItems": 100,
669
+ "items": {
670
+ "type": "string",
671
+ "pattern": "^[A-Fa-f\\d]{24}$"
672
+ }
673
+ }
674
+ },
675
+ "additionalProperties": false,
676
+ "minProperties": 1,
677
+ "maxProperties": 1
678
+ }
679
+ ]
680
+ },
681
+ "ancestorId": {
682
+ "oneOf": [
683
+ {
684
+ "oneOf": [
685
+ {
686
+ "type": "string",
687
+ "pattern": "^[A-Fa-f\\d]{24}$"
688
+ },
689
+ {
690
+ "type": "null"
691
+ }
692
+ ]
693
+ },
694
+ {
695
+ "type": "object",
696
+ "properties": {
697
+ "$eq": {
698
+ "oneOf": [
699
+ {
700
+ "type": "string",
701
+ "pattern": "^[A-Fa-f\\d]{24}$"
702
+ },
703
+ {
704
+ "type": "null"
705
+ }
706
+ ]
707
+ },
708
+ "$ne": {
709
+ "oneOf": [
710
+ {
711
+ "type": "string",
712
+ "pattern": "^[A-Fa-f\\d]{24}$"
713
+ },
714
+ {
715
+ "type": "null"
716
+ }
717
+ ]
718
+ },
719
+ "$in": {
720
+ "type": "array",
721
+ "maxItems": 100,
722
+ "items": {
723
+ "type": "string",
724
+ "pattern": "^[A-Fa-f\\d]{24}$"
725
+ }
726
+ },
727
+ "$nin": {
728
+ "type": "array",
729
+ "maxItems": 100,
730
+ "items": {
731
+ "type": "string",
732
+ "pattern": "^[A-Fa-f\\d]{24}$"
733
+ }
734
+ }
735
+ },
736
+ "additionalProperties": false,
737
+ "minProperties": 1,
738
+ "maxProperties": 1
739
+ }
740
+ ]
741
+ },
742
+ "attributeName": {
743
+ "oneOf": [
744
+ {
745
+ "type": [
746
+ "string",
747
+ "number",
748
+ "boolean",
749
+ "null"
750
+ ]
751
+ },
752
+ {
753
+ "type": "object",
754
+ "properties": {
755
+ "$eq": {
756
+ "type": [
757
+ "string",
758
+ "number",
759
+ "boolean",
760
+ "null"
761
+ ]
762
+ },
763
+ "$ne": {
764
+ "type": [
765
+ "string",
766
+ "number",
767
+ "boolean",
768
+ "null"
769
+ ]
770
+ },
771
+ "$gt": {
772
+ "type": [
773
+ "string",
774
+ "number",
775
+ "boolean",
776
+ "null"
777
+ ]
778
+ },
779
+ "$lt": {
780
+ "type": [
781
+ "string",
782
+ "number",
783
+ "boolean",
784
+ "null"
785
+ ]
786
+ },
787
+ "$gte": {
788
+ "type": [
789
+ "string",
790
+ "number",
791
+ "boolean",
792
+ "null"
793
+ ]
794
+ },
795
+ "$lte": {
796
+ "type": [
797
+ "string",
798
+ "number",
799
+ "boolean",
800
+ "null"
801
+ ]
802
+ },
803
+ "$startsWith": {
804
+ "type": "string",
805
+ "minLength": 1
806
+ },
807
+ "$endsWith": {
808
+ "type": "string",
809
+ "minLength": 1
810
+ },
811
+ "$contains": {
812
+ "type": "string",
813
+ "minLength": 1
814
+ },
815
+ "$ci": {
816
+ "type": "boolean"
817
+ },
818
+ "$in": {
819
+ "type": "array",
820
+ "maxItems": 100,
821
+ "items": {
822
+ "type": [
823
+ "string",
824
+ "number",
825
+ "boolean"
826
+ ]
827
+ }
828
+ },
829
+ "$nin": {
830
+ "type": "array",
831
+ "maxItems": 100,
832
+ "items": {
833
+ "type": [
834
+ "string",
835
+ "number",
836
+ "boolean"
837
+ ]
838
+ }
839
+ }
840
+ },
841
+ "additionalProperties": false
842
+ }
843
+ ]
844
+ },
845
+ "experienceUserId": {
846
+ "oneOf": [
847
+ {
848
+ "oneOf": [
849
+ {
850
+ "type": "string",
851
+ "pattern": "^[A-Fa-f\\d]{24}$"
852
+ },
853
+ {
854
+ "type": "null"
855
+ }
856
+ ]
857
+ },
858
+ {
859
+ "type": "object",
860
+ "properties": {
861
+ "$eq": {
862
+ "oneOf": [
863
+ {
864
+ "type": "string",
865
+ "pattern": "^[A-Fa-f\\d]{24}$"
866
+ },
867
+ {
868
+ "type": "null"
869
+ }
870
+ ]
871
+ },
872
+ "$ne": {
873
+ "oneOf": [
874
+ {
875
+ "type": "string",
876
+ "pattern": "^[A-Fa-f\\d]{24}$"
877
+ },
878
+ {
879
+ "type": "null"
880
+ }
881
+ ]
882
+ },
883
+ "$in": {
884
+ "type": "array",
885
+ "maxItems": 100,
886
+ "items": {
887
+ "type": "string",
888
+ "pattern": "^[A-Fa-f\\d]{24}$"
889
+ }
890
+ },
891
+ "$nin": {
892
+ "type": "array",
893
+ "maxItems": 100,
894
+ "items": {
895
+ "type": "string",
896
+ "pattern": "^[A-Fa-f\\d]{24}$"
897
+ }
898
+ }
899
+ },
900
+ "additionalProperties": false,
901
+ "minProperties": 1,
902
+ "maxProperties": 1
903
+ }
904
+ ]
905
+ },
906
+ "experienceGroupId": {
907
+ "oneOf": [
908
+ {
909
+ "oneOf": [
910
+ {
911
+ "type": "string",
912
+ "pattern": "^[A-Fa-f\\d]{24}$"
913
+ },
914
+ {
915
+ "type": "null"
916
+ }
917
+ ]
918
+ },
919
+ {
920
+ "type": "object",
921
+ "properties": {
922
+ "$eq": {
923
+ "oneOf": [
924
+ {
925
+ "type": "string",
926
+ "pattern": "^[A-Fa-f\\d]{24}$"
927
+ },
928
+ {
929
+ "type": "null"
930
+ }
931
+ ]
932
+ },
933
+ "$ne": {
934
+ "oneOf": [
935
+ {
936
+ "type": "string",
937
+ "pattern": "^[A-Fa-f\\d]{24}$"
938
+ },
939
+ {
940
+ "type": "null"
941
+ }
942
+ ]
943
+ },
944
+ "$in": {
945
+ "type": "array",
946
+ "maxItems": 100,
947
+ "items": {
948
+ "type": "string",
949
+ "pattern": "^[A-Fa-f\\d]{24}$"
950
+ }
951
+ },
952
+ "$nin": {
953
+ "type": "array",
954
+ "maxItems": 100,
955
+ "items": {
956
+ "type": "string",
957
+ "pattern": "^[A-Fa-f\\d]{24}$"
958
+ }
959
+ }
960
+ },
961
+ "additionalProperties": false,
962
+ "minProperties": 1,
963
+ "maxProperties": 1
964
+ }
965
+ ]
966
+ },
967
+ "tags": {
968
+ "oneOf": [
969
+ {
970
+ "oneOf": [
971
+ {
972
+ "type": "object",
973
+ "properties": {
974
+ "$tagKey": {
975
+ "type": "string",
976
+ "maxLength": 255
977
+ },
978
+ "$tagValue": {
979
+ "type": "string",
980
+ "maxLength": 255
981
+ }
982
+ },
983
+ "additionalProperties": false,
984
+ "minProperties": 1
985
+ },
986
+ {
987
+ "type": "object",
988
+ "patternProperties": {
989
+ "^[0-9a-zA-Z_-]{1,255}": {
990
+ "type": "string",
991
+ "maxLength": 255
992
+ }
993
+ },
994
+ "additionalProperties": false
995
+ }
996
+ ]
997
+ },
998
+ {
999
+ "type": "object",
1000
+ "properties": {
1001
+ "$eq": {
1002
+ "oneOf": [
1003
+ {
1004
+ "type": "object",
1005
+ "properties": {
1006
+ "$tagKey": {
1007
+ "type": "string",
1008
+ "maxLength": 255
1009
+ },
1010
+ "$tagValue": {
1011
+ "type": "string",
1012
+ "maxLength": 255
1013
+ }
1014
+ },
1015
+ "additionalProperties": false,
1016
+ "minProperties": 1
1017
+ },
1018
+ {
1019
+ "type": "object",
1020
+ "patternProperties": {
1021
+ "^[0-9a-zA-Z_-]{1,255}": {
1022
+ "type": "string",
1023
+ "maxLength": 255
1024
+ }
1025
+ },
1026
+ "additionalProperties": false
1027
+ }
1028
+ ]
1029
+ }
1030
+ },
1031
+ "required": [
1032
+ "$eq"
1033
+ ],
1034
+ "additionalProperties": false
1035
+ },
1036
+ {
1037
+ "type": "object",
1038
+ "properties": {
1039
+ "$ne": {
1040
+ "oneOf": [
1041
+ {
1042
+ "type": "object",
1043
+ "properties": {
1044
+ "$tagKey": {
1045
+ "type": "string",
1046
+ "maxLength": 255
1047
+ },
1048
+ "$tagValue": {
1049
+ "type": "string",
1050
+ "maxLength": 255
1051
+ }
1052
+ },
1053
+ "additionalProperties": false,
1054
+ "minProperties": 1
1055
+ },
1056
+ {
1057
+ "type": "object",
1058
+ "patternProperties": {
1059
+ "^[0-9a-zA-Z_-]{1,255}": {
1060
+ "type": "string",
1061
+ "maxLength": 255
1062
+ }
1063
+ },
1064
+ "additionalProperties": false
1065
+ }
1066
+ ]
1067
+ }
1068
+ },
1069
+ "required": [
1070
+ "$ne"
1071
+ ],
1072
+ "additionalProperties": false
1073
+ }
1074
+ ]
1075
+ }
1076
+ },
1077
+ "additionalProperties": false
59
1078
  }
60
1079
  },
61
1080
  "required": [