losant_rest 1.9.1 → 1.10.2

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