@seamapi/http 2.19.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.
@@ -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
  /**
@@ -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
  /**
@@ -4,10 +4,11 @@
4
4
  export type Workspace = {
5
5
  /**
6
6
  * Company name associated with the [workspace](https://docs.seam.co/core-concepts/workspaces).
7
+ * @deprecated Use `connect_partner_name` instead.
7
8
  */
8
9
  company_name: string;
9
10
  /**
10
- * @deprecated Use `company_name` instead.
11
+ * Seam Connect partner name associated with the [workspace](https://docs.seam.co/core-concepts/workspaces).
11
12
  */
12
13
  connect_partner_name: string | null;
13
14
  connect_webview_customization: {
@@ -40,11 +40,11 @@ export declare class SeamHttpWorkspaces {
40
40
  export type WorkspacesCreateParameters = {
41
41
  /**
42
42
  * Company name for the new workspace.
43
+ * @deprecated Use `connect_partner_name` instead.
43
44
  */
44
45
  company_name?: string | undefined;
45
46
  /**
46
47
  * Connect partner name for the new workspace.
47
- * @deprecated Use `company_name` instead.
48
48
  */
49
49
  connect_partner_name?: string | null | undefined;
50
50
  /**
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const seamapiJavascriptHttpVersion = "2.19.0";
1
+ declare const seamapiJavascriptHttpVersion = "2.21.0";
2
2
  export default seamapiJavascriptHttpVersion;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '2.19.0';
1
+ const seamapiJavascriptHttpVersion = '2.21.0';
2
2
  export default seamapiJavascriptHttpVersion;
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/http",
3
- "version": "2.19.0",
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.1029.0",
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
  | {
@@ -9,11 +9,12 @@
9
9
  export type Workspace = {
10
10
  /**
11
11
  * Company name associated with the [workspace](https://docs.seam.co/core-concepts/workspaces).
12
+ * @deprecated Use `connect_partner_name` instead.
12
13
  */
13
14
  company_name: string
14
15
 
15
16
  /**
16
- * @deprecated Use `company_name` instead.
17
+ * Seam Connect partner name associated with the [workspace](https://docs.seam.co/core-concepts/workspaces).
17
18
  */
18
19
  connect_partner_name: string | null
19
20
 
@@ -263,11 +263,11 @@ export class SeamHttpWorkspaces {
263
263
  export type WorkspacesCreateParameters = {
264
264
  /**
265
265
  * Company name for the new workspace.
266
+ * @deprecated Use `connect_partner_name` instead.
266
267
  */
267
268
  company_name?: string | undefined
268
269
  /**
269
270
  * Connect partner name for the new workspace.
270
- * @deprecated Use `company_name` instead.
271
271
  */
272
272
  connect_partner_name?: string | null | undefined
273
273
  /**
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '2.19.0'
1
+ const seamapiJavascriptHttpVersion = '2.21.0'
2
2
 
3
3
  export default seamapiJavascriptHttpVersion