@seamapi/types 1.724.0 → 1.725.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 +8096 -2277
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +21261 -5463
- package/dist/index.cjs +8096 -2277
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +205 -142
- package/lib/seam/connect/models/access-codes/managed-access-code.js +57 -22
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +95 -52
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.js +5 -2
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +721 -12
- package/lib/seam/connect/models/access-grants/access-grant.js +75 -1
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.d.ts +825 -8
- package/lib/seam/connect/models/access-grants/access-method.js +123 -1
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/access-grants/index.d.ts +1 -0
- package/lib/seam/connect/models/access-grants/index.js +1 -0
- package/lib/seam/connect/models/access-grants/index.js.map +1 -1
- package/lib/seam/connect/models/access-grants/pending-mutations.d.ts +255 -0
- package/lib/seam/connect/models/access-grants/pending-mutations.js +78 -0
- package/lib/seam/connect/models/access-grants/pending-mutations.js.map +1 -0
- package/lib/seam/connect/models/access-grants/requested-access-method.d.ts +3 -0
- package/lib/seam/connect/models/access-grants/requested-access-method.js +6 -0
- package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +0 -5
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +80 -80
- package/lib/seam/connect/models/acs/metadata/salto-space.d.ts +0 -3
- package/lib/seam/connect/models/acs/metadata/salto-space.js +0 -5
- package/lib/seam/connect/models/acs/metadata/salto-space.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +36 -16
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +5 -5
- package/lib/seam/connect/models/action-attempts/encode-credential.js +5 -5
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/lock-door.d.ts +13 -3
- package/lib/seam/connect/models/action-attempts/lock-door.js +8 -1
- package/lib/seam/connect/models/action-attempts/lock-door.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +5 -5
- package/lib/seam/connect/models/action-attempts/scan-credential.js +5 -5
- package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/unlock-door.d.ts +13 -3
- package/lib/seam/connect/models/action-attempts/unlock-door.js +8 -1
- package/lib/seam/connect/models/action-attempts/unlock-door.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +3938 -738
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +58 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js +7 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/customer/access-grant-resources.d.ts +6 -0
- package/lib/seam/connect/models/customer/access-grant-resources.js +4 -0
- package/lib/seam/connect/models/customer/access-grant-resources.js.map +1 -1
- package/lib/seam/connect/models/customer/customer-data.d.ts +5 -0
- package/lib/seam/connect/models/customer/customer-portal.d.ts +169 -10
- package/lib/seam/connect/models/customer/customer-portal.js +46 -4
- package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
- package/lib/seam/connect/models/devices/device-metadata.d.ts +40 -33
- package/lib/seam/connect/models/devices/device-metadata.js +25 -8
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +2 -5
- package/lib/seam/connect/models/devices/device-provider.js +2 -3
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/models/devices/device-type.d.ts +0 -2
- package/lib/seam/connect/models/devices/device-type.js +0 -2
- package/lib/seam/connect/models/devices/device-type.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +196 -45
- package/lib/seam/connect/models/devices/device.js +31 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +92 -33
- package/lib/seam/connect/models/events/access-codes.d.ts +1390 -0
- package/lib/seam/connect/models/events/access-codes.js +41 -11
- package/lib/seam/connect/models/events/access-codes.js.map +1 -1
- package/lib/seam/connect/models/events/access-methods.d.ts +60 -0
- package/lib/seam/connect/models/events/access-methods.js +9 -0
- package/lib/seam/connect/models/events/access-methods.js.map +1 -1
- package/lib/seam/connect/models/events/acs/index.d.ts +93 -0
- package/lib/seam/connect/models/events/acs/systems.d.ts +186 -0
- package/lib/seam/connect/models/events/acs/systems.js +19 -2
- package/lib/seam/connect/models/events/acs/systems.js.map +1 -1
- package/lib/seam/connect/models/events/action-attempts.d.ts +332 -0
- package/lib/seam/connect/models/events/action-attempts.js +46 -0
- package/lib/seam/connect/models/events/action-attempts.js.map +1 -1
- package/lib/seam/connect/models/events/common.d.ts +26 -0
- package/lib/seam/connect/models/events/common.js +22 -0
- package/lib/seam/connect/models/events/common.js.map +1 -1
- package/lib/seam/connect/models/events/connected-accounts.d.ts +140 -272
- package/lib/seam/connect/models/events/connected-accounts.js +17 -9
- package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
- package/lib/seam/connect/models/events/devices.d.ts +1128 -0
- package/lib/seam/connect/models/events/devices.js +39 -11
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +1675 -196
- package/lib/seam/connect/models/events/spaces.d.ts +12 -12
- package/lib/seam/connect/models/phones/phone-session.d.ts +0 -20
- package/lib/seam/connect/openapi.d.ts +6483 -2214
- package/lib/seam/connect/openapi.js +8921 -3441
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +7194 -1122
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/model-types.ts +1 -0
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +76 -24
- package/src/lib/seam/connect/models/access-codes/unmanaged-access-code.ts +10 -2
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +92 -1
- package/src/lib/seam/connect/models/access-grants/access-method.ts +162 -1
- package/src/lib/seam/connect/models/access-grants/index.ts +1 -0
- package/src/lib/seam/connect/models/access-grants/pending-mutations.ts +101 -0
- package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +8 -0
- package/src/lib/seam/connect/models/acs/metadata/salto-space.ts +0 -5
- package/src/lib/seam/connect/models/action-attempts/encode-credential.ts +5 -5
- package/src/lib/seam/connect/models/action-attempts/lock-door.ts +10 -1
- package/src/lib/seam/connect/models/action-attempts/scan-credential.ts +5 -5
- package/src/lib/seam/connect/models/action-attempts/unlock-door.ts +10 -1
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +10 -0
- package/src/lib/seam/connect/models/customer/access-grant-resources.ts +7 -0
- package/src/lib/seam/connect/models/customer/customer-portal.ts +66 -6
- package/src/lib/seam/connect/models/devices/device-metadata.ts +35 -9
- package/src/lib/seam/connect/models/devices/device-provider.ts +2 -3
- package/src/lib/seam/connect/models/devices/device-type.ts +0 -2
- package/src/lib/seam/connect/models/devices/device.ts +37 -0
- package/src/lib/seam/connect/models/events/access-codes.ts +49 -16
- package/src/lib/seam/connect/models/events/access-methods.ts +14 -0
- package/src/lib/seam/connect/models/events/acs/systems.ts +21 -3
- package/src/lib/seam/connect/models/events/action-attempts.ts +64 -0
- package/src/lib/seam/connect/models/events/common.ts +31 -0
- package/src/lib/seam/connect/models/events/connected-accounts.ts +23 -11
- package/src/lib/seam/connect/models/events/devices.ts +51 -18
- package/src/lib/seam/connect/openapi.ts +8973 -2884
- package/src/lib/seam/connect/route-types.ts +8104 -1669
|
@@ -14,11 +14,130 @@ const being_deleted = common_access_method_warning
|
|
|
14
14
|
warning_code: z.literal('being_deleted').describe(warning_code_description),
|
|
15
15
|
})
|
|
16
16
|
.describe('Indicates that the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods) is being deleted.');
|
|
17
|
+
const updating_access_times_warning = common_access_method_warning
|
|
18
|
+
.extend({
|
|
19
|
+
warning_code: z
|
|
20
|
+
.literal('updating_access_times')
|
|
21
|
+
.describe(warning_code_description),
|
|
22
|
+
})
|
|
23
|
+
.describe('Indicates that the access times for this [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods) are being updated.');
|
|
17
24
|
const access_method_warning = z
|
|
18
|
-
.discriminatedUnion('warning_code', [
|
|
25
|
+
.discriminatedUnion('warning_code', [
|
|
26
|
+
being_deleted,
|
|
27
|
+
updating_access_times_warning,
|
|
28
|
+
])
|
|
19
29
|
.describe('Warning associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods).');
|
|
20
30
|
const _access_method_warning_map = z.object({
|
|
21
31
|
being_deleted: being_deleted.optional().nullable(),
|
|
32
|
+
updating_access_times: updating_access_times_warning.optional().nullable(),
|
|
33
|
+
});
|
|
34
|
+
// Pending mutations for access methods
|
|
35
|
+
const common_pending_mutation = z.object({
|
|
36
|
+
created_at: z
|
|
37
|
+
.string()
|
|
38
|
+
.datetime()
|
|
39
|
+
.describe('Date and time at which the mutation was created.'),
|
|
40
|
+
message: z.string().describe('Detailed description of the mutation.'),
|
|
41
|
+
});
|
|
42
|
+
const provisioning_access_mutation = common_pending_mutation
|
|
43
|
+
.extend({
|
|
44
|
+
mutation_code: z
|
|
45
|
+
.literal('provisioning_access')
|
|
46
|
+
.describe('Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices.'),
|
|
47
|
+
from: z
|
|
48
|
+
.object({
|
|
49
|
+
device_ids: z
|
|
50
|
+
.array(z.string().uuid())
|
|
51
|
+
.describe('Previous device IDs where access was provisioned.'),
|
|
52
|
+
})
|
|
53
|
+
.describe('Previous device configuration.'),
|
|
54
|
+
to: z
|
|
55
|
+
.object({
|
|
56
|
+
device_ids: z
|
|
57
|
+
.array(z.string().uuid())
|
|
58
|
+
.describe('New device IDs where access is being provisioned.'),
|
|
59
|
+
})
|
|
60
|
+
.describe('New device configuration.'),
|
|
61
|
+
})
|
|
62
|
+
.describe('Seam is in the process of provisioning access for this access method on new devices.');
|
|
63
|
+
const revoking_access_mutation = common_pending_mutation
|
|
64
|
+
.extend({
|
|
65
|
+
mutation_code: z
|
|
66
|
+
.literal('revoking_access')
|
|
67
|
+
.describe('Mutation code to indicate that Seam is in the process of revoking access for this access method from devices.'),
|
|
68
|
+
from: z
|
|
69
|
+
.object({
|
|
70
|
+
device_ids: z
|
|
71
|
+
.array(z.string().uuid())
|
|
72
|
+
.describe('Previous device IDs where access existed.'),
|
|
73
|
+
})
|
|
74
|
+
.describe('Previous device configuration.'),
|
|
75
|
+
to: z
|
|
76
|
+
.object({
|
|
77
|
+
device_ids: z
|
|
78
|
+
.array(z.string().uuid())
|
|
79
|
+
.describe('New device IDs where access should remain.'),
|
|
80
|
+
})
|
|
81
|
+
.describe('New device configuration.'),
|
|
82
|
+
})
|
|
83
|
+
.describe('Seam is in the process of revoking access for this access method from devices.');
|
|
84
|
+
const updating_access_times_mutation = common_pending_mutation
|
|
85
|
+
.extend({
|
|
86
|
+
mutation_code: z
|
|
87
|
+
.literal('updating_access_times')
|
|
88
|
+
.describe('Mutation code to indicate that Seam is in the process of updating the access times for this access method.'),
|
|
89
|
+
from: z
|
|
90
|
+
.object({
|
|
91
|
+
starts_at: z
|
|
92
|
+
.string()
|
|
93
|
+
.datetime()
|
|
94
|
+
.nullable()
|
|
95
|
+
.describe('Previous start time for access.'),
|
|
96
|
+
ends_at: z
|
|
97
|
+
.string()
|
|
98
|
+
.datetime()
|
|
99
|
+
.nullable()
|
|
100
|
+
.describe('Previous end time for access.'),
|
|
101
|
+
})
|
|
102
|
+
.describe('Previous access time configuration.'),
|
|
103
|
+
to: z
|
|
104
|
+
.object({
|
|
105
|
+
starts_at: z
|
|
106
|
+
.string()
|
|
107
|
+
.datetime()
|
|
108
|
+
.nullable()
|
|
109
|
+
.describe('New start time for access.'),
|
|
110
|
+
ends_at: z
|
|
111
|
+
.string()
|
|
112
|
+
.datetime()
|
|
113
|
+
.nullable()
|
|
114
|
+
.describe('New end time for access.'),
|
|
115
|
+
})
|
|
116
|
+
.describe('New access time configuration.'),
|
|
117
|
+
})
|
|
118
|
+
.describe('Seam is in the process of updating the access times for this access method.');
|
|
119
|
+
const notifying_connector_mutation = common_pending_mutation
|
|
120
|
+
.extend({
|
|
121
|
+
mutation_code: z
|
|
122
|
+
.literal('notifying_connector')
|
|
123
|
+
.describe("Mutation code to indicate that Seam is in the process of notifying the connector about this access method's issuance."),
|
|
124
|
+
// Intentionally generic — each connector type has its own provider_data shape
|
|
125
|
+
// (e.g., Cloudbeds uses { keyId: string, keyType: string })
|
|
126
|
+
provider_data: z
|
|
127
|
+
.record(z.any())
|
|
128
|
+
.describe('Provider-specific data needed to notify the connector.'),
|
|
129
|
+
})
|
|
130
|
+
.describe("Seam is in the process of notifying the connector about this access method's issuance.");
|
|
131
|
+
export const access_method_pending_mutations = z.discriminatedUnion('mutation_code', [
|
|
132
|
+
provisioning_access_mutation,
|
|
133
|
+
revoking_access_mutation,
|
|
134
|
+
updating_access_times_mutation,
|
|
135
|
+
]);
|
|
136
|
+
const _access_method_pending_mutations_map = z.object({
|
|
137
|
+
provisioning_access: provisioning_access_mutation.optional().nullable(),
|
|
138
|
+
revoking_access: revoking_access_mutation.optional().nullable(),
|
|
139
|
+
updating_access_times: updating_access_times_mutation.optional().nullable(),
|
|
140
|
+
notifying_connector: notifying_connector_mutation.optional().nullable(),
|
|
22
141
|
});
|
|
23
142
|
export const access_method = z.object({
|
|
24
143
|
workspace_id: z
|
|
@@ -63,6 +182,9 @@ export const access_method = z.object({
|
|
|
63
182
|
warnings: z
|
|
64
183
|
.array(access_method_warning)
|
|
65
184
|
.describe('Warnings associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods).'),
|
|
185
|
+
pending_mutations: z
|
|
186
|
+
.array(access_method_pending_mutations)
|
|
187
|
+
.describe('Pending mutations for the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods). Indicates operations that are in progress.'),
|
|
66
188
|
customization_profile_id: z
|
|
67
189
|
.string()
|
|
68
190
|
.uuid()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,0GAA0G,CAC3G;CACJ,CAAC,CAAA;AAEF,MAAM,wBAAwB,GAC5B,sGAAsG,CAAA;AAExG,MAAM,aAAa,GAAG,4BAA4B;KAC/C,MAAM,CAAC;IACN,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CAC5E,CAAC;KACD,QAAQ,CACP,6IAA6I,CAC9I,CAAA;AAEH,MAAM,qBAAqB,GAAG,CAAC;KAC5B,kBAAkB,CAAC,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,CAAC;SACV,MAAM,EA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C;SACpB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,qIAAqI,CACtI;IACH,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,8CAA8C,CAAC;IAC3D,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,qBAAqB,CAAC;SAC5B,QAAQ,CACP,sIAAsI,CACvI;IACH,iBAAiB,EAAE,CAAC;SACjB,KAAK,CAAC,+BAA+B,CAAC;SACtC,QAAQ,CACP,8KAA8K,CAC/K;IACH,wBAAwB,EAAE,CAAC;SACxB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,oEAAoE,CACrE;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMT,CAAC,CAAA;AAIJ,4GAA4G;AAC5G,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,IAAI,CAAC;IACxD,eAAe,EAAE,IAAI;IACrB,oBAAoB,EAAE,IAAI;IAC1B,wBAAwB,EAAE,IAAI;CAC/B,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMT,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const access_grant_pending_mutations: z.ZodDiscriminatedUnion<"mutation_code", [z.ZodObject<{
|
|
3
|
+
created_at: z.ZodString;
|
|
4
|
+
message: z.ZodString;
|
|
5
|
+
} & {
|
|
6
|
+
mutation_code: z.ZodLiteral<"updating_spaces">;
|
|
7
|
+
from: z.ZodObject<{
|
|
8
|
+
device_ids: z.ZodArray<z.ZodString, "many">;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
device_ids: string[];
|
|
11
|
+
}, {
|
|
12
|
+
device_ids: string[];
|
|
13
|
+
}>;
|
|
14
|
+
to: z.ZodObject<{
|
|
15
|
+
device_ids: z.ZodArray<z.ZodString, "many">;
|
|
16
|
+
common_code_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
device_ids: string[];
|
|
19
|
+
common_code_key?: string | null | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
device_ids: string[];
|
|
22
|
+
common_code_key?: string | null | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
message: string;
|
|
26
|
+
created_at: string;
|
|
27
|
+
mutation_code: "updating_spaces";
|
|
28
|
+
from: {
|
|
29
|
+
device_ids: string[];
|
|
30
|
+
};
|
|
31
|
+
to: {
|
|
32
|
+
device_ids: string[];
|
|
33
|
+
common_code_key?: string | null | undefined;
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
message: string;
|
|
37
|
+
created_at: string;
|
|
38
|
+
mutation_code: "updating_spaces";
|
|
39
|
+
from: {
|
|
40
|
+
device_ids: string[];
|
|
41
|
+
};
|
|
42
|
+
to: {
|
|
43
|
+
device_ids: string[];
|
|
44
|
+
common_code_key?: string | null | undefined;
|
|
45
|
+
};
|
|
46
|
+
}>, z.ZodObject<{
|
|
47
|
+
created_at: z.ZodString;
|
|
48
|
+
message: z.ZodString;
|
|
49
|
+
} & {
|
|
50
|
+
mutation_code: z.ZodLiteral<"updating_access_times">;
|
|
51
|
+
access_method_ids: z.ZodArray<z.ZodString, "many">;
|
|
52
|
+
from: z.ZodObject<{
|
|
53
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
54
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
starts_at: string | null;
|
|
57
|
+
ends_at: string | null;
|
|
58
|
+
}, {
|
|
59
|
+
starts_at: string | null;
|
|
60
|
+
ends_at: string | null;
|
|
61
|
+
}>;
|
|
62
|
+
to: z.ZodObject<{
|
|
63
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
64
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
starts_at: string | null;
|
|
67
|
+
ends_at: string | null;
|
|
68
|
+
}, {
|
|
69
|
+
starts_at: string | null;
|
|
70
|
+
ends_at: string | null;
|
|
71
|
+
}>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
message: string;
|
|
74
|
+
created_at: string;
|
|
75
|
+
mutation_code: "updating_access_times";
|
|
76
|
+
from: {
|
|
77
|
+
starts_at: string | null;
|
|
78
|
+
ends_at: string | null;
|
|
79
|
+
};
|
|
80
|
+
to: {
|
|
81
|
+
starts_at: string | null;
|
|
82
|
+
ends_at: string | null;
|
|
83
|
+
};
|
|
84
|
+
access_method_ids: string[];
|
|
85
|
+
}, {
|
|
86
|
+
message: string;
|
|
87
|
+
created_at: string;
|
|
88
|
+
mutation_code: "updating_access_times";
|
|
89
|
+
from: {
|
|
90
|
+
starts_at: string | null;
|
|
91
|
+
ends_at: string | null;
|
|
92
|
+
};
|
|
93
|
+
to: {
|
|
94
|
+
starts_at: string | null;
|
|
95
|
+
ends_at: string | null;
|
|
96
|
+
};
|
|
97
|
+
access_method_ids: string[];
|
|
98
|
+
}>]>;
|
|
99
|
+
export type AccessGrantPendingMutation = z.infer<typeof access_grant_pending_mutations>;
|
|
100
|
+
declare const _access_grant_pending_mutations_map: z.ZodObject<{
|
|
101
|
+
updating_spaces: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
102
|
+
created_at: z.ZodString;
|
|
103
|
+
message: z.ZodString;
|
|
104
|
+
} & {
|
|
105
|
+
mutation_code: z.ZodLiteral<"updating_spaces">;
|
|
106
|
+
from: z.ZodObject<{
|
|
107
|
+
device_ids: z.ZodArray<z.ZodString, "many">;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
device_ids: string[];
|
|
110
|
+
}, {
|
|
111
|
+
device_ids: string[];
|
|
112
|
+
}>;
|
|
113
|
+
to: z.ZodObject<{
|
|
114
|
+
device_ids: z.ZodArray<z.ZodString, "many">;
|
|
115
|
+
common_code_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
device_ids: string[];
|
|
118
|
+
common_code_key?: string | null | undefined;
|
|
119
|
+
}, {
|
|
120
|
+
device_ids: string[];
|
|
121
|
+
common_code_key?: string | null | undefined;
|
|
122
|
+
}>;
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
message: string;
|
|
125
|
+
created_at: string;
|
|
126
|
+
mutation_code: "updating_spaces";
|
|
127
|
+
from: {
|
|
128
|
+
device_ids: string[];
|
|
129
|
+
};
|
|
130
|
+
to: {
|
|
131
|
+
device_ids: string[];
|
|
132
|
+
common_code_key?: string | null | undefined;
|
|
133
|
+
};
|
|
134
|
+
}, {
|
|
135
|
+
message: string;
|
|
136
|
+
created_at: string;
|
|
137
|
+
mutation_code: "updating_spaces";
|
|
138
|
+
from: {
|
|
139
|
+
device_ids: string[];
|
|
140
|
+
};
|
|
141
|
+
to: {
|
|
142
|
+
device_ids: string[];
|
|
143
|
+
common_code_key?: string | null | undefined;
|
|
144
|
+
};
|
|
145
|
+
}>>>;
|
|
146
|
+
updating_access_times: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
147
|
+
created_at: z.ZodString;
|
|
148
|
+
message: z.ZodString;
|
|
149
|
+
} & {
|
|
150
|
+
mutation_code: z.ZodLiteral<"updating_access_times">;
|
|
151
|
+
access_method_ids: z.ZodArray<z.ZodString, "many">;
|
|
152
|
+
from: z.ZodObject<{
|
|
153
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
154
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
starts_at: string | null;
|
|
157
|
+
ends_at: string | null;
|
|
158
|
+
}, {
|
|
159
|
+
starts_at: string | null;
|
|
160
|
+
ends_at: string | null;
|
|
161
|
+
}>;
|
|
162
|
+
to: z.ZodObject<{
|
|
163
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
164
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
165
|
+
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
starts_at: string | null;
|
|
167
|
+
ends_at: string | null;
|
|
168
|
+
}, {
|
|
169
|
+
starts_at: string | null;
|
|
170
|
+
ends_at: string | null;
|
|
171
|
+
}>;
|
|
172
|
+
}, "strip", z.ZodTypeAny, {
|
|
173
|
+
message: string;
|
|
174
|
+
created_at: string;
|
|
175
|
+
mutation_code: "updating_access_times";
|
|
176
|
+
from: {
|
|
177
|
+
starts_at: string | null;
|
|
178
|
+
ends_at: string | null;
|
|
179
|
+
};
|
|
180
|
+
to: {
|
|
181
|
+
starts_at: string | null;
|
|
182
|
+
ends_at: string | null;
|
|
183
|
+
};
|
|
184
|
+
access_method_ids: string[];
|
|
185
|
+
}, {
|
|
186
|
+
message: string;
|
|
187
|
+
created_at: string;
|
|
188
|
+
mutation_code: "updating_access_times";
|
|
189
|
+
from: {
|
|
190
|
+
starts_at: string | null;
|
|
191
|
+
ends_at: string | null;
|
|
192
|
+
};
|
|
193
|
+
to: {
|
|
194
|
+
starts_at: string | null;
|
|
195
|
+
ends_at: string | null;
|
|
196
|
+
};
|
|
197
|
+
access_method_ids: string[];
|
|
198
|
+
}>>>;
|
|
199
|
+
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
updating_spaces?: {
|
|
201
|
+
message: string;
|
|
202
|
+
created_at: string;
|
|
203
|
+
mutation_code: "updating_spaces";
|
|
204
|
+
from: {
|
|
205
|
+
device_ids: string[];
|
|
206
|
+
};
|
|
207
|
+
to: {
|
|
208
|
+
device_ids: string[];
|
|
209
|
+
common_code_key?: string | null | undefined;
|
|
210
|
+
};
|
|
211
|
+
} | null | undefined;
|
|
212
|
+
updating_access_times?: {
|
|
213
|
+
message: string;
|
|
214
|
+
created_at: string;
|
|
215
|
+
mutation_code: "updating_access_times";
|
|
216
|
+
from: {
|
|
217
|
+
starts_at: string | null;
|
|
218
|
+
ends_at: string | null;
|
|
219
|
+
};
|
|
220
|
+
to: {
|
|
221
|
+
starts_at: string | null;
|
|
222
|
+
ends_at: string | null;
|
|
223
|
+
};
|
|
224
|
+
access_method_ids: string[];
|
|
225
|
+
} | null | undefined;
|
|
226
|
+
}, {
|
|
227
|
+
updating_spaces?: {
|
|
228
|
+
message: string;
|
|
229
|
+
created_at: string;
|
|
230
|
+
mutation_code: "updating_spaces";
|
|
231
|
+
from: {
|
|
232
|
+
device_ids: string[];
|
|
233
|
+
};
|
|
234
|
+
to: {
|
|
235
|
+
device_ids: string[];
|
|
236
|
+
common_code_key?: string | null | undefined;
|
|
237
|
+
};
|
|
238
|
+
} | null | undefined;
|
|
239
|
+
updating_access_times?: {
|
|
240
|
+
message: string;
|
|
241
|
+
created_at: string;
|
|
242
|
+
mutation_code: "updating_access_times";
|
|
243
|
+
from: {
|
|
244
|
+
starts_at: string | null;
|
|
245
|
+
ends_at: string | null;
|
|
246
|
+
};
|
|
247
|
+
to: {
|
|
248
|
+
starts_at: string | null;
|
|
249
|
+
ends_at: string | null;
|
|
250
|
+
};
|
|
251
|
+
access_method_ids: string[];
|
|
252
|
+
} | null | undefined;
|
|
253
|
+
}>;
|
|
254
|
+
export type AccessGrantPendingMutationsMap = z.infer<typeof _access_grant_pending_mutations_map>;
|
|
255
|
+
export {};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
const common_pending_mutation = z.object({
|
|
3
|
+
created_at: z
|
|
4
|
+
.string()
|
|
5
|
+
.datetime()
|
|
6
|
+
.describe('Date and time at which the mutation was created.'),
|
|
7
|
+
message: z.string().describe('Detailed description of the mutation.'),
|
|
8
|
+
});
|
|
9
|
+
const updating_spaces_mutation = common_pending_mutation
|
|
10
|
+
.extend({
|
|
11
|
+
mutation_code: z
|
|
12
|
+
.literal('updating_spaces')
|
|
13
|
+
.describe('Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant.'),
|
|
14
|
+
from: z
|
|
15
|
+
.object({
|
|
16
|
+
device_ids: z
|
|
17
|
+
.array(z.string().uuid())
|
|
18
|
+
.describe('Previous device IDs where access codes existed.'),
|
|
19
|
+
})
|
|
20
|
+
.describe('Previous location configuration.'),
|
|
21
|
+
to: z
|
|
22
|
+
.object({
|
|
23
|
+
device_ids: z
|
|
24
|
+
.array(z.string().uuid())
|
|
25
|
+
.describe('New device IDs where access codes should be created.'),
|
|
26
|
+
common_code_key: z
|
|
27
|
+
.string()
|
|
28
|
+
.nullable()
|
|
29
|
+
.optional()
|
|
30
|
+
.describe('Common code key to ensure PIN code reuse across devices.'),
|
|
31
|
+
})
|
|
32
|
+
.describe('New location configuration.'),
|
|
33
|
+
})
|
|
34
|
+
.describe('Seam is in the process of updating the devices/spaces associated with this access grant.');
|
|
35
|
+
const updating_access_times_mutation = common_pending_mutation
|
|
36
|
+
.extend({
|
|
37
|
+
mutation_code: z
|
|
38
|
+
.literal('updating_access_times')
|
|
39
|
+
.describe('Mutation code to indicate that Seam is in the process of updating the access times for this access grant.'),
|
|
40
|
+
access_method_ids: z
|
|
41
|
+
.array(z.string().uuid())
|
|
42
|
+
.describe('IDs of the access methods being updated.'),
|
|
43
|
+
from: z
|
|
44
|
+
.object({
|
|
45
|
+
starts_at: z
|
|
46
|
+
.string()
|
|
47
|
+
.datetime()
|
|
48
|
+
.nullable()
|
|
49
|
+
.describe('Previous start time for access.'),
|
|
50
|
+
ends_at: z
|
|
51
|
+
.string()
|
|
52
|
+
.datetime()
|
|
53
|
+
.nullable()
|
|
54
|
+
.describe('Previous end time for access.'),
|
|
55
|
+
})
|
|
56
|
+
.describe('Previous access time configuration.'),
|
|
57
|
+
to: z
|
|
58
|
+
.object({
|
|
59
|
+
starts_at: z
|
|
60
|
+
.string()
|
|
61
|
+
.datetime()
|
|
62
|
+
.nullable()
|
|
63
|
+
.describe('New start time for access.'),
|
|
64
|
+
ends_at: z
|
|
65
|
+
.string()
|
|
66
|
+
.datetime()
|
|
67
|
+
.nullable()
|
|
68
|
+
.describe('New end time for access.'),
|
|
69
|
+
})
|
|
70
|
+
.describe('New access time configuration.'),
|
|
71
|
+
})
|
|
72
|
+
.describe('Seam is in the process of updating the access times for this access grant.');
|
|
73
|
+
export const access_grant_pending_mutations = z.discriminatedUnion('mutation_code', [updating_spaces_mutation, updating_access_times_mutation]);
|
|
74
|
+
const _access_grant_pending_mutations_map = z.object({
|
|
75
|
+
updating_spaces: updating_spaces_mutation.optional().nullable(),
|
|
76
|
+
updating_access_times: updating_access_times_mutation.optional().nullable(),
|
|
77
|
+
});
|
|
78
|
+
//# sourceMappingURL=pending-mutations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pending-mutations.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/pending-mutations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;CACtE,CAAC,CAAA;AAEF,MAAM,wBA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KAC7C,CAAC;SACD,QAAQ,CAAC,qCAAqC,CAAC;IAClD,EAAE,EAAE,CAAC;SACF,MAAM,CAAC;QACN,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,EAAE;aACV,QAAQ,CAAC,4BAA4B,CAAC;QACzC,OAAO,EAAE,CAAC;aACP,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,EAAE;aACV,QAAQ,CAAC,0BAA0B,CAAC;KACxC,CAAC;SACD,QAAQ,CAAC,gCAAgC,CAAC;CAC9C,CAAC;KACD,QAAQ,CACP,4EAA4E,CAC7E,CAAA;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,kBAAkB,CAChE,eAAe,EACf,CAAC,wBAAwB,EAAE,8BAA8B,CAAC,CAC3D,CAAA;AAMD,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,eAAe,EAAE,wBAAwB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC/D,qBAAqB,EAAE,8BAA8B,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC5E,CAAC,CAAA"}
|
|
@@ -3,6 +3,7 @@ export declare const requested_access_method: z.ZodObject<{
|
|
|
3
3
|
display_name: z.ZodString;
|
|
4
4
|
mode: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
5
5
|
code: z.ZodOptional<z.ZodString>;
|
|
6
|
+
instant_key_max_use_count: z.ZodOptional<z.ZodNumber>;
|
|
6
7
|
created_at: z.ZodString;
|
|
7
8
|
created_access_method_ids: z.ZodArray<z.ZodString, "many">;
|
|
8
9
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -11,11 +12,13 @@ export declare const requested_access_method: z.ZodObject<{
|
|
|
11
12
|
mode: "code" | "card" | "mobile_key";
|
|
12
13
|
created_access_method_ids: string[];
|
|
13
14
|
code?: string | undefined;
|
|
15
|
+
instant_key_max_use_count?: number | undefined;
|
|
14
16
|
}, {
|
|
15
17
|
display_name: string;
|
|
16
18
|
created_at: string;
|
|
17
19
|
mode: "code" | "card" | "mobile_key";
|
|
18
20
|
created_access_method_ids: string[];
|
|
19
21
|
code?: string | undefined;
|
|
22
|
+
instant_key_max_use_count?: number | undefined;
|
|
20
23
|
}>;
|
|
21
24
|
export type RequestedAccessMethod = z.infer<typeof requested_access_method>;
|
|
@@ -11,6 +11,12 @@ export const requested_access_method = z.object({
|
|
|
11
11
|
.regex(/^\d+$/, 'Must only contain digits')
|
|
12
12
|
.optional()
|
|
13
13
|
.describe("Specific PIN code to use for this access method. Only applicable when mode is 'code'."),
|
|
14
|
+
instant_key_max_use_count: z
|
|
15
|
+
.number()
|
|
16
|
+
.int()
|
|
17
|
+
.min(1)
|
|
18
|
+
.optional()
|
|
19
|
+
.describe("Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified."),
|
|
14
20
|
created_at: z
|
|
15
21
|
.string()
|
|
16
22
|
.datetime()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requested-access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/requested-access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;SACpC,QAAQ,CACP,qEAAqE,CACtE;IACH,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,CAAC,CAAC;SACN,KAAK,CAAC,OAAO,EAAE,0BAA0B,CAAC;SAC1C,QAAQ,EAAE;SACV,QAAQ,CACP,uFAAuF,CACxF;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,mFAAmF,CACpF;IACH,yBAAyB,EAAE,CAAC;SACzB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,oEAAoE,CACrE;CACJ,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"requested-access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/requested-access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;SACpC,QAAQ,CACP,qEAAqE,CACtE;IACH,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,CAAC,CAAC;SACN,KAAK,CAAC,OAAO,EAAE,0BAA0B,CAAC;SAC1C,QAAQ,EAAE;SACV,QAAQ,CACP,uFAAuF,CACxF;IACH,yBAAyB,EAAE,CAAC;SACzB,MAAM,EAAE;SACR,GAAG,EAAE;SACL,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,iIAAiI,CAClI;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,mFAAmF,CACpF;IACH,yBAAyB,EAAE,CAAC;SACzB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,oEAAoE,CACrE;CACJ,CAAC,CAAA"}
|
|
@@ -144,7 +144,6 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
144
144
|
pms_id?: string | undefined;
|
|
145
145
|
}>>;
|
|
146
146
|
salto_space_metadata: z.ZodOptional<z.ZodObject<{
|
|
147
|
-
ext_door_id: z.ZodOptional<z.ZodString>;
|
|
148
147
|
door_id: z.ZodOptional<z.ZodString>;
|
|
149
148
|
door_name: z.ZodOptional<z.ZodString>;
|
|
150
149
|
door_description: z.ZodOptional<z.ZodString>;
|
|
@@ -154,7 +153,6 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
154
153
|
}, "strip", z.ZodTypeAny, {
|
|
155
154
|
door_name?: string | undefined;
|
|
156
155
|
door_id?: string | undefined;
|
|
157
|
-
ext_door_id?: string | undefined;
|
|
158
156
|
door_description?: string | undefined;
|
|
159
157
|
audit_on_keys?: boolean | undefined;
|
|
160
158
|
room_name?: string | undefined;
|
|
@@ -162,7 +160,6 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
162
160
|
}, {
|
|
163
161
|
door_name?: string | undefined;
|
|
164
162
|
door_id?: string | undefined;
|
|
165
|
-
ext_door_id?: string | undefined;
|
|
166
163
|
door_description?: string | undefined;
|
|
167
164
|
audit_on_keys?: boolean | undefined;
|
|
168
165
|
room_name?: string | undefined;
|
|
@@ -237,7 +234,6 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
237
234
|
salto_space_metadata?: {
|
|
238
235
|
door_name?: string | undefined;
|
|
239
236
|
door_id?: string | undefined;
|
|
240
|
-
ext_door_id?: string | undefined;
|
|
241
237
|
door_description?: string | undefined;
|
|
242
238
|
audit_on_keys?: boolean | undefined;
|
|
243
239
|
room_name?: string | undefined;
|
|
@@ -303,7 +299,6 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
303
299
|
salto_space_metadata?: {
|
|
304
300
|
door_name?: string | undefined;
|
|
305
301
|
door_id?: string | undefined;
|
|
306
|
-
ext_door_id?: string | undefined;
|
|
307
302
|
door_description?: string | undefined;
|
|
308
303
|
audit_on_keys?: boolean | undefined;
|
|
309
304
|
room_name?: string | undefined;
|