@seamapi/types 1.913.0 → 1.915.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.
@@ -100,6 +100,86 @@ export const access_code_changed_event = access_code_event.extend({
100
100
 
101
101
  export type AccessCodeChangedEvent = z.infer<typeof access_code_changed_event>
102
102
 
103
+ export const access_code_name_changed_event = access_code_event.extend({
104
+ event_type: z.literal('access_code.name_changed'),
105
+ from: z
106
+ .object({
107
+ name: z.string().nullable().describe('Previous name of the access code.'),
108
+ })
109
+ .describe('Previous access code name configuration.'),
110
+ to: z
111
+ .object({
112
+ name: z.string().nullable().describe('New name of the access code.'),
113
+ })
114
+ .describe('New access code name configuration.'),
115
+ description: z
116
+ .string()
117
+ .describe('Human-readable description of the change and its source.'),
118
+ }).describe(`
119
+ ---
120
+ route_path: /access_codes
121
+ ---
122
+ The name of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.
123
+ `)
124
+
125
+ export type AccessCodeNameChangedEvent = z.infer<
126
+ typeof access_code_name_changed_event
127
+ >
128
+
129
+ export const access_code_code_changed_event = access_code_event.extend({
130
+ event_type: z.literal('access_code.code_changed'),
131
+ from: z
132
+ .object({
133
+ code: z.string().nullable().describe('Previous pin code.'),
134
+ })
135
+ .describe('Previous pin code configuration.'),
136
+ to: z
137
+ .object({
138
+ code: z.string().nullable().describe('New pin code.'),
139
+ })
140
+ .describe('New pin code configuration.'),
141
+ description: z
142
+ .string()
143
+ .describe('Human-readable description of the change and its source.'),
144
+ }).describe(`
145
+ ---
146
+ route_path: /access_codes
147
+ ---
148
+ The pin code of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.
149
+ `)
150
+
151
+ export type AccessCodeCodeChangedEvent = z.infer<
152
+ typeof access_code_code_changed_event
153
+ >
154
+
155
+ export const access_code_time_frame_changed_event = access_code_event.extend({
156
+ event_type: z.literal('access_code.time_frame_changed'),
157
+ from: z
158
+ .object({
159
+ starts_at: z.string().nullable().describe('Previous start time.'),
160
+ ends_at: z.string().nullable().describe('Previous end time.'),
161
+ })
162
+ .describe('Previous time frame configuration.'),
163
+ to: z
164
+ .object({
165
+ starts_at: z.string().nullable().describe('New start time.'),
166
+ ends_at: z.string().nullable().describe('New end time.'),
167
+ })
168
+ .describe('New time frame configuration.'),
169
+ description: z
170
+ .string()
171
+ .describe('Human-readable description of the change and its source.'),
172
+ }).describe(`
173
+ ---
174
+ route_path: /access_codes
175
+ ---
176
+ The time frame of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.
177
+ `)
178
+
179
+ export type AccessCodeTimeFrameChangedEvent = z.infer<
180
+ typeof access_code_time_frame_changed_event
181
+ >
182
+
103
183
  export const access_code_scheduled_on_device_event = access_code_event.extend({
104
184
  event_type: z.literal('access_code.scheduled_on_device'),
105
185
  code,
@@ -317,6 +397,9 @@ export type UnmanagedAccessCodeRemovedEvent = z.infer<
317
397
  export const access_code_events = [
318
398
  access_code_created_event,
319
399
  access_code_changed_event,
400
+ access_code_name_changed_event,
401
+ access_code_code_changed_event,
402
+ access_code_time_frame_changed_event,
320
403
  access_code_scheduled_on_device_event,
321
404
  access_code_set_on_device_event,
322
405
  access_code_removed_from_device_event,
@@ -17354,6 +17354,340 @@ const openapi: OpenAPISpec = {
17354
17354
  type: 'object',
17355
17355
  'x-route-path': '/access_codes',
17356
17356
  },
17357
+ {
17358
+ description:
17359
+ 'The name of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.',
17360
+ properties: {
17361
+ access_code_id: {
17362
+ description: 'ID of the affected access code.',
17363
+ format: 'uuid',
17364
+ type: 'string',
17365
+ },
17366
+ connected_account_custom_metadata: {
17367
+ additionalProperties: {
17368
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
17369
+ },
17370
+ description:
17371
+ 'Custom metadata of the connected account, present when connected_account_id is provided.',
17372
+ type: 'object',
17373
+ },
17374
+ connected_account_id: {
17375
+ description:
17376
+ 'ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code.',
17377
+ format: 'uuid',
17378
+ type: 'string',
17379
+ },
17380
+ created_at: {
17381
+ description: 'Date and time at which the event was created.',
17382
+ format: 'date-time',
17383
+ type: 'string',
17384
+ },
17385
+ description: {
17386
+ description:
17387
+ 'Human-readable description of the change and its source.',
17388
+ type: 'string',
17389
+ },
17390
+ device_custom_metadata: {
17391
+ additionalProperties: {
17392
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
17393
+ },
17394
+ description:
17395
+ 'Custom metadata of the device, present when device_id is provided.',
17396
+ type: 'object',
17397
+ },
17398
+ device_id: {
17399
+ description:
17400
+ 'ID of the device associated with the affected access code.',
17401
+ format: 'uuid',
17402
+ type: 'string',
17403
+ },
17404
+ event_id: {
17405
+ description: 'ID of the event.',
17406
+ format: 'uuid',
17407
+ type: 'string',
17408
+ },
17409
+ event_type: {
17410
+ enum: ['access_code.name_changed'],
17411
+ type: 'string',
17412
+ },
17413
+ from: {
17414
+ description: 'Previous access code name configuration.',
17415
+ properties: {
17416
+ name: {
17417
+ description: 'Previous name of the access code.',
17418
+ nullable: true,
17419
+ type: 'string',
17420
+ },
17421
+ },
17422
+ required: ['name'],
17423
+ type: 'object',
17424
+ },
17425
+ occurred_at: {
17426
+ description: 'Date and time at which the event occurred.',
17427
+ format: 'date-time',
17428
+ type: 'string',
17429
+ },
17430
+ to: {
17431
+ description: 'New access code name configuration.',
17432
+ properties: {
17433
+ name: {
17434
+ description: 'New name of the access code.',
17435
+ nullable: true,
17436
+ type: 'string',
17437
+ },
17438
+ },
17439
+ required: ['name'],
17440
+ type: 'object',
17441
+ },
17442
+ workspace_id: {
17443
+ description:
17444
+ 'ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event.',
17445
+ format: 'uuid',
17446
+ type: 'string',
17447
+ },
17448
+ },
17449
+ required: [
17450
+ 'event_id',
17451
+ 'workspace_id',
17452
+ 'created_at',
17453
+ 'occurred_at',
17454
+ 'access_code_id',
17455
+ 'device_id',
17456
+ 'connected_account_id',
17457
+ 'event_type',
17458
+ 'from',
17459
+ 'to',
17460
+ 'description',
17461
+ ],
17462
+ type: 'object',
17463
+ 'x-route-path': '/access_codes',
17464
+ },
17465
+ {
17466
+ description:
17467
+ 'The pin code of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.',
17468
+ properties: {
17469
+ access_code_id: {
17470
+ description: 'ID of the affected access code.',
17471
+ format: 'uuid',
17472
+ type: 'string',
17473
+ },
17474
+ connected_account_custom_metadata: {
17475
+ additionalProperties: {
17476
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
17477
+ },
17478
+ description:
17479
+ 'Custom metadata of the connected account, present when connected_account_id is provided.',
17480
+ type: 'object',
17481
+ },
17482
+ connected_account_id: {
17483
+ description:
17484
+ 'ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code.',
17485
+ format: 'uuid',
17486
+ type: 'string',
17487
+ },
17488
+ created_at: {
17489
+ description: 'Date and time at which the event was created.',
17490
+ format: 'date-time',
17491
+ type: 'string',
17492
+ },
17493
+ description: {
17494
+ description:
17495
+ 'Human-readable description of the change and its source.',
17496
+ type: 'string',
17497
+ },
17498
+ device_custom_metadata: {
17499
+ additionalProperties: {
17500
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
17501
+ },
17502
+ description:
17503
+ 'Custom metadata of the device, present when device_id is provided.',
17504
+ type: 'object',
17505
+ },
17506
+ device_id: {
17507
+ description:
17508
+ 'ID of the device associated with the affected access code.',
17509
+ format: 'uuid',
17510
+ type: 'string',
17511
+ },
17512
+ event_id: {
17513
+ description: 'ID of the event.',
17514
+ format: 'uuid',
17515
+ type: 'string',
17516
+ },
17517
+ event_type: {
17518
+ enum: ['access_code.code_changed'],
17519
+ type: 'string',
17520
+ },
17521
+ from: {
17522
+ description: 'Previous pin code configuration.',
17523
+ properties: {
17524
+ code: {
17525
+ description: 'Previous pin code.',
17526
+ nullable: true,
17527
+ type: 'string',
17528
+ },
17529
+ },
17530
+ required: ['code'],
17531
+ type: 'object',
17532
+ },
17533
+ occurred_at: {
17534
+ description: 'Date and time at which the event occurred.',
17535
+ format: 'date-time',
17536
+ type: 'string',
17537
+ },
17538
+ to: {
17539
+ description: 'New pin code configuration.',
17540
+ properties: {
17541
+ code: {
17542
+ description: 'New pin code.',
17543
+ nullable: true,
17544
+ type: 'string',
17545
+ },
17546
+ },
17547
+ required: ['code'],
17548
+ type: 'object',
17549
+ },
17550
+ workspace_id: {
17551
+ description:
17552
+ 'ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event.',
17553
+ format: 'uuid',
17554
+ type: 'string',
17555
+ },
17556
+ },
17557
+ required: [
17558
+ 'event_id',
17559
+ 'workspace_id',
17560
+ 'created_at',
17561
+ 'occurred_at',
17562
+ 'access_code_id',
17563
+ 'device_id',
17564
+ 'connected_account_id',
17565
+ 'event_type',
17566
+ 'from',
17567
+ 'to',
17568
+ 'description',
17569
+ ],
17570
+ type: 'object',
17571
+ 'x-route-path': '/access_codes',
17572
+ },
17573
+ {
17574
+ description:
17575
+ 'The time frame of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.',
17576
+ properties: {
17577
+ access_code_id: {
17578
+ description: 'ID of the affected access code.',
17579
+ format: 'uuid',
17580
+ type: 'string',
17581
+ },
17582
+ connected_account_custom_metadata: {
17583
+ additionalProperties: {
17584
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
17585
+ },
17586
+ description:
17587
+ 'Custom metadata of the connected account, present when connected_account_id is provided.',
17588
+ type: 'object',
17589
+ },
17590
+ connected_account_id: {
17591
+ description:
17592
+ 'ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) associated with the affected access code.',
17593
+ format: 'uuid',
17594
+ type: 'string',
17595
+ },
17596
+ created_at: {
17597
+ description: 'Date and time at which the event was created.',
17598
+ format: 'date-time',
17599
+ type: 'string',
17600
+ },
17601
+ description: {
17602
+ description:
17603
+ 'Human-readable description of the change and its source.',
17604
+ type: 'string',
17605
+ },
17606
+ device_custom_metadata: {
17607
+ additionalProperties: {
17608
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
17609
+ },
17610
+ description:
17611
+ 'Custom metadata of the device, present when device_id is provided.',
17612
+ type: 'object',
17613
+ },
17614
+ device_id: {
17615
+ description:
17616
+ 'ID of the device associated with the affected access code.',
17617
+ format: 'uuid',
17618
+ type: 'string',
17619
+ },
17620
+ event_id: {
17621
+ description: 'ID of the event.',
17622
+ format: 'uuid',
17623
+ type: 'string',
17624
+ },
17625
+ event_type: {
17626
+ enum: ['access_code.time_frame_changed'],
17627
+ type: 'string',
17628
+ },
17629
+ from: {
17630
+ description: 'Previous time frame configuration.',
17631
+ properties: {
17632
+ ends_at: {
17633
+ description: 'Previous end time.',
17634
+ nullable: true,
17635
+ type: 'string',
17636
+ },
17637
+ starts_at: {
17638
+ description: 'Previous start time.',
17639
+ nullable: true,
17640
+ type: 'string',
17641
+ },
17642
+ },
17643
+ required: ['starts_at', 'ends_at'],
17644
+ type: 'object',
17645
+ },
17646
+ occurred_at: {
17647
+ description: 'Date and time at which the event occurred.',
17648
+ format: 'date-time',
17649
+ type: 'string',
17650
+ },
17651
+ to: {
17652
+ description: 'New time frame configuration.',
17653
+ properties: {
17654
+ ends_at: {
17655
+ description: 'New end time.',
17656
+ nullable: true,
17657
+ type: 'string',
17658
+ },
17659
+ starts_at: {
17660
+ description: 'New start time.',
17661
+ nullable: true,
17662
+ type: 'string',
17663
+ },
17664
+ },
17665
+ required: ['starts_at', 'ends_at'],
17666
+ type: 'object',
17667
+ },
17668
+ workspace_id: {
17669
+ description:
17670
+ 'ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the event.',
17671
+ format: 'uuid',
17672
+ type: 'string',
17673
+ },
17674
+ },
17675
+ required: [
17676
+ 'event_id',
17677
+ 'workspace_id',
17678
+ 'created_at',
17679
+ 'occurred_at',
17680
+ 'access_code_id',
17681
+ 'device_id',
17682
+ 'connected_account_id',
17683
+ 'event_type',
17684
+ 'from',
17685
+ 'to',
17686
+ 'description',
17687
+ ],
17688
+ type: 'object',
17689
+ 'x-route-path': '/access_codes',
17690
+ },
17357
17691
  {
17358
17692
  description:
17359
17693
  'An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was [scheduled natively](https://docs.seam.co/low-level-apis/smart-locks/access-codes#native-scheduling) on a device.',
@@ -59843,6 +60177,9 @@ const openapi: OpenAPISpec = {
59843
60177
  enum: [
59844
60178
  'access_code.created',
59845
60179
  'access_code.changed',
60180
+ 'access_code.name_changed',
60181
+ 'access_code.code_changed',
60182
+ 'access_code.time_frame_changed',
59846
60183
  'access_code.scheduled_on_device',
59847
60184
  'access_code.set_on_device',
59848
60185
  'access_code.removed_from_device',
@@ -59957,6 +60294,9 @@ const openapi: OpenAPISpec = {
59957
60294
  enum: [
59958
60295
  'access_code.created',
59959
60296
  'access_code.changed',
60297
+ 'access_code.name_changed',
60298
+ 'access_code.code_changed',
60299
+ 'access_code.time_frame_changed',
59960
60300
  'access_code.scheduled_on_device',
59961
60301
  'access_code.set_on_device',
59962
60302
  'access_code.removed_from_device',
@@ -60404,6 +60744,9 @@ const openapi: OpenAPISpec = {
60404
60744
  enum: [
60405
60745
  'access_code.created',
60406
60746
  'access_code.changed',
60747
+ 'access_code.name_changed',
60748
+ 'access_code.code_changed',
60749
+ 'access_code.time_frame_changed',
60407
60750
  'access_code.scheduled_on_device',
60408
60751
  'access_code.set_on_device',
60409
60752
  'access_code.removed_from_device',
@@ -60514,6 +60857,9 @@ const openapi: OpenAPISpec = {
60514
60857
  enum: [
60515
60858
  'access_code.created',
60516
60859
  'access_code.changed',
60860
+ 'access_code.name_changed',
60861
+ 'access_code.code_changed',
60862
+ 'access_code.time_frame_changed',
60517
60863
  'access_code.scheduled_on_device',
60518
60864
  'access_code.set_on_device',
60519
60865
  'access_code.removed_from_device',
@@ -70782,6 +71128,9 @@ const openapi: OpenAPISpec = {
70782
71128
  enum: [
70783
71129
  'access_code.created',
70784
71130
  'access_code.changed',
71131
+ 'access_code.name_changed',
71132
+ 'access_code.code_changed',
71133
+ 'access_code.time_frame_changed',
70785
71134
  'access_code.scheduled_on_device',
70786
71135
  'access_code.set_on_device',
70787
71136
  'access_code.removed_from_device',
@@ -70897,6 +71246,9 @@ const openapi: OpenAPISpec = {
70897
71246
  enum: [
70898
71247
  'access_code.created',
70899
71248
  'access_code.changed',
71249
+ 'access_code.name_changed',
71250
+ 'access_code.code_changed',
71251
+ 'access_code.time_frame_changed',
70900
71252
  'access_code.scheduled_on_device',
70901
71253
  'access_code.set_on_device',
70902
71254
  'access_code.removed_from_device',
@@ -71075,6 +71427,9 @@ const openapi: OpenAPISpec = {
71075
71427
  enum: [
71076
71428
  'access_code.created',
71077
71429
  'access_code.changed',
71430
+ 'access_code.name_changed',
71431
+ 'access_code.code_changed',
71432
+ 'access_code.time_frame_changed',
71078
71433
  'access_code.scheduled_on_device',
71079
71434
  'access_code.set_on_device',
71080
71435
  'access_code.removed_from_device',
@@ -71185,6 +71540,9 @@ const openapi: OpenAPISpec = {
71185
71540
  enum: [
71186
71541
  'access_code.created',
71187
71542
  'access_code.changed',
71543
+ 'access_code.name_changed',
71544
+ 'access_code.code_changed',
71545
+ 'access_code.time_frame_changed',
71188
71546
  'access_code.scheduled_on_device',
71189
71547
  'access_code.set_on_device',
71190
71548
  'access_code.removed_from_device',