@seamapi/types 1.1033.0 → 1.1035.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.
- package/lib/seam/connect/models/devices/device.d.ts +58 -0
- package/lib/seam/connect/models/devices/device.js +14 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +21 -0
- package/lib/seam/connect/models/events/devices.d.ts +6 -0
- package/lib/seam/connect/models/events/devices.js +4 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +3 -0
- package/lib/seam/connect/openapi.js +50 -5
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +149 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device.ts +15 -0
- package/src/lib/seam/connect/models/events/devices.ts +7 -0
- package/src/lib/seam/connect/openapi.ts +59 -5
- package/src/lib/seam/connect/route-types.ts +169 -1
|
@@ -13767,6 +13767,13 @@ export type Routes = {
|
|
|
13767
13767
|
created_at: string;
|
|
13768
13768
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
13769
13769
|
warning_code: 'accessory_keypad_setup_required';
|
|
13770
|
+
} | {
|
|
13771
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
13772
|
+
message: string;
|
|
13773
|
+
/** Date and time at which Seam created the warning. */
|
|
13774
|
+
created_at: string;
|
|
13775
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
13776
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
13770
13777
|
} | {
|
|
13771
13778
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
13772
13779
|
message: string;
|
|
@@ -20827,6 +20834,13 @@ export type Routes = {
|
|
|
20827
20834
|
created_at: string;
|
|
20828
20835
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
20829
20836
|
warning_code: 'accessory_keypad_setup_required';
|
|
20837
|
+
} | {
|
|
20838
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
20839
|
+
message: string;
|
|
20840
|
+
/** Date and time at which Seam created the warning. */
|
|
20841
|
+
created_at: string;
|
|
20842
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
20843
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
20830
20844
|
} | {
|
|
20831
20845
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
20832
20846
|
message: string;
|
|
@@ -44690,6 +44704,13 @@ export type Routes = {
|
|
|
44690
44704
|
created_at: string;
|
|
44691
44705
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
44692
44706
|
warning_code: 'accessory_keypad_setup_required';
|
|
44707
|
+
} | {
|
|
44708
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
44709
|
+
message: string;
|
|
44710
|
+
/** Date and time at which Seam created the warning. */
|
|
44711
|
+
created_at: string;
|
|
44712
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
44713
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
44693
44714
|
} | {
|
|
44694
44715
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
44695
44716
|
message: string;
|
|
@@ -46229,6 +46250,13 @@ export type Routes = {
|
|
|
46229
46250
|
created_at: string;
|
|
46230
46251
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
46231
46252
|
warning_code: 'accessory_keypad_setup_required';
|
|
46253
|
+
} | {
|
|
46254
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
46255
|
+
message: string;
|
|
46256
|
+
/** Date and time at which Seam created the warning. */
|
|
46257
|
+
created_at: string;
|
|
46258
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
46259
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
46232
46260
|
} | {
|
|
46233
46261
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
46234
46262
|
message: string;
|
|
@@ -46858,6 +46886,13 @@ export type Routes = {
|
|
|
46858
46886
|
created_at: string;
|
|
46859
46887
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
46860
46888
|
warning_code: 'accessory_keypad_setup_required';
|
|
46889
|
+
} | {
|
|
46890
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
46891
|
+
message: string;
|
|
46892
|
+
/** Date and time at which Seam created the warning. */
|
|
46893
|
+
created_at: string;
|
|
46894
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
46895
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
46861
46896
|
} | {
|
|
46862
46897
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
46863
46898
|
message: string;
|
|
@@ -47380,6 +47415,13 @@ export type Routes = {
|
|
|
47380
47415
|
created_at: string;
|
|
47381
47416
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
47382
47417
|
warning_code: 'accessory_keypad_setup_required';
|
|
47418
|
+
} | {
|
|
47419
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
47420
|
+
message: string;
|
|
47421
|
+
/** Date and time at which Seam created the warning. */
|
|
47422
|
+
created_at: string;
|
|
47423
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
47424
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
47383
47425
|
} | {
|
|
47384
47426
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
47385
47427
|
message: string;
|
|
@@ -50188,6 +50230,8 @@ export type Routes = {
|
|
|
50188
50230
|
event_type: 'device.low_battery';
|
|
50189
50231
|
/** Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device. */
|
|
50190
50232
|
battery_level: number;
|
|
50233
|
+
/** Battery that dropped below the low threshold. `lock`: the lock's own battery. `accessory_keypad`: a paired accessory keypad's battery. Omitted for events emitted before this field existed, which always refer to the lock's own battery. */
|
|
50234
|
+
battery_source?: ('lock' | 'accessory_keypad') | undefined;
|
|
50191
50235
|
} | {
|
|
50192
50236
|
/** ID of the event. */
|
|
50193
50237
|
event_id: string;
|
|
@@ -53894,6 +53938,8 @@ export type Routes = {
|
|
|
53894
53938
|
event_type: 'device.low_battery';
|
|
53895
53939
|
/** Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device. */
|
|
53896
53940
|
battery_level: number;
|
|
53941
|
+
/** Battery that dropped below the low threshold. `lock`: the lock's own battery. `accessory_keypad`: a paired accessory keypad's battery. Omitted for events emitted before this field existed, which always refer to the lock's own battery. */
|
|
53942
|
+
battery_source?: ('lock' | 'accessory_keypad') | undefined;
|
|
53897
53943
|
} | {
|
|
53898
53944
|
/** ID of the event. */
|
|
53899
53945
|
event_id: string;
|
|
@@ -58256,6 +58302,13 @@ export type Routes = {
|
|
|
58256
58302
|
created_at: string;
|
|
58257
58303
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
58258
58304
|
warning_code: 'accessory_keypad_setup_required';
|
|
58305
|
+
} | {
|
|
58306
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
58307
|
+
message: string;
|
|
58308
|
+
/** Date and time at which Seam created the warning. */
|
|
58309
|
+
created_at: string;
|
|
58310
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
58311
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
58259
58312
|
} | {
|
|
58260
58313
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
58261
58314
|
message: string;
|
|
@@ -59745,6 +59798,13 @@ export type Routes = {
|
|
|
59745
59798
|
created_at: string;
|
|
59746
59799
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
59747
59800
|
warning_code: 'accessory_keypad_setup_required';
|
|
59801
|
+
} | {
|
|
59802
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
59803
|
+
message: string;
|
|
59804
|
+
/** Date and time at which Seam created the warning. */
|
|
59805
|
+
created_at: string;
|
|
59806
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
59807
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
59748
59808
|
} | {
|
|
59749
59809
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
59750
59810
|
message: string;
|
|
@@ -61257,6 +61317,13 @@ export type Routes = {
|
|
|
61257
61317
|
created_at: string;
|
|
61258
61318
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
61259
61319
|
warning_code: 'accessory_keypad_setup_required';
|
|
61320
|
+
} | {
|
|
61321
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
61322
|
+
message: string;
|
|
61323
|
+
/** Date and time at which Seam created the warning. */
|
|
61324
|
+
created_at: string;
|
|
61325
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
61326
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
61260
61327
|
} | {
|
|
61261
61328
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
61262
61329
|
message: string;
|
|
@@ -62745,6 +62812,13 @@ export type Routes = {
|
|
|
62745
62812
|
created_at: string;
|
|
62746
62813
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
62747
62814
|
warning_code: 'accessory_keypad_setup_required';
|
|
62815
|
+
} | {
|
|
62816
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
62817
|
+
message: string;
|
|
62818
|
+
/** Date and time at which Seam created the warning. */
|
|
62819
|
+
created_at: string;
|
|
62820
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
62821
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
62748
62822
|
} | {
|
|
62749
62823
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
62750
62824
|
message: string;
|
|
@@ -71447,6 +71521,13 @@ export type Routes = {
|
|
|
71447
71521
|
created_at: string;
|
|
71448
71522
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
71449
71523
|
warning_code: 'accessory_keypad_setup_required';
|
|
71524
|
+
} | {
|
|
71525
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
71526
|
+
message: string;
|
|
71527
|
+
/** Date and time at which Seam created the warning. */
|
|
71528
|
+
created_at: string;
|
|
71529
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
71530
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
71450
71531
|
} | {
|
|
71451
71532
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
71452
71533
|
message: string;
|
|
@@ -72935,6 +73016,13 @@ export type Routes = {
|
|
|
72935
73016
|
created_at: string;
|
|
72936
73017
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
72937
73018
|
warning_code: 'accessory_keypad_setup_required';
|
|
73019
|
+
} | {
|
|
73020
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
73021
|
+
message: string;
|
|
73022
|
+
/** Date and time at which Seam created the warning. */
|
|
73023
|
+
created_at: string;
|
|
73024
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
73025
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
72938
73026
|
} | {
|
|
72939
73027
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
72940
73028
|
message: string;
|
|
@@ -80040,7 +80128,7 @@ export type Routes = {
|
|
|
80040
80128
|
/** Timestamp by which to limit returned timeline entries. Returns entries created after this timestamp. */
|
|
80041
80129
|
created_after?: Date | undefined;
|
|
80042
80130
|
/** Time range to filter timeline entries. Returns entries created between the two timestamps [start, end]. */
|
|
80043
|
-
created_between?: [
|
|
80131
|
+
created_between?: Date[] | undefined;
|
|
80044
80132
|
/** Filter timeline entries by entry type. If not specified, all entry types are returned. */
|
|
80045
80133
|
entry_types?: ('resource_created' | 'resource_updated' | 'resource_deleted' | 'event' | 'provider_call' | 'automation_run' | 'webhook_processed')[] | undefined;
|
|
80046
80134
|
/** Filter timeline entries by context type. 'request' for API requests, 'job' for background jobs. */
|
|
@@ -85626,6 +85714,8 @@ export type Routes = {
|
|
|
85626
85714
|
event_type: 'device.low_battery';
|
|
85627
85715
|
/** Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device. */
|
|
85628
85716
|
battery_level: number;
|
|
85717
|
+
/** Battery that dropped below the low threshold. `lock`: the lock's own battery. `accessory_keypad`: a paired accessory keypad's battery. Omitted for events emitted before this field existed, which always refer to the lock's own battery. */
|
|
85718
|
+
battery_source?: ('lock' | 'accessory_keypad') | undefined;
|
|
85629
85719
|
} | {
|
|
85630
85720
|
/** ID of the event. */
|
|
85631
85721
|
event_id: string;
|
|
@@ -90363,6 +90453,13 @@ export type Routes = {
|
|
|
90363
90453
|
created_at: string;
|
|
90364
90454
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
90365
90455
|
warning_code: 'accessory_keypad_setup_required';
|
|
90456
|
+
} | {
|
|
90457
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
90458
|
+
message: string;
|
|
90459
|
+
/** Date and time at which Seam created the warning. */
|
|
90460
|
+
created_at: string;
|
|
90461
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
90462
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
90366
90463
|
} | {
|
|
90367
90464
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
90368
90465
|
message: string;
|
|
@@ -98264,6 +98361,13 @@ export type Routes = {
|
|
|
98264
98361
|
created_at: string;
|
|
98265
98362
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
98266
98363
|
warning_code: 'accessory_keypad_setup_required';
|
|
98364
|
+
} | {
|
|
98365
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
98366
|
+
message: string;
|
|
98367
|
+
/** Date and time at which Seam created the warning. */
|
|
98368
|
+
created_at: string;
|
|
98369
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
98370
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
98267
98371
|
} | {
|
|
98268
98372
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
98269
98373
|
message: string;
|
|
@@ -103384,6 +103488,13 @@ export type Routes = {
|
|
|
103384
103488
|
created_at: string;
|
|
103385
103489
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
103386
103490
|
warning_code: 'accessory_keypad_setup_required';
|
|
103491
|
+
} | {
|
|
103492
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
103493
|
+
message: string;
|
|
103494
|
+
/** Date and time at which Seam created the warning. */
|
|
103495
|
+
created_at: string;
|
|
103496
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
103497
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
103387
103498
|
} | {
|
|
103388
103499
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
103389
103500
|
message: string;
|
|
@@ -104872,6 +104983,13 @@ export type Routes = {
|
|
|
104872
104983
|
created_at: string;
|
|
104873
104984
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
104874
104985
|
warning_code: 'accessory_keypad_setup_required';
|
|
104986
|
+
} | {
|
|
104987
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
104988
|
+
message: string;
|
|
104989
|
+
/** Date and time at which Seam created the warning. */
|
|
104990
|
+
created_at: string;
|
|
104991
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
104992
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
104875
104993
|
} | {
|
|
104876
104994
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
104877
104995
|
message: string;
|
|
@@ -114558,6 +114676,13 @@ export type Routes = {
|
|
|
114558
114676
|
created_at: string;
|
|
114559
114677
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
114560
114678
|
warning_code: 'accessory_keypad_setup_required';
|
|
114679
|
+
} | {
|
|
114680
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
114681
|
+
message: string;
|
|
114682
|
+
/** Date and time at which Seam created the warning. */
|
|
114683
|
+
created_at: string;
|
|
114684
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
114685
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
114561
114686
|
} | {
|
|
114562
114687
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
114563
114688
|
message: string;
|
|
@@ -116048,6 +116173,13 @@ export type Routes = {
|
|
|
116048
116173
|
created_at: string;
|
|
116049
116174
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
116050
116175
|
warning_code: 'accessory_keypad_setup_required';
|
|
116176
|
+
} | {
|
|
116177
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
116178
|
+
message: string;
|
|
116179
|
+
/** Date and time at which Seam created the warning. */
|
|
116180
|
+
created_at: string;
|
|
116181
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
116182
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
116051
116183
|
} | {
|
|
116052
116184
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
116053
116185
|
message: string;
|
|
@@ -118875,6 +119007,13 @@ export type Routes = {
|
|
|
118875
119007
|
created_at: string;
|
|
118876
119008
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
118877
119009
|
warning_code: 'accessory_keypad_setup_required';
|
|
119010
|
+
} | {
|
|
119011
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
119012
|
+
message: string;
|
|
119013
|
+
/** Date and time at which Seam created the warning. */
|
|
119014
|
+
created_at: string;
|
|
119015
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
119016
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
118878
119017
|
} | {
|
|
118879
119018
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
118880
119019
|
message: string;
|
|
@@ -122348,6 +122487,13 @@ export type Routes = {
|
|
|
122348
122487
|
created_at: string;
|
|
122349
122488
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
122350
122489
|
warning_code: 'accessory_keypad_setup_required';
|
|
122490
|
+
} | {
|
|
122491
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
122492
|
+
message: string;
|
|
122493
|
+
/** Date and time at which Seam created the warning. */
|
|
122494
|
+
created_at: string;
|
|
122495
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
122496
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
122351
122497
|
} | {
|
|
122352
122498
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
122353
122499
|
message: string;
|
|
@@ -125663,6 +125809,8 @@ export type Routes = {
|
|
|
125663
125809
|
event_type: 'device.low_battery';
|
|
125664
125810
|
/** Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device. */
|
|
125665
125811
|
battery_level: number;
|
|
125812
|
+
/** Battery that dropped below the low threshold. `lock`: the lock's own battery. `accessory_keypad`: a paired accessory keypad's battery. Omitted for events emitted before this field existed, which always refer to the lock's own battery. */
|
|
125813
|
+
battery_source?: ('lock' | 'accessory_keypad') | undefined;
|
|
125666
125814
|
} | {
|
|
125667
125815
|
/** ID of the event. */
|
|
125668
125816
|
event_id: string;
|
package/package.json
CHANGED
|
@@ -625,6 +625,17 @@ const accessory_keypad_setup_required = common_device_warning.extend({
|
|
|
625
625
|
Indicates that the accessory keypad exists, but is not linked to the Igloohome Bridge. Online access code programming will fail until the keypad is linked to the Igloohome Bridge in the Igloohome app.
|
|
626
626
|
`)
|
|
627
627
|
|
|
628
|
+
const accessory_keypad_low_battery = common_device_warning.extend({
|
|
629
|
+
warning_code: z
|
|
630
|
+
.literal('accessory_keypad_low_battery')
|
|
631
|
+
.describe(warning_code_description),
|
|
632
|
+
}).describe(`
|
|
633
|
+
---
|
|
634
|
+
variant_group_key: locks
|
|
635
|
+
---
|
|
636
|
+
Indicates that the accessory keypad paired with this lock has a low or critically low battery. Replace its batteries so guests can keep entering their access codes.
|
|
637
|
+
`)
|
|
638
|
+
|
|
628
639
|
const unreliable_online_status = common_device_warning.extend({
|
|
629
640
|
warning_code: z
|
|
630
641
|
.literal('unreliable_online_status')
|
|
@@ -683,6 +694,7 @@ const device_warning = z.discriminatedUnion('warning_code', [
|
|
|
683
694
|
provider_issue,
|
|
684
695
|
keynest_unsupported_locker,
|
|
685
696
|
accessory_keypad_setup_required,
|
|
697
|
+
accessory_keypad_low_battery,
|
|
686
698
|
unreliable_online_status,
|
|
687
699
|
max_access_codes_reached,
|
|
688
700
|
])
|
|
@@ -741,6 +753,9 @@ export const device_warning_map = z.object({
|
|
|
741
753
|
accessory_keypad_setup_required: accessory_keypad_setup_required
|
|
742
754
|
.optional()
|
|
743
755
|
.nullable(),
|
|
756
|
+
accessory_keypad_low_battery: accessory_keypad_low_battery
|
|
757
|
+
.optional()
|
|
758
|
+
.nullable(),
|
|
744
759
|
unreliable_online_status: unreliable_online_status.optional().nullable(),
|
|
745
760
|
max_access_codes_reached: max_access_codes_reached.optional().nullable(),
|
|
746
761
|
})
|
|
@@ -45,6 +45,12 @@ const device_battery_status = z
|
|
|
45
45
|
'Battery status of the affected device, calculated from the numeric `battery_level` value.',
|
|
46
46
|
)
|
|
47
47
|
|
|
48
|
+
const battery_source = z
|
|
49
|
+
.enum(['lock', 'accessory_keypad'])
|
|
50
|
+
.describe(
|
|
51
|
+
"Battery that dropped below the low threshold. `lock`: the lock's own battery. `accessory_keypad`: a paired accessory keypad's battery. Omitted for events emitted before this field existed, which always refer to the lock's own battery.",
|
|
52
|
+
)
|
|
53
|
+
|
|
48
54
|
const disconnection_error_code = z
|
|
49
55
|
.enum(['account_disconnected', 'hub_disconnected', 'device_disconnected'])
|
|
50
56
|
.describe('Error code associated with the disconnection event, if any.')
|
|
@@ -176,6 +182,7 @@ export type DeviceTamperedEvent = z.infer<typeof device_tampered_event>
|
|
|
176
182
|
export const device_low_battery_event = device_event.extend({
|
|
177
183
|
event_type: z.literal('device.low_battery'),
|
|
178
184
|
battery_level,
|
|
185
|
+
battery_source: battery_source.optional(),
|
|
179
186
|
}).describe(`
|
|
180
187
|
---
|
|
181
188
|
route_path: /devices
|
|
@@ -17772,6 +17772,32 @@ const openapi: OpenAPISpec = {
|
|
|
17772
17772
|
type: 'object',
|
|
17773
17773
|
'x-variant-group-key': 'locks',
|
|
17774
17774
|
},
|
|
17775
|
+
{
|
|
17776
|
+
description:
|
|
17777
|
+
'Indicates that the accessory keypad paired with this lock has a low or critically low battery. Replace its batteries so guests can keep entering their access codes.',
|
|
17778
|
+
properties: {
|
|
17779
|
+
created_at: {
|
|
17780
|
+
description:
|
|
17781
|
+
'Date and time at which Seam created the warning.',
|
|
17782
|
+
format: 'date-time',
|
|
17783
|
+
type: 'string',
|
|
17784
|
+
},
|
|
17785
|
+
message: {
|
|
17786
|
+
description:
|
|
17787
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
17788
|
+
type: 'string',
|
|
17789
|
+
},
|
|
17790
|
+
warning_code: {
|
|
17791
|
+
description:
|
|
17792
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
17793
|
+
enum: ['accessory_keypad_low_battery'],
|
|
17794
|
+
type: 'string',
|
|
17795
|
+
},
|
|
17796
|
+
},
|
|
17797
|
+
required: ['message', 'created_at', 'warning_code'],
|
|
17798
|
+
type: 'object',
|
|
17799
|
+
'x-variant-group-key': 'locks',
|
|
17800
|
+
},
|
|
17775
17801
|
{
|
|
17776
17802
|
description:
|
|
17777
17803
|
'Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.',
|
|
@@ -26252,6 +26278,12 @@ const openapi: OpenAPISpec = {
|
|
|
26252
26278
|
minimum: 0,
|
|
26253
26279
|
type: 'number',
|
|
26254
26280
|
},
|
|
26281
|
+
battery_source: {
|
|
26282
|
+
description:
|
|
26283
|
+
"Battery that dropped below the low threshold. `lock`: the lock's own battery. `accessory_keypad`: a paired accessory keypad's battery. Omitted for events emitted before this field existed, which always refer to the lock's own battery.",
|
|
26284
|
+
enum: ['lock', 'accessory_keypad'],
|
|
26285
|
+
type: 'string',
|
|
26286
|
+
},
|
|
26255
26287
|
connected_account_custom_metadata: {
|
|
26256
26288
|
additionalProperties: {
|
|
26257
26289
|
oneOf: [{ type: 'string' }, { type: 'boolean' }],
|
|
@@ -37770,6 +37802,32 @@ const openapi: OpenAPISpec = {
|
|
|
37770
37802
|
type: 'object',
|
|
37771
37803
|
'x-variant-group-key': 'locks',
|
|
37772
37804
|
},
|
|
37805
|
+
{
|
|
37806
|
+
description:
|
|
37807
|
+
'Indicates that the accessory keypad paired with this lock has a low or critically low battery. Replace its batteries so guests can keep entering their access codes.',
|
|
37808
|
+
properties: {
|
|
37809
|
+
created_at: {
|
|
37810
|
+
description:
|
|
37811
|
+
'Date and time at which Seam created the warning.',
|
|
37812
|
+
format: 'date-time',
|
|
37813
|
+
type: 'string',
|
|
37814
|
+
},
|
|
37815
|
+
message: {
|
|
37816
|
+
description:
|
|
37817
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
37818
|
+
type: 'string',
|
|
37819
|
+
},
|
|
37820
|
+
warning_code: {
|
|
37821
|
+
description:
|
|
37822
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
37823
|
+
enum: ['accessory_keypad_low_battery'],
|
|
37824
|
+
type: 'string',
|
|
37825
|
+
},
|
|
37826
|
+
},
|
|
37827
|
+
required: ['message', 'created_at', 'warning_code'],
|
|
37828
|
+
type: 'object',
|
|
37829
|
+
'x-variant-group-key': 'locks',
|
|
37830
|
+
},
|
|
37773
37831
|
{
|
|
37774
37832
|
description:
|
|
37775
37833
|
'Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.',
|
|
@@ -69845,11 +69903,7 @@ const openapi: OpenAPISpec = {
|
|
|
69845
69903
|
description:
|
|
69846
69904
|
'Deletes the automation configuration for a customer portal workspace.\nSupports both console session and customer client session authentication.',
|
|
69847
69905
|
operationId: 'seamCustomerV1AutomationsDeleteDelete',
|
|
69848
|
-
|
|
69849
|
-
content: {
|
|
69850
|
-
'application/json': { schema: { properties: {}, type: 'object' } },
|
|
69851
|
-
},
|
|
69852
|
-
},
|
|
69906
|
+
parameters: [],
|
|
69853
69907
|
responses: {
|
|
69854
69908
|
'200': {
|
|
69855
69909
|
content: {
|