losant_rest 1.19.4 → 1.19.7
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 +9 -9
- data/docs/_schemas.md +7090 -2334
- data/docs/experienceUsers.md +1 -0
- data/docs/instanceAuditLog.md +49 -0
- data/docs/instanceAuditLogs.md +53 -0
- data/examples/auth.rb +1 -1
- data/examples/list_devices.rb +1 -1
- data/lib/platform_rest/application.rb +1 -1
- data/lib/platform_rest/application_api_token.rb +1 -1
- data/lib/platform_rest/application_api_tokens.rb +1 -1
- data/lib/platform_rest/application_certificate.rb +1 -1
- data/lib/platform_rest/application_certificate_authorities.rb +1 -1
- data/lib/platform_rest/application_certificate_authority.rb +1 -1
- data/lib/platform_rest/application_certificates.rb +1 -1
- data/lib/platform_rest/application_dashboard.rb +1 -1
- data/lib/platform_rest/application_dashboards.rb +1 -1
- data/lib/platform_rest/application_key.rb +1 -1
- data/lib/platform_rest/application_keys.rb +1 -1
- data/lib/platform_rest/application_template.rb +1 -1
- data/lib/platform_rest/application_templates.rb +1 -1
- data/lib/platform_rest/applications.rb +1 -1
- data/lib/platform_rest/audit_log.rb +1 -1
- data/lib/platform_rest/audit_logs.rb +1 -1
- data/lib/platform_rest/auth.rb +1 -1
- data/lib/platform_rest/client.rb +11 -3
- data/lib/platform_rest/credential.rb +1 -1
- data/lib/platform_rest/credentials.rb +1 -1
- data/lib/platform_rest/dashboard.rb +1 -1
- data/lib/platform_rest/dashboards.rb +1 -1
- data/lib/platform_rest/data.rb +1 -1
- data/lib/platform_rest/data_table.rb +1 -1
- data/lib/platform_rest/data_table_row.rb +1 -1
- data/lib/platform_rest/data_table_rows.rb +1 -1
- data/lib/platform_rest/data_tables.rb +1 -1
- data/lib/platform_rest/device.rb +1 -1
- data/lib/platform_rest/device_recipe.rb +1 -1
- data/lib/platform_rest/device_recipes.rb +1 -1
- data/lib/platform_rest/devices.rb +1 -1
- data/lib/platform_rest/edge_deployment.rb +1 -1
- data/lib/platform_rest/edge_deployments.rb +1 -1
- data/lib/platform_rest/embedded_deployment.rb +1 -1
- data/lib/platform_rest/embedded_deployments.rb +1 -1
- data/lib/platform_rest/error.rb +1 -1
- data/lib/platform_rest/event.rb +1 -1
- data/lib/platform_rest/events.rb +1 -1
- data/lib/platform_rest/experience.rb +1 -1
- data/lib/platform_rest/experience_domain.rb +1 -1
- data/lib/platform_rest/experience_domains.rb +1 -1
- data/lib/platform_rest/experience_endpoint.rb +1 -1
- data/lib/platform_rest/experience_endpoints.rb +1 -1
- data/lib/platform_rest/experience_group.rb +1 -1
- data/lib/platform_rest/experience_groups.rb +1 -1
- data/lib/platform_rest/experience_slug.rb +1 -1
- data/lib/platform_rest/experience_slugs.rb +1 -1
- data/lib/platform_rest/experience_user.rb +1 -1
- data/lib/platform_rest/experience_users.rb +4 -1
- data/lib/platform_rest/experience_version.rb +1 -1
- data/lib/platform_rest/experience_versions.rb +1 -1
- data/lib/platform_rest/experience_view.rb +1 -1
- data/lib/platform_rest/experience_views.rb +1 -1
- data/lib/platform_rest/file.rb +1 -1
- data/lib/platform_rest/files.rb +1 -1
- data/lib/platform_rest/flow.rb +1 -1
- data/lib/platform_rest/flow_version.rb +1 -1
- data/lib/platform_rest/flow_versions.rb +1 -1
- data/lib/platform_rest/flows.rb +1 -1
- data/lib/platform_rest/instance.rb +1 -1
- data/lib/platform_rest/instance_api_token.rb +1 -1
- data/lib/platform_rest/instance_api_tokens.rb +1 -1
- data/lib/{losant_rest/application_template.rb → platform_rest/instance_audit_log.rb} +13 -11
- data/lib/{losant_rest/audit_logs.rb → platform_rest/instance_audit_logs.rb} +12 -12
- data/lib/platform_rest/instance_custom_node.rb +1 -1
- data/lib/platform_rest/instance_custom_nodes.rb +1 -1
- data/lib/platform_rest/instance_member.rb +1 -1
- data/lib/platform_rest/instance_members.rb +1 -1
- data/lib/platform_rest/instance_org.rb +1 -1
- data/lib/platform_rest/instance_org_invite.rb +1 -1
- data/lib/platform_rest/instance_org_invites.rb +1 -1
- data/lib/platform_rest/instance_org_member.rb +1 -1
- data/lib/platform_rest/instance_org_members.rb +1 -1
- data/lib/platform_rest/instance_orgs.rb +1 -1
- data/lib/platform_rest/instance_sandbox.rb +1 -1
- data/lib/platform_rest/instance_sandboxes.rb +1 -1
- data/lib/platform_rest/instances.rb +1 -1
- data/lib/platform_rest/integration.rb +1 -1
- data/lib/platform_rest/integrations.rb +1 -1
- data/lib/platform_rest/me.rb +1 -1
- data/lib/platform_rest/notebook.rb +1 -1
- data/lib/platform_rest/notebooks.rb +1 -1
- data/lib/platform_rest/org.rb +1 -1
- data/lib/platform_rest/org_invites.rb +1 -1
- data/lib/platform_rest/orgs.rb +1 -1
- data/lib/platform_rest/resource_job.rb +1 -1
- data/lib/platform_rest/resource_jobs.rb +1 -1
- data/lib/platform_rest/user_api_token.rb +1 -1
- data/lib/platform_rest/user_api_tokens.rb +1 -1
- data/lib/platform_rest/utils.rb +1 -1
- data/lib/{losant_rest → platform_rest}/version.rb +3 -3
- data/lib/platform_rest/webhook.rb +1 -1
- data/lib/platform_rest/webhooks.rb +1 -1
- data/lib/platform_rest.rb +3 -1
- data/losant_rest.gemspec +2 -2
- data/schemas/advancedExperienceUserQuery.json +1068 -0
- data/schemas/apiTokenPost.json +9 -1
- data/schemas/auditLog.json +3 -2
- data/schemas/auditLogFilter.json +3 -2
- data/schemas/auditLogs.json +3 -2
- data/schemas/credential.json +95 -1
- data/schemas/credentialLinkedResources.json +417 -19
- data/schemas/credentialPatch.json +107 -0
- data/schemas/credentialPost.json +129 -1
- data/schemas/credentials.json +95 -1
- data/schemas/deviceConnectionStatus.json +6 -2
- data/schemas/devicesHistoricalImportPost.json +25 -0
- data/schemas/experienceLinkedResources.json +343 -20
- data/schemas/experienceVersion.json +64 -0
- data/schemas/experienceVersionPatch.json +64 -0
- data/schemas/experienceVersionPost.json +64 -0
- data/schemas/experienceVersions.json +64 -0
- data/schemas/experienceView.json +1 -2
- data/schemas/experienceViewPatch.json +1 -2
- data/schemas/experienceViewPost.json +2 -4
- data/schemas/experienceViews.json +1 -2
- data/schemas/flow.json +114 -6
- data/schemas/flowPatch.json +114 -6
- data/schemas/flowPost.json +114 -6
- data/schemas/flowVersion.json +228 -12
- data/schemas/flowVersionPost.json +114 -6
- data/schemas/flowVersions.json +228 -12
- data/schemas/flows.json +114 -6
- data/schemas/flowsImportPost.json +228 -12
- data/schemas/flowsImportResult.json +342 -18
- data/schemas/githubLogin.json +9 -1
- data/schemas/instance.json +1 -4
- data/schemas/instanceAuditLog.json +94 -0
- data/schemas/instanceAuditLogFilter.json +106 -0
- data/schemas/instanceAuditLogs.json +41 -0
- data/schemas/instanceCustomNode.json +2 -1
- data/schemas/instanceCustomNodePatch.json +2 -7
- data/schemas/instanceCustomNodePost.json +2 -7
- data/schemas/instanceCustomNodes.json +2 -1
- data/schemas/instanceOrgMember.json +4 -1
- data/schemas/instances.json +1 -4
- data/schemas/integration.json +75 -1
- data/schemas/integrationPatch.json +73 -0
- data/schemas/integrationPost.json +75 -1
- data/schemas/integrations.json +75 -1
- data/schemas/mePatch.json +18 -0
- data/schemas/resourceJob.json +2 -1
- data/schemas/resourceJobExecutionLogs.json +2 -1
- data/schemas/resourceJobPost.json +2 -1
- data/schemas/resourceJobs.json +2 -1
- data/schemas/samlResponse.json +9 -1
- data/schemas/userCredentials.json +9 -1
- data/schemas/userPost.json +9 -1
- data/test/basic_test.rb +6 -6
- data/test/test_helper.rb +1 -1
- metadata +12 -94
- data/lib/losant_rest/application.rb +0 -932
- data/lib/losant_rest/application_api_token.rb +0 -176
- data/lib/losant_rest/application_api_tokens.rb +0 -136
- data/lib/losant_rest/application_certificate.rb +0 -176
- data/lib/losant_rest/application_certificate_authorities.rb +0 -138
- data/lib/losant_rest/application_certificate_authority.rb +0 -176
- data/lib/losant_rest/application_certificates.rb +0 -138
- data/lib/losant_rest/application_dashboard.rb +0 -225
- data/lib/losant_rest/application_dashboards.rb +0 -138
- data/lib/losant_rest/application_key.rb +0 -176
- data/lib/losant_rest/application_keys.rb +0 -141
- data/lib/losant_rest/application_templates.rb +0 -176
- data/lib/losant_rest/applications.rb +0 -142
- data/lib/losant_rest/audit_log.rb +0 -81
- data/lib/losant_rest/auth.rb +0 -245
- data/lib/losant_rest/client.rb +0 -410
- data/lib/losant_rest/credential.rb +0 -224
- data/lib/losant_rest/credentials.rb +0 -138
- data/lib/losant_rest/dashboard.rb +0 -268
- data/lib/losant_rest/dashboards.rb +0 -136
- data/lib/losant_rest/data.rb +0 -176
- data/lib/losant_rest/data_table.rb +0 -274
- data/lib/losant_rest/data_table_row.rb +0 -182
- data/lib/losant_rest/data_table_rows.rb +0 -343
- data/lib/losant_rest/data_tables.rb +0 -138
- data/lib/losant_rest/device.rb +0 -749
- data/lib/losant_rest/device_recipe.rb +0 -234
- data/lib/losant_rest/device_recipes.rb +0 -146
- data/lib/losant_rest/devices.rb +0 -707
- data/lib/losant_rest/edge_deployment.rb +0 -81
- data/lib/losant_rest/edge_deployments.rb +0 -236
- data/lib/losant_rest/embedded_deployment.rb +0 -81
- data/lib/losant_rest/embedded_deployments.rb +0 -280
- data/lib/losant_rest/error.rb +0 -34
- data/lib/losant_rest/event.rb +0 -176
- data/lib/losant_rest/events.rb +0 -341
- data/lib/losant_rest/experience.rb +0 -142
- data/lib/losant_rest/experience_domain.rb +0 -176
- data/lib/losant_rest/experience_domains.rb +0 -126
- data/lib/losant_rest/experience_endpoint.rb +0 -230
- data/lib/losant_rest/experience_endpoints.rb +0 -200
- data/lib/losant_rest/experience_group.rb +0 -180
- data/lib/losant_rest/experience_groups.rb +0 -141
- data/lib/losant_rest/experience_slug.rb +0 -176
- data/lib/losant_rest/experience_slugs.rb +0 -126
- data/lib/losant_rest/experience_user.rb +0 -176
- data/lib/losant_rest/experience_users.rb +0 -142
- data/lib/losant_rest/experience_version.rb +0 -176
- data/lib/losant_rest/experience_versions.rb +0 -138
- data/lib/losant_rest/experience_view.rb +0 -228
- data/lib/losant_rest/experience_views.rb +0 -142
- data/lib/losant_rest/file.rb +0 -226
- data/lib/losant_rest/files.rb +0 -144
- data/lib/losant_rest/flow.rb +0 -580
- data/lib/losant_rest/flow_version.rb +0 -352
- data/lib/losant_rest/flow_versions.rb +0 -201
- data/lib/losant_rest/flows.rb +0 -310
- data/lib/losant_rest/instance.rb +0 -377
- data/lib/losant_rest/instance_api_token.rb +0 -176
- data/lib/losant_rest/instance_api_tokens.rb +0 -136
- data/lib/losant_rest/instance_custom_node.rb +0 -282
- data/lib/losant_rest/instance_custom_nodes.rb +0 -136
- data/lib/losant_rest/instance_member.rb +0 -176
- data/lib/losant_rest/instance_members.rb +0 -134
- data/lib/losant_rest/instance_org.rb +0 -336
- data/lib/losant_rest/instance_org_invite.rb +0 -182
- data/lib/losant_rest/instance_org_invites.rb +0 -138
- data/lib/losant_rest/instance_org_member.rb +0 -182
- data/lib/losant_rest/instance_org_members.rb +0 -138
- data/lib/losant_rest/instance_orgs.rb +0 -139
- data/lib/losant_rest/instance_sandbox.rb +0 -181
- data/lib/losant_rest/instance_sandboxes.rb +0 -98
- data/lib/losant_rest/instances.rb +0 -88
- data/lib/losant_rest/integration.rb +0 -178
- data/lib/losant_rest/integrations.rb +0 -138
- data/lib/losant_rest/me.rb +0 -790
- data/lib/losant_rest/notebook.rb +0 -423
- data/lib/losant_rest/notebooks.rb +0 -138
- data/lib/losant_rest/org.rb +0 -663
- data/lib/losant_rest/org_invites.rb +0 -124
- data/lib/losant_rest/orgs.rb +0 -140
- data/lib/losant_rest/resource_job.rb +0 -326
- data/lib/losant_rest/resource_jobs.rb +0 -138
- data/lib/losant_rest/user_api_token.rb +0 -170
- data/lib/losant_rest/user_api_tokens.rb +0 -132
- data/lib/losant_rest/utils.rb +0 -44
- data/lib/losant_rest/webhook.rb +0 -178
- data/lib/losant_rest/webhooks.rb +0 -138
- data/lib/losant_rest.rb +0 -129
data/schemas/apiTokenPost.json
CHANGED
@@ -158,6 +158,7 @@
|
|
158
158
|
"dataTableRows.truncate",
|
159
159
|
"dataTables.get",
|
160
160
|
"dataTables.post",
|
161
|
+
"device.agentLogs",
|
161
162
|
"device.commandStream",
|
162
163
|
"device.debug",
|
163
164
|
"device.delete",
|
@@ -190,6 +191,7 @@
|
|
190
191
|
"devices.export",
|
191
192
|
"devices.get",
|
192
193
|
"devices.getCompositeState",
|
194
|
+
"devices.historicalImport",
|
193
195
|
"devices.payloadCounts",
|
194
196
|
"devices.post",
|
195
197
|
"devices.sendCommand",
|
@@ -210,6 +212,7 @@
|
|
210
212
|
"event.get",
|
211
213
|
"event.patch",
|
212
214
|
"events.delete",
|
215
|
+
"events.detailedSummary",
|
213
216
|
"events.get",
|
214
217
|
"events.mostRecentBySeverity",
|
215
218
|
"events.patch",
|
@@ -285,6 +288,7 @@
|
|
285
288
|
"flows.palette",
|
286
289
|
"flows.post",
|
287
290
|
"flowVersion.delete",
|
291
|
+
"flowVersion.debug",
|
288
292
|
"flowVersion.errors",
|
289
293
|
"flowVersion.get",
|
290
294
|
"flowVersion.log",
|
@@ -431,7 +435,11 @@
|
|
431
435
|
"instanceSandbox.delete",
|
432
436
|
"instanceSandbox.undelete",
|
433
437
|
"instanceSandboxes.*",
|
434
|
-
"instanceSandboxes.get"
|
438
|
+
"instanceSandboxes.get",
|
439
|
+
"instanceAuditLog.*",
|
440
|
+
"instanceAuditLog.get",
|
441
|
+
"instanceAuditLogs.*",
|
442
|
+
"instanceAuditLogs.get"
|
435
443
|
]
|
436
444
|
},
|
437
445
|
{
|
data/schemas/auditLog.json
CHANGED
@@ -45,6 +45,7 @@
|
|
45
45
|
"ApplicationCertificateAuthority",
|
46
46
|
"ApplicationCertificate",
|
47
47
|
"ApplicationKey",
|
48
|
+
"Credential",
|
48
49
|
"Dashboard",
|
49
50
|
"DataTable",
|
50
51
|
"Device",
|
@@ -61,8 +62,8 @@
|
|
61
62
|
"Flow",
|
62
63
|
"Integration",
|
63
64
|
"Notebook",
|
64
|
-
"
|
65
|
-
"
|
65
|
+
"ResourceJob",
|
66
|
+
"Webhook"
|
66
67
|
]
|
67
68
|
},
|
68
69
|
"secondaryTargetName": {
|
data/schemas/auditLogFilter.json
CHANGED
@@ -43,6 +43,7 @@
|
|
43
43
|
"ApplicationCertificateAuthority",
|
44
44
|
"ApplicationCertificate",
|
45
45
|
"ApplicationKey",
|
46
|
+
"Credential",
|
46
47
|
"Dashboard",
|
47
48
|
"DataTable",
|
48
49
|
"Device",
|
@@ -59,8 +60,8 @@
|
|
59
60
|
"Flow",
|
60
61
|
"Integration",
|
61
62
|
"Notebook",
|
62
|
-
"
|
63
|
-
"
|
63
|
+
"ResourceJob",
|
64
|
+
"Webhook"
|
64
65
|
]
|
65
66
|
},
|
66
67
|
"name": {
|
data/schemas/auditLogs.json
CHANGED
@@ -52,6 +52,7 @@
|
|
52
52
|
"ApplicationCertificateAuthority",
|
53
53
|
"ApplicationCertificate",
|
54
54
|
"ApplicationKey",
|
55
|
+
"Credential",
|
55
56
|
"Dashboard",
|
56
57
|
"DataTable",
|
57
58
|
"Device",
|
@@ -68,8 +69,8 @@
|
|
68
69
|
"Flow",
|
69
70
|
"Integration",
|
70
71
|
"Notebook",
|
71
|
-
"
|
72
|
-
"
|
72
|
+
"ResourceJob",
|
73
|
+
"Webhook"
|
73
74
|
]
|
74
75
|
},
|
75
76
|
"secondaryTargetName": {
|
data/schemas/credential.json
CHANGED
@@ -62,7 +62,11 @@
|
|
62
62
|
"gcp",
|
63
63
|
"http",
|
64
64
|
"sendgrid",
|
65
|
-
"twilio"
|
65
|
+
"twilio",
|
66
|
+
"loggly",
|
67
|
+
"jwt",
|
68
|
+
"whatsapp",
|
69
|
+
"sql"
|
66
70
|
]
|
67
71
|
},
|
68
72
|
"awsConfig": {
|
@@ -162,6 +166,96 @@
|
|
162
166
|
"accountSid",
|
163
167
|
"apiKeySid"
|
164
168
|
]
|
169
|
+
},
|
170
|
+
"logglyConfig": {
|
171
|
+
"type": "object",
|
172
|
+
"properties": {},
|
173
|
+
"additionalProperties": false
|
174
|
+
},
|
175
|
+
"jwtConfig": {
|
176
|
+
"type": "object",
|
177
|
+
"properties": {
|
178
|
+
"issuer": {
|
179
|
+
"type": "string",
|
180
|
+
"maxLength": 1024
|
181
|
+
},
|
182
|
+
"algorithm": {
|
183
|
+
"type": "string",
|
184
|
+
"enum": [
|
185
|
+
"HS256",
|
186
|
+
"HS384",
|
187
|
+
"HS512",
|
188
|
+
"RS256",
|
189
|
+
"RS384",
|
190
|
+
"RS512",
|
191
|
+
"ES256",
|
192
|
+
"ES384",
|
193
|
+
"ES512"
|
194
|
+
]
|
195
|
+
}
|
196
|
+
},
|
197
|
+
"additionalProperties": false,
|
198
|
+
"required": [
|
199
|
+
"algorithm"
|
200
|
+
]
|
201
|
+
},
|
202
|
+
"whatsappConfig": {
|
203
|
+
"type": "object",
|
204
|
+
"properties": {
|
205
|
+
"fromNumberId": {
|
206
|
+
"type": "string",
|
207
|
+
"minLength": 1,
|
208
|
+
"maxLength": 128
|
209
|
+
}
|
210
|
+
},
|
211
|
+
"additionalProperties": false,
|
212
|
+
"required": [
|
213
|
+
"fromNumberId"
|
214
|
+
]
|
215
|
+
},
|
216
|
+
"sqlConfig": {
|
217
|
+
"type": "object",
|
218
|
+
"properties": {
|
219
|
+
"system": {
|
220
|
+
"type": "string",
|
221
|
+
"enum": [
|
222
|
+
"mssql",
|
223
|
+
"mysql",
|
224
|
+
"pg"
|
225
|
+
]
|
226
|
+
},
|
227
|
+
"host": {
|
228
|
+
"type": "string",
|
229
|
+
"minLength": 1,
|
230
|
+
"maxLength": 256
|
231
|
+
},
|
232
|
+
"port": {
|
233
|
+
"type": "integer",
|
234
|
+
"minimum": 1,
|
235
|
+
"maximum": 65535
|
236
|
+
},
|
237
|
+
"username": {
|
238
|
+
"type": "string",
|
239
|
+
"minLength": 1,
|
240
|
+
"maxLength": 256
|
241
|
+
},
|
242
|
+
"secureConnection": {
|
243
|
+
"type": "boolean"
|
244
|
+
},
|
245
|
+
"caCertificate": {
|
246
|
+
"type": "string",
|
247
|
+
"maxLength": 8196
|
248
|
+
},
|
249
|
+
"disableSSLVerification": {
|
250
|
+
"type": "boolean"
|
251
|
+
}
|
252
|
+
},
|
253
|
+
"additionalProperties": false,
|
254
|
+
"required": [
|
255
|
+
"system",
|
256
|
+
"host",
|
257
|
+
"username"
|
258
|
+
]
|
165
259
|
}
|
166
260
|
},
|
167
261
|
"additionalProperties": false,
|