losant_rest 2.1.0 → 2.1.2

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 (202) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +142339 -68894
  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/apiTokenPost.json +4 -0
  64. data/schemas/apiTokens.json +20 -2
  65. data/schemas/application.json +15 -2
  66. data/schemas/applicationCertificate.json +90 -58
  67. data/schemas/applicationCertificateAuthorities.json +24 -0
  68. data/schemas/applicationCertificateAuthority.json +24 -0
  69. data/schemas/applicationCertificatePatch.json +32 -4
  70. data/schemas/applicationCertificatePost.json +28 -30
  71. data/schemas/applicationCertificates.json +90 -58
  72. data/schemas/applicationCreationByTemplateResult.json +15 -2
  73. data/schemas/applicationDashboardPost.json +315 -133
  74. data/schemas/applicationImportExecutions.json +3 -5
  75. data/schemas/applicationImportResult.json +674 -0
  76. data/schemas/applicationJobLog.json +129 -123
  77. data/schemas/applicationJobLogs.json +129 -123
  78. data/schemas/applicationKey.json +41 -41
  79. data/schemas/applicationKeyPatch.json +4 -4
  80. data/schemas/applicationKeyPost.json +36 -29
  81. data/schemas/applicationKeys.json +41 -41
  82. data/schemas/applicationSearchResult.json +10 -10
  83. data/schemas/applicationTemplates.json +9 -2
  84. data/schemas/applications.json +15 -2
  85. data/schemas/auditLog.json +2 -6
  86. data/schemas/auditLogs.json +2 -6
  87. data/schemas/authedDevice.json +3 -0
  88. data/schemas/credential.json +7 -0
  89. data/schemas/credentialLinkedResources.json +19724 -344
  90. data/schemas/credentialPatch.json +3 -0
  91. data/schemas/credentialPost.json +3 -0
  92. data/schemas/credentials.json +7 -0
  93. data/schemas/dashboard.json +335 -133
  94. data/schemas/dashboardBlockSuggestCodePost.json +19 -0
  95. data/schemas/dashboardPatch.json +315 -133
  96. data/schemas/dashboardPost.json +315 -133
  97. data/schemas/dashboardUpdateEventsResult.json +266 -0
  98. data/schemas/dashboards.json +335 -133
  99. data/schemas/dataTable.json +11 -0
  100. data/schemas/dataTableRowPatch.json +16 -0
  101. data/schemas/dataTableRowPost.json +39 -0
  102. data/schemas/dataTableRowPostResult.json +54 -0
  103. data/schemas/dataTables.json +11 -0
  104. data/schemas/device.json +259 -107
  105. data/schemas/deviceConnectionStatus.json +4 -0
  106. data/schemas/deviceLog.json +3 -0
  107. data/schemas/deviceRecipe.json +259 -108
  108. data/schemas/deviceRecipes.json +259 -108
  109. data/schemas/devices.json +287 -116
  110. data/schemas/edgeDeploymentRelease.json +4252 -39
  111. data/schemas/edgeDeployments.json +28 -0
  112. data/schemas/embeddedDeploymentRelease.json +2073 -0
  113. data/schemas/embeddedDeployments.json +25 -0
  114. data/schemas/error.json +14 -0
  115. data/schemas/event.json +4 -1
  116. data/schemas/eventPlusNewCount.json +4 -1
  117. data/schemas/events.json +4 -1
  118. data/schemas/experienceDomains.json +19 -0
  119. data/schemas/experienceEndpoint.json +19 -0
  120. data/schemas/experienceEndpoints.json +24 -0
  121. data/schemas/experienceLinkedResources.json +19728 -313
  122. data/schemas/experienceSlugs.json +19 -0
  123. data/schemas/experienceUsers.json +16 -2
  124. data/schemas/experienceVersions.json +25 -0
  125. data/schemas/experienceView.json +5 -0
  126. data/schemas/experienceViews.json +10 -0
  127. data/schemas/fileUploadPostResponse.json +92 -103
  128. data/schemas/files.json +5 -1
  129. data/schemas/flow.json +211 -46
  130. data/schemas/flowPatch.json +199 -46
  131. data/schemas/flowPost.json +199 -46
  132. data/schemas/flowStorageMetadata.json +2 -2
  133. data/schemas/flowVersion.json +450 -101
  134. data/schemas/flowVersionPost.json +199 -46
  135. data/schemas/flowVersions.json +9903 -113
  136. data/schemas/flows.json +9637 -46
  137. data/schemas/flowsImportPost.json +398 -92
  138. data/schemas/flowsImportResult.json +661 -147
  139. data/schemas/githubLogin.json +4 -0
  140. data/schemas/historicalSummaries.json +3 -2
  141. data/schemas/historicalSummary.json +3 -2
  142. data/schemas/instance.json +6 -0
  143. data/schemas/instanceAuditLog.json +2 -6
  144. data/schemas/instanceAuditLogs.json +90 -1
  145. data/schemas/instanceCustomNode.json +41 -2
  146. data/schemas/instanceCustomNodePatch.json +59 -6
  147. data/schemas/instanceCustomNodePost.json +59 -6
  148. data/schemas/instanceCustomNodes.json +41 -2
  149. data/schemas/instanceOrg.json +16 -1
  150. data/schemas/instanceOrgEntitlement.json +182 -0
  151. data/schemas/instanceOrgEntitlementSync.json +64 -0
  152. data/schemas/instanceOrgInvite.json +102 -0
  153. data/schemas/instanceOrgInviteSent.json +12 -0
  154. data/schemas/instanceOrgInvites.json +145 -0
  155. data/schemas/instanceOrgMember.json +52 -0
  156. data/schemas/instanceOrgMembers.json +105 -1
  157. data/schemas/instanceOrgPost.json +1 -1
  158. data/schemas/instanceOrgs.json +17 -2
  159. data/schemas/instanceSandbox.json +5 -1
  160. data/schemas/instanceSandboxes.json +9 -1
  161. data/schemas/instances.json +6 -0
  162. data/schemas/integration.json +38 -39
  163. data/schemas/integrationPatch.json +8 -8
  164. data/schemas/integrationPost.json +8 -8
  165. data/schemas/integrations.json +38 -39
  166. data/schemas/jobEnqueuedResult.json +1 -1
  167. data/schemas/me.json +685 -88
  168. data/schemas/meEntitlements.json +194 -0
  169. data/schemas/notebook.json +33 -21
  170. data/schemas/notebookExecutionLogs.json +20 -0
  171. data/schemas/notebookMinuteCounts.json +1 -1
  172. data/schemas/notebookPatch.json +29 -21
  173. data/schemas/notebookPost.json +29 -21
  174. data/schemas/notebooks.json +33 -21
  175. data/schemas/notificationRule.json +4 -0
  176. data/schemas/notificationRules.json +8 -0
  177. data/schemas/org.json +30 -1
  178. data/schemas/orgInvites.json +77 -82
  179. data/schemas/orgInvitesUser.json +44 -47
  180. data/schemas/orgPost.json +4 -0
  181. data/schemas/orgs.json +30 -1
  182. data/schemas/paletteResponse.json +372 -364
  183. data/schemas/periodSummaries.json +1 -1
  184. data/schemas/recentItemList.json +226 -27
  185. data/schemas/resourceJob.json +33 -9
  186. data/schemas/resourceJobExecutionLogs.json +34 -20
  187. data/schemas/resourceJobExecutionOptions.json +1 -1
  188. data/schemas/resourceJobPatch.json +9 -9
  189. data/schemas/resourceJobPost.json +9 -9
  190. data/schemas/resourceJobs.json +33 -9
  191. data/schemas/samlResponse.json +4 -0
  192. data/schemas/tagValuesResponse.json +1 -2
  193. data/schemas/templateKeywords.json +1 -0
  194. data/schemas/timeSeriesData.json +36 -4
  195. data/schemas/userCredentials.json +4 -0
  196. data/schemas/userOauthToken.json +4 -1
  197. data/schemas/userOauthTokenPost.json +1 -1
  198. data/schemas/userOauthTokens.json +4 -1
  199. data/schemas/userPost.json +4 -0
  200. data/schemas/validateContextError.json +99 -24
  201. data/schemas/validateContextSuccess.json +99 -24
  202. metadata +13 -1
@@ -0,0 +1,182 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "entitlementId": {
6
+ "type": "string"
7
+ },
8
+ "expiresAt": {
9
+ "type": "string",
10
+ "format": "date-time"
11
+ },
12
+ "externalOrgId": {
13
+ "type": "integer"
14
+ },
15
+ "externalOrgName": {
16
+ "type": "string"
17
+ },
18
+ "subscriptionName": {
19
+ "type": "string"
20
+ },
21
+ "hasSupport": {
22
+ "type": "boolean"
23
+ },
24
+ "allowedOrgCount": {
25
+ "type": "integer"
26
+ },
27
+ "usedOrgCount": {
28
+ "type": "integer"
29
+ },
30
+ "orgIds": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "string",
34
+ "pattern": "^[A-Fa-f\\d]{24}$"
35
+ },
36
+ "maxItems": 1000
37
+ },
38
+ "limits": {
39
+ "type": "object",
40
+ "properties": {
41
+ "apitoken": {
42
+ "type": "integer",
43
+ "minimum": 0
44
+ },
45
+ "application": {
46
+ "type": "integer",
47
+ "minimum": 0
48
+ },
49
+ "applicationcertificate": {
50
+ "type": "integer",
51
+ "minimum": 0
52
+ },
53
+ "applicationcertificateauthority": {
54
+ "type": "integer",
55
+ "minimum": 0
56
+ },
57
+ "applicationkey": {
58
+ "type": "integer",
59
+ "minimum": 0
60
+ },
61
+ "credential": {
62
+ "type": "integer",
63
+ "minimum": 0
64
+ },
65
+ "dashboard": {
66
+ "type": "integer",
67
+ "minimum": 0
68
+ },
69
+ "datatable": {
70
+ "type": "integer",
71
+ "minimum": 0
72
+ },
73
+ "device": {
74
+ "type": "integer",
75
+ "minimum": 0
76
+ },
77
+ "devicerecipe": {
78
+ "type": "integer",
79
+ "minimum": 0
80
+ },
81
+ "experiencedomain": {
82
+ "type": "integer",
83
+ "minimum": 0
84
+ },
85
+ "experienceendpoint": {
86
+ "type": "integer",
87
+ "minimum": 0
88
+ },
89
+ "experiencegroup": {
90
+ "type": "integer",
91
+ "minimum": 0
92
+ },
93
+ "experienceslug": {
94
+ "type": "integer",
95
+ "minimum": 0
96
+ },
97
+ "experienceuser": {
98
+ "type": "integer",
99
+ "minimum": 0
100
+ },
101
+ "experienceversion": {
102
+ "type": "integer",
103
+ "minimum": 0
104
+ },
105
+ "experienceview": {
106
+ "type": "integer",
107
+ "minimum": 0
108
+ },
109
+ "file": {
110
+ "type": "integer",
111
+ "minimum": 0
112
+ },
113
+ "flow": {
114
+ "type": "integer",
115
+ "minimum": 0
116
+ },
117
+ "integration": {
118
+ "type": "integer",
119
+ "minimum": 0
120
+ },
121
+ "notebook": {
122
+ "type": "integer",
123
+ "minimum": 0
124
+ },
125
+ "privatefile": {
126
+ "type": "integer",
127
+ "minimum": 0
128
+ },
129
+ "resourcejob": {
130
+ "type": "integer",
131
+ "minimum": 0
132
+ },
133
+ "webhook": {
134
+ "type": "integer",
135
+ "minimum": 0
136
+ },
137
+ "dataTTL": {
138
+ "type": "integer",
139
+ "minimum": 86400
140
+ },
141
+ "member": {
142
+ "type": "integer",
143
+ "minimum": 0
144
+ },
145
+ "payload": {
146
+ "type": "integer",
147
+ "minimum": 0
148
+ },
149
+ "storage": {
150
+ "type": "integer",
151
+ "minimum": 0
152
+ },
153
+ "notebookMinutesPerRun": {
154
+ "type": "integer",
155
+ "minimum": 0
156
+ },
157
+ "notebookMinutesPerMonth": {
158
+ "type": "integer",
159
+ "minimum": 0
160
+ },
161
+ "notebookInParallel": {
162
+ "type": "integer",
163
+ "minimum": 0
164
+ },
165
+ "experienceFlowSlots": {
166
+ "type": "integer",
167
+ "minimum": 0
168
+ },
169
+ "applicationFlowSlots": {
170
+ "type": "integer",
171
+ "minimum": 0
172
+ },
173
+ "systemInterval": {
174
+ "type": "integer",
175
+ "minimum": 5,
176
+ "maximum": 3600
177
+ }
178
+ },
179
+ "additionalProperties": false
180
+ }
181
+ }
182
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "success": {
6
+ "type": "boolean"
7
+ },
8
+ "limitsUpdated": {
9
+ "type": "object",
10
+ "patternProperties": {
11
+ "^[a-zA-Z]+$": {
12
+ "type": "object",
13
+ "properties": {
14
+ "previous": {
15
+ "type": "integer",
16
+ "minimum": 0
17
+ },
18
+ "current": {
19
+ "type": "integer",
20
+ "minimum": 0
21
+ }
22
+ }
23
+ }
24
+ }
25
+ },
26
+ "issues": {
27
+ "type": "array",
28
+ "items": {
29
+ "type": "object",
30
+ "properties": {
31
+ "type": {
32
+ "type": "string",
33
+ "enum": [
34
+ "expired",
35
+ "limitsDecreased",
36
+ "noMember"
37
+ ]
38
+ },
39
+ "decreased": {
40
+ "type": "object",
41
+ "patternProperties": {
42
+ "^[a-zA-Z]+$": {
43
+ "type": "object",
44
+ "properties": {
45
+ "requested": {
46
+ "type": "integer",
47
+ "minimum": 0
48
+ },
49
+ "current": {
50
+ "type": "integer",
51
+ "minimum": 0
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ },
58
+ "required": [
59
+ "type"
60
+ ]
61
+ }
62
+ }
63
+ }
64
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string",
7
+ "pattern": "^[A-Fa-f\\d]{24}$"
8
+ },
9
+ "email": {
10
+ "type": "string",
11
+ "format": "email",
12
+ "maxLength": 1024
13
+ },
14
+ "role": {
15
+ "type": "string",
16
+ "enum": [
17
+ "admin",
18
+ "edit",
19
+ "collaborate",
20
+ "view",
21
+ "none"
22
+ ]
23
+ },
24
+ "applicationRoles": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "object",
28
+ "properties": {
29
+ "resourceId": {
30
+ "type": "string",
31
+ "pattern": "^[A-Fa-f\\d]{24}$"
32
+ },
33
+ "role": {
34
+ "type": "string",
35
+ "enum": [
36
+ "collaborate",
37
+ "view",
38
+ "none"
39
+ ]
40
+ }
41
+ },
42
+ "required": [
43
+ "resourceId",
44
+ "role"
45
+ ],
46
+ "additionalProperties": false
47
+ },
48
+ "maxItems": 100
49
+ },
50
+ "dashboardRoles": {
51
+ "type": "array",
52
+ "items": {
53
+ "type": "object",
54
+ "properties": {
55
+ "resourceId": {
56
+ "type": "string",
57
+ "pattern": "^[A-Fa-f\\d]{24}$"
58
+ },
59
+ "role": {
60
+ "type": "string",
61
+ "enum": [
62
+ "collaborate",
63
+ "view",
64
+ "none"
65
+ ]
66
+ }
67
+ },
68
+ "required": [
69
+ "resourceId",
70
+ "role"
71
+ ],
72
+ "additionalProperties": false
73
+ },
74
+ "maxItems": 100
75
+ },
76
+ "inviteDate": {
77
+ "type": "string",
78
+ "format": "date-time"
79
+ },
80
+ "ttl": {
81
+ "type": "number"
82
+ },
83
+ "hasExpired": {
84
+ "type": "boolean"
85
+ },
86
+ "disallowTransfer": {
87
+ "type": "boolean"
88
+ },
89
+ "inviteId": {
90
+ "type": "string",
91
+ "pattern": "^[A-Fa-f\\d]{24}$"
92
+ },
93
+ "instanceId": {
94
+ "type": "string",
95
+ "pattern": "^[A-Fa-f\\d]{24}$"
96
+ },
97
+ "orgId": {
98
+ "type": "string",
99
+ "pattern": "^[A-Fa-f\\d]{24}$"
100
+ }
101
+ }
102
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "inviteSent": {
6
+ "type": "boolean",
7
+ "enum": [
8
+ true
9
+ ]
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,145 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "items": {
6
+ "type": "array",
7
+ "items": {
8
+ "title": "Instance Organization Invitation",
9
+ "description": "Schema for a pending invitation to an Organization within an instance",
10
+ "type": "object",
11
+ "properties": {
12
+ "id": {
13
+ "type": "string",
14
+ "pattern": "^[A-Fa-f\\d]{24}$"
15
+ },
16
+ "email": {
17
+ "type": "string",
18
+ "format": "email",
19
+ "maxLength": 1024
20
+ },
21
+ "role": {
22
+ "type": "string",
23
+ "enum": [
24
+ "admin",
25
+ "edit",
26
+ "collaborate",
27
+ "view",
28
+ "none"
29
+ ]
30
+ },
31
+ "applicationRoles": {
32
+ "type": "array",
33
+ "items": {
34
+ "type": "object",
35
+ "properties": {
36
+ "resourceId": {
37
+ "type": "string",
38
+ "pattern": "^[A-Fa-f\\d]{24}$"
39
+ },
40
+ "role": {
41
+ "type": "string",
42
+ "enum": [
43
+ "collaborate",
44
+ "view",
45
+ "none"
46
+ ]
47
+ }
48
+ },
49
+ "required": [
50
+ "resourceId",
51
+ "role"
52
+ ],
53
+ "additionalProperties": false
54
+ },
55
+ "maxItems": 100
56
+ },
57
+ "dashboardRoles": {
58
+ "type": "array",
59
+ "items": {
60
+ "type": "object",
61
+ "properties": {
62
+ "resourceId": {
63
+ "type": "string",
64
+ "pattern": "^[A-Fa-f\\d]{24}$"
65
+ },
66
+ "role": {
67
+ "type": "string",
68
+ "enum": [
69
+ "collaborate",
70
+ "view",
71
+ "none"
72
+ ]
73
+ }
74
+ },
75
+ "required": [
76
+ "resourceId",
77
+ "role"
78
+ ],
79
+ "additionalProperties": false
80
+ },
81
+ "maxItems": 100
82
+ },
83
+ "inviteDate": {
84
+ "type": "string",
85
+ "format": "date-time"
86
+ },
87
+ "ttl": {
88
+ "type": "number"
89
+ },
90
+ "hasExpired": {
91
+ "type": "boolean"
92
+ },
93
+ "disallowTransfer": {
94
+ "type": "boolean"
95
+ },
96
+ "inviteId": {
97
+ "type": "string",
98
+ "pattern": "^[A-Fa-f\\d]{24}$"
99
+ },
100
+ "instanceId": {
101
+ "type": "string",
102
+ "pattern": "^[A-Fa-f\\d]{24}$"
103
+ },
104
+ "orgId": {
105
+ "type": "string",
106
+ "pattern": "^[A-Fa-f\\d]{24}$"
107
+ }
108
+ }
109
+ }
110
+ },
111
+ "instanceId": {
112
+ "type": "string",
113
+ "pattern": "^[A-Fa-f\\d]{24}$"
114
+ },
115
+ "orgId": {
116
+ "type": "string",
117
+ "pattern": "^[A-Fa-f\\d]{24}$"
118
+ },
119
+ "count": {
120
+ "type": "integer"
121
+ },
122
+ "totalCount": {
123
+ "type": "integer"
124
+ },
125
+ "filter": {
126
+ "type": "string"
127
+ },
128
+ "filterField": {
129
+ "type": "string"
130
+ },
131
+ "sortField": {
132
+ "type": "string"
133
+ },
134
+ "sortDirection": {
135
+ "type": "string",
136
+ "enum": [
137
+ "asc",
138
+ "desc",
139
+ "ASC",
140
+ "DESC",
141
+ ""
142
+ ]
143
+ }
144
+ }
145
+ }
@@ -38,6 +38,58 @@
38
38
  "none"
39
39
  ]
40
40
  },
41
+ "applicationRoles": {
42
+ "type": "array",
43
+ "items": {
44
+ "type": "object",
45
+ "properties": {
46
+ "resourceId": {
47
+ "type": "string",
48
+ "pattern": "^[A-Fa-f\\d]{24}$"
49
+ },
50
+ "role": {
51
+ "type": "string",
52
+ "enum": [
53
+ "collaborate",
54
+ "view",
55
+ "none"
56
+ ]
57
+ }
58
+ },
59
+ "required": [
60
+ "resourceId",
61
+ "role"
62
+ ],
63
+ "additionalProperties": false
64
+ },
65
+ "maxItems": 100
66
+ },
67
+ "dashboardRoles": {
68
+ "type": "array",
69
+ "items": {
70
+ "type": "object",
71
+ "properties": {
72
+ "resourceId": {
73
+ "type": "string",
74
+ "pattern": "^[A-Fa-f\\d]{24}$"
75
+ },
76
+ "role": {
77
+ "type": "string",
78
+ "enum": [
79
+ "collaborate",
80
+ "view",
81
+ "none"
82
+ ]
83
+ }
84
+ },
85
+ "required": [
86
+ "resourceId",
87
+ "role"
88
+ ],
89
+ "additionalProperties": false
90
+ },
91
+ "maxItems": 100
92
+ },
41
93
  "avatarUrl": {
42
94
  "type": "string",
43
95
  "format": "uri",
@@ -5,7 +5,111 @@
5
5
  "items": {
6
6
  "type": "array",
7
7
  "items": {
8
- "$ref": "#/definitions/instanceOrgMembers"
8
+ "title": "Instance Org Member",
9
+ "description": "Schema for an Instance Organization member",
10
+ "type": "object",
11
+ "properties": {
12
+ "instanceId": {
13
+ "type": "string",
14
+ "pattern": "^[A-Fa-f\\d]{24}$"
15
+ },
16
+ "orgId": {
17
+ "type": "string",
18
+ "pattern": "^[A-Fa-f\\d]{24}$"
19
+ },
20
+ "userId": {
21
+ "type": "string",
22
+ "pattern": "^[A-Fa-f\\d]{24}$"
23
+ },
24
+ "email": {
25
+ "type": "string",
26
+ "format": "email",
27
+ "maxLength": 1024
28
+ },
29
+ "firstName": {
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "maxLength": 1024
33
+ },
34
+ "lastName": {
35
+ "type": "string",
36
+ "maxLength": 1024
37
+ },
38
+ "role": {
39
+ "type": "string",
40
+ "enum": [
41
+ "admin",
42
+ "edit",
43
+ "collaborate",
44
+ "view",
45
+ "none"
46
+ ]
47
+ },
48
+ "applicationRoles": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "object",
52
+ "properties": {
53
+ "resourceId": {
54
+ "type": "string",
55
+ "pattern": "^[A-Fa-f\\d]{24}$"
56
+ },
57
+ "role": {
58
+ "type": "string",
59
+ "enum": [
60
+ "collaborate",
61
+ "view",
62
+ "none"
63
+ ]
64
+ }
65
+ },
66
+ "required": [
67
+ "resourceId",
68
+ "role"
69
+ ],
70
+ "additionalProperties": false
71
+ },
72
+ "maxItems": 100
73
+ },
74
+ "dashboardRoles": {
75
+ "type": "array",
76
+ "items": {
77
+ "type": "object",
78
+ "properties": {
79
+ "resourceId": {
80
+ "type": "string",
81
+ "pattern": "^[A-Fa-f\\d]{24}$"
82
+ },
83
+ "role": {
84
+ "type": "string",
85
+ "enum": [
86
+ "collaborate",
87
+ "view",
88
+ "none"
89
+ ]
90
+ }
91
+ },
92
+ "required": [
93
+ "resourceId",
94
+ "role"
95
+ ],
96
+ "additionalProperties": false
97
+ },
98
+ "maxItems": 100
99
+ },
100
+ "avatarUrl": {
101
+ "type": "string",
102
+ "format": "uri",
103
+ "maxLength": 1024
104
+ },
105
+ "twoFactorAuthEnabled": {
106
+ "type": "boolean"
107
+ },
108
+ "ssoLinked": {
109
+ "type": "boolean"
110
+ }
111
+ },
112
+ "additionalProperties": false
9
113
  }
10
114
  },
11
115
  "instanceId": {
@@ -160,7 +160,7 @@
160
160
  },
161
161
  "members": {
162
162
  "type": "array",
163
- "maxItems": "10",
163
+ "maxItems": 10,
164
164
  "items": {
165
165
  "title": "Instance Org Member Post",
166
166
  "description": "Schema for an Instance Organization member creation request",