@seamapi/http 2.20.0 → 2.21.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/resources/device.d.ts +15 -0
- package/lib/resources/event.d.ts +4 -0
- package/lib/resources/unmanaged-device.d.ts +15 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -2
- package/src/lib/resources/device.ts +18 -0
- package/src/lib/resources/event.ts +4 -0
- package/src/lib/resources/unmanaged-device.ts +18 -0
- package/src/lib/version.ts +1 -1
|
@@ -2781,6 +2781,21 @@ export type Device = {
|
|
|
2781
2781
|
*/
|
|
2782
2782
|
warning_code: 'accessory_keypad_setup_required';
|
|
2783
2783
|
} /**
|
|
2784
|
+
* 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.
|
|
2785
|
+
*/ | {
|
|
2786
|
+
/**
|
|
2787
|
+
* Date and time at which Seam created the warning.
|
|
2788
|
+
*/
|
|
2789
|
+
created_at: string;
|
|
2790
|
+
/**
|
|
2791
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
2792
|
+
*/
|
|
2793
|
+
message: string;
|
|
2794
|
+
/**
|
|
2795
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
2796
|
+
*/
|
|
2797
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
2798
|
+
} /**
|
|
2784
2799
|
* Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.
|
|
2785
2800
|
*/ | {
|
|
2786
2801
|
/**
|
package/lib/resources/event.d.ts
CHANGED
|
@@ -3790,6 +3790,10 @@ export type SeamEvent = {
|
|
|
3790
3790
|
* Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device.
|
|
3791
3791
|
*/
|
|
3792
3792
|
battery_level: number;
|
|
3793
|
+
/**
|
|
3794
|
+
* 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.
|
|
3795
|
+
*/
|
|
3796
|
+
battery_source?: 'lock' | 'accessory_keypad' | undefined;
|
|
3793
3797
|
/**
|
|
3794
3798
|
* Custom metadata of the connected account, present when connected_account_id is provided.
|
|
3795
3799
|
*/
|
|
@@ -910,6 +910,21 @@ export type UnmanagedDevice = {
|
|
|
910
910
|
*/
|
|
911
911
|
warning_code: 'accessory_keypad_setup_required';
|
|
912
912
|
} /**
|
|
913
|
+
* 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.
|
|
914
|
+
*/ | {
|
|
915
|
+
/**
|
|
916
|
+
* Date and time at which Seam created the warning.
|
|
917
|
+
*/
|
|
918
|
+
created_at: string;
|
|
919
|
+
/**
|
|
920
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
921
|
+
*/
|
|
922
|
+
message: string;
|
|
923
|
+
/**
|
|
924
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
925
|
+
*/
|
|
926
|
+
warning_code: 'accessory_keypad_low_battery';
|
|
927
|
+
} /**
|
|
913
928
|
* Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.
|
|
914
929
|
*/ | {
|
|
915
930
|
/**
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const seamapiJavascriptHttpVersion = "2.
|
|
1
|
+
declare const seamapiJavascriptHttpVersion = "2.21.0";
|
|
2
2
|
export default seamapiJavascriptHttpVersion;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/http",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.21.0",
|
|
4
4
|
"description": "JavaScript HTTP client for the Seam API written in TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
"version": "^11.0.0 || ^10.0.0"
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
|
+
"packageManager": "npm@11.19.0",
|
|
81
82
|
"dependencies": {
|
|
82
83
|
"@seamapi/url-search-params-serializer": "^3.0.3",
|
|
83
84
|
"axios": "^1.9.0",
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
"@seamapi/blueprint": "^1.8.0",
|
|
88
89
|
"@seamapi/fake-seam-connect": "^2.0.4",
|
|
89
90
|
"@seamapi/smith": "^1.1.0",
|
|
90
|
-
"@seamapi/types": "1.
|
|
91
|
+
"@seamapi/types": "1.1034.0",
|
|
91
92
|
"@types/jsonwebtoken": "^9.0.6",
|
|
92
93
|
"@types/node": "^24.10.9",
|
|
93
94
|
"ava": "^8.0.1",
|
|
@@ -3208,6 +3208,24 @@ export type Device = {
|
|
|
3208
3208
|
*/
|
|
3209
3209
|
warning_code: 'accessory_keypad_setup_required'
|
|
3210
3210
|
} /**
|
|
3211
|
+
* 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.
|
|
3212
|
+
*/
|
|
3213
|
+
| {
|
|
3214
|
+
/**
|
|
3215
|
+
* Date and time at which Seam created the warning.
|
|
3216
|
+
*/
|
|
3217
|
+
created_at: string
|
|
3218
|
+
|
|
3219
|
+
/**
|
|
3220
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
3221
|
+
*/
|
|
3222
|
+
message: string
|
|
3223
|
+
|
|
3224
|
+
/**
|
|
3225
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
3226
|
+
*/
|
|
3227
|
+
warning_code: 'accessory_keypad_low_battery'
|
|
3228
|
+
} /**
|
|
3211
3229
|
* Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.
|
|
3212
3230
|
*/
|
|
3213
3231
|
| {
|
|
@@ -4553,6 +4553,10 @@ export type SeamEvent =
|
|
|
4553
4553
|
*/
|
|
4554
4554
|
battery_level: number
|
|
4555
4555
|
|
|
4556
|
+
/**
|
|
4557
|
+
* 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.
|
|
4558
|
+
*/
|
|
4559
|
+
battery_source?: 'lock' | 'accessory_keypad' | undefined
|
|
4556
4560
|
/**
|
|
4557
4561
|
* Custom metadata of the connected account, present when connected_account_id is provided.
|
|
4558
4562
|
*/
|
|
@@ -1122,6 +1122,24 @@ export type UnmanagedDevice = {
|
|
|
1122
1122
|
*/
|
|
1123
1123
|
warning_code: 'accessory_keypad_setup_required'
|
|
1124
1124
|
} /**
|
|
1125
|
+
* 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.
|
|
1126
|
+
*/
|
|
1127
|
+
| {
|
|
1128
|
+
/**
|
|
1129
|
+
* Date and time at which Seam created the warning.
|
|
1130
|
+
*/
|
|
1131
|
+
created_at: string
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
1135
|
+
*/
|
|
1136
|
+
message: string
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
1140
|
+
*/
|
|
1141
|
+
warning_code: 'accessory_keypad_low_battery'
|
|
1142
|
+
} /**
|
|
1125
1143
|
* Indicates that the device may optimistically be reported as online because the provider does not reliably report its online status.
|
|
1126
1144
|
*/
|
|
1127
1145
|
| {
|
package/src/lib/version.ts
CHANGED