@seamapi/types 1.739.0 → 1.741.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.
Files changed (28) hide show
  1. package/dist/connect.cjs +355 -4
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1348 -61
  4. package/dist/index.cjs +355 -4
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/acs/acs-access-group.d.ts +62 -0
  7. package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.d.ts +53 -0
  8. package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js +19 -0
  9. package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js.map +1 -1
  10. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +62 -0
  11. package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +53 -0
  12. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +19 -0
  13. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -1
  14. package/lib/seam/connect/models/batch.d.ts +296 -0
  15. package/lib/seam/connect/models/events/devices.d.ts +156 -0
  16. package/lib/seam/connect/models/events/devices.js +25 -0
  17. package/lib/seam/connect/models/events/devices.js.map +1 -1
  18. package/lib/seam/connect/models/events/seam-event.d.ts +77 -1
  19. package/lib/seam/connect/openapi.d.ts +407 -0
  20. package/lib/seam/connect/openapi.js +305 -0
  21. package/lib/seam/connect/openapi.js.map +1 -1
  22. package/lib/seam/connect/route-types.d.ts +388 -4
  23. package/package.json +1 -1
  24. package/src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts +26 -0
  25. package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +26 -0
  26. package/src/lib/seam/connect/models/events/devices.ts +31 -0
  27. package/src/lib/seam/connect/openapi.ts +337 -0
  28. package/src/lib/seam/connect/route-types.ts +456 -0
@@ -135,6 +135,27 @@ const updating_entrance_membership = common_pending_mutation
135
135
  'Seam is in the process of pushing an entrance membership update to the integrated access system.',
136
136
  )
137
137
 
138
+ const deferring_user_membership_update = common_pending_mutation
139
+ .extend({
140
+ mutation_code: z
141
+ .literal('deferring_user_membership_update')
142
+ .describe(
143
+ 'Mutation code to indicate that a scheduled user membership change is pending for this access group.',
144
+ ),
145
+ acs_user_id: z
146
+ .string()
147
+ .uuid()
148
+ .describe('ID of the user involved in the scheduled change.'),
149
+ variant: z
150
+ .enum(['adding', 'removing'])
151
+ .describe(
152
+ 'Whether the user is scheduled to be added to or removed from this access group.',
153
+ ),
154
+ })
155
+ .describe(
156
+ 'A scheduled user membership change is pending for this access group.',
157
+ )
158
+
138
159
  export const acs_access_group_pending_mutations = z.discriminatedUnion(
139
160
  'mutation_code',
140
161
  [
@@ -144,6 +165,7 @@ export const acs_access_group_pending_mutations = z.discriminatedUnion(
144
165
  updating_access_schedule,
145
166
  updating_user_membership,
146
167
  updating_entrance_membership,
168
+ deferring_user_membership_update,
147
169
  ],
148
170
  )
149
171
 
@@ -164,6 +186,10 @@ const _acs_access_group_pending_mutations_map = z.object({
164
186
  .record(z.string().uuid(), updating_entrance_membership)
165
187
  .optional()
166
188
  .nullable(),
189
+ deferring_user_membership_update: z
190
+ .record(z.string().uuid(), deferring_user_membership_update)
191
+ .optional()
192
+ .nullable(),
167
193
  })
168
194
 
169
195
  export type AcsAccessGroupPendingMutationsMap = z.infer<
@@ -158,6 +158,27 @@ const updating_group_membership_mutation = common_pending_mutation
158
158
  'Seam is in the process of pushing an access group membership update to the integrated access system.',
159
159
  )
160
160
 
161
+ const deferring_group_membership_update_mutation = common_pending_mutation
162
+ .extend({
163
+ mutation_code: z
164
+ .literal('deferring_group_membership_update')
165
+ .describe(
166
+ 'Mutation code to indicate that a scheduled access group membership change is pending for this user.',
167
+ ),
168
+ acs_access_group_id: z
169
+ .string()
170
+ .uuid()
171
+ .describe('ID of the access group involved in the scheduled change.'),
172
+ variant: z
173
+ .enum(['adding', 'removing'])
174
+ .describe(
175
+ 'Whether the user is scheduled to be added to or removed from the access group.',
176
+ ),
177
+ })
178
+ .describe(
179
+ 'A scheduled access group membership change is pending for this user.',
180
+ )
181
+
161
182
  export const acs_user_pending_mutations = z.discriminatedUnion(
162
183
  'mutation_code',
163
184
  [
@@ -168,6 +189,7 @@ export const acs_user_pending_mutations = z.discriminatedUnion(
168
189
  updating_access_schedule_mutation,
169
190
  updating_suspension_state_mutation,
170
191
  updating_group_membership_mutation,
192
+ deferring_group_membership_update_mutation,
171
193
  ],
172
194
  )
173
195
 
@@ -184,6 +206,10 @@ const _acs_user_pending_mutations_map = z.object({
184
206
  .record(z.string().uuid(), updating_group_membership_mutation)
185
207
  .optional()
186
208
  .nullable(),
209
+ deferring_group_membership_update: z
210
+ .record(z.string().uuid(), deferring_group_membership_update_mutation)
211
+ .optional()
212
+ .nullable(),
187
213
  updating_suspension_state: updating_suspension_state_mutation
188
214
  .optional()
189
215
  .nullable(),
@@ -706,6 +706,35 @@ export const device_name_changed_event = device_event.extend({
706
706
 
707
707
  export type DeviceNameChangedEvent = z.infer<typeof device_name_changed_event>
708
708
 
709
+ export const camera_activated_event = device_event.extend({
710
+ event_type: z.literal('camera.activated'),
711
+ activation_reason: z
712
+ .enum(['motion_detected'])
713
+ .describe('The reason the camera was activated.'),
714
+ motion_sub_type: z
715
+ .enum(['human', 'vehicle', 'package', 'other'])
716
+ .optional()
717
+ .describe('Sub-type of motion detected, if available.'),
718
+ }).describe(`
719
+ ---
720
+ route_path: /devices
721
+ ---
722
+ A [camera](https://docs.seam.co/latest/core-concepts/devices) was activated, for example, by motion detection.
723
+ `)
724
+
725
+ export type CameraActivatedEvent = z.infer<typeof camera_activated_event>
726
+
727
+ export const device_doorbell_rang_event = device_event.extend({
728
+ event_type: z.literal('device.doorbell_rang'),
729
+ }).describe(`
730
+ ---
731
+ route_path: /devices
732
+ ---
733
+ A doorbell button was pressed on a [device](https://docs.seam.co/latest/core-concepts/devices).
734
+ `)
735
+
736
+ export type DeviceDoorbellRangEvent = z.infer<typeof device_doorbell_rang_event>
737
+
709
738
  export const device_events = [
710
739
  device_connected_event,
711
740
  device_added_event,
@@ -740,4 +769,6 @@ export const device_events = [
740
769
  temperature_reached_set_point_event,
741
770
  temperature_changed_event,
742
771
  device_name_changed_event,
772
+ camera_activated_event,
773
+ device_doorbell_rang_event,
743
774
  ] as const
@@ -3054,6 +3054,48 @@ export default {
3054
3054
  ],
3055
3055
  type: 'object',
3056
3056
  },
3057
+ {
3058
+ description:
3059
+ 'A scheduled user membership change is pending for this access group.',
3060
+ properties: {
3061
+ acs_user_id: {
3062
+ description:
3063
+ 'ID of the user involved in the scheduled change.',
3064
+ format: 'uuid',
3065
+ type: 'string',
3066
+ },
3067
+ created_at: {
3068
+ description:
3069
+ 'Date and time at which the mutation was created.',
3070
+ format: 'date-time',
3071
+ type: 'string',
3072
+ },
3073
+ message: {
3074
+ description: 'Detailed description of the mutation.',
3075
+ type: 'string',
3076
+ },
3077
+ mutation_code: {
3078
+ description:
3079
+ 'Mutation code to indicate that a scheduled user membership change is pending for this access group.',
3080
+ enum: ['deferring_user_membership_update'],
3081
+ type: 'string',
3082
+ },
3083
+ variant: {
3084
+ description:
3085
+ 'Whether the user is scheduled to be added to or removed from this access group.',
3086
+ enum: ['adding', 'removing'],
3087
+ type: 'string',
3088
+ },
3089
+ },
3090
+ required: [
3091
+ 'created_at',
3092
+ 'message',
3093
+ 'mutation_code',
3094
+ 'acs_user_id',
3095
+ 'variant',
3096
+ ],
3097
+ type: 'object',
3098
+ },
3057
3099
  ],
3058
3100
  },
3059
3101
  type: 'array',
@@ -5060,6 +5102,48 @@ export default {
5060
5102
  ],
5061
5103
  type: 'object',
5062
5104
  },
5105
+ {
5106
+ description:
5107
+ 'A scheduled access group membership change is pending for this user.',
5108
+ properties: {
5109
+ acs_access_group_id: {
5110
+ description:
5111
+ 'ID of the access group involved in the scheduled change.',
5112
+ format: 'uuid',
5113
+ type: 'string',
5114
+ },
5115
+ created_at: {
5116
+ description:
5117
+ 'Date and time at which the mutation was created.',
5118
+ format: 'date-time',
5119
+ type: 'string',
5120
+ },
5121
+ message: {
5122
+ description: 'Detailed description of the mutation.',
5123
+ type: 'string',
5124
+ },
5125
+ mutation_code: {
5126
+ description:
5127
+ 'Mutation code to indicate that a scheduled access group membership change is pending for this user.',
5128
+ enum: ['deferring_group_membership_update'],
5129
+ type: 'string',
5130
+ },
5131
+ variant: {
5132
+ description:
5133
+ 'Whether the user is scheduled to be added to or removed from the access group.',
5134
+ enum: ['adding', 'removing'],
5135
+ type: 'string',
5136
+ },
5137
+ },
5138
+ required: [
5139
+ 'created_at',
5140
+ 'message',
5141
+ 'mutation_code',
5142
+ 'acs_access_group_id',
5143
+ 'variant',
5144
+ ],
5145
+ type: 'object',
5146
+ },
5063
5147
  ],
5064
5148
  },
5065
5149
  type: 'array',
@@ -23002,6 +23086,159 @@ export default {
23002
23086
  type: 'object',
23003
23087
  'x-route-path': '/devices',
23004
23088
  },
23089
+ {
23090
+ description:
23091
+ 'A [camera](https://docs.seam.co/latest/core-concepts/devices) was activated, for example, by motion detection.',
23092
+ properties: {
23093
+ activation_reason: {
23094
+ description: 'The reason the camera was activated.',
23095
+ enum: ['motion_detected'],
23096
+ type: 'string',
23097
+ },
23098
+ connected_account_custom_metadata: {
23099
+ additionalProperties: {
23100
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
23101
+ },
23102
+ description:
23103
+ 'Custom metadata of the connected account, present when connected_account_id is provided.',
23104
+ type: 'object',
23105
+ },
23106
+ connected_account_id: {
23107
+ description:
23108
+ 'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.',
23109
+ format: 'uuid',
23110
+ type: 'string',
23111
+ },
23112
+ created_at: {
23113
+ description: 'Date and time at which the event was created.',
23114
+ format: 'date-time',
23115
+ type: 'string',
23116
+ },
23117
+ customer_key: {
23118
+ description:
23119
+ 'The customer key associated with the device, if any.',
23120
+ type: 'string',
23121
+ },
23122
+ device_custom_metadata: {
23123
+ additionalProperties: {
23124
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
23125
+ },
23126
+ description:
23127
+ 'Custom metadata of the device, present when device_id is provided.',
23128
+ type: 'object',
23129
+ },
23130
+ device_id: {
23131
+ description: 'ID of the affected device.',
23132
+ format: 'uuid',
23133
+ type: 'string',
23134
+ },
23135
+ event_id: {
23136
+ description: 'ID of the event.',
23137
+ format: 'uuid',
23138
+ type: 'string',
23139
+ },
23140
+ event_type: { enum: ['camera.activated'], type: 'string' },
23141
+ motion_sub_type: {
23142
+ description: 'Sub-type of motion detected, if available.',
23143
+ enum: ['human', 'vehicle', 'package', 'other'],
23144
+ type: 'string',
23145
+ },
23146
+ occurred_at: {
23147
+ description: 'Date and time at which the event occurred.',
23148
+ format: 'date-time',
23149
+ type: 'string',
23150
+ },
23151
+ workspace_id: {
23152
+ description:
23153
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
23154
+ format: 'uuid',
23155
+ type: 'string',
23156
+ },
23157
+ },
23158
+ required: [
23159
+ 'event_id',
23160
+ 'workspace_id',
23161
+ 'created_at',
23162
+ 'occurred_at',
23163
+ 'device_id',
23164
+ 'connected_account_id',
23165
+ 'event_type',
23166
+ 'activation_reason',
23167
+ ],
23168
+ type: 'object',
23169
+ 'x-route-path': '/devices',
23170
+ },
23171
+ {
23172
+ description:
23173
+ 'A doorbell button was pressed on a [device](https://docs.seam.co/latest/core-concepts/devices).',
23174
+ properties: {
23175
+ connected_account_custom_metadata: {
23176
+ additionalProperties: {
23177
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
23178
+ },
23179
+ description:
23180
+ 'Custom metadata of the connected account, present when connected_account_id is provided.',
23181
+ type: 'object',
23182
+ },
23183
+ connected_account_id: {
23184
+ description:
23185
+ 'ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.',
23186
+ format: 'uuid',
23187
+ type: 'string',
23188
+ },
23189
+ created_at: {
23190
+ description: 'Date and time at which the event was created.',
23191
+ format: 'date-time',
23192
+ type: 'string',
23193
+ },
23194
+ customer_key: {
23195
+ description:
23196
+ 'The customer key associated with the device, if any.',
23197
+ type: 'string',
23198
+ },
23199
+ device_custom_metadata: {
23200
+ additionalProperties: {
23201
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
23202
+ },
23203
+ description:
23204
+ 'Custom metadata of the device, present when device_id is provided.',
23205
+ type: 'object',
23206
+ },
23207
+ device_id: {
23208
+ description: 'ID of the affected device.',
23209
+ format: 'uuid',
23210
+ type: 'string',
23211
+ },
23212
+ event_id: {
23213
+ description: 'ID of the event.',
23214
+ format: 'uuid',
23215
+ type: 'string',
23216
+ },
23217
+ event_type: { enum: ['device.doorbell_rang'], type: 'string' },
23218
+ occurred_at: {
23219
+ description: 'Date and time at which the event occurred.',
23220
+ format: 'date-time',
23221
+ type: 'string',
23222
+ },
23223
+ workspace_id: {
23224
+ description:
23225
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.',
23226
+ format: 'uuid',
23227
+ type: 'string',
23228
+ },
23229
+ },
23230
+ required: [
23231
+ 'event_id',
23232
+ 'workspace_id',
23233
+ 'created_at',
23234
+ 'occurred_at',
23235
+ 'device_id',
23236
+ 'connected_account_id',
23237
+ 'event_type',
23238
+ ],
23239
+ type: 'object',
23240
+ 'x-route-path': '/devices',
23241
+ },
23005
23242
  {
23006
23243
  description:
23007
23244
  'An [enrollment automation](https://docs.seam.co/latest/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) was deleted.',
@@ -27151,6 +27388,48 @@ export default {
27151
27388
  ],
27152
27389
  type: 'object',
27153
27390
  },
27391
+ {
27392
+ description:
27393
+ 'A scheduled user membership change is pending for this access group.',
27394
+ properties: {
27395
+ acs_user_id: {
27396
+ description:
27397
+ 'ID of the user involved in the scheduled change.',
27398
+ format: 'uuid',
27399
+ type: 'string',
27400
+ },
27401
+ created_at: {
27402
+ description:
27403
+ 'Date and time at which the mutation was created.',
27404
+ format: 'date-time',
27405
+ type: 'string',
27406
+ },
27407
+ message: {
27408
+ description: 'Detailed description of the mutation.',
27409
+ type: 'string',
27410
+ },
27411
+ mutation_code: {
27412
+ description:
27413
+ 'Mutation code to indicate that a scheduled user membership change is pending for this access group.',
27414
+ enum: ['deferring_user_membership_update'],
27415
+ type: 'string',
27416
+ },
27417
+ variant: {
27418
+ description:
27419
+ 'Whether the user is scheduled to be added to or removed from this access group.',
27420
+ enum: ['adding', 'removing'],
27421
+ type: 'string',
27422
+ },
27423
+ },
27424
+ required: [
27425
+ 'created_at',
27426
+ 'message',
27427
+ 'mutation_code',
27428
+ 'acs_user_id',
27429
+ 'variant',
27430
+ ],
27431
+ type: 'object',
27432
+ },
27154
27433
  ],
27155
27434
  },
27156
27435
  type: 'array',
@@ -28248,6 +28527,48 @@ export default {
28248
28527
  ],
28249
28528
  type: 'object',
28250
28529
  },
28530
+ {
28531
+ description:
28532
+ 'A scheduled access group membership change is pending for this user.',
28533
+ properties: {
28534
+ acs_access_group_id: {
28535
+ description:
28536
+ 'ID of the access group involved in the scheduled change.',
28537
+ format: 'uuid',
28538
+ type: 'string',
28539
+ },
28540
+ created_at: {
28541
+ description:
28542
+ 'Date and time at which the mutation was created.',
28543
+ format: 'date-time',
28544
+ type: 'string',
28545
+ },
28546
+ message: {
28547
+ description: 'Detailed description of the mutation.',
28548
+ type: 'string',
28549
+ },
28550
+ mutation_code: {
28551
+ description:
28552
+ 'Mutation code to indicate that a scheduled access group membership change is pending for this user.',
28553
+ enum: ['deferring_group_membership_update'],
28554
+ type: 'string',
28555
+ },
28556
+ variant: {
28557
+ description:
28558
+ 'Whether the user is scheduled to be added to or removed from the access group.',
28559
+ enum: ['adding', 'removing'],
28560
+ type: 'string',
28561
+ },
28562
+ },
28563
+ required: [
28564
+ 'created_at',
28565
+ 'message',
28566
+ 'mutation_code',
28567
+ 'acs_access_group_id',
28568
+ 'variant',
28569
+ ],
28570
+ type: 'object',
28571
+ },
28251
28572
  ],
28252
28573
  },
28253
28574
  type: 'array',
@@ -54746,6 +55067,8 @@ export default {
54746
55067
  'thermostat.temperature_reached_set_point',
54747
55068
  'thermostat.temperature_changed',
54748
55069
  'device.name_changed',
55070
+ 'camera.activated',
55071
+ 'device.doorbell_rang',
54749
55072
  'enrollment_automation.deleted',
54750
55073
  'phone.deactivated',
54751
55074
  'space.device_membership_changed',
@@ -54858,6 +55181,8 @@ export default {
54858
55181
  'thermostat.temperature_reached_set_point',
54859
55182
  'thermostat.temperature_changed',
54860
55183
  'device.name_changed',
55184
+ 'camera.activated',
55185
+ 'device.doorbell_rang',
54861
55186
  'enrollment_automation.deleted',
54862
55187
  'phone.deactivated',
54863
55188
  'space.device_membership_changed',
@@ -55303,6 +55628,8 @@ export default {
55303
55628
  'thermostat.temperature_reached_set_point',
55304
55629
  'thermostat.temperature_changed',
55305
55630
  'device.name_changed',
55631
+ 'camera.activated',
55632
+ 'device.doorbell_rang',
55306
55633
  'enrollment_automation.deleted',
55307
55634
  'phone.deactivated',
55308
55635
  'space.device_membership_changed',
@@ -55411,6 +55738,8 @@ export default {
55411
55738
  'thermostat.temperature_reached_set_point',
55412
55739
  'thermostat.temperature_changed',
55413
55740
  'device.name_changed',
55741
+ 'camera.activated',
55742
+ 'device.doorbell_rang',
55414
55743
  'enrollment_automation.deleted',
55415
55744
  'phone.deactivated',
55416
55745
  'space.device_membership_changed',
@@ -64525,6 +64854,8 @@ export default {
64525
64854
  'thermostat.temperature_reached_set_point',
64526
64855
  'thermostat.temperature_changed',
64527
64856
  'device.name_changed',
64857
+ 'camera.activated',
64858
+ 'device.doorbell_rang',
64528
64859
  'enrollment_automation.deleted',
64529
64860
  'phone.deactivated',
64530
64861
  'space.device_membership_changed',
@@ -64638,6 +64969,8 @@ export default {
64638
64969
  'thermostat.temperature_reached_set_point',
64639
64970
  'thermostat.temperature_changed',
64640
64971
  'device.name_changed',
64972
+ 'camera.activated',
64973
+ 'device.doorbell_rang',
64641
64974
  'enrollment_automation.deleted',
64642
64975
  'phone.deactivated',
64643
64976
  'space.device_membership_changed',
@@ -64814,6 +65147,8 @@ export default {
64814
65147
  'thermostat.temperature_reached_set_point',
64815
65148
  'thermostat.temperature_changed',
64816
65149
  'device.name_changed',
65150
+ 'camera.activated',
65151
+ 'device.doorbell_rang',
64817
65152
  'enrollment_automation.deleted',
64818
65153
  'phone.deactivated',
64819
65154
  'space.device_membership_changed',
@@ -64922,6 +65257,8 @@ export default {
64922
65257
  'thermostat.temperature_reached_set_point',
64923
65258
  'thermostat.temperature_changed',
64924
65259
  'device.name_changed',
65260
+ 'camera.activated',
65261
+ 'device.doorbell_rang',
64925
65262
  'enrollment_automation.deleted',
64926
65263
  'phone.deactivated',
64927
65264
  'space.device_membership_changed',