@seamapi/types 1.322.3 → 1.324.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 +743 -742
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +559 -653
- package/lib/seam/connect/models/acs/acs-user.d.ts +53 -0
- package/lib/seam/connect/models/acs/acs-user.js +23 -0
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/models/events/access-codes.js +32 -41
- package/lib/seam/connect/models/events/access-codes.js.map +1 -1
- package/lib/seam/connect/models/events/acs/common.js +9 -12
- package/lib/seam/connect/models/events/acs/common.js.map +1 -1
- package/lib/seam/connect/models/events/acs/credentials.js +2 -2
- package/lib/seam/connect/models/events/acs/credentials.js.map +1 -1
- package/lib/seam/connect/models/events/acs/encoders.js +6 -3
- package/lib/seam/connect/models/events/acs/encoders.js.map +1 -1
- package/lib/seam/connect/models/events/acs/systems.js +3 -3
- package/lib/seam/connect/models/events/acs/systems.js.map +1 -1
- package/lib/seam/connect/models/events/acs/users.js +5 -3
- package/lib/seam/connect/models/events/acs/users.js.map +1 -1
- package/lib/seam/connect/models/events/action-attempts.js +10 -22
- package/lib/seam/connect/models/events/action-attempts.js.map +1 -1
- package/lib/seam/connect/models/events/client-sessions.js +5 -7
- package/lib/seam/connect/models/events/client-sessions.js.map +1 -1
- package/lib/seam/connect/models/events/common.js +5 -2
- package/lib/seam/connect/models/events/common.js.map +1 -1
- package/lib/seam/connect/models/events/connect-webviews.js +10 -14
- package/lib/seam/connect/models/events/connect-webviews.js.map +1 -1
- package/lib/seam/connect/models/events/connected-accounts.js +15 -19
- package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
- package/lib/seam/connect/models/events/devices.js +43 -47
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/enrollment-automations.js +5 -7
- package/lib/seam/connect/models/events/enrollment-automations.js.map +1 -1
- package/lib/seam/connect/models/events/phones.js +4 -6
- package/lib/seam/connect/models/events/phones.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +34 -150
- package/lib/seam/connect/openapi.js +410 -463
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +525 -503
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-user.ts +35 -0
- package/src/lib/seam/connect/models/events/access-codes.ts +64 -41
- package/src/lib/seam/connect/models/events/acs/common.ts +13 -12
- package/src/lib/seam/connect/models/events/acs/credentials.ts +6 -2
- package/src/lib/seam/connect/models/events/acs/encoders.ts +12 -3
- package/src/lib/seam/connect/models/events/acs/systems.ts +9 -3
- package/src/lib/seam/connect/models/events/acs/users.ts +10 -4
- package/src/lib/seam/connect/models/events/action-attempts.ts +20 -22
- package/src/lib/seam/connect/models/events/client-sessions.ts +9 -7
- package/src/lib/seam/connect/models/events/common.ts +5 -2
- package/src/lib/seam/connect/models/events/connect-webviews.ts +18 -14
- package/src/lib/seam/connect/models/events/connected-accounts.ts +25 -19
- package/src/lib/seam/connect/models/events/devices.ts +75 -47
- package/src/lib/seam/connect/models/events/enrollment-automations.ts +9 -7
- package/src/lib/seam/connect/models/events/phones.ts +6 -6
- package/src/lib/seam/connect/openapi.ts +568 -463
- package/src/lib/seam/connect/route-types.ts +525 -503
package/package.json
CHANGED
|
@@ -127,6 +127,41 @@ export const acs_users_warnings = z
|
|
|
127
127
|
|
|
128
128
|
export type AcsUsersWarningMap = z.infer<typeof acs_users_warning_map>
|
|
129
129
|
|
|
130
|
+
const common_acs_user_modification = z.object({
|
|
131
|
+
created_at: z
|
|
132
|
+
.string()
|
|
133
|
+
.datetime()
|
|
134
|
+
.describe('Date and time at which this modification was requested.'),
|
|
135
|
+
message: z.string().describe('Detailed description of the modification.'),
|
|
136
|
+
})
|
|
137
|
+
|
|
138
|
+
const acs_user_suspension_state_modification = common_acs_user_modification
|
|
139
|
+
.extend({
|
|
140
|
+
modification_code: z.literal('suspension_state'),
|
|
141
|
+
})
|
|
142
|
+
.describe(
|
|
143
|
+
"Indicates that the acs_user's is_suspended state was updated on Seam and will soon be applied on the user on the ACS System",
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
const acs_user_profile_modification = common_acs_user_modification
|
|
147
|
+
.extend({
|
|
148
|
+
modification_code: z.literal('profile'),
|
|
149
|
+
})
|
|
150
|
+
.describe(
|
|
151
|
+
"Indicates that the acs_user's profile details (name, email, phone) were updated on Seam and will soon be applied on the user on the ACS System",
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
export const acs_user_unapplied_modification_map = z.object({
|
|
155
|
+
suspension_state: acs_user_suspension_state_modification
|
|
156
|
+
.optional()
|
|
157
|
+
.nullable(),
|
|
158
|
+
profile: acs_user_profile_modification.optional().nullable(),
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
export type AcsUserUnappliedModificationMap = z.infer<
|
|
162
|
+
typeof acs_user_unapplied_modification_map
|
|
163
|
+
>
|
|
164
|
+
|
|
130
165
|
const user_fields = z.object({
|
|
131
166
|
full_name: z.string().optional().describe('Full name of the `acs_user`.'),
|
|
132
167
|
email: z.string().email().optional().describe(`
|
|
@@ -3,38 +3,39 @@ import { z } from 'zod'
|
|
|
3
3
|
import { common_event } from './common.js'
|
|
4
4
|
|
|
5
5
|
const access_code_event = common_event.extend({
|
|
6
|
-
access_code_id: z
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
device_id: z
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
connected_account_id: z
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
access_code_id: z
|
|
7
|
+
.string()
|
|
8
|
+
.uuid()
|
|
9
|
+
.describe(
|
|
10
|
+
'ID of the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).',
|
|
11
|
+
),
|
|
12
|
+
device_id: z
|
|
13
|
+
.string()
|
|
14
|
+
.uuid()
|
|
15
|
+
.describe(
|
|
16
|
+
'ID of the [device](https://docs.seam.co/latest/core-concepts/devices).',
|
|
17
|
+
),
|
|
18
|
+
connected_account_id: z
|
|
19
|
+
.string()
|
|
20
|
+
.uuid()
|
|
21
|
+
.describe(
|
|
22
|
+
'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
|
|
23
|
+
),
|
|
24
24
|
})
|
|
25
25
|
|
|
26
|
-
const code = z
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
`)
|
|
26
|
+
const code = z
|
|
27
|
+
.string()
|
|
28
|
+
.describe(
|
|
29
|
+
'Code for the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).',
|
|
30
|
+
)
|
|
32
31
|
|
|
33
32
|
export const access_code_created_event = access_code_event
|
|
34
33
|
.extend({
|
|
35
34
|
event_type: z.literal('access_code.created'),
|
|
36
35
|
})
|
|
37
|
-
.describe(
|
|
36
|
+
.describe(
|
|
37
|
+
'An [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) was created.',
|
|
38
|
+
)
|
|
38
39
|
|
|
39
40
|
export type AccessCodeCreatedEvent = z.infer<typeof access_code_created_event>
|
|
40
41
|
|
|
@@ -42,7 +43,9 @@ export const access_code_changed_event = access_code_event
|
|
|
42
43
|
.extend({
|
|
43
44
|
event_type: z.literal('access_code.changed'),
|
|
44
45
|
})
|
|
45
|
-
.describe(
|
|
46
|
+
.describe(
|
|
47
|
+
'An [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) was changed.',
|
|
48
|
+
)
|
|
46
49
|
|
|
47
50
|
export type AccessCodeChangedEvent = z.infer<typeof access_code_changed_event>
|
|
48
51
|
|
|
@@ -51,7 +54,9 @@ export const access_code_scheduled_on_device_event = access_code_event
|
|
|
51
54
|
event_type: z.literal('access_code.scheduled_on_device'),
|
|
52
55
|
code,
|
|
53
56
|
})
|
|
54
|
-
.describe(
|
|
57
|
+
.describe(
|
|
58
|
+
'An [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) was [scheduled natively](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#native-scheduling) on a device.',
|
|
59
|
+
)
|
|
55
60
|
|
|
56
61
|
export type AccessCodeScheduledOnDeviceEvent = z.infer<
|
|
57
62
|
typeof access_code_scheduled_on_device_event
|
|
@@ -62,7 +67,9 @@ export const access_code_set_on_device_event = access_code_event
|
|
|
62
67
|
event_type: z.literal('access_code.set_on_device'),
|
|
63
68
|
code,
|
|
64
69
|
})
|
|
65
|
-
.describe(
|
|
70
|
+
.describe(
|
|
71
|
+
'An [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) was set on a device.',
|
|
72
|
+
)
|
|
66
73
|
|
|
67
74
|
export type AccessCodeSetOnDeviceEvent = z.infer<
|
|
68
75
|
typeof access_code_set_on_device_event
|
|
@@ -72,7 +79,9 @@ export const access_code_removed_from_device_event = access_code_event
|
|
|
72
79
|
.extend({
|
|
73
80
|
event_type: z.literal('access_code.removed_from_device'),
|
|
74
81
|
})
|
|
75
|
-
.describe(
|
|
82
|
+
.describe(
|
|
83
|
+
'An [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) was removed from a device.',
|
|
84
|
+
)
|
|
76
85
|
|
|
77
86
|
export type AccessCodeRemovedFromDeviceEvent = z.infer<
|
|
78
87
|
typeof access_code_removed_from_device_event
|
|
@@ -83,7 +92,7 @@ export const access_code_delay_in_setting_on_device_event = access_code_event
|
|
|
83
92
|
event_type: z.literal('access_code.delay_in_setting_on_device'),
|
|
84
93
|
})
|
|
85
94
|
.describe(
|
|
86
|
-
'There was an unusually long delay in setting an access code on a device.',
|
|
95
|
+
'There was an unusually long delay in setting an [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) on a device.',
|
|
87
96
|
)
|
|
88
97
|
|
|
89
98
|
export type AccessCodeDelayInSettingOnDeviceEvent = z.infer<
|
|
@@ -94,7 +103,9 @@ export const access_code_failed_to_set_on_device_event = access_code_event
|
|
|
94
103
|
.extend({
|
|
95
104
|
event_type: z.literal('access_code.failed_to_set_on_device'),
|
|
96
105
|
})
|
|
97
|
-
.describe(
|
|
106
|
+
.describe(
|
|
107
|
+
'An [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) failed to be set on a device.',
|
|
108
|
+
)
|
|
98
109
|
|
|
99
110
|
export type AccessCodeFailedToSetOnDeviceEvent = z.infer<
|
|
100
111
|
typeof access_code_failed_to_set_on_device_event
|
|
@@ -105,7 +116,9 @@ export const access_code_deleted_event = access_code_event
|
|
|
105
116
|
event_type: z.literal('access_code.deleted'),
|
|
106
117
|
code: code.nullable(),
|
|
107
118
|
})
|
|
108
|
-
.describe(
|
|
119
|
+
.describe(
|
|
120
|
+
'An [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) was deleted.',
|
|
121
|
+
)
|
|
109
122
|
|
|
110
123
|
export type AccessCodeDeletedEvent = z.infer<typeof access_code_deleted_event>
|
|
111
124
|
|
|
@@ -114,7 +127,7 @@ export const access_code_delay_in_removing_from_device_event = access_code_event
|
|
|
114
127
|
event_type: z.literal('access_code.delay_in_removing_from_device'),
|
|
115
128
|
})
|
|
116
129
|
.describe(
|
|
117
|
-
'There was an unusually long delay in removing an access code from a device.',
|
|
130
|
+
'There was an unusually long delay in removing an [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) from a device.',
|
|
118
131
|
)
|
|
119
132
|
|
|
120
133
|
export type AccessCodeDelayInRemovingFromDeviceEvent = z.infer<
|
|
@@ -125,7 +138,9 @@ export const access_code_failed_to_remove_from_device_event = access_code_event
|
|
|
125
138
|
.extend({
|
|
126
139
|
event_type: z.literal('access_code.failed_to_remove_from_device'),
|
|
127
140
|
})
|
|
128
|
-
.describe(
|
|
141
|
+
.describe(
|
|
142
|
+
'An [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) failed to be removed from a device.',
|
|
143
|
+
)
|
|
129
144
|
|
|
130
145
|
export type AccessCodeFailedToRemoveFromDeviceEvent = z.infer<
|
|
131
146
|
typeof access_code_failed_to_remove_from_device_event
|
|
@@ -135,7 +150,9 @@ export const access_code_modified_external_to_seam_event = access_code_event
|
|
|
135
150
|
.extend({
|
|
136
151
|
event_type: z.literal('access_code.modified_external_to_seam'),
|
|
137
152
|
})
|
|
138
|
-
.describe(
|
|
153
|
+
.describe(
|
|
154
|
+
'An [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) was modified outside of Seam.',
|
|
155
|
+
)
|
|
139
156
|
|
|
140
157
|
export type AccessCodeModifiedExternalToSeamEvent = z.infer<
|
|
141
158
|
typeof access_code_modified_external_to_seam_event
|
|
@@ -145,7 +162,9 @@ export const access_code_deleted_external_to_seam_event = access_code_event
|
|
|
145
162
|
.extend({
|
|
146
163
|
event_type: z.literal('access_code.deleted_external_to_seam'),
|
|
147
164
|
})
|
|
148
|
-
.describe(
|
|
165
|
+
.describe(
|
|
166
|
+
'An [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) was deleted outside of Seam.',
|
|
167
|
+
)
|
|
149
168
|
|
|
150
169
|
export type AccessCodeDeletedExternalToSeamEvent = z.infer<
|
|
151
170
|
typeof access_code_deleted_external_to_seam_event
|
|
@@ -157,7 +176,7 @@ export const access_code_backup_access_code_pulled_event = access_code_event
|
|
|
157
176
|
backup_access_code_id: z.string(),
|
|
158
177
|
})
|
|
159
178
|
.describe(
|
|
160
|
-
'A backup access code was pulled from the backup access code pool and set on a device.',
|
|
179
|
+
'A [backup access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/backup-access-codes) was pulled from the backup access code pool and set on a device.',
|
|
161
180
|
)
|
|
162
181
|
|
|
163
182
|
export type AccessCodeBackupAccessCodePulledEvent = z.infer<
|
|
@@ -170,7 +189,7 @@ export const unmanaged_access_code_converted_to_managed_event =
|
|
|
170
189
|
event_type: z.literal('access_code.unmanaged.converted_to_managed'),
|
|
171
190
|
})
|
|
172
191
|
.describe(
|
|
173
|
-
'An unmanaged access code was successfully
|
|
192
|
+
'An [unmanaged access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/migrating-existing-access-codes) was converted successfully to a managed access code.',
|
|
174
193
|
)
|
|
175
194
|
|
|
176
195
|
export type UnmanagedAccessCodeConvertedToManagedEvent = z.infer<
|
|
@@ -185,7 +204,7 @@ export const unmanaged_access_code_failed_to_convert_to_managed_event =
|
|
|
185
204
|
),
|
|
186
205
|
})
|
|
187
206
|
.describe(
|
|
188
|
-
'An unmanaged access code failed to be converted to a managed access code.',
|
|
207
|
+
'An [unmanaged access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/migrating-existing-access-codes) failed to be converted to a managed access code.',
|
|
189
208
|
)
|
|
190
209
|
|
|
191
210
|
export type UnmanagedAccessCodeFailedToConvertToManagedEvent = z.infer<
|
|
@@ -196,7 +215,9 @@ export const unmanaged_access_code_created_event = access_code_event
|
|
|
196
215
|
.extend({
|
|
197
216
|
event_type: z.literal('access_code.unmanaged.created'),
|
|
198
217
|
})
|
|
199
|
-
.describe(
|
|
218
|
+
.describe(
|
|
219
|
+
'An [unmanaged access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/migrating-existing-access-codes) was created on a device.',
|
|
220
|
+
)
|
|
200
221
|
|
|
201
222
|
export type UnmanagedAccessCodeCreatedEvent = z.infer<
|
|
202
223
|
typeof unmanaged_access_code_created_event
|
|
@@ -206,7 +227,9 @@ export const unmanaged_access_code_removed_event = access_code_event
|
|
|
206
227
|
.extend({
|
|
207
228
|
event_type: z.literal('access_code.unmanaged.removed'),
|
|
208
229
|
})
|
|
209
|
-
.describe(
|
|
230
|
+
.describe(
|
|
231
|
+
'An [unmanaged access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/migrating-existing-access-codes) was removed from a device.',
|
|
232
|
+
)
|
|
210
233
|
|
|
211
234
|
export type UnmanagedAccessCodeRemovedEvent = z.infer<
|
|
212
235
|
typeof unmanaged_access_code_removed_event
|
|
@@ -3,16 +3,17 @@ import { z } from 'zod'
|
|
|
3
3
|
import { common_event } from '../common.js'
|
|
4
4
|
|
|
5
5
|
export const common_acs_event = common_event.extend({
|
|
6
|
-
connected_account_id: z
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
connected_account_id: z
|
|
7
|
+
.string()
|
|
8
|
+
.uuid()
|
|
9
|
+
.optional()
|
|
10
|
+
.describe(
|
|
11
|
+
'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
|
|
12
|
+
),
|
|
13
|
+
acs_system_id: z
|
|
14
|
+
.string()
|
|
15
|
+
.uuid()
|
|
16
|
+
.describe(
|
|
17
|
+
'ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems).',
|
|
18
|
+
),
|
|
18
19
|
})
|
|
@@ -10,7 +10,9 @@ export const acs_credential_deleted_event = acs_credential_event
|
|
|
10
10
|
.extend({
|
|
11
11
|
event_type: z.literal('acs_credential.deleted'),
|
|
12
12
|
})
|
|
13
|
-
.describe(
|
|
13
|
+
.describe(
|
|
14
|
+
'An [ACS credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was deleted.',
|
|
15
|
+
)
|
|
14
16
|
|
|
15
17
|
export type AcsCredentialDeletedEvent = z.infer<
|
|
16
18
|
typeof acs_credential_deleted_event
|
|
@@ -20,7 +22,9 @@ export const acs_credential_issued = acs_credential_event
|
|
|
20
22
|
.extend({
|
|
21
23
|
event_type: z.literal('acs_credential.issued'),
|
|
22
24
|
})
|
|
23
|
-
.describe(
|
|
25
|
+
.describe(
|
|
26
|
+
'An [ACS credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was issued.',
|
|
27
|
+
)
|
|
24
28
|
|
|
25
29
|
export const acs_credential_events = [
|
|
26
30
|
acs_credential_deleted_event,
|
|
@@ -3,14 +3,21 @@ import { z } from 'zod'
|
|
|
3
3
|
import { common_acs_event } from './common.js'
|
|
4
4
|
|
|
5
5
|
const acs_encoder_event = common_acs_event.extend({
|
|
6
|
-
acs_encoder_id: z
|
|
6
|
+
acs_encoder_id: z
|
|
7
|
+
.string()
|
|
8
|
+
.uuid()
|
|
9
|
+
.describe(
|
|
10
|
+
'ID of the [ACS encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).',
|
|
11
|
+
),
|
|
7
12
|
})
|
|
8
13
|
|
|
9
14
|
export const acs_encoder_added_event = acs_encoder_event
|
|
10
15
|
.extend({
|
|
11
16
|
event_type: z.literal('acs_encoder.added'),
|
|
12
17
|
})
|
|
13
|
-
.describe(
|
|
18
|
+
.describe(
|
|
19
|
+
'An [ACS encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) was added.',
|
|
20
|
+
)
|
|
14
21
|
|
|
15
22
|
export type AcsEncoderAddedEvent = z.infer<typeof acs_encoder_added_event>
|
|
16
23
|
|
|
@@ -18,7 +25,9 @@ export const acs_encoder_removed_event = acs_encoder_event
|
|
|
18
25
|
.extend({
|
|
19
26
|
event_type: z.literal('acs_encoder.removed'),
|
|
20
27
|
})
|
|
21
|
-
.describe(
|
|
28
|
+
.describe(
|
|
29
|
+
'An [ACS encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) was removed.',
|
|
30
|
+
)
|
|
22
31
|
|
|
23
32
|
export type AcsEncoderRemovedEvent = z.infer<typeof acs_encoder_removed_event>
|
|
24
33
|
|
|
@@ -8,7 +8,9 @@ export const acs_system_connected_event = acs_system_event
|
|
|
8
8
|
.extend({
|
|
9
9
|
event_type: z.literal('acs_system.connected'),
|
|
10
10
|
})
|
|
11
|
-
.describe(
|
|
11
|
+
.describe(
|
|
12
|
+
'An [ACS system](https://docs.seam.co/latest/capability-guides/access-systems) was connected.',
|
|
13
|
+
)
|
|
12
14
|
|
|
13
15
|
export type AcsSystemConnectedEvent = z.infer<typeof acs_system_connected_event>
|
|
14
16
|
|
|
@@ -16,7 +18,9 @@ export const acs_system_disconnected_event = acs_system_event
|
|
|
16
18
|
.extend({
|
|
17
19
|
event_type: z.literal('acs_system.disconnected'),
|
|
18
20
|
})
|
|
19
|
-
.describe(
|
|
21
|
+
.describe(
|
|
22
|
+
'An [ACS system](https://docs.seam.co/latest/capability-guides/access-systems) was disconnected.',
|
|
23
|
+
)
|
|
20
24
|
|
|
21
25
|
export type AcsSystemDisconnectedEvent = z.infer<
|
|
22
26
|
typeof acs_system_disconnected_event
|
|
@@ -26,7 +30,9 @@ export const acs_system_added_event = acs_system_event
|
|
|
26
30
|
.extend({
|
|
27
31
|
event_type: z.literal('acs_system.added'),
|
|
28
32
|
})
|
|
29
|
-
.describe(
|
|
33
|
+
.describe(
|
|
34
|
+
'An [ACS system](https://docs.seam.co/latest/capability-guides/access-systems) was added.',
|
|
35
|
+
)
|
|
30
36
|
|
|
31
37
|
export type AcsSystemAddedEvent = z.infer<typeof acs_system_added_event>
|
|
32
38
|
|
|
@@ -2,15 +2,21 @@ import { z } from 'zod'
|
|
|
2
2
|
|
|
3
3
|
import { common_acs_event } from './common.js'
|
|
4
4
|
|
|
5
|
-
const acs_user_event = common_acs_event
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const acs_user_event = common_acs_event
|
|
6
|
+
.extend({
|
|
7
|
+
acs_user_id: z.string().uuid(),
|
|
8
|
+
})
|
|
9
|
+
.describe(
|
|
10
|
+
'ID of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
11
|
+
)
|
|
8
12
|
|
|
9
13
|
export const acs_user_deleted_event = acs_user_event
|
|
10
14
|
.extend({
|
|
11
15
|
event_type: z.literal('acs_user.deleted'),
|
|
12
16
|
})
|
|
13
|
-
.describe(
|
|
17
|
+
.describe(
|
|
18
|
+
'An [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was deleted.',
|
|
19
|
+
)
|
|
14
20
|
|
|
15
21
|
export type AcsUserDeletedEvent = z.infer<typeof acs_user_deleted_event>
|
|
16
22
|
|
|
@@ -3,49 +3,47 @@ import { z } from 'zod'
|
|
|
3
3
|
import { common_event } from './common.js'
|
|
4
4
|
|
|
5
5
|
const action_attempt_event = common_event.extend({
|
|
6
|
-
action_attempt_id: z
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
action_type: z.string().describe(
|
|
13
|
-
|
|
14
|
-
title: Action Type
|
|
15
|
-
---
|
|
16
|
-
The type of action.
|
|
17
|
-
`),
|
|
18
|
-
status: z.string().describe(`
|
|
19
|
-
---
|
|
20
|
-
title: Status
|
|
21
|
-
---
|
|
22
|
-
The status of the action.
|
|
23
|
-
`),
|
|
6
|
+
action_attempt_id: z
|
|
7
|
+
.string()
|
|
8
|
+
.uuid()
|
|
9
|
+
.describe(
|
|
10
|
+
'ID of the [action attempt](https://docs.seam.co/latest/core-concepts/action-attempts).',
|
|
11
|
+
),
|
|
12
|
+
action_type: z.string().describe('Type of action.'),
|
|
13
|
+
status: z.string().describe('Status of the action.'),
|
|
24
14
|
})
|
|
25
15
|
|
|
26
16
|
export const action_attempt_lock_door_succeeded_event = action_attempt_event
|
|
27
17
|
.extend({
|
|
28
18
|
event_type: z.literal('action_attempt.lock_door.succeeded'),
|
|
29
19
|
})
|
|
30
|
-
.describe(
|
|
20
|
+
.describe(
|
|
21
|
+
'A lock door [action attempt](https://docs.seam.co/latest/core-concepts/action-attempts) succeeded.',
|
|
22
|
+
)
|
|
31
23
|
|
|
32
24
|
export const action_attempt_lock_door_failed_event = action_attempt_event
|
|
33
25
|
.extend({
|
|
34
26
|
event_type: z.literal('action_attempt.lock_door.failed'),
|
|
35
27
|
})
|
|
36
|
-
.describe(
|
|
28
|
+
.describe(
|
|
29
|
+
'A lock door [action attempt](https://docs.seam.co/latest/core-concepts/action-attempts) failed.',
|
|
30
|
+
)
|
|
37
31
|
|
|
38
32
|
export const action_attempt_unlock_door_succeeded_event = action_attempt_event
|
|
39
33
|
.extend({
|
|
40
34
|
event_type: z.literal('action_attempt.unlock_door.succeeded'),
|
|
41
35
|
})
|
|
42
|
-
.describe(
|
|
36
|
+
.describe(
|
|
37
|
+
'An unlock door [action attempt](https://docs.seam.co/latest/core-concepts/action-attempts) succeeded.',
|
|
38
|
+
)
|
|
43
39
|
|
|
44
40
|
export const action_attempt_unlock_door_failed_event = action_attempt_event
|
|
45
41
|
.extend({
|
|
46
42
|
event_type: z.literal('action_attempt.unlock_door.failed'),
|
|
47
43
|
})
|
|
48
|
-
.describe(
|
|
44
|
+
.describe(
|
|
45
|
+
'An unlock door [action attempt](https://docs.seam.co/latest/core-concepts/action-attempts) failed.',
|
|
46
|
+
)
|
|
49
47
|
|
|
50
48
|
export const action_attempt_events = [
|
|
51
49
|
action_attempt_lock_door_succeeded_event,
|
|
@@ -3,19 +3,21 @@ import { z } from 'zod'
|
|
|
3
3
|
import { common_event } from './common.js'
|
|
4
4
|
|
|
5
5
|
const client_session_event = common_event.extend({
|
|
6
|
-
client_session_id: z
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
client_session_id: z
|
|
7
|
+
.string()
|
|
8
|
+
.uuid()
|
|
9
|
+
.describe(
|
|
10
|
+
'ID of the [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens).',
|
|
11
|
+
),
|
|
12
12
|
})
|
|
13
13
|
|
|
14
14
|
export const client_session_deleted_event = client_session_event
|
|
15
15
|
.extend({
|
|
16
16
|
event_type: z.literal('client_session.deleted'),
|
|
17
17
|
})
|
|
18
|
-
.describe(
|
|
18
|
+
.describe(
|
|
19
|
+
'A [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens) was deleted.',
|
|
20
|
+
)
|
|
19
21
|
|
|
20
22
|
export type ClientSessionDeletedEvent = z.infer<
|
|
21
23
|
typeof client_session_deleted_event
|
|
@@ -11,6 +11,9 @@ export const common_event = z.object({
|
|
|
11
11
|
created_at: z
|
|
12
12
|
.string()
|
|
13
13
|
.datetime()
|
|
14
|
-
.describe('
|
|
15
|
-
occurred_at: z
|
|
14
|
+
.describe('Date and time at which the event was created.'),
|
|
15
|
+
occurred_at: z
|
|
16
|
+
.string()
|
|
17
|
+
.datetime()
|
|
18
|
+
.describe('Date and time at which the event occurred.'),
|
|
16
19
|
})
|
|
@@ -3,27 +3,29 @@ import { z } from 'zod'
|
|
|
3
3
|
import { common_event } from './common.js'
|
|
4
4
|
|
|
5
5
|
const connect_webview_event = common_event.extend({
|
|
6
|
-
connect_webview_id: z
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
connect_webview_id: z
|
|
7
|
+
.string()
|
|
8
|
+
.uuid()
|
|
9
|
+
.describe(
|
|
10
|
+
'ID of the [Connect Webview](https://docs.seam.co/latest/ui-components/connect-webviews).',
|
|
11
|
+
),
|
|
12
12
|
})
|
|
13
13
|
|
|
14
|
-
const connected_account_id = z
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
const connected_account_id = z
|
|
15
|
+
.string()
|
|
16
|
+
.uuid()
|
|
17
|
+
.describe(
|
|
18
|
+
'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
|
|
19
|
+
)
|
|
20
20
|
|
|
21
21
|
export const connect_webview_login_succeeded_event = connect_webview_event
|
|
22
22
|
.extend({
|
|
23
23
|
event_type: z.literal('connect_webview.login_succeeded'),
|
|
24
24
|
connected_account_id,
|
|
25
25
|
})
|
|
26
|
-
.describe(
|
|
26
|
+
.describe(
|
|
27
|
+
'A [Connect Webview](https://docs.seam.co/latest/ui-components/connect-webviews) login succeeded.',
|
|
28
|
+
)
|
|
27
29
|
|
|
28
30
|
export type ConnectWebviewLoginSucceededEvent = z.infer<
|
|
29
31
|
typeof connect_webview_login_succeeded_event
|
|
@@ -33,7 +35,9 @@ export const connect_webview_login_failed_event = connect_webview_event
|
|
|
33
35
|
.extend({
|
|
34
36
|
event_type: z.literal('connect_webview.login_failed'),
|
|
35
37
|
})
|
|
36
|
-
.describe(
|
|
38
|
+
.describe(
|
|
39
|
+
'A [Connect Webview](https://docs.seam.co/latest/ui-components/connect-webviews) login failed.',
|
|
40
|
+
)
|
|
37
41
|
|
|
38
42
|
export type ConnectWebviewLoginFailedEvent = z.infer<
|
|
39
43
|
typeof connect_webview_login_failed_event
|