losant_rest 2.1.0 → 2.1.1

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 (191) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +139101 -66992
  3. data/docs/application.md +6 -6
  4. data/docs/applicationCertificates.md +3 -2
  5. data/docs/applicationDashboard.md +1 -1
  6. data/docs/applications.md +1 -1
  7. data/docs/auth.md +1 -1
  8. data/docs/dashboard.md +1 -1
  9. data/docs/dashboards.md +1 -0
  10. data/docs/dataTableRow.md +1 -1
  11. data/docs/dataTableRows.md +3 -3
  12. data/docs/device.md +1 -1
  13. data/docs/edgeDeployments.md +3 -3
  14. data/docs/embeddedDeployments.md +3 -3
  15. data/docs/experience.md +1 -1
  16. data/docs/file.md +4 -4
  17. data/docs/files.md +1 -1
  18. data/docs/flowVersions.md +1 -1
  19. data/docs/instanceApiTokens.md +1 -1
  20. data/docs/instanceMember.md +1 -1
  21. data/docs/instanceOrg.md +1 -1
  22. data/docs/instanceOrgInvite.md +2 -2
  23. data/docs/instanceOrgInvites.md +1 -1
  24. data/docs/instanceOrgMembers.md +2 -1
  25. data/docs/instanceOrgs.md +1 -1
  26. data/docs/me.md +1 -1
  27. data/docs/notebook.md +1 -1
  28. data/docs/org.md +1 -1
  29. data/docs/privateFile.md +4 -4
  30. data/docs/privateFiles.md +1 -1
  31. data/docs/resourceJob.md +2 -2
  32. data/docs/userApiTokens.md +2 -2
  33. data/lib/platform_rest/application.rb +1 -1
  34. data/lib/platform_rest/application_certificates.rb +5 -2
  35. data/lib/platform_rest/application_dashboard.rb +1 -1
  36. data/lib/platform_rest/client.rb +2 -2
  37. data/lib/platform_rest/dashboard.rb +1 -1
  38. data/lib/platform_rest/dashboards.rb +1 -0
  39. data/lib/platform_rest/data_table_row.rb +1 -1
  40. data/lib/platform_rest/data_table_rows.rb +3 -3
  41. data/lib/platform_rest/device.rb +1 -1
  42. data/lib/platform_rest/edge_deployments.rb +3 -3
  43. data/lib/platform_rest/embedded_deployments.rb +3 -3
  44. data/lib/platform_rest/experience.rb +1 -1
  45. data/lib/platform_rest/file.rb +2 -2
  46. data/lib/platform_rest/instance_api_tokens.rb +1 -1
  47. data/lib/platform_rest/instance_member.rb +1 -1
  48. data/lib/platform_rest/instance_org.rb +1 -1
  49. data/lib/platform_rest/instance_org_invite.rb +2 -2
  50. data/lib/platform_rest/instance_org_invites.rb +2 -2
  51. data/lib/platform_rest/instance_org_members.rb +2 -1
  52. data/lib/platform_rest/instance_orgs.rb +1 -1
  53. data/lib/platform_rest/me.rb +1 -1
  54. data/lib/platform_rest/notebook.rb +1 -1
  55. data/lib/platform_rest/org.rb +1 -1
  56. data/lib/platform_rest/private_file.rb +2 -2
  57. data/lib/platform_rest/resource_job.rb +2 -2
  58. data/lib/platform_rest/user_api_tokens.rb +2 -2
  59. data/lib/platform_rest/version.rb +1 -1
  60. data/schemas/advancedApplicationCertQuery.json +1885 -0
  61. data/schemas/advancedApplicationKeyQuery.json +763 -763
  62. data/schemas/apiToken.json +10 -1
  63. data/schemas/apiTokens.json +20 -2
  64. data/schemas/application.json +15 -2
  65. data/schemas/applicationCertificate.json +90 -58
  66. data/schemas/applicationCertificateAuthorities.json +24 -0
  67. data/schemas/applicationCertificateAuthority.json +24 -0
  68. data/schemas/applicationCertificatePatch.json +32 -4
  69. data/schemas/applicationCertificatePost.json +28 -30
  70. data/schemas/applicationCertificates.json +90 -58
  71. data/schemas/applicationCreationByTemplateResult.json +15 -2
  72. data/schemas/applicationDashboardPost.json +179 -128
  73. data/schemas/applicationImportExecutions.json +3 -5
  74. data/schemas/applicationImportResult.json +674 -0
  75. data/schemas/applicationJobLog.json +129 -123
  76. data/schemas/applicationJobLogs.json +129 -123
  77. data/schemas/applicationKey.json +41 -41
  78. data/schemas/applicationKeyPatch.json +4 -4
  79. data/schemas/applicationKeyPost.json +36 -29
  80. data/schemas/applicationKeys.json +41 -41
  81. data/schemas/applicationSearchResult.json +10 -10
  82. data/schemas/applicationTemplates.json +9 -2
  83. data/schemas/applications.json +15 -2
  84. data/schemas/auditLog.json +2 -6
  85. data/schemas/auditLogs.json +2 -6
  86. data/schemas/authedDevice.json +3 -0
  87. data/schemas/credential.json +7 -0
  88. data/schemas/credentialLinkedResources.json +19724 -344
  89. data/schemas/credentialPatch.json +3 -0
  90. data/schemas/credentialPost.json +3 -0
  91. data/schemas/credentials.json +7 -0
  92. data/schemas/dashboard.json +199 -128
  93. data/schemas/dashboardBlockSuggestCodePost.json +19 -0
  94. data/schemas/dashboardPatch.json +179 -128
  95. data/schemas/dashboardPost.json +179 -128
  96. data/schemas/dashboardUpdateEventsResult.json +266 -0
  97. data/schemas/dashboards.json +199 -128
  98. data/schemas/dataTable.json +11 -0
  99. data/schemas/dataTableRowPatch.json +16 -0
  100. data/schemas/dataTableRowPost.json +39 -0
  101. data/schemas/dataTableRowPostResult.json +54 -0
  102. data/schemas/dataTables.json +11 -0
  103. data/schemas/device.json +259 -107
  104. data/schemas/deviceConnectionStatus.json +4 -0
  105. data/schemas/deviceLog.json +3 -0
  106. data/schemas/deviceRecipe.json +259 -108
  107. data/schemas/deviceRecipes.json +259 -108
  108. data/schemas/devices.json +287 -116
  109. data/schemas/edgeDeploymentRelease.json +4252 -39
  110. data/schemas/edgeDeployments.json +28 -0
  111. data/schemas/embeddedDeploymentRelease.json +2073 -0
  112. data/schemas/embeddedDeployments.json +25 -0
  113. data/schemas/error.json +14 -0
  114. data/schemas/event.json +4 -1
  115. data/schemas/eventPlusNewCount.json +4 -1
  116. data/schemas/events.json +4 -1
  117. data/schemas/experienceDomains.json +19 -0
  118. data/schemas/experienceEndpoint.json +19 -0
  119. data/schemas/experienceEndpoints.json +24 -0
  120. data/schemas/experienceLinkedResources.json +19728 -313
  121. data/schemas/experienceSlugs.json +19 -0
  122. data/schemas/experienceUsers.json +16 -2
  123. data/schemas/experienceVersions.json +25 -0
  124. data/schemas/experienceView.json +5 -0
  125. data/schemas/experienceViews.json +10 -0
  126. data/schemas/fileUploadPostResponse.json +92 -103
  127. data/schemas/files.json +5 -1
  128. data/schemas/flow.json +211 -46
  129. data/schemas/flowPatch.json +199 -46
  130. data/schemas/flowPost.json +199 -46
  131. data/schemas/flowStorageMetadata.json +2 -2
  132. data/schemas/flowVersion.json +450 -101
  133. data/schemas/flowVersionPost.json +199 -46
  134. data/schemas/flowVersions.json +9903 -113
  135. data/schemas/flows.json +9637 -46
  136. data/schemas/flowsImportPost.json +398 -92
  137. data/schemas/flowsImportResult.json +661 -147
  138. data/schemas/historicalSummaries.json +3 -2
  139. data/schemas/historicalSummary.json +3 -2
  140. data/schemas/instanceAuditLog.json +2 -6
  141. data/schemas/instanceAuditLogs.json +90 -1
  142. data/schemas/instanceCustomNode.json +41 -2
  143. data/schemas/instanceCustomNodePatch.json +59 -6
  144. data/schemas/instanceCustomNodePost.json +59 -6
  145. data/schemas/instanceCustomNodes.json +41 -2
  146. data/schemas/instanceOrg.json +4 -1
  147. data/schemas/instanceOrgInvite.json +102 -0
  148. data/schemas/instanceOrgInviteSent.json +12 -0
  149. data/schemas/instanceOrgInvites.json +145 -0
  150. data/schemas/instanceOrgMember.json +52 -0
  151. data/schemas/instanceOrgMembers.json +105 -1
  152. data/schemas/instanceOrgPost.json +1 -1
  153. data/schemas/instanceOrgs.json +5 -2
  154. data/schemas/instanceSandbox.json +5 -1
  155. data/schemas/instanceSandboxes.json +9 -1
  156. data/schemas/integration.json +38 -39
  157. data/schemas/integrationPatch.json +8 -8
  158. data/schemas/integrationPost.json +8 -8
  159. data/schemas/integrations.json +38 -39
  160. data/schemas/jobEnqueuedResult.json +1 -1
  161. data/schemas/me.json +685 -88
  162. data/schemas/notebook.json +33 -21
  163. data/schemas/notebookExecutionLogs.json +20 -0
  164. data/schemas/notebookMinuteCounts.json +1 -1
  165. data/schemas/notebookPatch.json +29 -21
  166. data/schemas/notebookPost.json +29 -21
  167. data/schemas/notebooks.json +33 -21
  168. data/schemas/notificationRule.json +4 -0
  169. data/schemas/notificationRules.json +8 -0
  170. data/schemas/org.json +14 -1
  171. data/schemas/orgInvites.json +77 -82
  172. data/schemas/orgInvitesUser.json +44 -47
  173. data/schemas/orgs.json +14 -1
  174. data/schemas/paletteResponse.json +372 -364
  175. data/schemas/periodSummaries.json +1 -1
  176. data/schemas/recentItemList.json +226 -27
  177. data/schemas/resourceJob.json +33 -9
  178. data/schemas/resourceJobExecutionLogs.json +34 -20
  179. data/schemas/resourceJobExecutionOptions.json +1 -1
  180. data/schemas/resourceJobPatch.json +9 -9
  181. data/schemas/resourceJobPost.json +9 -9
  182. data/schemas/resourceJobs.json +33 -9
  183. data/schemas/tagValuesResponse.json +1 -2
  184. data/schemas/templateKeywords.json +1 -0
  185. data/schemas/timeSeriesData.json +36 -4
  186. data/schemas/userOauthToken.json +4 -1
  187. data/schemas/userOauthTokenPost.json +1 -1
  188. data/schemas/userOauthTokens.json +4 -1
  189. data/schemas/validateContextError.json +71 -24
  190. data/schemas/validateContextSuccess.json +71 -24
  191. metadata +10 -1
@@ -29,6 +29,10 @@
29
29
  "type": "string",
30
30
  "format": "date-time"
31
31
  },
32
+ "lastExecutionRequested": {
33
+ "type": "string",
34
+ "format": "date-time"
35
+ },
32
36
  "name": {
33
37
  "type": "string",
34
38
  "minLength": 1,
@@ -57,8 +61,12 @@
57
61
  },
58
62
  "inputs": {
59
63
  "type": "array",
64
+ "maxItems": 100,
60
65
  "items": {
61
- "maxItems": 100,
66
+ "type": "object",
67
+ "discriminator": {
68
+ "propertyName": "inputType"
69
+ },
62
70
  "oneOf": [
63
71
  {
64
72
  "type": "object",
@@ -79,7 +87,7 @@
79
87
  "type": "string",
80
88
  "minLength": 4,
81
89
  "maxLength": 255,
82
- "pattern": ".*{{.+}}.*"
90
+ "pattern": ".*\\{\\{.+\\}\\}.*"
83
91
  }
84
92
  ]
85
93
  },
@@ -99,7 +107,7 @@
99
107
  "type": "string",
100
108
  "minLength": 4,
101
109
  "maxLength": 255,
102
- "pattern": ".*{{.+}}.*"
110
+ "pattern": ".*\\{\\{.+\\}\\}.*"
103
111
  }
104
112
  ]
105
113
  },
@@ -125,7 +133,7 @@
125
133
  "type": "string",
126
134
  "minLength": 4,
127
135
  "maxLength": 255,
128
- "pattern": ".*{{.+}}.*"
136
+ "pattern": ".*\\{\\{.+\\}\\}.*"
129
137
  }
130
138
  ]
131
139
  }
@@ -176,7 +184,7 @@
176
184
  "type": "string",
177
185
  "minLength": 4,
178
186
  "maxLength": 255,
179
- "pattern": ".*{{.+}}.*"
187
+ "pattern": ".*\\{\\{.+\\}\\}.*"
180
188
  }
181
189
  ]
182
190
  },
@@ -196,7 +204,7 @@
196
204
  "type": "string",
197
205
  "minLength": 4,
198
206
  "maxLength": 255,
199
- "pattern": ".*{{.+}}.*"
207
+ "pattern": ".*\\{\\{.+\\}\\}.*"
200
208
  }
201
209
  ]
202
210
  },
@@ -222,7 +230,7 @@
222
230
  "type": "string",
223
231
  "minLength": 4,
224
232
  "maxLength": 255,
225
- "pattern": ".*{{.+}}.*"
233
+ "pattern": ".*\\{\\{.+\\}\\}.*"
226
234
  }
227
235
  ]
228
236
  }
@@ -265,7 +273,7 @@
265
273
  "type": "string",
266
274
  "minLength": 4,
267
275
  "maxLength": 255,
268
- "pattern": ".*{{.+}}.*"
276
+ "pattern": ".*\\{\\{.+\\}\\}.*"
269
277
  }
270
278
  ]
271
279
  },
@@ -285,7 +293,7 @@
285
293
  "type": "string",
286
294
  "minLength": 4,
287
295
  "maxLength": 255,
288
- "pattern": ".*{{.+}}.*"
296
+ "pattern": ".*\\{\\{.+\\}\\}.*"
289
297
  }
290
298
  ]
291
299
  },
@@ -311,7 +319,7 @@
311
319
  "type": "string",
312
320
  "minLength": 4,
313
321
  "maxLength": 255,
314
- "pattern": ".*{{.+}}.*"
322
+ "pattern": ".*\\{\\{.+\\}\\}.*"
315
323
  }
316
324
  ]
317
325
  }
@@ -354,7 +362,7 @@
354
362
  "type": "string",
355
363
  "minLength": 4,
356
364
  "maxLength": 255,
357
- "pattern": ".*{{.+}}.*"
365
+ "pattern": ".*\\{\\{.+\\}\\}.*"
358
366
  }
359
367
  ]
360
368
  },
@@ -368,7 +376,7 @@
368
376
  "type": "string",
369
377
  "minLength": 4,
370
378
  "maxLength": 255,
371
- "pattern": ".*{{.+}}.*"
379
+ "pattern": ".*\\{\\{.+\\}\\}.*"
372
380
  }
373
381
  ]
374
382
  },
@@ -403,7 +411,7 @@
403
411
  "type": "string",
404
412
  "minLength": 4,
405
413
  "maxLength": 255,
406
- "pattern": ".*{{.+}}.*"
414
+ "pattern": ".*\\{\\{.+\\}\\}.*"
407
415
  }
408
416
  ]
409
417
  },
@@ -445,7 +453,7 @@
445
453
  "type": "string",
446
454
  "minLength": 4,
447
455
  "maxLength": 255,
448
- "pattern": ".*{{.+}}.*"
456
+ "pattern": ".*\\{\\{.+\\}\\}.*"
449
457
  }
450
458
  ]
451
459
  },
@@ -481,7 +489,7 @@
481
489
  "type": "string",
482
490
  "minLength": 4,
483
491
  "maxLength": 255,
484
- "pattern": ".*{{.+}}.*"
492
+ "pattern": ".*\\{\\{.+\\}\\}.*"
485
493
  }
486
494
  ]
487
495
  },
@@ -506,8 +514,12 @@
506
514
  },
507
515
  "outputs": {
508
516
  "type": "array",
517
+ "maxItems": 100,
509
518
  "items": {
510
- "maxItems": 100,
519
+ "type": "object",
520
+ "discriminator": {
521
+ "propertyName": "outputType"
522
+ },
511
523
  "oneOf": [
512
524
  {
513
525
  "type": "object",
@@ -528,7 +540,7 @@
528
540
  "type": "string",
529
541
  "minLength": 4,
530
542
  "maxLength": 255,
531
- "pattern": ".*{{.+}}.*"
543
+ "pattern": ".*\\{\\{.+\\}\\}.*"
532
544
  }
533
545
  ]
534
546
  },
@@ -542,7 +554,7 @@
542
554
  "type": "string",
543
555
  "minLength": 4,
544
556
  "maxLength": 255,
545
- "pattern": ".*{{.+}}.*"
557
+ "pattern": ".*\\{\\{.+\\}\\}.*"
546
558
  }
547
559
  ]
548
560
  },
@@ -579,7 +591,7 @@
579
591
  "type": "string",
580
592
  "minLength": 4,
581
593
  "maxLength": 255,
582
- "pattern": ".*{{.+}}.*"
594
+ "pattern": ".*\\{\\{.+\\}\\}.*"
583
595
  }
584
596
  ]
585
597
  },
@@ -623,7 +635,7 @@
623
635
  "type": "string",
624
636
  "minLength": 4,
625
637
  "maxLength": 255,
626
- "pattern": ".*{{.+}}.*"
638
+ "pattern": ".*\\{\\{.+\\}\\}.*"
627
639
  }
628
640
  ]
629
641
  },
@@ -701,7 +713,7 @@
701
713
  "type": "string",
702
714
  "minLength": 4,
703
715
  "maxLength": 255,
704
- "pattern": ".*{{.+}}.*"
716
+ "pattern": ".*\\{\\{.+\\}\\}.*"
705
717
  }
706
718
  ]
707
719
  }
@@ -20,6 +20,10 @@
20
20
  "instance"
21
21
  ]
22
22
  },
23
+ "instanceId": {
24
+ "type": "string",
25
+ "pattern": "^[A-Fa-f\\d]{24}$"
26
+ },
23
27
  "creationDate": {
24
28
  "type": "string",
25
29
  "format": "date-time"
@@ -27,6 +27,10 @@
27
27
  "instance"
28
28
  ]
29
29
  },
30
+ "instanceId": {
31
+ "type": "string",
32
+ "pattern": "^[A-Fa-f\\d]{24}$"
33
+ },
30
34
  "creationDate": {
31
35
  "type": "string",
32
36
  "format": "date-time"
@@ -207,6 +211,10 @@
207
211
  "enum": [
208
212
  "instance"
209
213
  ]
214
+ },
215
+ "instanceId": {
216
+ "type": "string",
217
+ "pattern": "^[A-Fa-f\\d]{24}$"
210
218
  }
211
219
  }
212
220
  }
data/schemas/org.json CHANGED
@@ -27,6 +27,16 @@
27
27
  "type": "string",
28
28
  "maxLength": 32767
29
29
  },
30
+ "_currentRole": {
31
+ "type": "string",
32
+ "enum": [
33
+ "admin",
34
+ "edit",
35
+ "collaborate",
36
+ "view",
37
+ "none"
38
+ ]
39
+ },
30
40
  "members": {
31
41
  "type": "array",
32
42
  "items": {
@@ -530,7 +540,7 @@
530
540
  "type": "integer"
531
541
  },
532
542
  "minutesThisPeriod": {
533
- "type": "integer"
543
+ "type": "number"
534
544
  },
535
545
  "runsThisPeriod": {
536
546
  "type": "integer"
@@ -581,6 +591,9 @@
581
591
  "minLength": 3
582
592
  }
583
593
  },
594
+ "auditLogEnabled": {
595
+ "type": "boolean"
596
+ },
584
597
  "disabledAt": {
585
598
  "oneOf": [
586
599
  {
@@ -4,94 +4,89 @@
4
4
  "items": {
5
5
  "type": "object",
6
6
  "properties": {
7
- "title": "Organization Invitation",
8
- "description": "Schema for a pending invitation to an Organization",
9
- "type": "object",
10
- "properties": {
11
- "id": {
12
- "type": "string",
13
- "pattern": "^[A-Fa-f\\d]{24}$"
14
- },
15
- "email": {
16
- "type": "string",
17
- "format": "email",
18
- "maxLength": 1024
19
- },
20
- "role": {
21
- "type": "string",
22
- "enum": [
23
- "admin",
24
- "edit",
25
- "collaborate",
26
- "view",
27
- "none"
28
- ]
29
- },
30
- "applicationRoles": {
31
- "type": "array",
32
- "items": {
33
- "type": "object",
34
- "properties": {
35
- "resourceId": {
36
- "type": "string",
37
- "pattern": "^[A-Fa-f\\d]{24}$"
38
- },
39
- "role": {
40
- "type": "string",
41
- "enum": [
42
- "collaborate",
43
- "view",
44
- "none"
45
- ]
46
- }
7
+ "id": {
8
+ "type": "string",
9
+ "pattern": "^[A-Fa-f\\d]{24}$"
10
+ },
11
+ "email": {
12
+ "type": "string",
13
+ "format": "email",
14
+ "maxLength": 1024
15
+ },
16
+ "role": {
17
+ "type": "string",
18
+ "enum": [
19
+ "admin",
20
+ "edit",
21
+ "collaborate",
22
+ "view",
23
+ "none"
24
+ ]
25
+ },
26
+ "applicationRoles": {
27
+ "type": "array",
28
+ "items": {
29
+ "type": "object",
30
+ "properties": {
31
+ "resourceId": {
32
+ "type": "string",
33
+ "pattern": "^[A-Fa-f\\d]{24}$"
47
34
  },
48
- "required": [
49
- "resourceId",
50
- "role"
51
- ],
52
- "additionalProperties": false
35
+ "role": {
36
+ "type": "string",
37
+ "enum": [
38
+ "collaborate",
39
+ "view",
40
+ "none"
41
+ ]
42
+ }
53
43
  },
54
- "maxItems": 100
44
+ "required": [
45
+ "resourceId",
46
+ "role"
47
+ ],
48
+ "additionalProperties": false
55
49
  },
56
- "dashboardRoles": {
57
- "type": "array",
58
- "items": {
59
- "type": "object",
60
- "properties": {
61
- "resourceId": {
62
- "type": "string",
63
- "pattern": "^[A-Fa-f\\d]{24}$"
64
- },
65
- "role": {
66
- "type": "string",
67
- "enum": [
68
- "collaborate",
69
- "view",
70
- "none"
71
- ]
72
- }
50
+ "maxItems": 100
51
+ },
52
+ "dashboardRoles": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "object",
56
+ "properties": {
57
+ "resourceId": {
58
+ "type": "string",
59
+ "pattern": "^[A-Fa-f\\d]{24}$"
73
60
  },
74
- "required": [
75
- "resourceId",
76
- "role"
77
- ],
78
- "additionalProperties": false
61
+ "role": {
62
+ "type": "string",
63
+ "enum": [
64
+ "collaborate",
65
+ "view",
66
+ "none"
67
+ ]
68
+ }
79
69
  },
80
- "maxItems": 100
81
- },
82
- "inviteDate": {
83
- "type": "string",
84
- "format": "date-time"
85
- },
86
- "ttl": {
87
- "type": "number"
88
- },
89
- "hasExpired": {
90
- "type": "boolean"
70
+ "required": [
71
+ "resourceId",
72
+ "role"
73
+ ],
74
+ "additionalProperties": false
91
75
  },
92
- "disallowTransfer": {
93
- "type": "boolean"
94
- }
76
+ "maxItems": 100
77
+ },
78
+ "inviteDate": {
79
+ "type": "string",
80
+ "format": "date-time"
81
+ },
82
+ "ttl": {
83
+ "type": "number"
84
+ },
85
+ "hasExpired": {
86
+ "type": "boolean"
87
+ },
88
+ "disallowTransfer": {
89
+ "type": "boolean"
95
90
  }
96
91
  }
97
92
  }
@@ -2,55 +2,52 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "array",
4
4
  "items": {
5
+ "title": "Organization Invitation Information For User",
6
+ "description": "Schema for information about an invitation",
5
7
  "type": "object",
6
8
  "properties": {
7
- "title": "Organization Invitation Information For User",
8
- "description": "Schema for information about an invitation",
9
- "type": "object",
10
- "properties": {
11
- "orgName": {
12
- "type": "string",
13
- "minLength": 1,
14
- "maxLength": 255
15
- },
16
- "role": {
17
- "type": "string",
18
- "enum": [
19
- "admin",
20
- "edit",
21
- "collaborate",
22
- "view",
23
- "none"
24
- ]
25
- },
26
- "requiresMFA": {
27
- "type": "boolean"
28
- },
29
- "inviteDate": {
30
- "type": "string",
31
- "format": "date-time"
32
- },
33
- "ttl": {
34
- "type": "number"
35
- },
36
- "expired": {
37
- "type": "boolean"
38
- },
39
- "id": {
40
- "type": "string",
41
- "pattern": "^[A-Fa-f\\d]{24}$"
42
- },
43
- "invitedBy": {
44
- "type": "object",
45
- "properties": {
46
- "fullName": {
47
- "type": "string"
48
- },
49
- "email": {
50
- "type": "string",
51
- "format": "email",
52
- "maxLength": 1024
53
- }
9
+ "orgName": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "maxLength": 255
13
+ },
14
+ "role": {
15
+ "type": "string",
16
+ "enum": [
17
+ "admin",
18
+ "edit",
19
+ "collaborate",
20
+ "view",
21
+ "none"
22
+ ]
23
+ },
24
+ "requiresMFA": {
25
+ "type": "boolean"
26
+ },
27
+ "inviteDate": {
28
+ "type": "string",
29
+ "format": "date-time"
30
+ },
31
+ "ttl": {
32
+ "type": "number"
33
+ },
34
+ "expired": {
35
+ "type": "boolean"
36
+ },
37
+ "id": {
38
+ "type": "string",
39
+ "pattern": "^[A-Fa-f\\d]{24}$"
40
+ },
41
+ "invitedBy": {
42
+ "type": "object",
43
+ "properties": {
44
+ "fullName": {
45
+ "type": "string"
46
+ },
47
+ "email": {
48
+ "type": "string",
49
+ "format": "email",
50
+ "maxLength": 1024
54
51
  }
55
52
  }
56
53
  }
data/schemas/orgs.json CHANGED
@@ -34,6 +34,16 @@
34
34
  "type": "string",
35
35
  "maxLength": 32767
36
36
  },
37
+ "_currentRole": {
38
+ "type": "string",
39
+ "enum": [
40
+ "admin",
41
+ "edit",
42
+ "collaborate",
43
+ "view",
44
+ "none"
45
+ ]
46
+ },
37
47
  "members": {
38
48
  "type": "array",
39
49
  "items": {
@@ -537,7 +547,7 @@
537
547
  "type": "integer"
538
548
  },
539
549
  "minutesThisPeriod": {
540
- "type": "integer"
550
+ "type": "number"
541
551
  },
542
552
  "runsThisPeriod": {
543
553
  "type": "integer"
@@ -588,6 +598,9 @@
588
598
  "minLength": 3
589
599
  }
590
600
  },
601
+ "auditLogEnabled": {
602
+ "type": "boolean"
603
+ },
591
604
  "disabledAt": {
592
605
  "oneOf": [
593
606
  {