losant_rest 1.22.0 → 1.22.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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +8258 -5884
  3. data/docs/applicationJobLog.md +49 -0
  4. data/docs/applicationJobLogs.md +51 -0
  5. data/docs/data.md +1 -1
  6. data/docs/device.md +1 -0
  7. data/docs/events.md +3 -0
  8. data/lib/platform_rest/application_job_log.rb +81 -0
  9. data/lib/platform_rest/application_job_logs.rb +90 -0
  10. data/lib/platform_rest/client.rb +10 -2
  11. data/lib/platform_rest/data.rb +1 -1
  12. data/lib/platform_rest/device.rb +2 -0
  13. data/lib/platform_rest/events.rb +5 -0
  14. data/lib/platform_rest/version.rb +1 -1
  15. data/lib/platform_rest.rb +2 -0
  16. data/schemas/advancedApplicationJobLogQuery.json +855 -0
  17. data/schemas/apiTokenPost.json +5 -0
  18. data/schemas/application.json +4 -0
  19. data/schemas/applicationCreationByTemplateResult.json +4 -0
  20. data/schemas/applicationDashboardPost.json +120 -0
  21. data/schemas/applicationJobLog.json +250 -0
  22. data/schemas/applicationJobLogs.json +292 -0
  23. data/schemas/applicationPatch.json +4 -0
  24. data/schemas/applicationPost.json +4 -0
  25. data/schemas/applications.json +4 -0
  26. data/schemas/dashboard.json +120 -0
  27. data/schemas/dashboardPatch.json +120 -0
  28. data/schemas/dashboardPost.json +120 -0
  29. data/schemas/dashboards.json +120 -0
  30. data/schemas/dataExport.json +4 -0
  31. data/schemas/deviceDataExport.json +48 -0
  32. data/schemas/devicesDataExport.json +2116 -0
  33. data/schemas/devicesPatch.json +65 -0
  34. data/schemas/githubLogin.json +5 -0
  35. data/schemas/samlResponse.json +5 -0
  36. data/schemas/suggestFunctionPost.json +15 -0
  37. data/schemas/suggestFunctionResponse.json +37 -0
  38. data/schemas/userCredentials.json +5 -0
  39. data/schemas/userPost.json +5 -0
  40. metadata +13 -2
@@ -2548,6 +2548,71 @@
2548
2548
  ],
2549
2549
  "additionalProperties": false
2550
2550
  },
2551
+ {
2552
+ "type": "object",
2553
+ "properties": {
2554
+ "operation": {
2555
+ "type": "string",
2556
+ "enum": [
2557
+ "set"
2558
+ ]
2559
+ },
2560
+ "target": {
2561
+ "type": "string",
2562
+ "enum": [
2563
+ "attributeContentType"
2564
+ ]
2565
+ },
2566
+ "attributeName": {
2567
+ "type": "string",
2568
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
2569
+ },
2570
+ "value": {
2571
+ "type": "string",
2572
+ "maxLength": 64,
2573
+ "minLength": 1
2574
+ }
2575
+ },
2576
+ "required": [
2577
+ "operation",
2578
+ "target",
2579
+ "attributeName",
2580
+ "value"
2581
+ ],
2582
+ "additionalProperties": false
2583
+ },
2584
+ {
2585
+ "type": "object",
2586
+ "properties": {
2587
+ "operation": {
2588
+ "type": "string",
2589
+ "enum": [
2590
+ "set"
2591
+ ]
2592
+ },
2593
+ "target": {
2594
+ "type": "string",
2595
+ "enum": [
2596
+ "attributeName"
2597
+ ]
2598
+ },
2599
+ "attributeName": {
2600
+ "type": "string",
2601
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
2602
+ },
2603
+ "value": {
2604
+ "type": "string",
2605
+ "pattern": "^[0-9a-zA-Z_-]{1,255}$"
2606
+ }
2607
+ },
2608
+ "required": [
2609
+ "operation",
2610
+ "target",
2611
+ "attributeName",
2612
+ "value"
2613
+ ],
2614
+ "additionalProperties": false
2615
+ },
2551
2616
  {
2552
2617
  "type": "object",
2553
2618
  "properties": {
@@ -31,6 +31,8 @@
31
31
  "applicationCertificateAuthorities.*",
32
32
  "applicationDashboards.*",
33
33
  "applicationDashboard.*",
34
+ "applicationJobLogs.*",
35
+ "applicationJobLog.*",
34
36
  "applicationKey.*",
35
37
  "applicationKeys.*",
36
38
  "credential.*",
@@ -122,6 +124,8 @@
122
124
  "applicationDashboard.delete",
123
125
  "applicationDashboards.get",
124
126
  "applicationDashboards.post",
127
+ "applicationJobLogs.get",
128
+ "applicationJobLog.get",
125
129
  "applicationKey.delete",
126
130
  "applicationKey.get",
127
131
  "applicationKey.patch",
@@ -282,6 +286,7 @@
282
286
  "flow.setStorageEntry",
283
287
  "flow.getStorageEntriesMetadata",
284
288
  "flow.stats",
289
+ "flow.suggestFunction",
285
290
  "flows.get",
286
291
  "flows.getByVersion",
287
292
  "flows.import",
@@ -36,6 +36,8 @@
36
36
  "applicationCertificateAuthorities.*",
37
37
  "applicationDashboards.*",
38
38
  "applicationDashboard.*",
39
+ "applicationJobLogs.*",
40
+ "applicationJobLog.*",
39
41
  "applicationKey.*",
40
42
  "applicationKeys.*",
41
43
  "credential.*",
@@ -127,6 +129,8 @@
127
129
  "applicationDashboard.delete",
128
130
  "applicationDashboards.get",
129
131
  "applicationDashboards.post",
132
+ "applicationJobLogs.get",
133
+ "applicationJobLog.get",
130
134
  "applicationKey.delete",
131
135
  "applicationKey.get",
132
136
  "applicationKey.patch",
@@ -287,6 +291,7 @@
287
291
  "flow.setStorageEntry",
288
292
  "flow.getStorageEntriesMetadata",
289
293
  "flow.stats",
294
+ "flow.suggestFunction",
290
295
  "flows.get",
291
296
  "flows.getByVersion",
292
297
  "flows.import",
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "text": {
6
+ "type": "string",
7
+ "minLength": 1,
8
+ "maxLength": 8192
9
+ }
10
+ },
11
+ "required": [
12
+ "text"
13
+ ],
14
+ "additionalProperties": false
15
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "text": {
6
+ "type": "string",
7
+ "maxLength": 32767,
8
+ "minLength": 1
9
+ },
10
+ "responseId": {
11
+ "type": "string",
12
+ "minLength": 1,
13
+ "maxLength": 1024
14
+ },
15
+ "finishReason": {
16
+ "type": "string",
17
+ "enum": [
18
+ "FINISH_REASON_UNSPECIFIED",
19
+ "STOP",
20
+ "MAX_TOKENS",
21
+ "SAFETY",
22
+ "RECITATION",
23
+ "OTHER",
24
+ "BLOCKLIST",
25
+ "PROHIBITED_CONTENT",
26
+ "SPII",
27
+ "MALFORMED_FUNCTION_CALL"
28
+ ]
29
+ }
30
+ },
31
+ "required": [
32
+ "text",
33
+ "responseId",
34
+ "finishReason"
35
+ ],
36
+ "additionalProperties": false
37
+ }
@@ -40,6 +40,8 @@
40
40
  "applicationCertificateAuthorities.*",
41
41
  "applicationDashboards.*",
42
42
  "applicationDashboard.*",
43
+ "applicationJobLogs.*",
44
+ "applicationJobLog.*",
43
45
  "applicationKey.*",
44
46
  "applicationKeys.*",
45
47
  "credential.*",
@@ -131,6 +133,8 @@
131
133
  "applicationDashboard.delete",
132
134
  "applicationDashboards.get",
133
135
  "applicationDashboards.post",
136
+ "applicationJobLogs.get",
137
+ "applicationJobLog.get",
134
138
  "applicationKey.delete",
135
139
  "applicationKey.get",
136
140
  "applicationKey.patch",
@@ -291,6 +295,7 @@
291
295
  "flow.setStorageEntry",
292
296
  "flow.getStorageEntriesMetadata",
293
297
  "flow.stats",
298
+ "flow.suggestFunction",
294
299
  "flows.get",
295
300
  "flows.getByVersion",
296
301
  "flows.import",
@@ -98,6 +98,8 @@
98
98
  "applicationCertificateAuthorities.*",
99
99
  "applicationDashboards.*",
100
100
  "applicationDashboard.*",
101
+ "applicationJobLogs.*",
102
+ "applicationJobLog.*",
101
103
  "applicationKey.*",
102
104
  "applicationKeys.*",
103
105
  "credential.*",
@@ -189,6 +191,8 @@
189
191
  "applicationDashboard.delete",
190
192
  "applicationDashboards.get",
191
193
  "applicationDashboards.post",
194
+ "applicationJobLogs.get",
195
+ "applicationJobLog.get",
192
196
  "applicationKey.delete",
193
197
  "applicationKey.get",
194
198
  "applicationKey.patch",
@@ -349,6 +353,7 @@
349
353
  "flow.setStorageEntry",
350
354
  "flow.getStorageEntriesMetadata",
351
355
  "flow.stats",
356
+ "flow.suggestFunction",
352
357
  "flows.get",
353
358
  "flows.getByVersion",
354
359
  "flows.import",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: losant_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.22.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Kuehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-24 00:00:00.000000000 Z
11
+ date: 2025-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -91,6 +91,8 @@ files:
91
91
  - docs/applicationCertificates.md
92
92
  - docs/applicationDashboard.md
93
93
  - docs/applicationDashboards.md
94
+ - docs/applicationJobLog.md
95
+ - docs/applicationJobLogs.md
94
96
  - docs/applicationKey.md
95
97
  - docs/applicationKeys.md
96
98
  - docs/applicationTemplate.md
@@ -187,6 +189,8 @@ files:
187
189
  - lib/platform_rest/application_certificates.rb
188
190
  - lib/platform_rest/application_dashboard.rb
189
191
  - lib/platform_rest/application_dashboards.rb
192
+ - lib/platform_rest/application_job_log.rb
193
+ - lib/platform_rest/application_job_logs.rb
190
194
  - lib/platform_rest/application_key.rb
191
195
  - lib/platform_rest/application_keys.rb
192
196
  - lib/platform_rest/application_template.rb
@@ -276,6 +280,7 @@ files:
276
280
  - lib/platform_rest/webhook.rb
277
281
  - lib/platform_rest/webhooks.rb
278
282
  - losant_rest.gemspec
283
+ - schemas/advancedApplicationJobLogQuery.json
279
284
  - schemas/advancedApplicationKeyQuery.json
280
285
  - schemas/advancedDeviceQuery.json
281
286
  - schemas/advancedEventQuery.json
@@ -310,6 +315,8 @@ files:
310
315
  - schemas/applicationGlobalPatch.json
311
316
  - schemas/applicationImportExecutions.json
312
317
  - schemas/applicationImportOptions.json
318
+ - schemas/applicationJobLog.json
319
+ - schemas/applicationJobLogs.json
313
320
  - schemas/applicationKey.json
314
321
  - schemas/applicationKeyPatch.json
315
322
  - schemas/applicationKeyPost.json
@@ -376,6 +383,7 @@ files:
376
383
  - schemas/deviceConnectionStatus.json
377
384
  - schemas/deviceCounts.json
378
385
  - schemas/deviceCredentials.json
386
+ - schemas/deviceDataExport.json
379
387
  - schemas/deviceLog.json
380
388
  - schemas/deviceNamesResponse.json
381
389
  - schemas/devicePatch.json
@@ -393,6 +401,7 @@ files:
393
401
  - schemas/deviceStates.json
394
402
  - schemas/deviceTagFilter.json
395
403
  - schemas/devices.json
404
+ - schemas/devicesDataExport.json
396
405
  - schemas/devicesDataRemoved.json
397
406
  - schemas/devicesDeleteOrRestorePost.json
398
407
  - schemas/devicesDeletePost.json
@@ -578,6 +587,8 @@ files:
578
587
  - schemas/success.json
579
588
  - schemas/successWithExecutionId.json
580
589
  - schemas/successWithJobId.json
590
+ - schemas/suggestFunctionPost.json
591
+ - schemas/suggestFunctionResponse.json
581
592
  - schemas/tagKeysResponse.json
582
593
  - schemas/tagValuesResponse.json
583
594
  - schemas/templateKeywords.json