@seamapi/http 2.24.1 → 2.25.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/README.md +37 -0
- package/lib/error-interceptor.js +2 -2
- package/lib/error-interceptor.js.map +1 -1
- package/lib/resources/access-grant.d.ts +1 -1
- package/lib/resources/event.d.ts +9 -4
- package/lib/routes/access-codes/access-codes.js +1 -1
- package/lib/routes/access-codes/access-codes.js.map +1 -1
- package/lib/routes/access-grants/access-grants.d.ts +25 -25
- package/lib/routes/access-methods/access-methods.d.ts +5 -5
- package/lib/routes/access-methods/access-methods.js +1 -1
- package/lib/routes/access-methods/access-methods.js.map +1 -1
- package/lib/routes/acs/encoders/simulate/simulate.d.ts +5 -5
- package/lib/routes/customers/customers.d.ts +185 -185
- package/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.js +1 -1
- package/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -1
- package/lib/routes/thermostats/simulate/simulate.d.ts +8 -8
- package/lib/routes/thermostats/thermostats.d.ts +5 -5
- package/lib/routes/user-identities/user-identities.d.ts +5 -5
- package/lib/routes/user-identities/user-identities.js +1 -1
- package/lib/routes/user-identities/user-identities.js.map +1 -1
- package/lib/routes/workspaces/workspaces.d.ts +1 -1
- package/lib/seam-http-error.d.ts +16 -3
- package/lib/seam-http-error.js +18 -6
- package/lib/seam-http-error.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/error-interceptor.ts +6 -2
- package/src/lib/resources/access-grant.ts +1 -1
- package/src/lib/resources/event.ts +10 -5
- package/src/lib/routes/access-codes/access-codes.ts +1 -1
- package/src/lib/routes/access-grants/access-grants.ts +27 -27
- package/src/lib/routes/access-methods/access-methods.ts +6 -6
- package/src/lib/routes/acs/encoders/simulate/simulate.ts +5 -6
- package/src/lib/routes/customers/customers.ts +235 -236
- package/src/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +1 -1
- package/src/lib/routes/thermostats/simulate/simulate.ts +9 -10
- package/src/lib/routes/thermostats/thermostats.ts +7 -7
- package/src/lib/routes/user-identities/user-identities.ts +6 -6
- package/src/lib/routes/workspaces/workspaces.ts +1 -1
- package/src/lib/seam-http-error.ts +43 -6
- package/src/lib/version.ts +1 -1
package/lib/seam-http-error.js
CHANGED
|
@@ -16,9 +16,9 @@ export class SeamHttpApiError extends Error {
|
|
|
16
16
|
* Additional error-specific data returned by the Seam API, if any.
|
|
17
17
|
*/
|
|
18
18
|
data;
|
|
19
|
-
constructor(error, statusCode, requestId) {
|
|
19
|
+
constructor(error, statusCode, requestId, options = {}) {
|
|
20
20
|
const { type, message, data } = error;
|
|
21
|
-
super(message);
|
|
21
|
+
super(message, options);
|
|
22
22
|
this.name = this.constructor.name;
|
|
23
23
|
this.code = type;
|
|
24
24
|
this.statusCode = statusCode;
|
|
@@ -39,10 +39,10 @@ export const isSeamHttpApiError = (error) => {
|
|
|
39
39
|
export class SeamHttpUnauthorizedError extends SeamHttpApiError {
|
|
40
40
|
code;
|
|
41
41
|
statusCode;
|
|
42
|
-
constructor(requestId) {
|
|
42
|
+
constructor(requestId, error, options = {}) {
|
|
43
43
|
const type = 'unauthorized';
|
|
44
44
|
const status = 401;
|
|
45
|
-
super({ type, message: 'Unauthorized' }, status, requestId);
|
|
45
|
+
super(error ?? { type, message: 'Unauthorized' }, status, requestId, options);
|
|
46
46
|
this.name = this.constructor.name;
|
|
47
47
|
this.code = type;
|
|
48
48
|
this.statusCode = status;
|
|
@@ -61,12 +61,24 @@ export const isSeamHttpUnauthorizedError = (error) => {
|
|
|
61
61
|
export class SeamHttpInvalidInputError extends SeamHttpApiError {
|
|
62
62
|
code;
|
|
63
63
|
#validationErrors;
|
|
64
|
-
constructor(error, statusCode, requestId) {
|
|
65
|
-
super(error, statusCode, requestId);
|
|
64
|
+
constructor(error, statusCode, requestId, options = {}) {
|
|
65
|
+
super(error, statusCode, requestId, options);
|
|
66
66
|
this.name = this.constructor.name;
|
|
67
67
|
this.code = 'invalid_input';
|
|
68
68
|
this.#validationErrors = error.validation_errors ?? {};
|
|
69
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Validation errors returned by the Seam API,
|
|
72
|
+
* one entry per request parameter that failed validation.
|
|
73
|
+
*/
|
|
74
|
+
get validationErrors() {
|
|
75
|
+
return Object.entries(this.#validationErrors)
|
|
76
|
+
.filter(([parameterName]) => parameterName !== '_errors')
|
|
77
|
+
.map(([parameterName, { _errors }]) => ({
|
|
78
|
+
parameterName,
|
|
79
|
+
errorMessages: _errors,
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
70
82
|
/**
|
|
71
83
|
* Returns the validation error messages for the request parameter,
|
|
72
84
|
* or an empty array if the parameter had no validation errors.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seam-http-error.js","sourceRoot":"","sources":["../src/lib/seam-http-error.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC;;OAEG;IACH,IAAI,CAAQ;IAEZ,UAAU,CAAQ;IAElB;;;OAGG;IACH,SAAS,CAAQ;IAEjB;;OAEG;IACH,IAAI,CAAU;IAEd,
|
|
1
|
+
{"version":3,"file":"seam-http-error.js","sourceRoot":"","sources":["../src/lib/seam-http-error.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC;;OAEG;IACH,IAAI,CAAQ;IAEZ,UAAU,CAAQ;IAElB;;;OAGG;IACH,SAAS,CAAQ;IAEjB;;OAEG;IACH,IAAI,CAAU;IAEd,YACE,KAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,UAAwB,EAAE;QAE1B,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,CAAA;QACrC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;QACvB,IAAI,CAAC,IAAI,GAAG,IAA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AW,CAAA;IAChC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAC5C,KAAc,EACyB,EAAE;IACzC,OAAO,KAAK,YAAY,4BAA4B,CAAA;AACtD,CAAC,CAAA"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const seamapiJavascriptHttpVersion = "2.
|
|
1
|
+
declare const seamapiJavascriptHttpVersion = "2.25.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.25.0",
|
|
4
4
|
"description": "JavaScript HTTP client for the Seam API written in TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
"axios-retry": "^4.4.2"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@seamapi/blueprint": "^1.
|
|
88
|
+
"@seamapi/blueprint": "^1.9.1",
|
|
89
89
|
"@seamapi/fake-seam-connect": "^2.0.4",
|
|
90
90
|
"@seamapi/smith": "^1.1.0",
|
|
91
|
-
"@seamapi/types": "1.
|
|
91
|
+
"@seamapi/types": "1.1047.0",
|
|
92
92
|
"@types/jsonwebtoken": "^9.0.6",
|
|
93
93
|
"@types/node": "^24.10.9",
|
|
94
94
|
"ava": "^8.0.1",
|
|
@@ -18,14 +18,18 @@ export const errorInterceptor = async (err: unknown): Promise<void> => {
|
|
|
18
18
|
if (status == null) throw err
|
|
19
19
|
|
|
20
20
|
if (status === 401) {
|
|
21
|
-
throw new SeamHttpUnauthorizedError(
|
|
21
|
+
throw new SeamHttpUnauthorizedError(
|
|
22
|
+
requestId,
|
|
23
|
+
isApiErrorResponse(response) ? response.data.error : undefined,
|
|
24
|
+
{ cause: err },
|
|
25
|
+
)
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
if (!isApiErrorResponse(response)) throw err
|
|
25
29
|
|
|
26
30
|
const { type } = response.data.error
|
|
27
31
|
|
|
28
|
-
const args = [response.data.error, status, requestId] as const
|
|
32
|
+
const args = [response.data.error, status, requestId, { cause: err }] as const
|
|
29
33
|
|
|
30
34
|
if (type === 'invalid_input') throw new SeamHttpInvalidInputError(...args)
|
|
31
35
|
throw new SeamHttpApiError(...args)
|
|
@@ -40,7 +40,7 @@ export type AccessGrant = {
|
|
|
40
40
|
display_name: string
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Human-readable sentence answering whether the user can currently get in, for example `
|
|
43
|
+
* Human-readable sentence answering whether the user can currently get in, for example `Active`, `Awaiting issuance`, or `Upcoming`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `starts_at`, `ends_at`, `errors`, and the access methods' own fields.
|
|
44
44
|
*/
|
|
45
45
|
display_status: string
|
|
46
46
|
|
|
@@ -4549,14 +4549,15 @@ export type SeamEvent =
|
|
|
4549
4549
|
}
|
|
4550
4550
|
| {
|
|
4551
4551
|
/**
|
|
4552
|
-
* Number in the range 0 to 1.0 indicating the
|
|
4552
|
+
* 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.
|
|
4553
4553
|
*/
|
|
4554
|
-
|
|
4555
|
-
|
|
4554
|
+
accessory_keypad_battery_level?: number | undefined
|
|
4556
4555
|
/**
|
|
4557
|
-
*
|
|
4556
|
+
* Number in the range 0 to 1.0 indicating the level of the battery whose drop triggered this event.
|
|
4557
|
+
* @deprecated Use device_battery_level and accessory_keypad_battery_level, which distinguish the device's own battery from a paired accessory keypad's battery.
|
|
4558
4558
|
*/
|
|
4559
|
-
|
|
4559
|
+
battery_level: number
|
|
4560
|
+
|
|
4560
4561
|
/**
|
|
4561
4562
|
* Custom metadata of the connected account, present when connected_account_id is provided.
|
|
4562
4563
|
*/
|
|
@@ -4576,6 +4577,10 @@ export type SeamEvent =
|
|
|
4576
4577
|
* The customer key associated with the device, if any.
|
|
4577
4578
|
*/
|
|
4578
4579
|
customer_key?: string | undefined
|
|
4580
|
+
/**
|
|
4581
|
+
* Number in the range 0 to 1.0 indicating the affected device's own battery level, when known.
|
|
4582
|
+
*/
|
|
4583
|
+
device_battery_level?: number | undefined
|
|
4579
4584
|
/**
|
|
4580
4585
|
* Custom metadata of the device, present when device_id is provided.
|
|
4581
4586
|
*/
|
|
@@ -378,7 +378,7 @@ export class SeamHttpAccessCodes {
|
|
|
378
378
|
): AccessCodesUpdateRequest {
|
|
379
379
|
return new SeamHttpRequest(this, {
|
|
380
380
|
pathname: '/access_codes/update',
|
|
381
|
-
method: '
|
|
381
|
+
method: 'PATCH',
|
|
382
382
|
body: parameters,
|
|
383
383
|
parameters,
|
|
384
384
|
hasRequiredParameters: true,
|
|
@@ -323,33 +323,6 @@ export class SeamHttpAccessGrants {
|
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
export type AccessGrantsCreateParameters = {
|
|
326
|
-
/**
|
|
327
|
-
* ID of user identity for whom access is being granted.
|
|
328
|
-
*/
|
|
329
|
-
user_identity_id?: string | undefined
|
|
330
|
-
/**
|
|
331
|
-
* When used, creates a new user identity with the given details, and grants them access.
|
|
332
|
-
*/
|
|
333
|
-
user_identity?:
|
|
334
|
-
| {
|
|
335
|
-
/**
|
|
336
|
-
* Unique email address for the user identity.
|
|
337
|
-
*/
|
|
338
|
-
email_address?: string | null | undefined
|
|
339
|
-
/**
|
|
340
|
-
* Full name of the user associated with the user identity.
|
|
341
|
-
*/
|
|
342
|
-
full_name?: string | null | undefined
|
|
343
|
-
/**
|
|
344
|
-
* Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).
|
|
345
|
-
*/
|
|
346
|
-
phone_number?: string | null | undefined
|
|
347
|
-
/**
|
|
348
|
-
* Unique key for the user identity.
|
|
349
|
-
*/
|
|
350
|
-
user_identity_key?: string | null | undefined
|
|
351
|
-
}
|
|
352
|
-
| undefined
|
|
353
326
|
/**
|
|
354
327
|
* Unique key for the access grant within the workspace.
|
|
355
328
|
*/
|
|
@@ -429,6 +402,33 @@ export type AccessGrantsCreateParameters = {
|
|
|
429
402
|
* Date and time at which the validity of the new grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
|
430
403
|
*/
|
|
431
404
|
starts_at?: string | undefined
|
|
405
|
+
/**
|
|
406
|
+
* When used, creates a new user identity with the given details, and grants them access.
|
|
407
|
+
*/
|
|
408
|
+
user_identity?:
|
|
409
|
+
| {
|
|
410
|
+
/**
|
|
411
|
+
* Unique email address for the user identity.
|
|
412
|
+
*/
|
|
413
|
+
email_address?: string | null | undefined
|
|
414
|
+
/**
|
|
415
|
+
* Full name of the user associated with the user identity.
|
|
416
|
+
*/
|
|
417
|
+
full_name?: string | null | undefined
|
|
418
|
+
/**
|
|
419
|
+
* Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).
|
|
420
|
+
*/
|
|
421
|
+
phone_number?: string | null | undefined
|
|
422
|
+
/**
|
|
423
|
+
* Unique key for the user identity.
|
|
424
|
+
*/
|
|
425
|
+
user_identity_key?: string | null | undefined
|
|
426
|
+
}
|
|
427
|
+
| undefined
|
|
428
|
+
/**
|
|
429
|
+
* ID of user identity for whom access is being granted.
|
|
430
|
+
*/
|
|
431
|
+
user_identity_id?: string | undefined
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
/**
|
|
@@ -211,8 +211,8 @@ export class SeamHttpAccessMethods {
|
|
|
211
211
|
hasRequiredParameters: true,
|
|
212
212
|
requiredParameterNames: [],
|
|
213
213
|
atLeastOneParameterNames: [
|
|
214
|
-
'access_method_id',
|
|
215
214
|
'access_grant_id',
|
|
215
|
+
'access_method_id',
|
|
216
216
|
'reservation_key',
|
|
217
217
|
],
|
|
218
218
|
responseKey: undefined,
|
|
@@ -368,20 +368,20 @@ export type AccessMethodsAssignCardOptions = Pick<
|
|
|
368
368
|
|
|
369
369
|
export type AccessMethodsDeleteParameters = RequireAtLeastOne<
|
|
370
370
|
{
|
|
371
|
-
/**
|
|
372
|
-
* ID of access method to delete.
|
|
373
|
-
*/
|
|
374
|
-
access_method_id?: string | undefined
|
|
375
371
|
/**
|
|
376
372
|
* ID of access grant whose access methods should be deleted.
|
|
377
373
|
*/
|
|
378
374
|
access_grant_id?: string | undefined
|
|
375
|
+
/**
|
|
376
|
+
* ID of access method to delete.
|
|
377
|
+
*/
|
|
378
|
+
access_method_id?: string | undefined
|
|
379
379
|
/**
|
|
380
380
|
* Reservation key of the access grant whose access methods should be deleted.
|
|
381
381
|
*/
|
|
382
382
|
reservation_key?: string | undefined
|
|
383
383
|
},
|
|
384
|
-
'
|
|
384
|
+
'access_grant_id' | 'access_method_id' | 'reservation_key'
|
|
385
385
|
>
|
|
386
386
|
|
|
387
387
|
/**
|
|
@@ -242,6 +242,10 @@ export class SeamHttpAcsEncodersSimulate {
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
export type AcsEncodersSimulateNextCredentialEncodeWillFailParameters = {
|
|
245
|
+
/**
|
|
246
|
+
* ID of the `acs_credential` that will fail to be encoded onto a card in the next request.
|
|
247
|
+
*/
|
|
248
|
+
acs_credential_id?: string | undefined
|
|
245
249
|
/**
|
|
246
250
|
* ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.
|
|
247
251
|
*/
|
|
@@ -256,10 +260,6 @@ export type AcsEncodersSimulateNextCredentialEncodeWillFailParameters = {
|
|
|
256
260
|
| 'uncategorized_error'
|
|
257
261
|
| 'action_attempt_expired'
|
|
258
262
|
| undefined
|
|
259
|
-
/**
|
|
260
|
-
* ID of the `acs_credential` that will fail to be encoded onto a card in the next request.
|
|
261
|
-
*/
|
|
262
|
-
acs_credential_id?: string | undefined
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
/**
|
|
@@ -295,6 +295,7 @@ export type AcsEncodersSimulateNextCredentialEncodeWillSucceedRequest =
|
|
|
295
295
|
export interface AcsEncodersSimulateNextCredentialEncodeWillSucceedOptions {}
|
|
296
296
|
|
|
297
297
|
export type AcsEncodersSimulateNextCredentialScanWillFailParameters = {
|
|
298
|
+
acs_credential_id_on_seam?: string | undefined
|
|
298
299
|
/**
|
|
299
300
|
* ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request.
|
|
300
301
|
*/
|
|
@@ -305,8 +306,6 @@ export type AcsEncodersSimulateNextCredentialScanWillFailParameters = {
|
|
|
305
306
|
| 'uncategorized_error'
|
|
306
307
|
| 'action_attempt_expired'
|
|
307
308
|
| undefined
|
|
308
|
-
|
|
309
|
-
acs_credential_id_on_seam?: string | undefined
|
|
310
309
|
}
|
|
311
310
|
|
|
312
311
|
/**
|