seam 2.167.0 → 2.169.0
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/seam/resources/access_code.rb +4 -59
- data/lib/seam/resources/action_attempt.rb +75 -2
- data/lib/seam/resources/connected_account.rb +1 -18
- data/lib/seam/resources/device.rb +10 -23
- data/lib/seam/resources/device_provider.rb +1 -0
- data/lib/seam/resources/event.rb +155 -9
- data/lib/seam/resources/phone.rb +0 -17
- data/lib/seam/resources/thermostat_schedule.rb +37 -0
- data/lib/seam/resources/unmanaged_access_code.rb +4 -59
- data/lib/seam/resources/unmanaged_device.rb +0 -19
- data/lib/seam/routes/action_attempts.rb +4 -3
- data/lib/seam/routes/customers.rb +2 -3
- data/lib/seam/routes/devices.rb +4 -2
- data/lib/seam/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b3028a0c0f96d3b351a85542a3a5ee70071dbef805ec3e77fdc43dadfd8903c
|
|
4
|
+
data.tar.gz: 4e976eb3c071ed18119281ee750ace0975ba274738f1bea87a17656b5b15ca83
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7d1642ed823327303242addaa7b1a915b27debb42fe98473d756b0cf278cd1668aa6a568aab702ec483cec2dfa1d0f1df3adb7fa7e266c05d8fa14e9255c9b7
|
|
7
|
+
data.tar.gz: '095e514bedd2d84ee475ac7cf5670d97eb9f2e40b2ab992da016ef6c413070cafa08e61d500c6d6a6294c5db39aeff2e7936d9d823e2152bc4f476a71321fcb9'
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
seam (2.
|
|
4
|
+
seam (2.169.0)
|
|
5
5
|
faraday (~> 2.7)
|
|
6
6
|
faraday-retry (~> 2.2)
|
|
7
7
|
svix (~> 1.30)
|
|
@@ -171,7 +171,7 @@ CHECKSUMS
|
|
|
171
171
|
rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
|
|
172
172
|
rubocop-performance (1.26.1) sha256=cd19b936ff196df85829d264b522fd4f98b6c89ad271fa52744a8c11b8f71834
|
|
173
173
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
174
|
-
seam (2.
|
|
174
|
+
seam (2.169.0)
|
|
175
175
|
simplecov (1.1.1) sha256=25825ef13f0b2e74694d769817dad6ab8e90131dabdaa666e522fea105521e78
|
|
176
176
|
simplecov-console (0.9.5) sha256=b1108bcfff5f210143e2b8301698c367b01586f20d25a73e95475a5df6fc6ff6
|
|
177
177
|
standard (1.56.0) sha256=ae2af4d9669589162ac69ed5ef59dcf9f346d4afc81f7e62b84339310dfcb787
|
|
@@ -154,11 +154,12 @@ module Seam
|
|
|
154
154
|
# List of fields that were changed externally, with their previous and new values.
|
|
155
155
|
# @return [Array<ModifiedFields>]
|
|
156
156
|
resource_list_accessor :modified_fields, ModifiedFields
|
|
157
|
-
# Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.
|
|
157
|
+
# Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. `deactivated` means the code is still on the device but was disabled or suspended.
|
|
158
158
|
# @return [String, nil]
|
|
159
159
|
# Known values:
|
|
160
160
|
# - `modified`
|
|
161
161
|
# - `removed`
|
|
162
|
+
# - `deactivated`
|
|
162
163
|
attr_accessor :change_type
|
|
163
164
|
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
164
165
|
# @return [String]
|
|
@@ -212,42 +213,6 @@ module Seam
|
|
|
212
213
|
date_accessor :created_at
|
|
213
214
|
end
|
|
214
215
|
|
|
215
|
-
# Seam was unable to issue this access code before its start time, so the recipient may be unable to unlock the device. This usually points to a problem that needs attention, such as an offline or disconnected device. This error clears automatically if the access code is eventually issued.
|
|
216
|
-
class FailedToIssue < Errors
|
|
217
|
-
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
218
|
-
# @return [String]
|
|
219
|
-
# Known values:
|
|
220
|
-
# - `failed_to_issue`
|
|
221
|
-
attr_accessor :error_code
|
|
222
|
-
# Indicates that this is an access code error.
|
|
223
|
-
# @return [TrueClass]
|
|
224
|
-
attr_accessor :is_access_code_error
|
|
225
|
-
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
226
|
-
# @return [String]
|
|
227
|
-
attr_accessor :message
|
|
228
|
-
# Date and time at which Seam created the error.
|
|
229
|
-
# @return [Time, nil]
|
|
230
|
-
date_accessor :created_at
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
# Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied.
|
|
234
|
-
class FailedToUpdate < Errors
|
|
235
|
-
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
236
|
-
# @return [String]
|
|
237
|
-
# Known values:
|
|
238
|
-
# - `failed_to_update`
|
|
239
|
-
attr_accessor :error_code
|
|
240
|
-
# Indicates that this is an access code error.
|
|
241
|
-
# @return [TrueClass]
|
|
242
|
-
attr_accessor :is_access_code_error
|
|
243
|
-
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
244
|
-
# @return [String]
|
|
245
|
-
attr_accessor :message
|
|
246
|
-
# Date and time at which Seam created the error.
|
|
247
|
-
# @return [Time, nil]
|
|
248
|
-
date_accessor :created_at
|
|
249
|
-
end
|
|
250
|
-
|
|
251
216
|
# Seam was unable to remove this access code from the device in time after it was deleted or its `ends_at` passed, so the recipient may still be able to unlock the device. Seam keeps trying to delete it, and this error clears automatically once the access code is no longer usable on the device.
|
|
252
217
|
class FailedToDelete < Errors
|
|
253
218
|
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
@@ -562,8 +527,6 @@ module Seam
|
|
|
562
527
|
# - `conflicting_external_modification`
|
|
563
528
|
# - `access_code_inactive`
|
|
564
529
|
# - `code_constraints_violated`
|
|
565
|
-
# - `failed_to_issue`
|
|
566
|
-
# - `failed_to_update`
|
|
567
530
|
# - `failed_to_delete`
|
|
568
531
|
# - `account_disconnected`
|
|
569
532
|
# - `salto_ks_subscription_limit_exceeded`
|
|
@@ -597,8 +560,6 @@ module Seam
|
|
|
597
560
|
"conflicting_external_modification" => ConflictingExternalModification,
|
|
598
561
|
"access_code_inactive" => AccessCodeInactive,
|
|
599
562
|
"code_constraints_violated" => CodeConstraintsViolated,
|
|
600
|
-
"failed_to_issue" => FailedToIssue,
|
|
601
|
-
"failed_to_update" => FailedToUpdate,
|
|
602
563
|
"failed_to_delete" => FailedToDelete,
|
|
603
564
|
"account_disconnected" => AccountDisconnected,
|
|
604
565
|
"salto_ks_subscription_limit_exceeded" => SaltoKsSubscriptionLimitExceeded,
|
|
@@ -720,11 +681,12 @@ module Seam
|
|
|
720
681
|
# List of fields that were changed externally, with their previous and new values.
|
|
721
682
|
# @return [Array<ModifiedFields>]
|
|
722
683
|
resource_list_accessor :modified_fields, ModifiedFields
|
|
723
|
-
# Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.
|
|
684
|
+
# Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. `deactivated` means the code is still on the device but was disabled or suspended.
|
|
724
685
|
# @return [String, nil]
|
|
725
686
|
# Known values:
|
|
726
687
|
# - `modified`
|
|
727
688
|
# - `removed`
|
|
689
|
+
# - `deactivated`
|
|
728
690
|
attr_accessor :change_type
|
|
729
691
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
730
692
|
# @return [String]
|
|
@@ -769,21 +731,6 @@ module Seam
|
|
|
769
731
|
date_accessor :created_at
|
|
770
732
|
end
|
|
771
733
|
|
|
772
|
-
# Seam has not yet issued this access code, even though its start time is approaching, so access may not be ready when the recipient arrives. Seam is still attempting to issue it, and this warning clears automatically once issuance succeeds.
|
|
773
|
-
class DelayInIssuing < Warnings
|
|
774
|
-
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
775
|
-
# @return [String]
|
|
776
|
-
attr_accessor :message
|
|
777
|
-
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
778
|
-
# @return [String]
|
|
779
|
-
# Known values:
|
|
780
|
-
# - `delay_in_issuing`
|
|
781
|
-
attr_accessor :warning_code
|
|
782
|
-
# Date and time at which Seam created the warning.
|
|
783
|
-
# @return [Time, nil]
|
|
784
|
-
date_accessor :created_at
|
|
785
|
-
end
|
|
786
|
-
|
|
787
734
|
# Third-party integration detected that may cause access codes to fail.
|
|
788
735
|
class ThirdPartyIntegrationDetected < Warnings
|
|
789
736
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
@@ -903,7 +850,6 @@ module Seam
|
|
|
903
850
|
# - `external_modification_in_effect`
|
|
904
851
|
# - `delay_in_setting_on_device`
|
|
905
852
|
# - `delay_in_removing_from_device`
|
|
906
|
-
# - `delay_in_issuing`
|
|
907
853
|
# - `third_party_integration_detected`
|
|
908
854
|
# - `igloo_algopin_must_be_used_within_24_hours`
|
|
909
855
|
# - `management_transferred`
|
|
@@ -922,7 +868,6 @@ module Seam
|
|
|
922
868
|
"external_modification_in_effect" => ExternalModificationInEffect,
|
|
923
869
|
"delay_in_setting_on_device" => DelayInSettingOnDevice,
|
|
924
870
|
"delay_in_removing_from_device" => DelayInRemovingFromDevice,
|
|
925
|
-
"delay_in_issuing" => DelayInIssuing,
|
|
926
871
|
"third_party_integration_detected" => ThirdPartyIntegrationDetected,
|
|
927
872
|
"igloo_algopin_must_be_used_within_24_hours" => IglooAlgopinMustBeUsedWithinN24Hours,
|
|
928
873
|
"management_transferred" => ManagementTransferred,
|
|
@@ -54,6 +54,9 @@ module Seam
|
|
|
54
54
|
# - `pending`
|
|
55
55
|
# - `error`
|
|
56
56
|
attr_accessor :status
|
|
57
|
+
# Date and time at which the action attempt was created.
|
|
58
|
+
# @return [Time]
|
|
59
|
+
date_accessor :created_at
|
|
57
60
|
end
|
|
58
61
|
|
|
59
62
|
# Unlocking a door is pending.
|
|
@@ -97,6 +100,9 @@ module Seam
|
|
|
97
100
|
# - `pending`
|
|
98
101
|
# - `error`
|
|
99
102
|
attr_accessor :status
|
|
103
|
+
# Date and time at which the action attempt was created.
|
|
104
|
+
# @return [Time]
|
|
105
|
+
date_accessor :created_at
|
|
100
106
|
end
|
|
101
107
|
|
|
102
108
|
# Reading credential data from the physical encoder is pending.
|
|
@@ -353,7 +359,7 @@ module Seam
|
|
|
353
359
|
# Indicates whether the latest state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.
|
|
354
360
|
# @return [Boolean, nil]
|
|
355
361
|
attr_accessor :is_latest_desired_state_synced_with_provider
|
|
356
|
-
# @return [
|
|
362
|
+
# @return [TrueClass]
|
|
357
363
|
attr_accessor :is_managed
|
|
358
364
|
# Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).
|
|
359
365
|
# @return [Boolean, nil]
|
|
@@ -430,6 +436,9 @@ module Seam
|
|
|
430
436
|
# - `pending`
|
|
431
437
|
# - `error`
|
|
432
438
|
attr_accessor :status
|
|
439
|
+
# Date and time at which the action attempt was created.
|
|
440
|
+
# @return [Time]
|
|
441
|
+
date_accessor :created_at
|
|
433
442
|
end
|
|
434
443
|
|
|
435
444
|
# Encoding credential data from the physical encoder onto a card is pending.
|
|
@@ -626,7 +635,7 @@ module Seam
|
|
|
626
635
|
# Indicates whether the latest state of the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.
|
|
627
636
|
# @return [Boolean, nil]
|
|
628
637
|
attr_accessor :is_latest_desired_state_synced_with_provider
|
|
629
|
-
# @return [
|
|
638
|
+
# @return [TrueClass]
|
|
630
639
|
attr_accessor :is_managed
|
|
631
640
|
# Indicates whether the [credential](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://www.seam.co/docs/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).
|
|
632
641
|
# @return [Boolean, nil]
|
|
@@ -680,6 +689,9 @@ module Seam
|
|
|
680
689
|
# - `pending`
|
|
681
690
|
# - `error`
|
|
682
691
|
attr_accessor :status
|
|
692
|
+
# Date and time at which the action attempt was created.
|
|
693
|
+
# @return [Time]
|
|
694
|
+
date_accessor :created_at
|
|
683
695
|
end
|
|
684
696
|
|
|
685
697
|
# Scanning a physical card and assigning the credential is pending.
|
|
@@ -924,6 +936,9 @@ module Seam
|
|
|
924
936
|
# - `pending`
|
|
925
937
|
# - `error`
|
|
926
938
|
attr_accessor :status
|
|
939
|
+
# Date and time at which the action attempt was created.
|
|
940
|
+
# @return [Time]
|
|
941
|
+
date_accessor :created_at
|
|
927
942
|
end
|
|
928
943
|
|
|
929
944
|
# Assigning a credential to an access method is pending.
|
|
@@ -1115,6 +1130,9 @@ module Seam
|
|
|
1115
1130
|
# - `pending`
|
|
1116
1131
|
# - `error`
|
|
1117
1132
|
attr_accessor :status
|
|
1133
|
+
# Date and time at which the action attempt was created.
|
|
1134
|
+
# @return [Time]
|
|
1135
|
+
date_accessor :created_at
|
|
1118
1136
|
end
|
|
1119
1137
|
|
|
1120
1138
|
# Resetting a sandbox workspace is pending.
|
|
@@ -1155,6 +1173,9 @@ module Seam
|
|
|
1155
1173
|
# - `pending`
|
|
1156
1174
|
# - `error`
|
|
1157
1175
|
attr_accessor :status
|
|
1176
|
+
# Date and time at which the action attempt was created.
|
|
1177
|
+
# @return [Time]
|
|
1178
|
+
date_accessor :created_at
|
|
1158
1179
|
end
|
|
1159
1180
|
|
|
1160
1181
|
# Setting the fan mode is pending.
|
|
@@ -1195,6 +1216,9 @@ module Seam
|
|
|
1195
1216
|
# - `pending`
|
|
1196
1217
|
# - `error`
|
|
1197
1218
|
attr_accessor :status
|
|
1219
|
+
# Date and time at which the action attempt was created.
|
|
1220
|
+
# @return [Time]
|
|
1221
|
+
date_accessor :created_at
|
|
1198
1222
|
end
|
|
1199
1223
|
|
|
1200
1224
|
# Setting the HVAC mode is pending.
|
|
@@ -1235,6 +1259,9 @@ module Seam
|
|
|
1235
1259
|
# - `pending`
|
|
1236
1260
|
# - `error`
|
|
1237
1261
|
attr_accessor :status
|
|
1262
|
+
# Date and time at which the action attempt was created.
|
|
1263
|
+
# @return [Time]
|
|
1264
|
+
date_accessor :created_at
|
|
1238
1265
|
end
|
|
1239
1266
|
|
|
1240
1267
|
# Activating a climate preset is pending.
|
|
@@ -1275,6 +1302,9 @@ module Seam
|
|
|
1275
1302
|
# - `pending`
|
|
1276
1303
|
# - `error`
|
|
1277
1304
|
attr_accessor :status
|
|
1305
|
+
# Date and time at which the action attempt was created.
|
|
1306
|
+
# @return [Time]
|
|
1307
|
+
date_accessor :created_at
|
|
1278
1308
|
end
|
|
1279
1309
|
|
|
1280
1310
|
# Activating the weekly program is pending.
|
|
@@ -1315,6 +1345,9 @@ module Seam
|
|
|
1315
1345
|
# - `pending`
|
|
1316
1346
|
# - `error`
|
|
1317
1347
|
attr_accessor :status
|
|
1348
|
+
# Date and time at which the action attempt was created.
|
|
1349
|
+
# @return [Time]
|
|
1350
|
+
date_accessor :created_at
|
|
1318
1351
|
end
|
|
1319
1352
|
|
|
1320
1353
|
# Simulating a keypad code entry is pending.
|
|
@@ -1355,6 +1388,9 @@ module Seam
|
|
|
1355
1388
|
# - `pending`
|
|
1356
1389
|
# - `error`
|
|
1357
1390
|
attr_accessor :status
|
|
1391
|
+
# Date and time at which the action attempt was created.
|
|
1392
|
+
# @return [Time]
|
|
1393
|
+
date_accessor :created_at
|
|
1358
1394
|
end
|
|
1359
1395
|
|
|
1360
1396
|
# Simulating a manual lock action using a keypad is pending.
|
|
@@ -1395,6 +1431,9 @@ module Seam
|
|
|
1395
1431
|
# - `pending`
|
|
1396
1432
|
# - `error`
|
|
1397
1433
|
attr_accessor :status
|
|
1434
|
+
# Date and time at which the action attempt was created.
|
|
1435
|
+
# @return [Time]
|
|
1436
|
+
date_accessor :created_at
|
|
1398
1437
|
end
|
|
1399
1438
|
|
|
1400
1439
|
# Pushing thermostat weekly programs is pending.
|
|
@@ -1435,6 +1474,9 @@ module Seam
|
|
|
1435
1474
|
# - `pending`
|
|
1436
1475
|
# - `error`
|
|
1437
1476
|
attr_accessor :status
|
|
1477
|
+
# Date and time at which the action attempt was created.
|
|
1478
|
+
# @return [Time]
|
|
1479
|
+
date_accessor :created_at
|
|
1438
1480
|
end
|
|
1439
1481
|
|
|
1440
1482
|
# Configuring the auto-lock is pending.
|
|
@@ -1475,6 +1517,9 @@ module Seam
|
|
|
1475
1517
|
# - `pending`
|
|
1476
1518
|
# - `error`
|
|
1477
1519
|
attr_accessor :status
|
|
1520
|
+
# Date and time at which the action attempt was created.
|
|
1521
|
+
# @return [Time]
|
|
1522
|
+
date_accessor :created_at
|
|
1478
1523
|
end
|
|
1479
1524
|
|
|
1480
1525
|
# Converting an unmanaged access code to managed is pending.
|
|
@@ -1515,6 +1560,9 @@ module Seam
|
|
|
1515
1560
|
# - `pending`
|
|
1516
1561
|
# - `error`
|
|
1517
1562
|
attr_accessor :status
|
|
1563
|
+
# Date and time at which the action attempt was created.
|
|
1564
|
+
# @return [Time]
|
|
1565
|
+
date_accessor :created_at
|
|
1518
1566
|
end
|
|
1519
1567
|
|
|
1520
1568
|
class SyncAccessCodes < ActionAttempt
|
|
@@ -1554,6 +1602,9 @@ module Seam
|
|
|
1554
1602
|
# - `pending`
|
|
1555
1603
|
# - `error`
|
|
1556
1604
|
attr_accessor :status
|
|
1605
|
+
# Date and time at which the action attempt was created.
|
|
1606
|
+
# @return [Time]
|
|
1607
|
+
date_accessor :created_at
|
|
1557
1608
|
end
|
|
1558
1609
|
|
|
1559
1610
|
class CreateAccessCode < ActionAttempt
|
|
@@ -1596,6 +1647,9 @@ module Seam
|
|
|
1596
1647
|
# - `pending`
|
|
1597
1648
|
# - `error`
|
|
1598
1649
|
attr_accessor :status
|
|
1650
|
+
# Date and time at which the action attempt was created.
|
|
1651
|
+
# @return [Time]
|
|
1652
|
+
date_accessor :created_at
|
|
1599
1653
|
end
|
|
1600
1654
|
|
|
1601
1655
|
class DeleteAccessCode < ActionAttempt
|
|
@@ -1635,6 +1689,9 @@ module Seam
|
|
|
1635
1689
|
# - `pending`
|
|
1636
1690
|
# - `error`
|
|
1637
1691
|
attr_accessor :status
|
|
1692
|
+
# Date and time at which the action attempt was created.
|
|
1693
|
+
# @return [Time]
|
|
1694
|
+
date_accessor :created_at
|
|
1638
1695
|
end
|
|
1639
1696
|
|
|
1640
1697
|
class UpdateAccessCode < ActionAttempt
|
|
@@ -1677,6 +1734,9 @@ module Seam
|
|
|
1677
1734
|
# - `pending`
|
|
1678
1735
|
# - `error`
|
|
1679
1736
|
attr_accessor :status
|
|
1737
|
+
# Date and time at which the action attempt was created.
|
|
1738
|
+
# @return [Time]
|
|
1739
|
+
date_accessor :created_at
|
|
1680
1740
|
end
|
|
1681
1741
|
|
|
1682
1742
|
class CreateNoiseThreshold < ActionAttempt
|
|
@@ -1719,6 +1779,9 @@ module Seam
|
|
|
1719
1779
|
# - `pending`
|
|
1720
1780
|
# - `error`
|
|
1721
1781
|
attr_accessor :status
|
|
1782
|
+
# Date and time at which the action attempt was created.
|
|
1783
|
+
# @return [Time]
|
|
1784
|
+
date_accessor :created_at
|
|
1722
1785
|
end
|
|
1723
1786
|
|
|
1724
1787
|
class DeleteNoiseThreshold < ActionAttempt
|
|
@@ -1758,6 +1821,9 @@ module Seam
|
|
|
1758
1821
|
# - `pending`
|
|
1759
1822
|
# - `error`
|
|
1760
1823
|
attr_accessor :status
|
|
1824
|
+
# Date and time at which the action attempt was created.
|
|
1825
|
+
# @return [Time]
|
|
1826
|
+
date_accessor :created_at
|
|
1761
1827
|
end
|
|
1762
1828
|
|
|
1763
1829
|
class UpdateNoiseThreshold < ActionAttempt
|
|
@@ -1800,6 +1866,9 @@ module Seam
|
|
|
1800
1866
|
# - `pending`
|
|
1801
1867
|
# - `error`
|
|
1802
1868
|
attr_accessor :status
|
|
1869
|
+
# Date and time at which the action attempt was created.
|
|
1870
|
+
# @return [Time]
|
|
1871
|
+
date_accessor :created_at
|
|
1803
1872
|
end
|
|
1804
1873
|
|
|
1805
1874
|
# @return [Error, nil]
|
|
@@ -1846,6 +1915,10 @@ module Seam
|
|
|
1846
1915
|
# - `error`
|
|
1847
1916
|
attr_accessor :status
|
|
1848
1917
|
|
|
1918
|
+
# Date and time at which the action attempt was created.
|
|
1919
|
+
# @return [Time]
|
|
1920
|
+
date_accessor :created_at
|
|
1921
|
+
|
|
1849
1922
|
discriminated_by :action_type, {
|
|
1850
1923
|
"LOCK_DOOR" => LockDoor,
|
|
1851
1924
|
"UNLOCK_DOOR" => UnlockDoor,
|
|
@@ -274,21 +274,6 @@ module Seam
|
|
|
274
274
|
date_accessor :created_at
|
|
275
275
|
end
|
|
276
276
|
|
|
277
|
-
# Indicates that one or more dormakaba sites associated with the connected account are not approved. Contact support@getseam.com to finish setting up your account.
|
|
278
|
-
class DormakabaSitesUnapproved < Warnings
|
|
279
|
-
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
280
|
-
# @return [String]
|
|
281
|
-
attr_accessor :message
|
|
282
|
-
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
283
|
-
# @return [String]
|
|
284
|
-
# Known values:
|
|
285
|
-
# - `dormakaba_sites_unapproved`
|
|
286
|
-
attr_accessor :warning_code
|
|
287
|
-
# Date and time at which Seam created the warning.
|
|
288
|
-
# @return [Time]
|
|
289
|
-
date_accessor :created_at
|
|
290
|
-
end
|
|
291
|
-
|
|
292
277
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
293
278
|
# @return [String]
|
|
294
279
|
attr_accessor :message
|
|
@@ -302,7 +287,6 @@ module Seam
|
|
|
302
287
|
# - `being_deleted`
|
|
303
288
|
# - `provider_service_unavailable`
|
|
304
289
|
# - `setup_required`
|
|
305
|
-
# - `dormakaba_sites_unapproved`
|
|
306
290
|
attr_accessor :warning_code
|
|
307
291
|
# Date and time at which Seam created the warning.
|
|
308
292
|
# @return [Time]
|
|
@@ -315,8 +299,7 @@ module Seam
|
|
|
315
299
|
"account_reauthorization_requested" => AccountReauthorizationRequested,
|
|
316
300
|
"being_deleted" => BeingDeleted,
|
|
317
301
|
"provider_service_unavailable" => ProviderServiceUnavailable,
|
|
318
|
-
"setup_required" => SetupRequired
|
|
319
|
-
"dormakaba_sites_unapproved" => DormakabaSitesUnapproved
|
|
302
|
+
"setup_required" => SetupRequired
|
|
320
303
|
}.freeze
|
|
321
304
|
end
|
|
322
305
|
|
|
@@ -397,9 +397,12 @@ module Seam
|
|
|
397
397
|
# Indicates whether the device detects smoking, if the device measures it.
|
|
398
398
|
# @return [Boolean, nil]
|
|
399
399
|
attr_accessor :is_smoking_detected
|
|
400
|
-
#
|
|
400
|
+
# Display wording for the current mold risk, as reported by the provider or derived by Seam. The values are not stable and are only for display; use mold_risk_index for logic.
|
|
401
401
|
# @return [String, nil]
|
|
402
|
-
attr_accessor :
|
|
402
|
+
attr_accessor :mold_display_risk
|
|
403
|
+
# Mold risk index from 0 (no risk) to 1 (high risk), if the device measures it. Seam defines this scale and maps each provider onto it: 0 = low, 0.5 = medium, 1 = high for providers that report levels.
|
|
404
|
+
# @return [Float, nil]
|
|
405
|
+
attr_accessor :mold_risk_index
|
|
403
406
|
# Noise level in decibels, if the device measures noise.
|
|
404
407
|
# @return [Float, nil]
|
|
405
408
|
attr_accessor :noise_level_decibels
|
|
@@ -2500,21 +2503,6 @@ module Seam
|
|
|
2500
2503
|
date_accessor :created_at
|
|
2501
2504
|
end
|
|
2502
2505
|
|
|
2503
|
-
# Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back.
|
|
2504
|
-
class ServiceMode < Warnings
|
|
2505
|
-
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
2506
|
-
# @return [String]
|
|
2507
|
-
attr_accessor :message
|
|
2508
|
-
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
2509
|
-
# @return [String]
|
|
2510
|
-
# Known values:
|
|
2511
|
-
# - `service_mode`
|
|
2512
|
-
attr_accessor :warning_code
|
|
2513
|
-
# Date and time at which Seam created the warning.
|
|
2514
|
-
# @return [Time]
|
|
2515
|
-
date_accessor :created_at
|
|
2516
|
-
end
|
|
2517
|
-
|
|
2518
2506
|
# Indicates a provider-specific issue that may affect device functionality.
|
|
2519
2507
|
class ProviderIssue < Warnings
|
|
2520
2508
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
@@ -2684,7 +2672,6 @@ module Seam
|
|
|
2684
2672
|
# - `time_zone_mismatch`
|
|
2685
2673
|
# - `two_n_device_missing_timezone`
|
|
2686
2674
|
# - `hub_required_for_additional_capabilities`
|
|
2687
|
-
# - `service_mode`
|
|
2688
2675
|
# - `provider_issue`
|
|
2689
2676
|
# - `keynest_unsupported_locker`
|
|
2690
2677
|
# - `accessory_keypad_setup_required`
|
|
@@ -2722,7 +2709,6 @@ module Seam
|
|
|
2722
2709
|
"time_zone_mismatch" => TimeZoneMismatch,
|
|
2723
2710
|
"two_n_device_missing_timezone" => TwoNDeviceMissingTimezone,
|
|
2724
2711
|
"hub_required_for_additional_capabilities" => HubRequiredForAdditionalCapabilities,
|
|
2725
|
-
"service_mode" => ServiceMode,
|
|
2726
2712
|
"provider_issue" => ProviderIssue,
|
|
2727
2713
|
"keynest_unsupported_locker" => KeynestUnsupportedLocker,
|
|
2728
2714
|
"accessory_keypad_setup_required" => AccessoryKeypadSetupRequired,
|
|
@@ -2910,8 +2896,6 @@ module Seam
|
|
|
2910
2896
|
# - `unifi_protect_camera`
|
|
2911
2897
|
# - `sonos_speaker`
|
|
2912
2898
|
# - `alertify_sensor`
|
|
2913
|
-
# - `hayward_pool_controller`
|
|
2914
|
-
# - `hayward_pool`
|
|
2915
2899
|
attr_accessor :device_type
|
|
2916
2900
|
# Display name of the device, defaults to nickname (if it is set) or `properties.appearance.name`, otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices.
|
|
2917
2901
|
# @return [String]
|
|
@@ -2937,9 +2921,12 @@ module Seam
|
|
|
2937
2921
|
# Indicates whether the device detects smoking, if the device measures it.
|
|
2938
2922
|
# @return [Boolean, nil]
|
|
2939
2923
|
attr_accessor :is_smoking_detected
|
|
2940
|
-
#
|
|
2924
|
+
# Display wording for the current mold risk, as reported by the provider or derived by Seam. The values are not stable and are only for display; use mold_risk_index for logic.
|
|
2941
2925
|
# @return [String, nil]
|
|
2942
|
-
attr_accessor :
|
|
2926
|
+
attr_accessor :mold_display_risk
|
|
2927
|
+
# Mold risk index from 0 (no risk) to 1 (high risk), if the device measures it. Seam defines this scale and maps each provider onto it: 0 = low, 0.5 = medium, 1 = high for providers that report levels.
|
|
2928
|
+
# @return [Float, nil]
|
|
2929
|
+
attr_accessor :mold_risk_index
|
|
2943
2930
|
# Optional nickname to describe the device, settable through Seam.
|
|
2944
2931
|
# @return [String, nil]
|
|
2945
2932
|
attr_accessor :nickname
|
data/lib/seam/resources/event.rb
CHANGED
|
@@ -859,6 +859,9 @@ module Seam
|
|
|
859
859
|
# ID of the connected account associated with the affected access code.
|
|
860
860
|
# @return [String]
|
|
861
861
|
attr_accessor :connected_account_id
|
|
862
|
+
# Human-readable description of the deletion and its source.
|
|
863
|
+
# @return [String, nil]
|
|
864
|
+
attr_accessor :description
|
|
862
865
|
# Custom metadata of the device, present when device_id is provided.
|
|
863
866
|
# @return [Hash{String => String, Boolean}, nil]
|
|
864
867
|
attr_accessor :device_custom_metadata
|
|
@@ -1827,6 +1830,9 @@ module Seam
|
|
|
1827
1830
|
# Known values:
|
|
1828
1831
|
# - `access_method.deleted`
|
|
1829
1832
|
attr_accessor :event_type
|
|
1833
|
+
# IDs of the access codes that were still set on a device when the access method was deleted. Access may still be possible with these codes until Seam removes them from the device. Each access code keeps its own deletion lifecycle, so watch it for `access_code.deleted` or `access_code.failed_to_delete`. Only present when at least one access code was still set on a device.
|
|
1834
|
+
# @return [Array<String>]
|
|
1835
|
+
attr_accessor :failed_to_delete_access_code_ids
|
|
1830
1836
|
# ID of the workspace associated with the event.
|
|
1831
1837
|
# @return [String]
|
|
1832
1838
|
attr_accessor :workspace_id
|
|
@@ -3583,6 +3589,44 @@ module Seam
|
|
|
3583
3589
|
date_accessor :occurred_at
|
|
3584
3590
|
end
|
|
3585
3591
|
|
|
3592
|
+
# A sensor reported smoking. Emitted once when `is_smoking_detected` becomes true. No event is emitted when it returns to false; re-read the device for the current value.
|
|
3593
|
+
class SensorSmokingDetected < SeamEvent
|
|
3594
|
+
# Custom metadata of the connected account, present when connected_account_id is provided.
|
|
3595
|
+
# @return [Hash{String => String, Boolean}, nil]
|
|
3596
|
+
attr_accessor :connected_account_custom_metadata
|
|
3597
|
+
# ID of the connected account associated with the event.
|
|
3598
|
+
# @return [String]
|
|
3599
|
+
attr_accessor :connected_account_id
|
|
3600
|
+
# The customer key associated with the device, if any.
|
|
3601
|
+
# @return [String, nil]
|
|
3602
|
+
attr_accessor :customer_key
|
|
3603
|
+
# Custom metadata of the device, present when device_id is provided.
|
|
3604
|
+
# @return [Hash{String => String, Boolean}, nil]
|
|
3605
|
+
attr_accessor :device_custom_metadata
|
|
3606
|
+
# ID of the affected device.
|
|
3607
|
+
# @return [String]
|
|
3608
|
+
attr_accessor :device_id
|
|
3609
|
+
# Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.
|
|
3610
|
+
# @return [String]
|
|
3611
|
+
attr_accessor :event_description
|
|
3612
|
+
# ID of the event.
|
|
3613
|
+
# @return [String]
|
|
3614
|
+
attr_accessor :event_id
|
|
3615
|
+
# @return [String]
|
|
3616
|
+
# Known values:
|
|
3617
|
+
# - `sensor.smoking_detected`
|
|
3618
|
+
attr_accessor :event_type
|
|
3619
|
+
# ID of the workspace associated with the event.
|
|
3620
|
+
# @return [String]
|
|
3621
|
+
attr_accessor :workspace_id
|
|
3622
|
+
# Date and time at which the event was created.
|
|
3623
|
+
# @return [Time]
|
|
3624
|
+
date_accessor :created_at
|
|
3625
|
+
# Date and time at which the event occurred.
|
|
3626
|
+
# @return [Time]
|
|
3627
|
+
date_accessor :occurred_at
|
|
3628
|
+
end
|
|
3629
|
+
|
|
3586
3630
|
# A device battery level dropped below the low threshold.
|
|
3587
3631
|
class DeviceLowBattery < SeamEvent
|
|
3588
3632
|
# Number in the range 0 to 1.0 indicating the battery level of the affected device's paired accessory keypad, when the device has one and its level is known.
|
|
@@ -4799,6 +4843,113 @@ module Seam
|
|
|
4799
4843
|
date_accessor :occurred_at
|
|
4800
4844
|
end
|
|
4801
4845
|
|
|
4846
|
+
# A [thermostat](https://www.seam.co/docs/capability-guides/thermostats) may fail to activate a [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) when a [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts or ends, because the thermostat was offline shortly before the scheduled time. While the thermostat stays offline, the thermostat schedule carries a `climate_preset_activation_may_fail` warning until the scheduled time.
|
|
4847
|
+
class ThermostatScheduleClimatePresetActivationMayFail < SeamEvent
|
|
4848
|
+
class ConnectedAccountErrors < BaseResource
|
|
4849
|
+
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
4850
|
+
# @return [String]
|
|
4851
|
+
attr_accessor :error_code
|
|
4852
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
4853
|
+
# @return [String]
|
|
4854
|
+
attr_accessor :message
|
|
4855
|
+
# Date and time at which Seam created the error.
|
|
4856
|
+
# @return [Time]
|
|
4857
|
+
date_accessor :created_at
|
|
4858
|
+
end
|
|
4859
|
+
|
|
4860
|
+
class ConnectedAccountWarnings < BaseResource
|
|
4861
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
4862
|
+
# @return [String]
|
|
4863
|
+
attr_accessor :message
|
|
4864
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
4865
|
+
# @return [String]
|
|
4866
|
+
attr_accessor :warning_code
|
|
4867
|
+
# Date and time at which Seam created the warning.
|
|
4868
|
+
# @return [Time]
|
|
4869
|
+
date_accessor :created_at
|
|
4870
|
+
end
|
|
4871
|
+
|
|
4872
|
+
class DeviceErrors < BaseResource
|
|
4873
|
+
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
4874
|
+
# @return [String]
|
|
4875
|
+
attr_accessor :error_code
|
|
4876
|
+
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
4877
|
+
# @return [String]
|
|
4878
|
+
attr_accessor :message
|
|
4879
|
+
# Date and time at which Seam created the error.
|
|
4880
|
+
# @return [Time]
|
|
4881
|
+
date_accessor :created_at
|
|
4882
|
+
end
|
|
4883
|
+
|
|
4884
|
+
class DeviceWarnings < BaseResource
|
|
4885
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
4886
|
+
# @return [String]
|
|
4887
|
+
attr_accessor :message
|
|
4888
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
4889
|
+
# @return [String]
|
|
4890
|
+
attr_accessor :warning_code
|
|
4891
|
+
# Date and time at which Seam created the warning.
|
|
4892
|
+
# @return [Time]
|
|
4893
|
+
date_accessor :created_at
|
|
4894
|
+
end
|
|
4895
|
+
|
|
4896
|
+
# Errors associated with the connected account.
|
|
4897
|
+
# @return [Array<ConnectedAccountErrors>]
|
|
4898
|
+
resource_list_accessor :connected_account_errors, ConnectedAccountErrors
|
|
4899
|
+
# Warnings associated with the connected account.
|
|
4900
|
+
# @return [Array<ConnectedAccountWarnings>]
|
|
4901
|
+
resource_list_accessor :connected_account_warnings, ConnectedAccountWarnings
|
|
4902
|
+
# Errors associated with the device.
|
|
4903
|
+
# @return [Array<DeviceErrors>]
|
|
4904
|
+
resource_list_accessor :device_errors, DeviceErrors
|
|
4905
|
+
# Warnings associated with the device.
|
|
4906
|
+
# @return [Array<DeviceWarnings>]
|
|
4907
|
+
resource_list_accessor :device_warnings, DeviceWarnings
|
|
4908
|
+
# Custom metadata of the connected account, present when connected_account_id is provided.
|
|
4909
|
+
# @return [Hash{String => String, Boolean}, nil]
|
|
4910
|
+
attr_accessor :connected_account_custom_metadata
|
|
4911
|
+
# ID of the connected account associated with the event.
|
|
4912
|
+
# @return [String]
|
|
4913
|
+
attr_accessor :connected_account_id
|
|
4914
|
+
# The customer key associated with the device, if any.
|
|
4915
|
+
# @return [String, nil]
|
|
4916
|
+
attr_accessor :customer_key
|
|
4917
|
+
# Custom metadata of the device, present when device_id is provided.
|
|
4918
|
+
# @return [Hash{String => String, Boolean}, nil]
|
|
4919
|
+
attr_accessor :device_custom_metadata
|
|
4920
|
+
# ID of the affected device.
|
|
4921
|
+
# @return [String]
|
|
4922
|
+
attr_accessor :device_id
|
|
4923
|
+
# Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.
|
|
4924
|
+
# @return [String]
|
|
4925
|
+
attr_accessor :event_description
|
|
4926
|
+
# ID of the event.
|
|
4927
|
+
# @return [String]
|
|
4928
|
+
attr_accessor :event_id
|
|
4929
|
+
# @return [String]
|
|
4930
|
+
# Known values:
|
|
4931
|
+
# - `thermostat_schedule.climate_preset_activation_may_fail`
|
|
4932
|
+
attr_accessor :event_type
|
|
4933
|
+
# ID of the thermostat schedule whose climate preset activation may fail.
|
|
4934
|
+
# @return [String]
|
|
4935
|
+
attr_accessor :thermostat_schedule_id
|
|
4936
|
+
# ID of the workspace associated with the event.
|
|
4937
|
+
# @return [String]
|
|
4938
|
+
attr_accessor :workspace_id
|
|
4939
|
+
# Date and time at which the event was created.
|
|
4940
|
+
# @return [Time]
|
|
4941
|
+
date_accessor :created_at
|
|
4942
|
+
# Date and time at which the event occurred.
|
|
4943
|
+
# @return [Time]
|
|
4944
|
+
date_accessor :occurred_at
|
|
4945
|
+
# Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
|
4946
|
+
# @return [Time]
|
|
4947
|
+
date_accessor :thermostat_schedule_ends_at
|
|
4948
|
+
# Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
|
4949
|
+
# @return [Time]
|
|
4950
|
+
date_accessor :thermostat_schedule_starts_at
|
|
4951
|
+
end
|
|
4952
|
+
|
|
4802
4953
|
# A [thermostat's](https://www.seam.co/docs/capability-guides/thermostats) temperature reading exceeded the set [threshold](https://www.seam.co/docs/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds).
|
|
4803
4954
|
class ThermostatTemperatureThresholdExceeded < SeamEvent
|
|
4804
4955
|
# Custom metadata of the connected account, present when connected_account_id is provided.
|
|
@@ -5307,10 +5458,6 @@ module Seam
|
|
|
5307
5458
|
# - `access_code.removed_from_device`
|
|
5308
5459
|
# - `access_code.delay_in_setting_on_device`
|
|
5309
5460
|
# - `access_code.failed_to_set_on_device`
|
|
5310
|
-
# - `access_code.issued`
|
|
5311
|
-
# - `access_code.delay_in_issuing`
|
|
5312
|
-
# - `access_code.failed_to_issue`
|
|
5313
|
-
# - `access_code.failed_to_update`
|
|
5314
5461
|
# - `access_code.failed_to_delete`
|
|
5315
5462
|
# - `access_code.deleted`
|
|
5316
5463
|
# - `access_code.delay_in_removing_from_device`
|
|
@@ -5354,7 +5501,6 @@ module Seam
|
|
|
5354
5501
|
# - `client_session.deleted`
|
|
5355
5502
|
# - `connected_account.connected`
|
|
5356
5503
|
# - `connected_account.created`
|
|
5357
|
-
# - `connected_account.successful_login`
|
|
5358
5504
|
# - `connected_account.disconnected`
|
|
5359
5505
|
# - `connected_account.completed_first_sync`
|
|
5360
5506
|
# - `connected_account.deleted`
|
|
@@ -5378,6 +5524,7 @@ module Seam
|
|
|
5378
5524
|
# - `device.disconnected`
|
|
5379
5525
|
# - `device.unmanaged.disconnected`
|
|
5380
5526
|
# - `device.tampered`
|
|
5527
|
+
# - `sensor.smoking_detected`
|
|
5381
5528
|
# - `device.low_battery`
|
|
5382
5529
|
# - `device.battery_status_changed`
|
|
5383
5530
|
# - `device.removed`
|
|
@@ -5401,17 +5548,14 @@ module Seam
|
|
|
5401
5548
|
# - `lock.door_closed`
|
|
5402
5549
|
# - `thermostat.climate_preset_activated`
|
|
5403
5550
|
# - `thermostat.manually_adjusted`
|
|
5551
|
+
# - `thermostat_schedule.climate_preset_activation_may_fail`
|
|
5404
5552
|
# - `thermostat.temperature_threshold_exceeded`
|
|
5405
5553
|
# - `thermostat.temperature_threshold_no_longer_exceeded`
|
|
5406
5554
|
# - `thermostat.temperature_reached_set_point`
|
|
5407
5555
|
# - `thermostat.temperature_changed`
|
|
5408
|
-
# - `pool.temperature_changed`
|
|
5409
|
-
# - `pool.temperature_reached_set_point`
|
|
5410
|
-
# - `pool.manually_adjusted`
|
|
5411
5556
|
# - `device.name_changed`
|
|
5412
5557
|
# - `camera.activated`
|
|
5413
5558
|
# - `device.doorbell_rang`
|
|
5414
|
-
# - `enrollment_automation.deleted`
|
|
5415
5559
|
# - `phone.deactivated`
|
|
5416
5560
|
# - `space.device_membership_changed`
|
|
5417
5561
|
# - `space.created`
|
|
@@ -5507,6 +5651,7 @@ module Seam
|
|
|
5507
5651
|
"device.disconnected" => DeviceDisconnected,
|
|
5508
5652
|
"device.unmanaged.disconnected" => DeviceUnmanagedDisconnected,
|
|
5509
5653
|
"device.tampered" => DeviceTampered,
|
|
5654
|
+
"sensor.smoking_detected" => SensorSmokingDetected,
|
|
5510
5655
|
"device.low_battery" => DeviceLowBattery,
|
|
5511
5656
|
"device.battery_status_changed" => DeviceBatteryStatusChanged,
|
|
5512
5657
|
"device.removed" => DeviceRemoved,
|
|
@@ -5530,6 +5675,7 @@ module Seam
|
|
|
5530
5675
|
"lock.door_closed" => LockDoorClosed,
|
|
5531
5676
|
"thermostat.climate_preset_activated" => ThermostatClimatePresetActivated,
|
|
5532
5677
|
"thermostat.manually_adjusted" => ThermostatManuallyAdjusted,
|
|
5678
|
+
"thermostat_schedule.climate_preset_activation_may_fail" => ThermostatScheduleClimatePresetActivationMayFail,
|
|
5533
5679
|
"thermostat.temperature_threshold_exceeded" => ThermostatTemperatureThresholdExceeded,
|
|
5534
5680
|
"thermostat.temperature_threshold_no_longer_exceeded" => ThermostatTemperatureThresholdNoLongerExceeded,
|
|
5535
5681
|
"thermostat.temperature_reached_set_point" => ThermostatTemperatureReachedSetPoint,
|
data/lib/seam/resources/phone.rb
CHANGED
|
@@ -701,21 +701,6 @@ module Seam
|
|
|
701
701
|
date_accessor :created_at
|
|
702
702
|
end
|
|
703
703
|
|
|
704
|
-
# Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back.
|
|
705
|
-
class ServiceMode < Warnings
|
|
706
|
-
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
707
|
-
# @return [String]
|
|
708
|
-
attr_accessor :message
|
|
709
|
-
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
710
|
-
# @return [String]
|
|
711
|
-
# Known values:
|
|
712
|
-
# - `service_mode`
|
|
713
|
-
attr_accessor :warning_code
|
|
714
|
-
# Date and time at which Seam created the warning.
|
|
715
|
-
# @return [Time]
|
|
716
|
-
date_accessor :created_at
|
|
717
|
-
end
|
|
718
|
-
|
|
719
704
|
# Indicates a provider-specific issue that may affect device functionality.
|
|
720
705
|
class ProviderIssue < Warnings
|
|
721
706
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
@@ -885,7 +870,6 @@ module Seam
|
|
|
885
870
|
# - `time_zone_mismatch`
|
|
886
871
|
# - `two_n_device_missing_timezone`
|
|
887
872
|
# - `hub_required_for_additional_capabilities`
|
|
888
|
-
# - `service_mode`
|
|
889
873
|
# - `provider_issue`
|
|
890
874
|
# - `keynest_unsupported_locker`
|
|
891
875
|
# - `accessory_keypad_setup_required`
|
|
@@ -923,7 +907,6 @@ module Seam
|
|
|
923
907
|
"time_zone_mismatch" => TimeZoneMismatch,
|
|
924
908
|
"two_n_device_missing_timezone" => TwoNDeviceMissingTimezone,
|
|
925
909
|
"hub_required_for_additional_capabilities" => HubRequiredForAdditionalCapabilities,
|
|
926
|
-
"service_mode" => ServiceMode,
|
|
927
910
|
"provider_issue" => ProviderIssue,
|
|
928
911
|
"keynest_unsupported_locker" => KeynestUnsupportedLocker,
|
|
929
912
|
"accessory_keypad_setup_required" => AccessoryKeypadSetupRequired,
|
|
@@ -16,9 +16,46 @@ module Seam
|
|
|
16
16
|
date_accessor :created_at
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
# Known `warning_code` values load as subclasses; unknown values remain Warnings instances for forward compatibility.
|
|
20
|
+
class Warnings < BaseResource
|
|
21
|
+
# Indicates that the [thermostat](https://www.seam.co/docs/capability-guides/thermostats) may fail to activate a climate preset when the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules) starts or ends. The warning message explains the cause. Currently present while the thermostat is offline and the next start or end of the thermostat schedule is less than an hour away; it clears automatically once the thermostat is back online or that time passes.
|
|
22
|
+
class ClimatePresetActivationMayFail < Warnings
|
|
23
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
24
|
+
# @return [String]
|
|
25
|
+
attr_accessor :message
|
|
26
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
27
|
+
# @return [String]
|
|
28
|
+
# Known values:
|
|
29
|
+
# - `climate_preset_activation_may_fail`
|
|
30
|
+
attr_accessor :warning_code
|
|
31
|
+
# Date and time at which Seam created the warning.
|
|
32
|
+
# @return [Time]
|
|
33
|
+
date_accessor :created_at
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :message
|
|
39
|
+
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
40
|
+
# @return [String]
|
|
41
|
+
# Known values:
|
|
42
|
+
# - `climate_preset_activation_may_fail`
|
|
43
|
+
attr_accessor :warning_code
|
|
44
|
+
# Date and time at which Seam created the warning.
|
|
45
|
+
# @return [Time]
|
|
46
|
+
date_accessor :created_at
|
|
47
|
+
|
|
48
|
+
discriminated_by :warning_code, {
|
|
49
|
+
"climate_preset_activation_may_fail" => ClimatePresetActivationMayFail
|
|
50
|
+
}.freeze
|
|
51
|
+
end
|
|
52
|
+
|
|
19
53
|
# Errors associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).
|
|
20
54
|
# @return [Array<Errors>]
|
|
21
55
|
resource_list_accessor :errors, Errors
|
|
56
|
+
# Warnings associated with the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).
|
|
57
|
+
# @return [Array<Warnings>]
|
|
58
|
+
resource_list_accessor :warnings, Warnings
|
|
22
59
|
# Key of the [climate preset](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the [thermostat schedule](https://www.seam.co/docs/capability-guides/thermostats/creating-and-managing-thermostat-schedules).
|
|
23
60
|
# @return [String]
|
|
24
61
|
attr_accessor :climate_preset_key
|
|
@@ -156,11 +156,12 @@ module Seam
|
|
|
156
156
|
# List of fields that were changed externally, with their previous and new values.
|
|
157
157
|
# @return [Array<ModifiedFields>]
|
|
158
158
|
resource_list_accessor :modified_fields, ModifiedFields
|
|
159
|
-
# Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.
|
|
159
|
+
# Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. `deactivated` means the code is still on the device but was disabled or suspended.
|
|
160
160
|
# @return [String, nil]
|
|
161
161
|
# Known values:
|
|
162
162
|
# - `modified`
|
|
163
163
|
# - `removed`
|
|
164
|
+
# - `deactivated`
|
|
164
165
|
attr_accessor :change_type
|
|
165
166
|
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
166
167
|
# @return [String]
|
|
@@ -214,42 +215,6 @@ module Seam
|
|
|
214
215
|
date_accessor :created_at
|
|
215
216
|
end
|
|
216
217
|
|
|
217
|
-
# Seam was unable to issue this access code before its start time, so the recipient may be unable to unlock the device. This usually points to a problem that needs attention, such as an offline or disconnected device. This error clears automatically if the access code is eventually issued.
|
|
218
|
-
class FailedToIssue < Errors
|
|
219
|
-
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
220
|
-
# @return [String]
|
|
221
|
-
# Known values:
|
|
222
|
-
# - `failed_to_issue`
|
|
223
|
-
attr_accessor :error_code
|
|
224
|
-
# Indicates that this is an access code error.
|
|
225
|
-
# @return [TrueClass]
|
|
226
|
-
attr_accessor :is_access_code_error
|
|
227
|
-
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
228
|
-
# @return [String]
|
|
229
|
-
attr_accessor :message
|
|
230
|
-
# Date and time at which Seam created the error.
|
|
231
|
-
# @return [Time, nil]
|
|
232
|
-
date_accessor :created_at
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
# Seam was unable to apply this access code's requested update to the device, so the code on the device does not match its requested state. Seam keeps retrying, and this error clears automatically once the update is applied.
|
|
236
|
-
class FailedToUpdate < Errors
|
|
237
|
-
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
238
|
-
# @return [String]
|
|
239
|
-
# Known values:
|
|
240
|
-
# - `failed_to_update`
|
|
241
|
-
attr_accessor :error_code
|
|
242
|
-
# Indicates that this is an access code error.
|
|
243
|
-
# @return [TrueClass]
|
|
244
|
-
attr_accessor :is_access_code_error
|
|
245
|
-
# Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
246
|
-
# @return [String]
|
|
247
|
-
attr_accessor :message
|
|
248
|
-
# Date and time at which Seam created the error.
|
|
249
|
-
# @return [Time, nil]
|
|
250
|
-
date_accessor :created_at
|
|
251
|
-
end
|
|
252
|
-
|
|
253
218
|
# Seam was unable to remove this access code from the device in time after it was deleted or its `ends_at` passed, so the recipient may still be able to unlock the device. Seam keeps trying to delete it, and this error clears automatically once the access code is no longer usable on the device.
|
|
254
219
|
class FailedToDelete < Errors
|
|
255
220
|
# Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
@@ -564,8 +529,6 @@ module Seam
|
|
|
564
529
|
# - `conflicting_external_modification`
|
|
565
530
|
# - `access_code_inactive`
|
|
566
531
|
# - `code_constraints_violated`
|
|
567
|
-
# - `failed_to_issue`
|
|
568
|
-
# - `failed_to_update`
|
|
569
532
|
# - `failed_to_delete`
|
|
570
533
|
# - `account_disconnected`
|
|
571
534
|
# - `salto_ks_subscription_limit_exceeded`
|
|
@@ -599,8 +562,6 @@ module Seam
|
|
|
599
562
|
"conflicting_external_modification" => ConflictingExternalModification,
|
|
600
563
|
"access_code_inactive" => AccessCodeInactive,
|
|
601
564
|
"code_constraints_violated" => CodeConstraintsViolated,
|
|
602
|
-
"failed_to_issue" => FailedToIssue,
|
|
603
|
-
"failed_to_update" => FailedToUpdate,
|
|
604
565
|
"failed_to_delete" => FailedToDelete,
|
|
605
566
|
"account_disconnected" => AccountDisconnected,
|
|
606
567
|
"salto_ks_subscription_limit_exceeded" => SaltoKsSubscriptionLimitExceeded,
|
|
@@ -669,11 +630,12 @@ module Seam
|
|
|
669
630
|
# List of fields that were changed externally, with their previous and new values.
|
|
670
631
|
# @return [Array<ModifiedFields>]
|
|
671
632
|
resource_list_accessor :modified_fields, ModifiedFields
|
|
672
|
-
# Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.
|
|
633
|
+
# Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. `deactivated` means the code is still on the device but was disabled or suspended.
|
|
673
634
|
# @return [String, nil]
|
|
674
635
|
# Known values:
|
|
675
636
|
# - `modified`
|
|
676
637
|
# - `removed`
|
|
638
|
+
# - `deactivated`
|
|
677
639
|
attr_accessor :change_type
|
|
678
640
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
679
641
|
# @return [String]
|
|
@@ -718,21 +680,6 @@ module Seam
|
|
|
718
680
|
date_accessor :created_at
|
|
719
681
|
end
|
|
720
682
|
|
|
721
|
-
# Seam has not yet issued this access code, even though its start time is approaching, so access may not be ready when the recipient arrives. Seam is still attempting to issue it, and this warning clears automatically once issuance succeeds.
|
|
722
|
-
class DelayInIssuing < Warnings
|
|
723
|
-
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
724
|
-
# @return [String]
|
|
725
|
-
attr_accessor :message
|
|
726
|
-
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
727
|
-
# @return [String]
|
|
728
|
-
# Known values:
|
|
729
|
-
# - `delay_in_issuing`
|
|
730
|
-
attr_accessor :warning_code
|
|
731
|
-
# Date and time at which Seam created the warning.
|
|
732
|
-
# @return [Time, nil]
|
|
733
|
-
date_accessor :created_at
|
|
734
|
-
end
|
|
735
|
-
|
|
736
683
|
# Third-party integration detected that may cause access codes to fail.
|
|
737
684
|
class ThirdPartyIntegrationDetected < Warnings
|
|
738
685
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
@@ -852,7 +799,6 @@ module Seam
|
|
|
852
799
|
# - `external_modification_in_effect`
|
|
853
800
|
# - `delay_in_setting_on_device`
|
|
854
801
|
# - `delay_in_removing_from_device`
|
|
855
|
-
# - `delay_in_issuing`
|
|
856
802
|
# - `third_party_integration_detected`
|
|
857
803
|
# - `igloo_algopin_must_be_used_within_24_hours`
|
|
858
804
|
# - `management_transferred`
|
|
@@ -871,7 +817,6 @@ module Seam
|
|
|
871
817
|
"external_modification_in_effect" => ExternalModificationInEffect,
|
|
872
818
|
"delay_in_setting_on_device" => DelayInSettingOnDevice,
|
|
873
819
|
"delay_in_removing_from_device" => DelayInRemovingFromDevice,
|
|
874
|
-
"delay_in_issuing" => DelayInIssuing,
|
|
875
820
|
"third_party_integration_detected" => ThirdPartyIntegrationDetected,
|
|
876
821
|
"igloo_algopin_must_be_used_within_24_hours" => IglooAlgopinMustBeUsedWithinN24Hours,
|
|
877
822
|
"management_transferred" => ManagementTransferred,
|
|
@@ -754,21 +754,6 @@ module Seam
|
|
|
754
754
|
date_accessor :created_at
|
|
755
755
|
end
|
|
756
756
|
|
|
757
|
-
# Indicates that a technician has put the pool controller in service mode. Schedules and remote changes will not run until it is switched back.
|
|
758
|
-
class ServiceMode < Warnings
|
|
759
|
-
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
760
|
-
# @return [String]
|
|
761
|
-
attr_accessor :message
|
|
762
|
-
# Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
763
|
-
# @return [String]
|
|
764
|
-
# Known values:
|
|
765
|
-
# - `service_mode`
|
|
766
|
-
attr_accessor :warning_code
|
|
767
|
-
# Date and time at which Seam created the warning.
|
|
768
|
-
# @return [Time]
|
|
769
|
-
date_accessor :created_at
|
|
770
|
-
end
|
|
771
|
-
|
|
772
757
|
# Indicates a provider-specific issue that may affect device functionality.
|
|
773
758
|
class ProviderIssue < Warnings
|
|
774
759
|
# Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
@@ -938,7 +923,6 @@ module Seam
|
|
|
938
923
|
# - `time_zone_mismatch`
|
|
939
924
|
# - `two_n_device_missing_timezone`
|
|
940
925
|
# - `hub_required_for_additional_capabilities`
|
|
941
|
-
# - `service_mode`
|
|
942
926
|
# - `provider_issue`
|
|
943
927
|
# - `keynest_unsupported_locker`
|
|
944
928
|
# - `accessory_keypad_setup_required`
|
|
@@ -976,7 +960,6 @@ module Seam
|
|
|
976
960
|
"time_zone_mismatch" => TimeZoneMismatch,
|
|
977
961
|
"two_n_device_missing_timezone" => TwoNDeviceMissingTimezone,
|
|
978
962
|
"hub_required_for_additional_capabilities" => HubRequiredForAdditionalCapabilities,
|
|
979
|
-
"service_mode" => ServiceMode,
|
|
980
963
|
"provider_issue" => ProviderIssue,
|
|
981
964
|
"keynest_unsupported_locker" => KeynestUnsupportedLocker,
|
|
982
965
|
"accessory_keypad_setup_required" => AccessoryKeypadSetupRequired,
|
|
@@ -1146,8 +1129,6 @@ module Seam
|
|
|
1146
1129
|
# - `unifi_protect_camera`
|
|
1147
1130
|
# - `sonos_speaker`
|
|
1148
1131
|
# - `alertify_sensor`
|
|
1149
|
-
# - `hayward_pool_controller`
|
|
1150
|
-
# - `hayward_pool`
|
|
1151
1132
|
attr_accessor :device_type
|
|
1152
1133
|
# Display name of the device, defaults to nickname (if it is set) or `properties.appearance.name`, otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices.
|
|
1153
1134
|
# @return [String]
|
|
@@ -21,14 +21,15 @@ module Seam
|
|
|
21
21
|
Seam::ActionAttemptResolver.resolve(Seam::Resources::ActionAttempt.from_http_response(res, "action_attempt", "/action_attempts/get"), @client, wait_for_action_attempt)
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
# Returns a list of the [action attempts](https://www.seam.co/docs/core-concepts/action-attempts) that you specify as an array of `action_attempt_id`s.
|
|
24
|
+
# Returns a list of the [action attempts](https://www.seam.co/docs/core-concepts/action-attempts) that you specify as an array of `action_attempt_id`s or by `device_id`, newest first.
|
|
25
25
|
# @param action_attempt_ids [Array<String>, nil] IDs of the action attempts that you want to retrieve.
|
|
26
|
+
# @param action_types [Array<String>, nil] Types of the action attempts that you want to list, such as `LOCK_DOOR` and `UNLOCK_DOOR`.
|
|
26
27
|
# @param device_id [String, nil] ID of the device to filter action attempts by.
|
|
27
28
|
# @param limit [Integer, nil] Maximum number of records to return per page.
|
|
28
29
|
# @param page_cursor [String, Seam::Null, nil] Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
29
30
|
# @return [Seam::Resources::ActionAttempt] OK
|
|
30
|
-
def list(action_attempt_ids: nil, device_id: nil, limit: nil, page_cursor: nil)
|
|
31
|
-
res = @client.get("/action_attempts/list", {action_attempt_ids: action_attempt_ids, device_id: device_id, limit: limit, page_cursor: page_cursor}.compact)
|
|
31
|
+
def list(action_attempt_ids: nil, action_types: nil, device_id: nil, limit: nil, page_cursor: nil)
|
|
32
|
+
res = @client.get("/action_attempts/list", {action_attempt_ids: action_attempt_ids, action_types: action_types, device_id: device_id, limit: limit, page_cursor: page_cursor}.compact)
|
|
32
33
|
|
|
33
34
|
Seam::Resources::ActionAttempt.list_from_http_response(res, "action_attempts", "/action_attempts/list")
|
|
34
35
|
end
|
|
@@ -73,14 +73,13 @@ module Seam
|
|
|
73
73
|
# @param rooms [Array<Hash>, nil] List of hotel or hospitality rooms.
|
|
74
74
|
# @param sites [Array<Hash>, nil] List of general sites or areas.
|
|
75
75
|
# @param spaces [Array<Hash>, nil] List of general spaces or areas.
|
|
76
|
-
# @param staff_members [Array<Hash>, nil] List of staff members.
|
|
77
76
|
# @param tenants [Array<Hash>, nil] List of tenants.
|
|
78
77
|
# @param units [Array<Hash>, nil] List of multi-family residential units.
|
|
79
78
|
# @param user_identities [Array<Hash>, nil] List of user identities.
|
|
80
79
|
# @param users [Array<Hash>, nil] List of users.
|
|
81
80
|
# @return [nil] OK
|
|
82
|
-
def push_data(customer_key:, access_grants: nil, bookings: nil, buildings: nil, common_areas: nil, customization_profile_id: nil, facilities: nil, guests: nil, listings: nil, low_battery_alert_threshold: nil, properties: nil, property_listings: nil, reservations: nil, residents: nil, rooms: nil, sites: nil, spaces: nil,
|
|
83
|
-
@client.post("/customers/push_data", {customer_key: customer_key, access_grants: access_grants, bookings: bookings, buildings: buildings, common_areas: common_areas, customization_profile_id: customization_profile_id, facilities: facilities, guests: guests, listings: listings, low_battery_alert_threshold: low_battery_alert_threshold, properties: properties, property_listings: property_listings, reservations: reservations, residents: residents, rooms: rooms, sites: sites, spaces: spaces,
|
|
81
|
+
def push_data(customer_key:, access_grants: nil, bookings: nil, buildings: nil, common_areas: nil, customization_profile_id: nil, facilities: nil, guests: nil, listings: nil, low_battery_alert_threshold: nil, properties: nil, property_listings: nil, reservations: nil, residents: nil, rooms: nil, sites: nil, spaces: nil, tenants: nil, units: nil, user_identities: nil, users: nil)
|
|
82
|
+
@client.post("/customers/push_data", {customer_key: customer_key, access_grants: access_grants, bookings: bookings, buildings: buildings, common_areas: common_areas, customization_profile_id: customization_profile_id, facilities: facilities, guests: guests, listings: listings, low_battery_alert_threshold: low_battery_alert_threshold, properties: properties, property_listings: property_listings, reservations: reservations, residents: residents, rooms: rooms, sites: sites, spaces: spaces, tenants: tenants, units: units, user_identities: user_identities, users: users}.compact)
|
|
84
83
|
|
|
85
84
|
nil
|
|
86
85
|
end
|
data/lib/seam/routes/devices.rb
CHANGED
|
@@ -44,6 +44,8 @@ module Seam
|
|
|
44
44
|
# @param device_ids [Array<String>, nil] Array of device IDs for which you want to list devices.
|
|
45
45
|
# @param device_type [String, nil] Device type for which you want to list devices.
|
|
46
46
|
# @param device_types [Array<String>, nil] Array of device types for which you want to list devices.
|
|
47
|
+
# @param has_error_or_warning_codes [Array<String>, nil] Array of error and warning codes. Returns devices that have at least one error or warning with any of these codes.
|
|
48
|
+
# @param has_errors_or_warnings [Boolean, nil] Filters devices by whether they have any errors or warnings. Specify `true` to list only devices with at least one error or warning, or `false` to list only devices with none.
|
|
47
49
|
# @param limit [Float, nil] Numerical limit on the number of devices to return.
|
|
48
50
|
# @param manufacturer [String, nil] Manufacturer for which you want to list devices.
|
|
49
51
|
# @param page_cursor [String, Seam::Null, nil] Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.
|
|
@@ -51,8 +53,8 @@ module Seam
|
|
|
51
53
|
# @param space_id [String, nil] ID of the space for which you want to list devices.
|
|
52
54
|
# @param user_identifier_key [String, nil] Your own internal user ID for the user for which you want to list devices.
|
|
53
55
|
# @return [Seam::Resources::Device] OK
|
|
54
|
-
def list(connect_webview_id: nil, connected_account_id: nil, connected_account_ids: nil, created_before: nil, custom_metadata_has: nil, customer_key: nil, device_ids: nil, device_type: nil, device_types: nil, limit: nil, manufacturer: nil, page_cursor: nil, search: nil, space_id: nil, user_identifier_key: nil)
|
|
55
|
-
res = @client.get("/devices/list", {connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, connected_account_ids: connected_account_ids, created_before: created_before, custom_metadata_has: custom_metadata_has, customer_key: customer_key, device_ids: device_ids, device_type: device_type, device_types: device_types, limit: limit, manufacturer: manufacturer, page_cursor: page_cursor, search: search, space_id: space_id, user_identifier_key: user_identifier_key}.compact)
|
|
56
|
+
def list(connect_webview_id: nil, connected_account_id: nil, connected_account_ids: nil, created_before: nil, custom_metadata_has: nil, customer_key: nil, device_ids: nil, device_type: nil, device_types: nil, has_error_or_warning_codes: nil, has_errors_or_warnings: nil, limit: nil, manufacturer: nil, page_cursor: nil, search: nil, space_id: nil, user_identifier_key: nil)
|
|
57
|
+
res = @client.get("/devices/list", {connect_webview_id: connect_webview_id, connected_account_id: connected_account_id, connected_account_ids: connected_account_ids, created_before: created_before, custom_metadata_has: custom_metadata_has, customer_key: customer_key, device_ids: device_ids, device_type: device_type, device_types: device_types, has_error_or_warning_codes: has_error_or_warning_codes, has_errors_or_warnings: has_errors_or_warnings, limit: limit, manufacturer: manufacturer, page_cursor: page_cursor, search: search, space_id: space_id, user_identifier_key: user_identifier_key}.compact)
|
|
56
58
|
|
|
57
59
|
Seam::Resources::Device.list_from_http_response(res, "devices", "/devices/list")
|
|
58
60
|
end
|
data/lib/seam/version.rb
CHANGED