@seamapi/types 1.952.0 → 1.953.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/dist/connect.cjs +40 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +46 -0
- package/dist/index.cjs +40 -1
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/events/common.d.ts +2 -0
- package/lib/seam/connect/models/events/common.js +10 -0
- package/lib/seam/connect/models/events/common.js.map +1 -1
- package/lib/seam/connect/models/events/devices.d.ts +36 -0
- package/lib/seam/connect/models/events/devices.js +10 -1
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +18 -0
- package/lib/seam/connect/openapi.js +23 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +28 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/common.ts +15 -0
- package/src/lib/seam/connect/models/events/devices.ts +12 -0
- package/src/lib/seam/connect/openapi.ts +26 -0
- package/src/lib/seam/connect/route-types.ts +60 -0
|
@@ -48064,6 +48064,13 @@ export type Routes = {
|
|
|
48064
48064
|
ID of the ACS entrance associated with the access-denied event.
|
|
48065
48065
|
*/
|
|
48066
48066
|
acs_entrance_id?: string | undefined;
|
|
48067
|
+
/** Why access was denied, when the provider reports a determinable cause. Omitted when unknown. */
|
|
48068
|
+
reason?: {
|
|
48069
|
+
/** Normalized reason a lock denied access. Provider-agnostic; not all providers report every value. */
|
|
48070
|
+
reason_code: 'unknown_code' | 'expired_code' | 'blocklisted_code' | 'too_many_attempts' | 'blocked_by_privacy_mode' | 'credential_error';
|
|
48071
|
+
/** Human-readable explanation of why access was denied. */
|
|
48072
|
+
message: string;
|
|
48073
|
+
} | undefined;
|
|
48067
48074
|
} | {
|
|
48068
48075
|
/** ID of the event. */
|
|
48069
48076
|
event_id: string;
|
|
@@ -51323,6 +51330,13 @@ export type Routes = {
|
|
|
51323
51330
|
ID of the ACS entrance associated with the access-denied event.
|
|
51324
51331
|
*/
|
|
51325
51332
|
acs_entrance_id?: string | undefined;
|
|
51333
|
+
/** Why access was denied, when the provider reports a determinable cause. Omitted when unknown. */
|
|
51334
|
+
reason?: {
|
|
51335
|
+
/** Normalized reason a lock denied access. Provider-agnostic; not all providers report every value. */
|
|
51336
|
+
reason_code: 'unknown_code' | 'expired_code' | 'blocklisted_code' | 'too_many_attempts' | 'blocked_by_privacy_mode' | 'credential_error';
|
|
51337
|
+
/** Human-readable explanation of why access was denied. */
|
|
51338
|
+
message: string;
|
|
51339
|
+
} | undefined;
|
|
51326
51340
|
} | {
|
|
51327
51341
|
/** ID of the event. */
|
|
51328
51342
|
event_id: string;
|
|
@@ -81087,6 +81101,13 @@ export type Routes = {
|
|
|
81087
81101
|
ID of the ACS entrance associated with the access-denied event.
|
|
81088
81102
|
*/
|
|
81089
81103
|
acs_entrance_id?: string | undefined;
|
|
81104
|
+
/** Why access was denied, when the provider reports a determinable cause. Omitted when unknown. */
|
|
81105
|
+
reason?: {
|
|
81106
|
+
/** Normalized reason a lock denied access. Provider-agnostic; not all providers report every value. */
|
|
81107
|
+
reason_code: 'unknown_code' | 'expired_code' | 'blocklisted_code' | 'too_many_attempts' | 'blocked_by_privacy_mode' | 'credential_error';
|
|
81108
|
+
/** Human-readable explanation of why access was denied. */
|
|
81109
|
+
message: string;
|
|
81110
|
+
} | undefined;
|
|
81090
81111
|
} | {
|
|
81091
81112
|
/** ID of the event. */
|
|
81092
81113
|
event_id: string;
|
|
@@ -119182,6 +119203,13 @@ export type Routes = {
|
|
|
119182
119203
|
ID of the ACS entrance associated with the access-denied event.
|
|
119183
119204
|
*/
|
|
119184
119205
|
acs_entrance_id?: string | undefined;
|
|
119206
|
+
/** Why access was denied, when the provider reports a determinable cause. Omitted when unknown. */
|
|
119207
|
+
reason?: {
|
|
119208
|
+
/** Normalized reason a lock denied access. Provider-agnostic; not all providers report every value. */
|
|
119209
|
+
reason_code: 'unknown_code' | 'expired_code' | 'blocklisted_code' | 'too_many_attempts' | 'blocked_by_privacy_mode' | 'credential_error';
|
|
119210
|
+
/** Human-readable explanation of why access was denied. */
|
|
119211
|
+
message: string;
|
|
119212
|
+
} | undefined;
|
|
119185
119213
|
} | {
|
|
119186
119214
|
/** ID of the event. */
|
|
119187
119215
|
event_id: string;
|
package/package.json
CHANGED
|
@@ -60,3 +60,18 @@ export const common_event_warning = z
|
|
|
60
60
|
.describe(
|
|
61
61
|
'Warning associated with the resource, including the warning code, message, and creation timestamp.',
|
|
62
62
|
)
|
|
63
|
+
|
|
64
|
+
export const lock_access_denied_reason = z
|
|
65
|
+
.enum([
|
|
66
|
+
'unknown_code',
|
|
67
|
+
'expired_code',
|
|
68
|
+
'blocklisted_code',
|
|
69
|
+
'too_many_attempts',
|
|
70
|
+
'blocked_by_privacy_mode',
|
|
71
|
+
'credential_error',
|
|
72
|
+
])
|
|
73
|
+
.describe(
|
|
74
|
+
'Normalized reason a lock denied access. Provider-agnostic; not all providers report every value.',
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
export type LockAccessDeniedReason = z.infer<typeof lock_access_denied_reason>
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
common_event,
|
|
7
7
|
common_event_error,
|
|
8
8
|
common_event_warning,
|
|
9
|
+
lock_access_denied_reason,
|
|
9
10
|
} from './common.js'
|
|
10
11
|
|
|
11
12
|
const device_event = common_event.extend({
|
|
@@ -549,6 +550,17 @@ export const lock_access_denied_event = device_event.extend({
|
|
|
549
550
|
.uuid()
|
|
550
551
|
.optional()
|
|
551
552
|
.describe('ID of the affected device.'),
|
|
553
|
+
reason: z
|
|
554
|
+
.object({
|
|
555
|
+
reason_code: lock_access_denied_reason,
|
|
556
|
+
message: z
|
|
557
|
+
.string()
|
|
558
|
+
.describe('Human-readable explanation of why access was denied.'),
|
|
559
|
+
})
|
|
560
|
+
.optional()
|
|
561
|
+
.describe(
|
|
562
|
+
'Why access was denied, when the provider reports a determinable cause. Omitted when unknown.',
|
|
563
|
+
),
|
|
552
564
|
}).describe(`
|
|
553
565
|
---
|
|
554
566
|
route_path: /locks
|
|
@@ -26164,6 +26164,32 @@ const openapi: OpenAPISpec = {
|
|
|
26164
26164
|
format: 'date-time',
|
|
26165
26165
|
type: 'string',
|
|
26166
26166
|
},
|
|
26167
|
+
reason: {
|
|
26168
|
+
description:
|
|
26169
|
+
'Why access was denied, when the provider reports a determinable cause. Omitted when unknown.',
|
|
26170
|
+
properties: {
|
|
26171
|
+
message: {
|
|
26172
|
+
description:
|
|
26173
|
+
'Human-readable explanation of why access was denied.',
|
|
26174
|
+
type: 'string',
|
|
26175
|
+
},
|
|
26176
|
+
reason_code: {
|
|
26177
|
+
description:
|
|
26178
|
+
'Normalized reason a lock denied access. Provider-agnostic; not all providers report every value.',
|
|
26179
|
+
enum: [
|
|
26180
|
+
'unknown_code',
|
|
26181
|
+
'expired_code',
|
|
26182
|
+
'blocklisted_code',
|
|
26183
|
+
'too_many_attempts',
|
|
26184
|
+
'blocked_by_privacy_mode',
|
|
26185
|
+
'credential_error',
|
|
26186
|
+
],
|
|
26187
|
+
type: 'string',
|
|
26188
|
+
},
|
|
26189
|
+
},
|
|
26190
|
+
required: ['reason_code', 'message'],
|
|
26191
|
+
type: 'object',
|
|
26192
|
+
},
|
|
26167
26193
|
user_identity_id: {
|
|
26168
26194
|
description:
|
|
26169
26195
|
'\n undocumented: Unreleased.\n ---\n ID of the user identity associated with the access-denied event.\n ',
|
|
@@ -57707,6 +57707,21 @@ export type Routes = {
|
|
|
57707
57707
|
ID of the ACS entrance associated with the access-denied event.
|
|
57708
57708
|
*/
|
|
57709
57709
|
acs_entrance_id?: string | undefined
|
|
57710
|
+
/** Why access was denied, when the provider reports a determinable cause. Omitted when unknown. */
|
|
57711
|
+
reason?:
|
|
57712
|
+
| {
|
|
57713
|
+
/** Normalized reason a lock denied access. Provider-agnostic; not all providers report every value. */
|
|
57714
|
+
reason_code:
|
|
57715
|
+
| 'unknown_code'
|
|
57716
|
+
| 'expired_code'
|
|
57717
|
+
| 'blocklisted_code'
|
|
57718
|
+
| 'too_many_attempts'
|
|
57719
|
+
| 'blocked_by_privacy_mode'
|
|
57720
|
+
| 'credential_error'
|
|
57721
|
+
/** Human-readable explanation of why access was denied. */
|
|
57722
|
+
message: string
|
|
57723
|
+
}
|
|
57724
|
+
| undefined
|
|
57710
57725
|
}
|
|
57711
57726
|
| {
|
|
57712
57727
|
/** ID of the event. */
|
|
@@ -61570,6 +61585,21 @@ export type Routes = {
|
|
|
61570
61585
|
ID of the ACS entrance associated with the access-denied event.
|
|
61571
61586
|
*/
|
|
61572
61587
|
acs_entrance_id?: string | undefined
|
|
61588
|
+
/** Why access was denied, when the provider reports a determinable cause. Omitted when unknown. */
|
|
61589
|
+
reason?:
|
|
61590
|
+
| {
|
|
61591
|
+
/** Normalized reason a lock denied access. Provider-agnostic; not all providers report every value. */
|
|
61592
|
+
reason_code:
|
|
61593
|
+
| 'unknown_code'
|
|
61594
|
+
| 'expired_code'
|
|
61595
|
+
| 'blocklisted_code'
|
|
61596
|
+
| 'too_many_attempts'
|
|
61597
|
+
| 'blocked_by_privacy_mode'
|
|
61598
|
+
| 'credential_error'
|
|
61599
|
+
/** Human-readable explanation of why access was denied. */
|
|
61600
|
+
message: string
|
|
61601
|
+
}
|
|
61602
|
+
| undefined
|
|
61573
61603
|
}
|
|
61574
61604
|
| {
|
|
61575
61605
|
/** ID of the event. */
|
|
@@ -96959,6 +96989,21 @@ export type Routes = {
|
|
|
96959
96989
|
ID of the ACS entrance associated with the access-denied event.
|
|
96960
96990
|
*/
|
|
96961
96991
|
acs_entrance_id?: string | undefined
|
|
96992
|
+
/** Why access was denied, when the provider reports a determinable cause. Omitted when unknown. */
|
|
96993
|
+
reason?:
|
|
96994
|
+
| {
|
|
96995
|
+
/** Normalized reason a lock denied access. Provider-agnostic; not all providers report every value. */
|
|
96996
|
+
reason_code:
|
|
96997
|
+
| 'unknown_code'
|
|
96998
|
+
| 'expired_code'
|
|
96999
|
+
| 'blocklisted_code'
|
|
97000
|
+
| 'too_many_attempts'
|
|
97001
|
+
| 'blocked_by_privacy_mode'
|
|
97002
|
+
| 'credential_error'
|
|
97003
|
+
/** Human-readable explanation of why access was denied. */
|
|
97004
|
+
message: string
|
|
97005
|
+
}
|
|
97006
|
+
| undefined
|
|
96962
97007
|
}
|
|
96963
97008
|
| {
|
|
96964
97009
|
/** ID of the event. */
|
|
@@ -141912,6 +141957,21 @@ export type Routes = {
|
|
|
141912
141957
|
ID of the ACS entrance associated with the access-denied event.
|
|
141913
141958
|
*/
|
|
141914
141959
|
acs_entrance_id?: string | undefined
|
|
141960
|
+
/** Why access was denied, when the provider reports a determinable cause. Omitted when unknown. */
|
|
141961
|
+
reason?:
|
|
141962
|
+
| {
|
|
141963
|
+
/** Normalized reason a lock denied access. Provider-agnostic; not all providers report every value. */
|
|
141964
|
+
reason_code:
|
|
141965
|
+
| 'unknown_code'
|
|
141966
|
+
| 'expired_code'
|
|
141967
|
+
| 'blocklisted_code'
|
|
141968
|
+
| 'too_many_attempts'
|
|
141969
|
+
| 'blocked_by_privacy_mode'
|
|
141970
|
+
| 'credential_error'
|
|
141971
|
+
/** Human-readable explanation of why access was denied. */
|
|
141972
|
+
message: string
|
|
141973
|
+
}
|
|
141974
|
+
| undefined
|
|
141915
141975
|
}
|
|
141916
141976
|
| {
|
|
141917
141977
|
/** ID of the event. */
|