losant_rest 1.11.1 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/docs/_schemas.md +34959 -19022
- data/docs/application.md +46 -5
- data/docs/applicationApiTokens.md +1 -1
- data/docs/applicationDashboard.md +133 -0
- data/docs/applicationDashboards.md +93 -0
- data/docs/applicationKeys.md +3 -2
- data/docs/applications.md +1 -1
- data/docs/dataTable.md +1 -1
- data/docs/dataTableRows.md +1 -1
- data/docs/dataTables.md +1 -1
- data/docs/device.md +43 -0
- data/docs/devices.md +41 -2
- data/docs/edgeDeployment.md +49 -0
- data/docs/events.md +3 -3
- data/docs/experience.md +1 -1
- data/docs/experienceDomains.md +1 -1
- data/docs/experienceEndpoint.md +1 -0
- data/docs/experienceGroup.md +2 -0
- data/docs/experienceSlugs.md +1 -1
- data/docs/experienceVersion.md +3 -3
- data/docs/experienceVersions.md +2 -2
- data/docs/experienceView.md +4 -4
- data/docs/experienceViews.md +2 -2
- data/docs/file.md +5 -5
- data/docs/files.md +2 -2
- data/docs/flow.md +41 -0
- data/docs/flowVersions.md +44 -0
- data/docs/flows.md +1 -0
- data/docs/instance.md +166 -0
- data/docs/instanceApiToken.md +133 -0
- data/docs/instanceApiTokens.md +91 -0
- data/docs/instanceMember.md +133 -0
- data/docs/instanceMembers.md +91 -0
- data/docs/instanceOrg.md +135 -0
- data/docs/instanceOrgInvite.md +139 -0
- data/docs/instanceOrgInvites.md +96 -0
- data/docs/instanceOrgMember.md +139 -0
- data/docs/instanceOrgMembers.md +96 -0
- data/docs/instanceOrgs.md +91 -0
- data/docs/instances.md +50 -0
- data/docs/integration.md +1 -0
- data/docs/me.md +1 -1
- data/docs/org.md +1 -1
- data/docs/userApiToken.md +125 -0
- data/docs/userApiTokens.md +87 -0
- data/docs/webhook.md +1 -0
- data/lib/losant_rest.rb +18 -1
- data/lib/losant_rest/application.rb +53 -6
- data/lib/losant_rest/application_api_token.rb +1 -1
- data/lib/losant_rest/application_api_tokens.rb +2 -2
- data/lib/losant_rest/application_certificate.rb +1 -1
- data/lib/losant_rest/application_certificate_authorities.rb +1 -1
- data/lib/losant_rest/application_certificate_authority.rb +1 -1
- data/lib/losant_rest/application_certificates.rb +1 -1
- data/lib/losant_rest/application_dashboard.rb +176 -0
- data/lib/losant_rest/application_dashboards.rb +138 -0
- data/lib/losant_rest/application_key.rb +1 -1
- data/lib/losant_rest/application_keys.rb +4 -1
- data/lib/losant_rest/application_template.rb +1 -1
- data/lib/losant_rest/application_templates.rb +1 -1
- data/lib/losant_rest/applications.rb +2 -2
- data/lib/losant_rest/audit_log.rb +1 -1
- data/lib/losant_rest/audit_logs.rb +1 -1
- data/lib/losant_rest/auth.rb +1 -1
- data/lib/losant_rest/client.rb +71 -3
- data/lib/losant_rest/dashboard.rb +1 -1
- data/lib/losant_rest/dashboards.rb +1 -1
- data/lib/losant_rest/data.rb +1 -1
- data/lib/losant_rest/data_table.rb +2 -2
- data/lib/losant_rest/data_table_row.rb +1 -1
- data/lib/losant_rest/data_table_rows.rb +2 -2
- data/lib/losant_rest/data_tables.rb +2 -2
- data/lib/losant_rest/device.rb +51 -1
- data/lib/losant_rest/device_recipe.rb +1 -1
- data/lib/losant_rest/device_recipes.rb +1 -1
- data/lib/losant_rest/devices.rb +49 -3
- data/lib/losant_rest/edge_deployment.rb +81 -0
- data/lib/losant_rest/edge_deployments.rb +1 -1
- data/lib/losant_rest/error.rb +1 -1
- data/lib/losant_rest/event.rb +1 -1
- data/lib/losant_rest/events.rb +4 -4
- data/lib/losant_rest/experience.rb +2 -2
- data/lib/losant_rest/experience_domain.rb +1 -1
- data/lib/losant_rest/experience_domains.rb +2 -2
- data/lib/losant_rest/experience_endpoint.rb +3 -1
- data/lib/losant_rest/experience_endpoints.rb +1 -1
- data/lib/losant_rest/experience_group.rb +5 -1
- data/lib/losant_rest/experience_groups.rb +1 -1
- data/lib/losant_rest/experience_slug.rb +1 -1
- data/lib/losant_rest/experience_slugs.rb +2 -2
- data/lib/losant_rest/experience_user.rb +1 -1
- data/lib/losant_rest/experience_users.rb +1 -1
- data/lib/losant_rest/experience_version.rb +4 -4
- data/lib/losant_rest/experience_versions.rb +3 -3
- data/lib/losant_rest/experience_view.rb +5 -5
- data/lib/losant_rest/experience_views.rb +3 -3
- data/lib/losant_rest/file.rb +5 -5
- data/lib/losant_rest/files.rb +3 -3
- data/lib/losant_rest/flow.rb +47 -1
- data/lib/losant_rest/flow_version.rb +1 -1
- data/lib/losant_rest/flow_versions.rb +51 -1
- data/lib/losant_rest/flows.rb +3 -1
- data/lib/losant_rest/instance.rb +226 -0
- data/lib/losant_rest/instance_api_token.rb +176 -0
- data/lib/losant_rest/instance_api_tokens.rb +136 -0
- data/lib/losant_rest/instance_member.rb +176 -0
- data/lib/losant_rest/instance_members.rb +134 -0
- data/lib/losant_rest/instance_org.rb +180 -0
- data/lib/losant_rest/instance_org_invite.rb +182 -0
- data/lib/losant_rest/instance_org_invites.rb +138 -0
- data/lib/losant_rest/instance_org_member.rb +182 -0
- data/lib/losant_rest/instance_org_members.rb +138 -0
- data/lib/losant_rest/instance_orgs.rb +139 -0
- data/lib/losant_rest/instances.rb +88 -0
- data/lib/losant_rest/integration.rb +3 -1
- data/lib/losant_rest/integrations.rb +1 -1
- data/lib/losant_rest/me.rb +2 -2
- data/lib/losant_rest/notebook.rb +1 -1
- data/lib/losant_rest/notebooks.rb +1 -1
- data/lib/losant_rest/org.rb +2 -2
- data/lib/losant_rest/org_invites.rb +1 -1
- data/lib/losant_rest/orgs.rb +1 -1
- data/lib/losant_rest/user_api_token.rb +170 -0
- data/lib/losant_rest/user_api_tokens.rb +132 -0
- data/lib/losant_rest/utils.rb +1 -1
- data/lib/losant_rest/version.rb +2 -2
- data/lib/losant_rest/webhook.rb +3 -1
- data/lib/losant_rest/webhooks.rb +1 -1
- data/schemas/advancedApplicationKeyQuery.json +1082 -0
- data/schemas/advancedDeviceQuery.json +309 -0
- data/schemas/advancedFlowQuery.json +218 -0
- data/schemas/advancedFlowVersionQuery.json +218 -0
- data/schemas/apiToken.json +2 -1
- data/schemas/apiTokenPost.json +431 -0
- data/schemas/apiTokens.json +4 -2
- data/schemas/applicationApiTokenPost.json +8 -0
- data/schemas/applicationDashboardPost.json +5687 -0
- data/schemas/applicationGlobalPatch.json +33 -0
- data/schemas/auditLog.json +4 -0
- data/schemas/auditLogFilter.json +4 -0
- data/schemas/auditLogs.json +4 -0
- data/schemas/bulkDeleteResponse.json +12 -0
- data/schemas/dashboard.json +66 -17
- data/schemas/dashboardPatch.json +66 -17
- data/schemas/dashboardPost.json +66 -17
- data/schemas/dashboardSendReport.json +4 -0
- data/schemas/dashboards.json +66 -17
- data/schemas/devicePayloadCounts.json +24 -0
- data/schemas/devicesDeletePost.json +309 -0
- data/schemas/devicesExportPayloadCountPost.json +1350 -0
- data/schemas/devicesExportPost.json +309 -0
- data/schemas/devicesPatch.json +309 -0
- data/schemas/devicesRemoveDataPost.json +309 -0
- data/schemas/edgeDeployment.json +16 -0
- data/schemas/edgeDeployments.json +16 -0
- data/schemas/experienceGroup.json +6 -0
- data/schemas/experienceGroups.json +6 -0
- data/schemas/experienceLinkedResources.json +45 -0
- data/schemas/filePost.json +8 -2
- data/schemas/files.json +3 -0
- data/schemas/flow.json +15 -0
- data/schemas/flowPatch.json +15 -0
- data/schemas/flowPost.json +15 -0
- data/schemas/flowStorageMetadata.json +13 -0
- data/schemas/flowVersion.json +30 -0
- data/schemas/flowVersionPost.json +15 -0
- data/schemas/flowVersions.json +30 -0
- data/schemas/flowVersionsDeletePost.json +941 -0
- data/schemas/flows.json +15 -0
- data/schemas/flowsImportPost.json +30 -0
- data/schemas/flowsImportResult.json +45 -0
- data/schemas/githubLogin.json +72 -1
- data/schemas/historicalSummaries.json +43 -0
- data/schemas/historicalSummary.json +490 -0
- data/schemas/instance.json +192 -0
- data/schemas/instanceMember.json +41 -0
- data/schemas/instanceMemberPatch.json +17 -0
- data/schemas/instanceMemberPost.json +37 -0
- data/schemas/instanceMembers.json +77 -0
- data/schemas/instanceOrg.json +133 -0
- data/schemas/instanceOrgMember.json +45 -0
- data/schemas/instanceOrgMemberPatch.json +69 -0
- data/schemas/instanceOrgMemberPost.json +161 -0
- data/schemas/instanceOrgMembers.json +42 -0
- data/schemas/instanceOrgPatch.json +122 -0
- data/schemas/instanceOrgPost.json +291 -0
- data/schemas/instanceOrgs.json +178 -0
- data/schemas/instancePatch.json +67 -0
- data/schemas/instanceReportOptionsPost.json +41 -0
- data/schemas/instances.json +43 -0
- data/schemas/me.json +30 -14
- data/schemas/multiDeviceCommand.json +309 -0
- data/schemas/notebook.json +45 -0
- data/schemas/notebookPatch.json +30 -0
- data/schemas/notebookPost.json +30 -0
- data/schemas/notebooks.json +45 -0
- data/schemas/org.json +30 -14
- data/schemas/orgInvite.json +90 -0
- data/schemas/orgInviteCollection.json +130 -0
- data/schemas/orgInvites.json +82 -77
- data/schemas/orgPatch.json +0 -9
- data/schemas/orgRoleInfo.json +69 -0
- data/schemas/orgs.json +30 -14
- data/schemas/payloadStats.json +126 -0
- data/schemas/userCredentials.json +72 -1
- data/schemas/userPost.json +72 -1
- data/schemas/validateContextError.json +34 -0
- data/schemas/validateContextSuccess.json +34 -0
- data/schemas/virtualButtonPress.json +4 -0
- metadata +68 -3
data/schemas/flows.json
CHANGED
@@ -328,6 +328,21 @@
|
|
328
328
|
},
|
329
329
|
"maxAge": {
|
330
330
|
"type": "number"
|
331
|
+
},
|
332
|
+
"triggerOn": {
|
333
|
+
"type": "string",
|
334
|
+
"enum": [
|
335
|
+
"batch",
|
336
|
+
"individual",
|
337
|
+
"both"
|
338
|
+
]
|
339
|
+
},
|
340
|
+
"batchBehavior": {
|
341
|
+
"type": "string",
|
342
|
+
"enum": [
|
343
|
+
"once",
|
344
|
+
"each"
|
345
|
+
]
|
331
346
|
}
|
332
347
|
},
|
333
348
|
"additionalProperties": false
|
@@ -298,6 +298,21 @@
|
|
298
298
|
},
|
299
299
|
"maxAge": {
|
300
300
|
"type": "number"
|
301
|
+
},
|
302
|
+
"triggerOn": {
|
303
|
+
"type": "string",
|
304
|
+
"enum": [
|
305
|
+
"batch",
|
306
|
+
"individual",
|
307
|
+
"both"
|
308
|
+
]
|
309
|
+
},
|
310
|
+
"batchBehavior": {
|
311
|
+
"type": "string",
|
312
|
+
"enum": [
|
313
|
+
"once",
|
314
|
+
"each"
|
315
|
+
]
|
301
316
|
}
|
302
317
|
},
|
303
318
|
"additionalProperties": false
|
@@ -2477,6 +2492,21 @@
|
|
2477
2492
|
},
|
2478
2493
|
"maxAge": {
|
2479
2494
|
"type": "number"
|
2495
|
+
},
|
2496
|
+
"triggerOn": {
|
2497
|
+
"type": "string",
|
2498
|
+
"enum": [
|
2499
|
+
"batch",
|
2500
|
+
"individual",
|
2501
|
+
"both"
|
2502
|
+
]
|
2503
|
+
},
|
2504
|
+
"batchBehavior": {
|
2505
|
+
"type": "string",
|
2506
|
+
"enum": [
|
2507
|
+
"once",
|
2508
|
+
"each"
|
2509
|
+
]
|
2480
2510
|
}
|
2481
2511
|
},
|
2482
2512
|
"additionalProperties": false
|
@@ -329,6 +329,21 @@
|
|
329
329
|
},
|
330
330
|
"maxAge": {
|
331
331
|
"type": "number"
|
332
|
+
},
|
333
|
+
"triggerOn": {
|
334
|
+
"type": "string",
|
335
|
+
"enum": [
|
336
|
+
"batch",
|
337
|
+
"individual",
|
338
|
+
"both"
|
339
|
+
]
|
340
|
+
},
|
341
|
+
"batchBehavior": {
|
342
|
+
"type": "string",
|
343
|
+
"enum": [
|
344
|
+
"once",
|
345
|
+
"each"
|
346
|
+
]
|
332
347
|
}
|
333
348
|
},
|
334
349
|
"additionalProperties": false
|
@@ -2527,6 +2542,21 @@
|
|
2527
2542
|
},
|
2528
2543
|
"maxAge": {
|
2529
2544
|
"type": "number"
|
2545
|
+
},
|
2546
|
+
"triggerOn": {
|
2547
|
+
"type": "string",
|
2548
|
+
"enum": [
|
2549
|
+
"batch",
|
2550
|
+
"individual",
|
2551
|
+
"both"
|
2552
|
+
]
|
2553
|
+
},
|
2554
|
+
"batchBehavior": {
|
2555
|
+
"type": "string",
|
2556
|
+
"enum": [
|
2557
|
+
"once",
|
2558
|
+
"each"
|
2559
|
+
]
|
2530
2560
|
}
|
2531
2561
|
},
|
2532
2562
|
"additionalProperties": false
|
@@ -4725,6 +4755,21 @@
|
|
4725
4755
|
},
|
4726
4756
|
"maxAge": {
|
4727
4757
|
"type": "number"
|
4758
|
+
},
|
4759
|
+
"triggerOn": {
|
4760
|
+
"type": "string",
|
4761
|
+
"enum": [
|
4762
|
+
"batch",
|
4763
|
+
"individual",
|
4764
|
+
"both"
|
4765
|
+
]
|
4766
|
+
},
|
4767
|
+
"batchBehavior": {
|
4768
|
+
"type": "string",
|
4769
|
+
"enum": [
|
4770
|
+
"once",
|
4771
|
+
"each"
|
4772
|
+
]
|
4728
4773
|
}
|
4729
4774
|
},
|
4730
4775
|
"additionalProperties": false
|
data/schemas/githubLogin.json
CHANGED
@@ -19,6 +19,7 @@
|
|
19
19
|
"enum": [
|
20
20
|
"all.Application",
|
21
21
|
"all.Application.read",
|
22
|
+
"all.Application.cli",
|
22
23
|
"all.Device",
|
23
24
|
"all.Device.read",
|
24
25
|
"application.*",
|
@@ -28,6 +29,8 @@
|
|
28
29
|
"applicationCertificates.*",
|
29
30
|
"applicationCertificateAuthority.*",
|
30
31
|
"applicationCertificateAuthorities.*",
|
32
|
+
"applicationDashboards.*",
|
33
|
+
"applicationDashboard.*",
|
31
34
|
"applicationKey.*",
|
32
35
|
"applicationKeys.*",
|
33
36
|
"data.*",
|
@@ -39,6 +42,7 @@
|
|
39
42
|
"deviceRecipe.*",
|
40
43
|
"deviceRecipes.*",
|
41
44
|
"devices.*",
|
45
|
+
"edgeDeployment.*",
|
42
46
|
"edgeDeployments.*",
|
43
47
|
"event.*",
|
44
48
|
"events.*",
|
@@ -100,6 +104,11 @@
|
|
100
104
|
"applicationCertificateAuthority.patch",
|
101
105
|
"applicationCertificateAuthorities.get",
|
102
106
|
"applicationCertificateAuthorities.post",
|
107
|
+
"applicationDashboard.get",
|
108
|
+
"applicationDashboard.patch",
|
109
|
+
"applicationDashboard.delete",
|
110
|
+
"applicationDashboards.get",
|
111
|
+
"applicationDashboards.post",
|
103
112
|
"applicationKey.delete",
|
104
113
|
"applicationKey.get",
|
105
114
|
"applicationKey.patch",
|
@@ -134,6 +143,7 @@
|
|
134
143
|
"device.getLogEntries",
|
135
144
|
"device.getState",
|
136
145
|
"device.patch",
|
146
|
+
"device.payloadCounts",
|
137
147
|
"device.removeData",
|
138
148
|
"device.sendCommand",
|
139
149
|
"device.sendState",
|
@@ -152,10 +162,12 @@
|
|
152
162
|
"devices.detailedSummary",
|
153
163
|
"devices.export",
|
154
164
|
"devices.get",
|
165
|
+
"devices.payloadCounts",
|
155
166
|
"devices.post",
|
156
167
|
"devices.sendCommand",
|
157
168
|
"devices.tagKeys",
|
158
169
|
"devices.tagValues",
|
170
|
+
"edgeDeployment.get",
|
159
171
|
"edgeDeployments.get",
|
160
172
|
"edgeDeployments.release",
|
161
173
|
"edgeDeployments.remove",
|
@@ -231,6 +243,7 @@
|
|
231
243
|
"flow.patch",
|
232
244
|
"flow.pressVirtualButton",
|
233
245
|
"flow.setStorageEntry",
|
246
|
+
"flow.getStorageEntriesMetadata",
|
234
247
|
"flow.stats",
|
235
248
|
"flows.get",
|
236
249
|
"flows.getByVersion",
|
@@ -242,6 +255,7 @@
|
|
242
255
|
"flowVersion.log",
|
243
256
|
"flowVersion.patch",
|
244
257
|
"flowVersion.stats",
|
258
|
+
"flowVersions.delete",
|
245
259
|
"flowVersions.get",
|
246
260
|
"flowVersions.post",
|
247
261
|
"integration.delete",
|
@@ -304,19 +318,75 @@
|
|
304
318
|
}
|
305
319
|
]
|
306
320
|
},
|
321
|
+
{
|
322
|
+
"type": "string",
|
323
|
+
"enum": [
|
324
|
+
"all.Instance",
|
325
|
+
"all.Instance.read",
|
326
|
+
"instance.*",
|
327
|
+
"instance.get",
|
328
|
+
"instance.patch",
|
329
|
+
"instance.historicalSummaries",
|
330
|
+
"instance.generateReport",
|
331
|
+
"instanceOrg.*",
|
332
|
+
"instanceOrg.get",
|
333
|
+
"instanceOrg.patch",
|
334
|
+
"instanceOrg.delete",
|
335
|
+
"instanceOrgs.*",
|
336
|
+
"instanceOrgs.get",
|
337
|
+
"instanceOrgs.post",
|
338
|
+
"instanceMember.*",
|
339
|
+
"instanceMember.get",
|
340
|
+
"instanceMember.patch",
|
341
|
+
"instanceMember.delete",
|
342
|
+
"instanceMembers.*",
|
343
|
+
"instanceMembers.get",
|
344
|
+
"instanceMembers.post",
|
345
|
+
"instanceOrgMember.*",
|
346
|
+
"instanceOrgMember.get",
|
347
|
+
"instanceOrgMember.patch",
|
348
|
+
"instanceOrgMember.delete",
|
349
|
+
"instanceOrgMembers.*",
|
350
|
+
"instanceOrgMembers.get",
|
351
|
+
"instanceOrgMembers.post",
|
352
|
+
"instanceOrgInvite.*",
|
353
|
+
"instanceOrgInvite.get",
|
354
|
+
"instanceOrgInvite.delete",
|
355
|
+
"instanceOrgInvite.resendInvite",
|
356
|
+
"instanceOrgInvites.*",
|
357
|
+
"instanceOrgInvites.get",
|
358
|
+
"instanceOrgInvites.post",
|
359
|
+
"instanceApiTokens.*",
|
360
|
+
"instanceApiTokens.get",
|
361
|
+
"instanceApiTokens.post",
|
362
|
+
"instanceApiToken.*",
|
363
|
+
"instanceApiToken.get",
|
364
|
+
"instanceApiToken.patch",
|
365
|
+
"instanceApiToken.delete"
|
366
|
+
]
|
367
|
+
},
|
307
368
|
{
|
308
369
|
"type": "string",
|
309
370
|
"enum": [
|
310
371
|
"all.User",
|
311
372
|
"all.User.read",
|
373
|
+
"all.User.cli",
|
374
|
+
"userApiToken.*",
|
375
|
+
"userApiToken.get",
|
376
|
+
"userApiToken.patch",
|
377
|
+
"userApiToken.delete",
|
378
|
+
"userApiTokens.*",
|
379
|
+
"userApiTokens.get",
|
380
|
+
"userApiTokens.post",
|
312
381
|
"applicationTemplate.*",
|
313
382
|
"applicationTemplate.get",
|
314
383
|
"applicationTemplates.*",
|
315
384
|
"applicationTemplates.get",
|
316
385
|
"applicationTemplates.getCategories",
|
317
386
|
"applicationTemplates.getUniqueKeywords",
|
387
|
+
"instances.*",
|
388
|
+
"instances.get",
|
318
389
|
"me.*",
|
319
|
-
"orgs.*",
|
320
390
|
"me.get",
|
321
391
|
"me.patch",
|
322
392
|
"me.delete",
|
@@ -330,6 +400,7 @@
|
|
330
400
|
"me.fetchRecentItems",
|
331
401
|
"me.payloadCounts",
|
332
402
|
"me.transferResources",
|
403
|
+
"orgs.*",
|
333
404
|
"orgs.get",
|
334
405
|
"orgs.post"
|
335
406
|
]
|
@@ -0,0 +1,43 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"items": {
|
6
|
+
"type": "array",
|
7
|
+
"items": {
|
8
|
+
"type": "#/definitions/historicalSummary"
|
9
|
+
}
|
10
|
+
},
|
11
|
+
"count": {
|
12
|
+
"type": "integer"
|
13
|
+
},
|
14
|
+
"totalCount": {
|
15
|
+
"type": "integer"
|
16
|
+
},
|
17
|
+
"perPage": {
|
18
|
+
"type": "integer"
|
19
|
+
},
|
20
|
+
"page": {
|
21
|
+
"type": "integer"
|
22
|
+
},
|
23
|
+
"filter": {
|
24
|
+
"type": "string"
|
25
|
+
},
|
26
|
+
"filterField": {
|
27
|
+
"type": "string"
|
28
|
+
},
|
29
|
+
"sortField": {
|
30
|
+
"type": "string"
|
31
|
+
},
|
32
|
+
"sortDirection": {
|
33
|
+
"type": "string",
|
34
|
+
"enum": [
|
35
|
+
"asc",
|
36
|
+
"desc",
|
37
|
+
"ASC",
|
38
|
+
"DESC",
|
39
|
+
""
|
40
|
+
]
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
@@ -0,0 +1,490 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
"type": "object",
|
4
|
+
"properties": {
|
5
|
+
"resourceType": {
|
6
|
+
"type": "string",
|
7
|
+
"enum": [
|
8
|
+
"application",
|
9
|
+
"organization",
|
10
|
+
"whitelabel"
|
11
|
+
]
|
12
|
+
},
|
13
|
+
"resourceId": {
|
14
|
+
"type": "string",
|
15
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
16
|
+
},
|
17
|
+
"resourceName": {
|
18
|
+
"type": "string",
|
19
|
+
"minLength": 1,
|
20
|
+
"maxLength": 255
|
21
|
+
},
|
22
|
+
"resourceProration": {
|
23
|
+
"type": "number"
|
24
|
+
},
|
25
|
+
"ownerType": {
|
26
|
+
"type": "string",
|
27
|
+
"enum": [
|
28
|
+
"organization",
|
29
|
+
"user"
|
30
|
+
]
|
31
|
+
},
|
32
|
+
"ownerId": {
|
33
|
+
"type": "string",
|
34
|
+
"pattern": "^[A-Fa-f\\d]{24}$"
|
35
|
+
},
|
36
|
+
"ownerName": {
|
37
|
+
"type": "string",
|
38
|
+
"minLength": 1,
|
39
|
+
"maxLength": 255
|
40
|
+
},
|
41
|
+
"limits": {
|
42
|
+
"apitoken": {
|
43
|
+
"type": "number"
|
44
|
+
},
|
45
|
+
"application": {
|
46
|
+
"type": "number"
|
47
|
+
},
|
48
|
+
"applicationkey": {
|
49
|
+
"type": "number"
|
50
|
+
},
|
51
|
+
"dashboard": {
|
52
|
+
"type": "number"
|
53
|
+
},
|
54
|
+
"datatable": {
|
55
|
+
"type": "number"
|
56
|
+
},
|
57
|
+
"device": {
|
58
|
+
"type": "number"
|
59
|
+
},
|
60
|
+
"devicerecipe": {
|
61
|
+
"type": "number"
|
62
|
+
},
|
63
|
+
"experiencedomain": {
|
64
|
+
"type": "number"
|
65
|
+
},
|
66
|
+
"experienceendpoint": {
|
67
|
+
"type": "number"
|
68
|
+
},
|
69
|
+
"experiencegroup": {
|
70
|
+
"type": "number"
|
71
|
+
},
|
72
|
+
"experienceslug": {
|
73
|
+
"type": "number"
|
74
|
+
},
|
75
|
+
"experienceuser": {
|
76
|
+
"type": "number"
|
77
|
+
},
|
78
|
+
"experienceversion": {
|
79
|
+
"type": "number"
|
80
|
+
},
|
81
|
+
"experienceview": {
|
82
|
+
"type": "number"
|
83
|
+
},
|
84
|
+
"file": {
|
85
|
+
"type": "number"
|
86
|
+
},
|
87
|
+
"flow": {
|
88
|
+
"type": "number"
|
89
|
+
},
|
90
|
+
"integration": {
|
91
|
+
"type": "number"
|
92
|
+
},
|
93
|
+
"notebook": {
|
94
|
+
"type": "number"
|
95
|
+
},
|
96
|
+
"webhook": {
|
97
|
+
"type": "number"
|
98
|
+
},
|
99
|
+
"dataTTL": {
|
100
|
+
"type": "number"
|
101
|
+
},
|
102
|
+
"member": {
|
103
|
+
"type": "number"
|
104
|
+
},
|
105
|
+
"payload": {
|
106
|
+
"type": "number"
|
107
|
+
},
|
108
|
+
"notebookMinutesPerRun": {
|
109
|
+
"type": "number"
|
110
|
+
},
|
111
|
+
"notebookMinutesPerMonth": {
|
112
|
+
"type": "number"
|
113
|
+
},
|
114
|
+
"notebookInParallel": {
|
115
|
+
"type": "number"
|
116
|
+
}
|
117
|
+
},
|
118
|
+
"currentPeriodStart": {
|
119
|
+
"type": "string",
|
120
|
+
"format": "date-time"
|
121
|
+
},
|
122
|
+
"currentPeriodEnd": {
|
123
|
+
"type": "string",
|
124
|
+
"format": "date-time"
|
125
|
+
},
|
126
|
+
"applicationCount": {
|
127
|
+
"type": "number"
|
128
|
+
},
|
129
|
+
"applicationCountProrated": {
|
130
|
+
"type": "number"
|
131
|
+
},
|
132
|
+
"userCount": {
|
133
|
+
"type": "number"
|
134
|
+
},
|
135
|
+
"userCountProrated": {
|
136
|
+
"type": "number"
|
137
|
+
},
|
138
|
+
"apiTokenCount": {
|
139
|
+
"type": "number"
|
140
|
+
},
|
141
|
+
"applicationKeyCount": {
|
142
|
+
"type": "number"
|
143
|
+
},
|
144
|
+
"certificateAuthorityCount": {
|
145
|
+
"type": "number"
|
146
|
+
},
|
147
|
+
"certificateCount": {
|
148
|
+
"type": "number"
|
149
|
+
},
|
150
|
+
"dashboardCount": {
|
151
|
+
"type": "number"
|
152
|
+
},
|
153
|
+
"dashboardCountProrated": {
|
154
|
+
"type": "number"
|
155
|
+
},
|
156
|
+
"dataTableCount": {
|
157
|
+
"type": "number"
|
158
|
+
},
|
159
|
+
"dataTableRowCount": {
|
160
|
+
"type": "number"
|
161
|
+
},
|
162
|
+
"dataTableTotalSizeMb": {
|
163
|
+
"type": "number"
|
164
|
+
},
|
165
|
+
"deviceCount": {
|
166
|
+
"type": "number"
|
167
|
+
},
|
168
|
+
"deviceCountProrated": {
|
169
|
+
"type": "number"
|
170
|
+
},
|
171
|
+
"deviceRecipeCount": {
|
172
|
+
"type": "number"
|
173
|
+
},
|
174
|
+
"eventCount": {
|
175
|
+
"type": "number"
|
176
|
+
},
|
177
|
+
"experienceDomainCount": {
|
178
|
+
"type": "number"
|
179
|
+
},
|
180
|
+
"experienceEndpointCount": {
|
181
|
+
"type": "number"
|
182
|
+
},
|
183
|
+
"experienceGroupCount": {
|
184
|
+
"type": "number"
|
185
|
+
},
|
186
|
+
"experienceSlugCount": {
|
187
|
+
"type": "number"
|
188
|
+
},
|
189
|
+
"experienceUserCount": {
|
190
|
+
"type": "number"
|
191
|
+
},
|
192
|
+
"experienceVersionCount": {
|
193
|
+
"type": "number"
|
194
|
+
},
|
195
|
+
"experienceViewCount": {
|
196
|
+
"type": "number"
|
197
|
+
},
|
198
|
+
"fileCount": {
|
199
|
+
"type": "number"
|
200
|
+
},
|
201
|
+
"fileTotalSizeMb": {
|
202
|
+
"type": "number"
|
203
|
+
},
|
204
|
+
"integrationCount": {
|
205
|
+
"type": "number"
|
206
|
+
},
|
207
|
+
"notebookCount": {
|
208
|
+
"type": "number"
|
209
|
+
},
|
210
|
+
"notebookRunCount": {
|
211
|
+
"type": "number"
|
212
|
+
},
|
213
|
+
"notebookMinutesCount": {
|
214
|
+
"type": "number"
|
215
|
+
},
|
216
|
+
"webhookCount": {
|
217
|
+
"type": "number"
|
218
|
+
},
|
219
|
+
"workflowCount": {
|
220
|
+
"type": "number"
|
221
|
+
},
|
222
|
+
"payloadBillableCount": {
|
223
|
+
"type": "number"
|
224
|
+
},
|
225
|
+
"payloadNonbillableCount": {
|
226
|
+
"type": "number"
|
227
|
+
},
|
228
|
+
"payloadBillableSizeMb": {
|
229
|
+
"type": "number"
|
230
|
+
},
|
231
|
+
"payloadNonbillableSizeMb": {
|
232
|
+
"type": "number"
|
233
|
+
},
|
234
|
+
"payloadCountDetails": {
|
235
|
+
"title": "Payload Stats",
|
236
|
+
"description": "Schema for the result of a payload stats request",
|
237
|
+
"type": "object",
|
238
|
+
"properties": {
|
239
|
+
"dataTable": {
|
240
|
+
"type": "object",
|
241
|
+
"patternProperties": {
|
242
|
+
".*": {
|
243
|
+
"type": "number"
|
244
|
+
}
|
245
|
+
}
|
246
|
+
},
|
247
|
+
"deviceCommand": {
|
248
|
+
"type": "object",
|
249
|
+
"patternProperties": {
|
250
|
+
".*": {
|
251
|
+
"type": "number"
|
252
|
+
}
|
253
|
+
}
|
254
|
+
},
|
255
|
+
"deviceConnect": {
|
256
|
+
"type": "object",
|
257
|
+
"patternProperties": {
|
258
|
+
".*": {
|
259
|
+
"type": "number"
|
260
|
+
}
|
261
|
+
}
|
262
|
+
},
|
263
|
+
"deviceDisconnect": {
|
264
|
+
"type": "object",
|
265
|
+
"patternProperties": {
|
266
|
+
".*": {
|
267
|
+
"type": "number"
|
268
|
+
}
|
269
|
+
}
|
270
|
+
},
|
271
|
+
"deviceState": {
|
272
|
+
"type": "object",
|
273
|
+
"patternProperties": {
|
274
|
+
".*": {
|
275
|
+
"type": "number"
|
276
|
+
}
|
277
|
+
}
|
278
|
+
},
|
279
|
+
"endpoint": {
|
280
|
+
"type": "object",
|
281
|
+
"patternProperties": {
|
282
|
+
".*": {
|
283
|
+
"type": "number"
|
284
|
+
}
|
285
|
+
}
|
286
|
+
},
|
287
|
+
"event": {
|
288
|
+
"type": "object",
|
289
|
+
"patternProperties": {
|
290
|
+
".*": {
|
291
|
+
"type": "number"
|
292
|
+
}
|
293
|
+
}
|
294
|
+
},
|
295
|
+
"flowError": {
|
296
|
+
"type": "object",
|
297
|
+
"patternProperties": {
|
298
|
+
".*": {
|
299
|
+
"type": "number"
|
300
|
+
}
|
301
|
+
}
|
302
|
+
},
|
303
|
+
"integration": {
|
304
|
+
"type": "object",
|
305
|
+
"patternProperties": {
|
306
|
+
".*": {
|
307
|
+
"type": "number"
|
308
|
+
}
|
309
|
+
}
|
310
|
+
},
|
311
|
+
"mqttIn": {
|
312
|
+
"type": "object",
|
313
|
+
"patternProperties": {
|
314
|
+
".*": {
|
315
|
+
"type": "number"
|
316
|
+
}
|
317
|
+
}
|
318
|
+
},
|
319
|
+
"mqttOut": {
|
320
|
+
"type": "object",
|
321
|
+
"patternProperties": {
|
322
|
+
".*": {
|
323
|
+
"type": "number"
|
324
|
+
}
|
325
|
+
}
|
326
|
+
},
|
327
|
+
"notebook": {
|
328
|
+
"type": "object",
|
329
|
+
"patternProperties": {
|
330
|
+
".*": {
|
331
|
+
"type": "number"
|
332
|
+
}
|
333
|
+
}
|
334
|
+
},
|
335
|
+
"timer": {
|
336
|
+
"type": "object",
|
337
|
+
"patternProperties": {
|
338
|
+
".*": {
|
339
|
+
"type": "number"
|
340
|
+
}
|
341
|
+
}
|
342
|
+
},
|
343
|
+
"virtualButton": {
|
344
|
+
"type": "object",
|
345
|
+
"patternProperties": {
|
346
|
+
".*": {
|
347
|
+
"type": "number"
|
348
|
+
}
|
349
|
+
}
|
350
|
+
},
|
351
|
+
"webhook": {
|
352
|
+
"type": "object",
|
353
|
+
"patternProperties": {
|
354
|
+
".*": {
|
355
|
+
"type": "number"
|
356
|
+
}
|
357
|
+
}
|
358
|
+
}
|
359
|
+
}
|
360
|
+
},
|
361
|
+
"payloadSizeDetails": {
|
362
|
+
"title": "Payload Stats",
|
363
|
+
"description": "Schema for the result of a payload stats request",
|
364
|
+
"type": "object",
|
365
|
+
"properties": {
|
366
|
+
"dataTable": {
|
367
|
+
"type": "object",
|
368
|
+
"patternProperties": {
|
369
|
+
".*": {
|
370
|
+
"type": "number"
|
371
|
+
}
|
372
|
+
}
|
373
|
+
},
|
374
|
+
"deviceCommand": {
|
375
|
+
"type": "object",
|
376
|
+
"patternProperties": {
|
377
|
+
".*": {
|
378
|
+
"type": "number"
|
379
|
+
}
|
380
|
+
}
|
381
|
+
},
|
382
|
+
"deviceConnect": {
|
383
|
+
"type": "object",
|
384
|
+
"patternProperties": {
|
385
|
+
".*": {
|
386
|
+
"type": "number"
|
387
|
+
}
|
388
|
+
}
|
389
|
+
},
|
390
|
+
"deviceDisconnect": {
|
391
|
+
"type": "object",
|
392
|
+
"patternProperties": {
|
393
|
+
".*": {
|
394
|
+
"type": "number"
|
395
|
+
}
|
396
|
+
}
|
397
|
+
},
|
398
|
+
"deviceState": {
|
399
|
+
"type": "object",
|
400
|
+
"patternProperties": {
|
401
|
+
".*": {
|
402
|
+
"type": "number"
|
403
|
+
}
|
404
|
+
}
|
405
|
+
},
|
406
|
+
"endpoint": {
|
407
|
+
"type": "object",
|
408
|
+
"patternProperties": {
|
409
|
+
".*": {
|
410
|
+
"type": "number"
|
411
|
+
}
|
412
|
+
}
|
413
|
+
},
|
414
|
+
"event": {
|
415
|
+
"type": "object",
|
416
|
+
"patternProperties": {
|
417
|
+
".*": {
|
418
|
+
"type": "number"
|
419
|
+
}
|
420
|
+
}
|
421
|
+
},
|
422
|
+
"flowError": {
|
423
|
+
"type": "object",
|
424
|
+
"patternProperties": {
|
425
|
+
".*": {
|
426
|
+
"type": "number"
|
427
|
+
}
|
428
|
+
}
|
429
|
+
},
|
430
|
+
"integration": {
|
431
|
+
"type": "object",
|
432
|
+
"patternProperties": {
|
433
|
+
".*": {
|
434
|
+
"type": "number"
|
435
|
+
}
|
436
|
+
}
|
437
|
+
},
|
438
|
+
"mqttIn": {
|
439
|
+
"type": "object",
|
440
|
+
"patternProperties": {
|
441
|
+
".*": {
|
442
|
+
"type": "number"
|
443
|
+
}
|
444
|
+
}
|
445
|
+
},
|
446
|
+
"mqttOut": {
|
447
|
+
"type": "object",
|
448
|
+
"patternProperties": {
|
449
|
+
".*": {
|
450
|
+
"type": "number"
|
451
|
+
}
|
452
|
+
}
|
453
|
+
},
|
454
|
+
"notebook": {
|
455
|
+
"type": "object",
|
456
|
+
"patternProperties": {
|
457
|
+
".*": {
|
458
|
+
"type": "number"
|
459
|
+
}
|
460
|
+
}
|
461
|
+
},
|
462
|
+
"timer": {
|
463
|
+
"type": "object",
|
464
|
+
"patternProperties": {
|
465
|
+
".*": {
|
466
|
+
"type": "number"
|
467
|
+
}
|
468
|
+
}
|
469
|
+
},
|
470
|
+
"virtualButton": {
|
471
|
+
"type": "object",
|
472
|
+
"patternProperties": {
|
473
|
+
".*": {
|
474
|
+
"type": "number"
|
475
|
+
}
|
476
|
+
}
|
477
|
+
},
|
478
|
+
"webhook": {
|
479
|
+
"type": "object",
|
480
|
+
"patternProperties": {
|
481
|
+
".*": {
|
482
|
+
"type": "number"
|
483
|
+
}
|
484
|
+
}
|
485
|
+
}
|
486
|
+
}
|
487
|
+
}
|
488
|
+
},
|
489
|
+
"additionalProperties": false
|
490
|
+
}
|