losant_rest 1.15.1 → 1.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/docs/_schemas.md +12170 -4718
  4. data/docs/application.md +3 -4
  5. data/docs/applicationDashboard.md +43 -0
  6. data/docs/applications.md +3 -2
  7. data/docs/devices.md +40 -0
  8. data/docs/flows.md +38 -0
  9. data/docs/instanceCustomNode.md +222 -0
  10. data/docs/instanceCustomNodes.md +91 -0
  11. data/lib/losant_rest/application.rb +1 -1
  12. data/lib/losant_rest/application_api_token.rb +1 -1
  13. data/lib/losant_rest/application_api_tokens.rb +1 -1
  14. data/lib/losant_rest/application_certificate.rb +1 -1
  15. data/lib/losant_rest/application_certificate_authorities.rb +1 -1
  16. data/lib/losant_rest/application_certificate_authority.rb +1 -1
  17. data/lib/losant_rest/application_certificates.rb +1 -1
  18. data/lib/losant_rest/application_dashboard.rb +50 -1
  19. data/lib/losant_rest/application_dashboards.rb +1 -1
  20. data/lib/losant_rest/application_key.rb +1 -1
  21. data/lib/losant_rest/application_keys.rb +1 -1
  22. data/lib/losant_rest/application_template.rb +1 -1
  23. data/lib/losant_rest/application_templates.rb +1 -1
  24. data/lib/losant_rest/applications.rb +1 -1
  25. data/lib/losant_rest/audit_log.rb +1 -1
  26. data/lib/losant_rest/audit_logs.rb +1 -1
  27. data/lib/losant_rest/auth.rb +1 -1
  28. data/lib/losant_rest/client.rb +11 -3
  29. data/lib/losant_rest/dashboard.rb +1 -1
  30. data/lib/losant_rest/dashboards.rb +1 -1
  31. data/lib/losant_rest/data.rb +1 -1
  32. data/lib/losant_rest/data_table.rb +1 -1
  33. data/lib/losant_rest/data_table_row.rb +1 -1
  34. data/lib/losant_rest/data_table_rows.rb +1 -1
  35. data/lib/losant_rest/data_tables.rb +1 -1
  36. data/lib/losant_rest/device.rb +1 -1
  37. data/lib/losant_rest/device_recipe.rb +1 -1
  38. data/lib/losant_rest/device_recipes.rb +1 -1
  39. data/lib/losant_rest/devices.rb +50 -1
  40. data/lib/losant_rest/edge_deployment.rb +1 -1
  41. data/lib/losant_rest/edge_deployments.rb +1 -1
  42. data/lib/losant_rest/embedded_deployment.rb +1 -1
  43. data/lib/losant_rest/embedded_deployments.rb +1 -1
  44. data/lib/losant_rest/error.rb +1 -1
  45. data/lib/losant_rest/event.rb +1 -1
  46. data/lib/losant_rest/events.rb +1 -1
  47. data/lib/losant_rest/experience.rb +1 -1
  48. data/lib/losant_rest/experience_domain.rb +1 -1
  49. data/lib/losant_rest/experience_domains.rb +1 -1
  50. data/lib/losant_rest/experience_endpoint.rb +1 -1
  51. data/lib/losant_rest/experience_endpoints.rb +1 -1
  52. data/lib/losant_rest/experience_group.rb +1 -1
  53. data/lib/losant_rest/experience_groups.rb +1 -1
  54. data/lib/losant_rest/experience_slug.rb +1 -1
  55. data/lib/losant_rest/experience_slugs.rb +1 -1
  56. data/lib/losant_rest/experience_user.rb +1 -1
  57. data/lib/losant_rest/experience_users.rb +1 -1
  58. data/lib/losant_rest/experience_version.rb +1 -1
  59. data/lib/losant_rest/experience_versions.rb +1 -1
  60. data/lib/losant_rest/experience_view.rb +1 -1
  61. data/lib/losant_rest/experience_views.rb +1 -1
  62. data/lib/losant_rest/file.rb +1 -1
  63. data/lib/losant_rest/files.rb +1 -1
  64. data/lib/losant_rest/flow.rb +1 -1
  65. data/lib/losant_rest/flow_version.rb +1 -1
  66. data/lib/losant_rest/flow_versions.rb +1 -1
  67. data/lib/losant_rest/flows.rb +45 -1
  68. data/lib/losant_rest/instance.rb +1 -1
  69. data/lib/losant_rest/instance_api_token.rb +1 -1
  70. data/lib/losant_rest/instance_api_tokens.rb +1 -1
  71. data/lib/losant_rest/instance_custom_node.rb +282 -0
  72. data/lib/losant_rest/instance_custom_nodes.rb +136 -0
  73. data/lib/losant_rest/instance_member.rb +1 -1
  74. data/lib/losant_rest/instance_members.rb +1 -1
  75. data/lib/losant_rest/instance_org.rb +1 -1
  76. data/lib/losant_rest/instance_org_invite.rb +1 -1
  77. data/lib/losant_rest/instance_org_invites.rb +1 -1
  78. data/lib/losant_rest/instance_org_member.rb +1 -1
  79. data/lib/losant_rest/instance_org_members.rb +1 -1
  80. data/lib/losant_rest/instance_orgs.rb +1 -1
  81. data/lib/losant_rest/instances.rb +1 -1
  82. data/lib/losant_rest/integration.rb +1 -1
  83. data/lib/losant_rest/integrations.rb +1 -1
  84. data/lib/losant_rest/me.rb +1 -1
  85. data/lib/losant_rest/notebook.rb +1 -1
  86. data/lib/losant_rest/notebooks.rb +1 -1
  87. data/lib/losant_rest/org.rb +1 -1
  88. data/lib/losant_rest/org_invites.rb +1 -1
  89. data/lib/losant_rest/orgs.rb +1 -1
  90. data/lib/losant_rest/user_api_token.rb +1 -1
  91. data/lib/losant_rest/user_api_tokens.rb +1 -1
  92. data/lib/losant_rest/utils.rb +1 -1
  93. data/lib/losant_rest/version.rb +2 -2
  94. data/lib/losant_rest/webhook.rb +1 -1
  95. data/lib/losant_rest/webhooks.rb +1 -1
  96. data/lib/losant_rest.rb +3 -1
  97. data/schemas/apiTokenPost.json +13 -1
  98. data/schemas/application.json +1 -1
  99. data/schemas/applicationApplyTemplatePatch.json +5 -0
  100. data/schemas/applicationClonePost.json +5 -0
  101. data/schemas/applicationCreationByTemplateResult.json +1 -1
  102. data/schemas/applicationDashboardPost.json +162 -3
  103. data/schemas/applicationExportPost.json +4 -0
  104. data/schemas/applicationImportOptions.json +43 -0
  105. data/schemas/applicationPatch.json +1 -1
  106. data/schemas/applicationPost.json +1 -1
  107. data/schemas/applications.json +1 -1
  108. data/schemas/dashboard.json +162 -3
  109. data/schemas/dashboardPatch.json +162 -3
  110. data/schemas/dashboardPost.json +162 -3
  111. data/schemas/dashboardSendReport.json +20 -3
  112. data/schemas/dashboards.json +162 -3
  113. data/schemas/deviceNamesResponse.json +36 -0
  114. data/schemas/experienceBootstrapOptions.json +1 -1
  115. data/schemas/experienceLinkedResources.json +485 -5
  116. data/schemas/experienceSlug.json +1 -1
  117. data/schemas/experienceSlugPatch.json +1 -1
  118. data/schemas/experienceSlugPost.json +1 -1
  119. data/schemas/experienceSlugs.json +1 -1
  120. data/schemas/experienceUser.json +2 -1
  121. data/schemas/experienceUsers.json +2 -1
  122. data/schemas/flow.json +173 -0
  123. data/schemas/flowPatch.json +174 -0
  124. data/schemas/flowPost.json +174 -0
  125. data/schemas/flowVersion.json +312 -5
  126. data/schemas/flowVersionPost.json +156 -0
  127. data/schemas/flowVersions.json +312 -5
  128. data/schemas/flows.json +173 -0
  129. data/schemas/flowsImportPost.json +339 -2
  130. data/schemas/flowsImportResult.json +485 -5
  131. data/schemas/githubLogin.json +13 -1
  132. data/schemas/instanceCustomNode.json +589 -0
  133. data/schemas/instanceCustomNodePatch.json +674 -0
  134. data/schemas/instanceCustomNodePost.json +679 -0
  135. data/schemas/instanceCustomNodes.json +634 -0
  136. data/schemas/instanceMember.json +2 -2
  137. data/schemas/instanceMembers.json +2 -2
  138. data/schemas/instanceOrg.json +8 -0
  139. data/schemas/instanceOrgMember.json +2 -2
  140. data/schemas/instanceOrgs.json +8 -0
  141. data/schemas/integration.json +30 -2
  142. data/schemas/integrationPatch.json +30 -2
  143. data/schemas/integrationPost.json +30 -2
  144. data/schemas/integrations.json +30 -2
  145. data/schemas/me.json +2 -2
  146. data/schemas/mePatch.json +0 -1
  147. data/schemas/org.json +2 -2
  148. data/schemas/orgs.json +2 -2
  149. data/schemas/paletteResponse.json +785 -0
  150. data/schemas/userCredentials.json +13 -1
  151. data/schemas/userPost.json +13 -2
  152. metadata +13 -2
@@ -0,0 +1,634 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "items": {
6
+ "type": "array",
7
+ "items": {
8
+ "title": "Instance Custom Node",
9
+ "description": "Schema for a single Instance Custom Node",
10
+ "type": "object",
11
+ "properties": {
12
+ "id": {
13
+ "type": "string",
14
+ "pattern": "^[A-Fa-f\\d]{24}$"
15
+ },
16
+ "instanceCustomNodeId": {
17
+ "type": "string",
18
+ "pattern": "^[A-Fa-f\\d]{24}$"
19
+ },
20
+ "instanceId": {
21
+ "type": "string",
22
+ "pattern": "^[A-Fa-f\\d]{24}$"
23
+ },
24
+ "creationDate": {
25
+ "type": "string",
26
+ "format": "date-time"
27
+ },
28
+ "createdById": {
29
+ "type": "string",
30
+ "pattern": "^[A-Fa-f\\d]{24}$"
31
+ },
32
+ "createdByType": {
33
+ "type": "string",
34
+ "enum": [
35
+ "apiToken",
36
+ "user"
37
+ ]
38
+ },
39
+ "lastUpdated": {
40
+ "type": "string",
41
+ "format": "date-time"
42
+ },
43
+ "lastUpdatedById": {
44
+ "type": "string",
45
+ "pattern": "^[A-Fa-f\\d]{24}$"
46
+ },
47
+ "lastUpdatedByType": {
48
+ "type": "string",
49
+ "enum": [
50
+ "apiToken",
51
+ "user"
52
+ ]
53
+ },
54
+ "name": {
55
+ "type": "string",
56
+ "minLength": 1,
57
+ "maxLength": 255
58
+ },
59
+ "description": {
60
+ "type": "string",
61
+ "maxLength": 32767
62
+ },
63
+ "shortDescription": {
64
+ "type": "string",
65
+ "maxLength": 1024
66
+ },
67
+ "iconData": {
68
+ "type": "string",
69
+ "maxLength": 32767,
70
+ "pattern": "^data:image/(jpg|jpeg|png|svg\\+xml);base64,[0-9a-zA-Z+/=]*$"
71
+ },
72
+ "docsUrl": {
73
+ "type": "string",
74
+ "maxLength": 1024
75
+ },
76
+ "category": {
77
+ "type": "string",
78
+ "enum": [
79
+ "data",
80
+ "experience",
81
+ "logic",
82
+ "output"
83
+ ]
84
+ },
85
+ "minimumAgentVersion": {
86
+ "type": "string",
87
+ "pattern": "^(0|([1-9]\\d*))\\.(0|([1-9]\\d*))\\.(0|([1-9]\\d*))$"
88
+ },
89
+ "triggers": {
90
+ "type": "array",
91
+ "items": {
92
+ "type": "object",
93
+ "properties": {
94
+ "key": {
95
+ "type": "string",
96
+ "maxLength": 1024
97
+ },
98
+ "type": {
99
+ "type": "string",
100
+ "enum": [
101
+ "customNodeStart"
102
+ ]
103
+ },
104
+ "config": {
105
+ "type": "object",
106
+ "additionalProperties": false
107
+ },
108
+ "meta": {
109
+ "type": "object",
110
+ "properties": {
111
+ "category": {
112
+ "type": "string",
113
+ "enum": [
114
+ "trigger"
115
+ ]
116
+ },
117
+ "name": {
118
+ "type": "string",
119
+ "enum": [
120
+ "customNodeStart"
121
+ ]
122
+ },
123
+ "label": {
124
+ "type": "string",
125
+ "minLength": 1,
126
+ "maxLength": 255
127
+ },
128
+ "x": {
129
+ "type": "number"
130
+ },
131
+ "y": {
132
+ "type": "number"
133
+ },
134
+ "uiId": {
135
+ "type": "string",
136
+ "maxLength": 48
137
+ },
138
+ "description": {
139
+ "type": "string",
140
+ "maxLength": 32767
141
+ }
142
+ },
143
+ "additionalProperties": false
144
+ },
145
+ "outputIds": {
146
+ "type": "array",
147
+ "items": {
148
+ "type": "array",
149
+ "items": {
150
+ "type": "string",
151
+ "maxLength": 48,
152
+ "minLength": 1
153
+ },
154
+ "maxItems": 100
155
+ },
156
+ "maxItems": 100
157
+ }
158
+ },
159
+ "required": [
160
+ "type"
161
+ ],
162
+ "additionalProperties": false
163
+ },
164
+ "maxItems": 1
165
+ },
166
+ "nodes": {
167
+ "type": "array",
168
+ "items": {
169
+ "type": "object",
170
+ "properties": {
171
+ "id": {
172
+ "type": "string",
173
+ "maxLength": 1024
174
+ },
175
+ "type": {
176
+ "type": "string",
177
+ "minLength": 1,
178
+ "maxLength": 1024
179
+ },
180
+ "config": {
181
+ "type": "object"
182
+ },
183
+ "meta": {
184
+ "type": "object"
185
+ },
186
+ "outputIds": {
187
+ "type": "array",
188
+ "items": {
189
+ "type": "array",
190
+ "items": {
191
+ "type": "string",
192
+ "maxLength": 48,
193
+ "minLength": 1
194
+ },
195
+ "maxItems": 100
196
+ },
197
+ "maxItems": 100
198
+ }
199
+ },
200
+ "additionalProperties": false,
201
+ "required": [
202
+ "type"
203
+ ]
204
+ }
205
+ },
206
+ "customNodeConfig": {
207
+ "type": "object",
208
+ "properties": {
209
+ "outputCount": {
210
+ "type": "number",
211
+ "enum": [
212
+ 1,
213
+ 2
214
+ ]
215
+ },
216
+ "resultMode": {
217
+ "type": "string",
218
+ "enum": [
219
+ "optional",
220
+ "required",
221
+ "none"
222
+ ]
223
+ },
224
+ "resultDescription": {
225
+ "type": "string",
226
+ "maxLength": 32767
227
+ },
228
+ "fields": {
229
+ "type": "array",
230
+ "maxItems": 100,
231
+ "items": {
232
+ "oneOf": [
233
+ {
234
+ "type": "object",
235
+ "properties": {
236
+ "type": {
237
+ "type": "string",
238
+ "enum": [
239
+ "checkbox"
240
+ ]
241
+ },
242
+ "label": {
243
+ "type": "string",
244
+ "minLength": 1,
245
+ "maxLength": 1024
246
+ },
247
+ "id": {
248
+ "type": "string",
249
+ "minLength": 1,
250
+ "maxLength": 1024
251
+ },
252
+ "description": {
253
+ "type": "string",
254
+ "maxLength": 32767
255
+ },
256
+ "defaultValue": {
257
+ "type": "boolean"
258
+ }
259
+ },
260
+ "additionalProperties": false,
261
+ "required": [
262
+ "type",
263
+ "label"
264
+ ]
265
+ },
266
+ {
267
+ "type": "object",
268
+ "properties": {
269
+ "type": {
270
+ "type": "string",
271
+ "enum": [
272
+ "select"
273
+ ]
274
+ },
275
+ "label": {
276
+ "type": "string",
277
+ "minLength": 1,
278
+ "maxLength": 1024
279
+ },
280
+ "id": {
281
+ "type": "string",
282
+ "minLength": 1,
283
+ "maxLength": 1024
284
+ },
285
+ "description": {
286
+ "type": "string",
287
+ "maxLength": 32767
288
+ },
289
+ "defaultValue": {
290
+ "type": "string",
291
+ "minLength": 1,
292
+ "maxLength": 1024
293
+ },
294
+ "options": {
295
+ "type": "array",
296
+ "minItems": 1,
297
+ "maxItems": 100,
298
+ "items": {
299
+ "type": "object",
300
+ "properties": {
301
+ "label": {
302
+ "type": "string",
303
+ "maxLength": 1024
304
+ },
305
+ "value": {
306
+ "type": "string",
307
+ "minLength": 1,
308
+ "maxLength": 1024
309
+ }
310
+ },
311
+ "additionalProperties": false,
312
+ "required": [
313
+ "value"
314
+ ]
315
+ }
316
+ }
317
+ },
318
+ "additionalProperties": false,
319
+ "required": [
320
+ "type",
321
+ "label",
322
+ "defaultValue",
323
+ "options"
324
+ ]
325
+ },
326
+ {
327
+ "type": "object",
328
+ "properties": {
329
+ "type": {
330
+ "type": "string",
331
+ "enum": [
332
+ "stringTemplate"
333
+ ]
334
+ },
335
+ "label": {
336
+ "type": "string",
337
+ "minLength": 1,
338
+ "maxLength": 1024
339
+ },
340
+ "id": {
341
+ "type": "string",
342
+ "minLength": 1,
343
+ "maxLength": 1024
344
+ },
345
+ "description": {
346
+ "type": "string",
347
+ "maxLength": 32767
348
+ },
349
+ "defaultValue": {
350
+ "type": "string",
351
+ "maxLength": 1024
352
+ },
353
+ "required": {
354
+ "type": "boolean"
355
+ },
356
+ "validRegExp": {
357
+ "type": "string",
358
+ "maxLength": 1024
359
+ }
360
+ },
361
+ "additionalProperties": false,
362
+ "required": [
363
+ "type",
364
+ "label"
365
+ ]
366
+ },
367
+ {
368
+ "type": "object",
369
+ "properties": {
370
+ "type": {
371
+ "type": "string",
372
+ "enum": [
373
+ "numberTemplate"
374
+ ]
375
+ },
376
+ "label": {
377
+ "type": "string",
378
+ "minLength": 1,
379
+ "maxLength": 1024
380
+ },
381
+ "id": {
382
+ "type": "string",
383
+ "minLength": 1,
384
+ "maxLength": 1024
385
+ },
386
+ "description": {
387
+ "type": "string",
388
+ "maxLength": 32767
389
+ },
390
+ "defaultValue": {
391
+ "type": "number"
392
+ },
393
+ "required": {
394
+ "type": "boolean"
395
+ },
396
+ "validMin": {
397
+ "type": "number"
398
+ },
399
+ "validMax": {
400
+ "type": "number"
401
+ }
402
+ },
403
+ "additionalProperties": false,
404
+ "required": [
405
+ "type",
406
+ "label"
407
+ ]
408
+ },
409
+ {
410
+ "type": "object",
411
+ "properties": {
412
+ "type": {
413
+ "type": "string",
414
+ "enum": [
415
+ "jsonTemplate"
416
+ ]
417
+ },
418
+ "label": {
419
+ "type": "string",
420
+ "minLength": 1,
421
+ "maxLength": 1024
422
+ },
423
+ "id": {
424
+ "type": "string",
425
+ "minLength": 1,
426
+ "maxLength": 1024
427
+ },
428
+ "description": {
429
+ "type": "string",
430
+ "maxLength": 32767
431
+ },
432
+ "defaultValue": {
433
+ "type": "string",
434
+ "maxLength": 32767
435
+ },
436
+ "required": {
437
+ "type": "boolean"
438
+ }
439
+ },
440
+ "additionalProperties": false,
441
+ "required": [
442
+ "type",
443
+ "label"
444
+ ]
445
+ },
446
+ {
447
+ "type": "object",
448
+ "properties": {
449
+ "type": {
450
+ "type": "string",
451
+ "enum": [
452
+ "payloadPath"
453
+ ]
454
+ },
455
+ "label": {
456
+ "type": "string",
457
+ "minLength": 1,
458
+ "maxLength": 1024
459
+ },
460
+ "id": {
461
+ "type": "string",
462
+ "minLength": 1,
463
+ "maxLength": 1024
464
+ },
465
+ "description": {
466
+ "type": "string",
467
+ "maxLength": 32767
468
+ },
469
+ "required": {
470
+ "type": "boolean"
471
+ }
472
+ },
473
+ "additionalProperties": false,
474
+ "required": [
475
+ "type",
476
+ "label"
477
+ ]
478
+ },
479
+ {
480
+ "type": "object",
481
+ "properties": {
482
+ "type": {
483
+ "type": "string",
484
+ "enum": [
485
+ "section"
486
+ ]
487
+ },
488
+ "label": {
489
+ "type": "string",
490
+ "minLength": 1,
491
+ "maxLength": 1024
492
+ },
493
+ "id": {
494
+ "type": "string",
495
+ "minLength": 1,
496
+ "maxLength": 1024
497
+ },
498
+ "description": {
499
+ "type": "string",
500
+ "maxLength": 32767
501
+ }
502
+ },
503
+ "additionalProperties": false,
504
+ "required": [
505
+ "type",
506
+ "label"
507
+ ]
508
+ }
509
+ ]
510
+ }
511
+ }
512
+ },
513
+ "additionalProperties": false,
514
+ "required": [
515
+ "outputCount",
516
+ "resultMode",
517
+ "fields"
518
+ ]
519
+ },
520
+ "customNodeSupports": {
521
+ "type": "array",
522
+ "items": {
523
+ "type": "string",
524
+ "enum": [
525
+ "cloud"
526
+ ]
527
+ }
528
+ },
529
+ "sourceApplicationId": {
530
+ "type": "string",
531
+ "pattern": "^[A-Fa-f\\d]{24}$"
532
+ },
533
+ "sourceFlowId": {
534
+ "type": "string",
535
+ "pattern": "^[A-Fa-f\\d]{24}$"
536
+ },
537
+ "sourceFlowVersion": {
538
+ "type": "string",
539
+ "minLength": 1,
540
+ "maxLength": 255
541
+ },
542
+ "stats": {
543
+ "type": "object",
544
+ "properties": {
545
+ "errorCount": {
546
+ "type": "integer"
547
+ },
548
+ "runCount": {
549
+ "type": "integer"
550
+ }
551
+ },
552
+ "additionalProperties": false
553
+ },
554
+ "usage": {
555
+ "type": "object",
556
+ "properties": {
557
+ "sandbox": {
558
+ "type": "object",
559
+ "properties": {
560
+ "appCount": {
561
+ "type": "integer"
562
+ },
563
+ "flowCount": {
564
+ "type": "integer"
565
+ }
566
+ },
567
+ "additionalProperties": false
568
+ }
569
+ },
570
+ "patternProperties": {
571
+ "^[A-Fa-f\\d]{24}$": {
572
+ "type": "object",
573
+ "properties": {
574
+ "appCount": {
575
+ "type": "integer"
576
+ },
577
+ "flowCount": {
578
+ "type": "integer"
579
+ },
580
+ "orgName": {
581
+ "type": "string",
582
+ "minLength": 1,
583
+ "maxLength": 255
584
+ },
585
+ "orgIconColor": {
586
+ "type": "string",
587
+ "maxLength": 64
588
+ }
589
+ },
590
+ "additionalProperties": false
591
+ }
592
+ },
593
+ "additionalProperties": false
594
+ }
595
+ }
596
+ }
597
+ },
598
+ "instanceId": {
599
+ "type": "string",
600
+ "pattern": "^[A-Fa-f\\d]{24}$"
601
+ },
602
+ "count": {
603
+ "type": "integer"
604
+ },
605
+ "totalCount": {
606
+ "type": "integer"
607
+ },
608
+ "perPage": {
609
+ "type": "integer"
610
+ },
611
+ "page": {
612
+ "type": "integer"
613
+ },
614
+ "filter": {
615
+ "type": "string"
616
+ },
617
+ "filterField": {
618
+ "type": "string"
619
+ },
620
+ "sortField": {
621
+ "type": "string"
622
+ },
623
+ "sortDirection": {
624
+ "type": "string",
625
+ "enum": [
626
+ "asc",
627
+ "desc",
628
+ "ASC",
629
+ "DESC",
630
+ ""
631
+ ]
632
+ }
633
+ }
634
+ }
@@ -22,7 +22,6 @@
22
22
  },
23
23
  "lastName": {
24
24
  "type": "string",
25
- "minLength": 1,
26
25
  "maxLength": 1024
27
26
  },
28
27
  "role": {
@@ -34,7 +33,8 @@
34
33
  },
35
34
  "avatarUrl": {
36
35
  "type": "string",
37
- "format": "url"
36
+ "format": "uri",
37
+ "maxLength": 1024
38
38
  },
39
39
  "twoFactorAuthEnabled": {
40
40
  "type": "boolean"
@@ -29,7 +29,6 @@
29
29
  },
30
30
  "lastName": {
31
31
  "type": "string",
32
- "minLength": 1,
33
32
  "maxLength": 1024
34
33
  },
35
34
  "role": {
@@ -41,7 +40,8 @@
41
40
  },
42
41
  "avatarUrl": {
43
42
  "type": "string",
44
- "format": "url"
43
+ "format": "uri",
44
+ "maxLength": 1024
45
45
  },
46
46
  "twoFactorAuthEnabled": {
47
47
  "type": "boolean"
@@ -2,6 +2,14 @@
2
2
  "$schema": "http://json-schema.org/draft-04/schema#",
3
3
  "type": "object",
4
4
  "properties": {
5
+ "creationDate": {
6
+ "type": "string",
7
+ "format": "date-time"
8
+ },
9
+ "lastUpdated": {
10
+ "type": "string",
11
+ "format": "date-time"
12
+ },
5
13
  "name": {
6
14
  "type": "string",
7
15
  "minLength": 1,
@@ -26,7 +26,6 @@
26
26
  },
27
27
  "lastName": {
28
28
  "type": "string",
29
- "minLength": 1,
30
29
  "maxLength": 1024
31
30
  },
32
31
  "role": {
@@ -38,7 +37,8 @@
38
37
  },
39
38
  "avatarUrl": {
40
39
  "type": "string",
41
- "format": "url"
40
+ "format": "uri",
41
+ "maxLength": 1024
42
42
  },
43
43
  "twoFactorAuthEnabled": {
44
44
  "type": "boolean"