@seamapi/http 2.50.0 → 2.51.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/access-grant.d.ts +0 -4
- package/lib/resources/acs-access-group.d.ts +0 -8
- package/lib/resources/acs-system.d.ts +14 -16
- package/lib/resources/acs-user.d.ts +0 -4
- package/lib/resources/client-session.d.ts +0 -5
- package/lib/resources/connect-webview.d.ts +1 -1
- package/lib/resources/connected-account.d.ts +1 -27
- package/lib/resources/device-provider.d.ts +1 -1
- package/lib/resources/device.d.ts +112 -254
- package/lib/resources/event.d.ts +4 -43
- package/lib/resources/phone.d.ts +30 -0
- package/lib/resources/unmanaged-access-grant.d.ts +0 -4
- package/lib/resources/unmanaged-device.d.ts +34 -31
- package/lib/resources/workspace.d.ts +0 -5
- package/lib/routes/access-codes/access-codes.d.ts +0 -4
- package/lib/routes/access-grants/access-grants.d.ts +0 -25
- package/lib/routes/acs/entrances/entrances.d.ts +0 -4
- package/lib/routes/acs/users/users.d.ts +1 -9
- package/lib/routes/acs/users/users.js +0 -1
- package/lib/routes/acs/users/users.js.map +1 -1
- package/lib/routes/client-sessions/client-sessions.d.ts +1 -16
- package/lib/routes/client-sessions/client-sessions.js +0 -1
- package/lib/routes/client-sessions/client-sessions.js.map +1 -1
- package/lib/routes/connect-webviews/connect-webviews.d.ts +2 -2
- package/lib/routes/connected-accounts/connected-accounts.d.ts +1 -1
- package/lib/routes/customers/customers.d.ts +4 -12
- package/lib/routes/devices/devices.d.ts +3 -7
- package/lib/routes/devices/unmanaged/unmanaged.d.ts +3 -3
- package/lib/routes/locks/locks.d.ts +3 -3
- package/lib/routes/spaces/spaces.d.ts +13 -0
- package/lib/routes/thermostats/thermostats.d.ts +3 -13
- package/lib/routes/workspaces/workspaces.d.ts +0 -21
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/src/lib/resources/access-grant.ts +0 -5
- package/src/lib/resources/acs-access-group.ts +0 -20
- package/src/lib/resources/acs-system.ts +17 -35
- package/src/lib/resources/acs-user.ts +0 -4
- package/src/lib/resources/client-session.ts +0 -6
- package/src/lib/resources/connect-webview.ts +1 -0
- package/src/lib/resources/connected-account.ts +1 -28
- package/src/lib/resources/device-provider.ts +3 -0
- package/src/lib/resources/device.ts +2297 -2448
- package/src/lib/resources/event.ts +4 -53
- package/src/lib/resources/phone.ts +36 -0
- package/src/lib/resources/unmanaged-access-grant.ts +0 -5
- package/src/lib/resources/unmanaged-device.ts +118 -105
- package/src/lib/resources/workspace.ts +0 -6
- package/src/lib/routes/access-codes/access-codes.ts +0 -4
- package/src/lib/routes/access-grants/access-grants.ts +0 -27
- package/src/lib/routes/acs/entrances/entrances.ts +0 -4
- package/src/lib/routes/acs/users/users.ts +0 -10
- package/src/lib/routes/client-sessions/client-sessions.ts +0 -17
- package/src/lib/routes/connect-webviews/connect-webviews.ts +4 -0
- package/src/lib/routes/connected-accounts/connected-accounts.ts +1 -0
- package/src/lib/routes/customers/customers.ts +4 -14
- package/src/lib/routes/devices/devices.ts +11 -4
- package/src/lib/routes/devices/unmanaged/unmanaged.ts +11 -0
- package/src/lib/routes/locks/locks.ts +3 -0
- package/src/lib/routes/spaces/spaces.ts +16 -0
- package/src/lib/routes/thermostats/thermostats.ts +3 -10
- package/src/lib/routes/workspaces/workspaces.ts +0 -21
- package/src/lib/version.ts +1 -1
|
@@ -38,11 +38,6 @@ export declare class SeamHttpWorkspaces {
|
|
|
38
38
|
update(parameters?: WorkspacesUpdateParameters, options?: WorkspacesUpdateOptions): WorkspacesUpdateRequest;
|
|
39
39
|
}
|
|
40
40
|
export type WorkspacesCreateParameters = {
|
|
41
|
-
/**
|
|
42
|
-
* Company name for the new workspace.
|
|
43
|
-
* @deprecated Use `connect_partner_name` instead.
|
|
44
|
-
*/
|
|
45
|
-
company_name?: string | undefined;
|
|
46
41
|
/**
|
|
47
42
|
* Connect partner name for the new workspace.
|
|
48
43
|
*/
|
|
@@ -80,22 +75,6 @@ export type WorkspacesCreateParameters = {
|
|
|
80
75
|
* ID of the organization to associate with the new workspace. If omitted, the new workspace is associated with the organization that you administer, if you administer exactly one. If you administer no organization, Seam creates one for you and associates the new workspace with it.
|
|
81
76
|
*/
|
|
82
77
|
organization_id?: string | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* @deprecated Use `connect_webview_customization.webview_logo_shape` instead.
|
|
85
|
-
*/
|
|
86
|
-
webview_logo_shape?: 'circle' | 'square' | undefined;
|
|
87
|
-
/**
|
|
88
|
-
* @deprecated Use `connect_webview_customization.webview_primary_button_color` instead.
|
|
89
|
-
*/
|
|
90
|
-
webview_primary_button_color?: string | undefined;
|
|
91
|
-
/**
|
|
92
|
-
* @deprecated Use `connect_webview_customization.webview_primary_button_text_color` instead.
|
|
93
|
-
*/
|
|
94
|
-
webview_primary_button_text_color?: string | undefined;
|
|
95
|
-
/**
|
|
96
|
-
* @deprecated Use `connect_webview_customization.webview_success_message` instead.
|
|
97
|
-
*/
|
|
98
|
-
webview_success_message?: string | undefined;
|
|
99
78
|
};
|
|
100
79
|
/**
|
|
101
80
|
* @deprecated Use WorkspacesCreateRequest instead.
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const seamapiJavascriptHttpVersion = "2.
|
|
1
|
+
declare const seamapiJavascriptHttpVersion = "2.51.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.51.0",
|
|
4
4
|
"description": "JavaScript HTTP client for the Seam API written in TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@seamapi/blueprint": "^1.13.2",
|
|
89
89
|
"@seamapi/fake-seam-connect": "^2.0.4",
|
|
90
90
|
"@seamapi/smith": "^1.2.0",
|
|
91
|
-
"@seamapi/types": "1.
|
|
91
|
+
"@seamapi/types": "1.1201.0",
|
|
92
92
|
"@types/jsonwebtoken": "^9.0.6",
|
|
93
93
|
"@types/node": "^24.10.9",
|
|
94
94
|
"ava": "^8.0.1",
|
|
@@ -100,11 +100,6 @@ export type AccessGrant = {
|
|
|
100
100
|
* Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method.
|
|
101
101
|
*/
|
|
102
102
|
instant_key_url?: string | undefined
|
|
103
|
-
/**
|
|
104
|
-
* @deprecated Use `space_ids`.
|
|
105
|
-
*/
|
|
106
|
-
location_ids: Array<string>
|
|
107
|
-
|
|
108
103
|
/**
|
|
109
104
|
* Name of the Access Grant. If not provided, the display name will be computed.
|
|
110
105
|
*/
|
|
@@ -11,26 +11,6 @@
|
|
|
11
11
|
* To learn whether your access control system supports access groups, see the corresponding [system integration guide](https://www.seam.co/docs/device-and-system-integration-guides#access-control-systems).
|
|
12
12
|
*/
|
|
13
13
|
export type AcsAccessGroup = {
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Use `external_type`.
|
|
16
|
-
*/
|
|
17
|
-
access_group_type:
|
|
18
|
-
| 'pti_unit'
|
|
19
|
-
| 'pti_access_level'
|
|
20
|
-
| 'salto_ks_access_group'
|
|
21
|
-
| 'brivo_group'
|
|
22
|
-
| 'salto_space_group'
|
|
23
|
-
| 'dormakaba_community_access_group'
|
|
24
|
-
| 'dormakaba_ambiance_access_group'
|
|
25
|
-
| 'avigilon_alta_group'
|
|
26
|
-
| 'kisi_access_group'
|
|
27
|
-
| 'akiles_member_group'
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated Use `external_type_display_name`.
|
|
31
|
-
*/
|
|
32
|
-
access_group_type_display_name: string
|
|
33
|
-
|
|
34
14
|
/**
|
|
35
15
|
* `starts_at` and `ends_at` timestamps for the access group's access.
|
|
36
16
|
*/
|
|
@@ -29,12 +29,6 @@ export type AcsSystem = {
|
|
|
29
29
|
*/
|
|
30
30
|
connected_account_id: string
|
|
31
31
|
|
|
32
|
-
/**
|
|
33
|
-
* IDs of the [connected accounts](https://www.seam.co/docs/core-concepts/connected-accounts) associated with the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).
|
|
34
|
-
* @deprecated Use `connected_account_id`.
|
|
35
|
-
*/
|
|
36
|
-
connected_account_ids: Array<string>
|
|
37
|
-
|
|
38
32
|
/**
|
|
39
33
|
* Date and time at which the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) was created.
|
|
40
34
|
*/
|
|
@@ -296,32 +290,6 @@ export type AcsSystem = {
|
|
|
296
290
|
*/
|
|
297
291
|
name: string
|
|
298
292
|
|
|
299
|
-
/**
|
|
300
|
-
* @deprecated Use `external_type`.
|
|
301
|
-
*/
|
|
302
|
-
system_type?:
|
|
303
|
-
| 'pti_site'
|
|
304
|
-
| 'avigilon_alta_org'
|
|
305
|
-
| 'salto_ks_site'
|
|
306
|
-
| 'salto_space_system'
|
|
307
|
-
| 'brivo_account'
|
|
308
|
-
| 'hid_credential_manager_organization'
|
|
309
|
-
| 'visionline_system'
|
|
310
|
-
| 'assa_abloy_credential_service'
|
|
311
|
-
| 'latch_building'
|
|
312
|
-
| 'dormakaba_community_site'
|
|
313
|
-
| 'dormakaba_ambiance_site'
|
|
314
|
-
| 'legic_connect_credential_service'
|
|
315
|
-
| 'assa_abloy_vostio'
|
|
316
|
-
| 'assa_abloy_vostio_credential_service'
|
|
317
|
-
| 'hotek_site'
|
|
318
|
-
| 'kisi_organization'
|
|
319
|
-
| 'akiles_organization'
|
|
320
|
-
| undefined
|
|
321
|
-
/**
|
|
322
|
-
* @deprecated Use `external_type_display_name`.
|
|
323
|
-
*/
|
|
324
|
-
system_type_display_name?: string | undefined
|
|
325
293
|
/**
|
|
326
294
|
* Visionline-specific metadata for the [access control system](https://www.seam.co/docs/low-level-apis/access-systems).
|
|
327
295
|
*/
|
|
@@ -364,7 +332,7 @@ export type AcsSystem = {
|
|
|
364
332
|
*/
|
|
365
333
|
warning_code: 'salto_ks_subscription_limit_almost_reached'
|
|
366
334
|
} /**
|
|
367
|
-
* Indicates the
|
|
335
|
+
* Indicates that the Salto KS site does not accept custom PIN codes, either because its Salto subscription does not include the Custom PIN feature or because Custom PIN is turned off in the site's settings. Salto KS generates every PIN on the site, so a PIN code requested on an access grant or reservation is replaced with a Salto-generated one. The message says which of the two applies.
|
|
368
336
|
*/
|
|
369
337
|
| {
|
|
370
338
|
/**
|
|
@@ -378,9 +346,23 @@ export type AcsSystem = {
|
|
|
378
346
|
message: string
|
|
379
347
|
|
|
380
348
|
/**
|
|
381
|
-
*
|
|
349
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
350
|
+
*/
|
|
351
|
+
warning_code: 'salto_ks_custom_pins_not_supported'
|
|
352
|
+
} /**
|
|
353
|
+
* Indicates the [access control system](https://www.seam.co/docs/low-level-apis/access-systems) time zone could not be determined because the reported physical location does not match the time zone configured on the physical [ACS entrances](https://www.seam.co/docs/low-level-apis/access-systems/retrieving-entrance-details).
|
|
354
|
+
*/
|
|
355
|
+
| {
|
|
356
|
+
/**
|
|
357
|
+
* Date and time at which Seam created the warning.
|
|
358
|
+
*/
|
|
359
|
+
created_at: string
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
382
363
|
*/
|
|
383
|
-
|
|
364
|
+
message: string
|
|
365
|
+
|
|
384
366
|
/**
|
|
385
367
|
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
386
368
|
*/
|
|
@@ -51,10 +51,6 @@ export type AcsUser = {
|
|
|
51
51
|
*/
|
|
52
52
|
display_name: string
|
|
53
53
|
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated use email_address.
|
|
56
|
-
*/
|
|
57
|
-
email?: string | undefined
|
|
58
54
|
/**
|
|
59
55
|
* Email address of the [access system user](https://www.seam.co/docs/low-level-apis/access-systems/user-management).
|
|
60
56
|
*/
|
|
@@ -62,12 +62,6 @@ export type ClientSession = {
|
|
|
62
62
|
* ID of the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) associated with the client session.
|
|
63
63
|
*/
|
|
64
64
|
user_identity_id?: string | undefined
|
|
65
|
-
/**
|
|
66
|
-
* IDs of the [user identities](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) associated with the client session.
|
|
67
|
-
* @deprecated Use `user_identity_id` instead.
|
|
68
|
-
*/
|
|
69
|
-
user_identity_ids: Array<string>
|
|
70
|
-
|
|
71
65
|
/**
|
|
72
66
|
* ID of the workspace associated with the client session.
|
|
73
67
|
*/
|
|
@@ -17,6 +17,7 @@ export type ConnectedAccount = {
|
|
|
17
17
|
| 'access_control'
|
|
18
18
|
| 'camera'
|
|
19
19
|
| 'speaker'
|
|
20
|
+
| 'pool'
|
|
20
21
|
>
|
|
21
22
|
|
|
22
23
|
/**
|
|
@@ -220,34 +221,6 @@ export type ConnectedAccount = {
|
|
|
220
221
|
* IANA time zone (e.g. America/Los_Angeles) for this connected account. Sourced from the connector configuration.
|
|
221
222
|
*/
|
|
222
223
|
time_zone?: string | undefined
|
|
223
|
-
/**
|
|
224
|
-
* User identifier associated with the connected account.
|
|
225
|
-
* @deprecated Use `display_name` instead.
|
|
226
|
-
*/
|
|
227
|
-
user_identifier?:
|
|
228
|
-
| {
|
|
229
|
-
/**
|
|
230
|
-
* API URL for the user identifier associated with the connected account.
|
|
231
|
-
*/
|
|
232
|
-
api_url?: string | undefined
|
|
233
|
-
/**
|
|
234
|
-
* Email address of the user identifier associated with the connected account.
|
|
235
|
-
*/
|
|
236
|
-
email?: string | undefined
|
|
237
|
-
/**
|
|
238
|
-
* Indicates whether the user identifier associated with the connected account is exclusive.
|
|
239
|
-
*/
|
|
240
|
-
exclusive?: boolean | undefined
|
|
241
|
-
/**
|
|
242
|
-
* Phone number of the user identifier associated with the connected account.
|
|
243
|
-
*/
|
|
244
|
-
phone?: string | undefined
|
|
245
|
-
/**
|
|
246
|
-
* Username of the user identifier associated with the connected account.
|
|
247
|
-
*/
|
|
248
|
-
username?: string | undefined
|
|
249
|
-
}
|
|
250
|
-
| undefined
|
|
251
224
|
/**
|
|
252
225
|
* Warnings associated with the connected account.
|
|
253
226
|
*/
|
|
@@ -145,6 +145,7 @@ export type DeviceProvider = {
|
|
|
145
145
|
| 'tado'
|
|
146
146
|
| 'salto_space'
|
|
147
147
|
| 'sensi'
|
|
148
|
+
| 'sensibo'
|
|
148
149
|
| 'keynest'
|
|
149
150
|
| 'korelock'
|
|
150
151
|
| 'keyincode'
|
|
@@ -171,6 +172,8 @@ export type DeviceProvider = {
|
|
|
171
172
|
| 'aqara'
|
|
172
173
|
| 'eufy'
|
|
173
174
|
| 'sonos'
|
|
175
|
+
| 'hayward_omnilogic'
|
|
176
|
+
| 'tuya'
|
|
174
177
|
|
|
175
178
|
/**
|
|
176
179
|
* Display name for the device provider.
|