@seamapi/types 1.550.0 → 1.552.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 (34) hide show
  1. package/dist/connect.cjs +182 -1
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1429 -125
  4. package/dist/index.cjs +182 -1
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/acs/acs-credential.d.ts +8 -8
  7. package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.d.ts +2 -2
  8. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +28 -28
  9. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +12 -12
  10. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +16 -16
  11. package/lib/seam/connect/models/batch.d.ts +1196 -131
  12. package/lib/seam/connect/models/devices/device-metadata.d.ts +95 -0
  13. package/lib/seam/connect/models/devices/device-metadata.js +62 -0
  14. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  15. package/lib/seam/connect/models/devices/device-type.d.ts +8 -1
  16. package/lib/seam/connect/models/devices/device-type.js +8 -0
  17. package/lib/seam/connect/models/devices/device-type.js.map +1 -1
  18. package/lib/seam/connect/models/devices/device.d.ts +136 -3
  19. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +98 -3
  20. package/lib/seam/connect/models/events/access-methods.d.ts +12 -0
  21. package/lib/seam/connect/models/events/access-methods.js +8 -0
  22. package/lib/seam/connect/models/events/access-methods.js.map +1 -1
  23. package/lib/seam/connect/models/events/seam-event.d.ts +6 -0
  24. package/lib/seam/connect/models/phones/phone-session.d.ts +14 -14
  25. package/lib/seam/connect/openapi.d.ts +128 -0
  26. package/lib/seam/connect/openapi.js +148 -0
  27. package/lib/seam/connect/openapi.js.map +1 -1
  28. package/lib/seam/connect/route-types.d.ts +691 -25
  29. package/package.json +1 -1
  30. package/src/lib/seam/connect/models/devices/device-metadata.ts +62 -0
  31. package/src/lib/seam/connect/models/devices/device-type.ts +18 -0
  32. package/src/lib/seam/connect/models/events/access-methods.ts +12 -0
  33. package/src/lib/seam/connect/openapi.ts +162 -0
  34. package/src/lib/seam/connect/route-types.ts +691 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.550.0",
3
+ "version": "1.552.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -618,7 +618,69 @@ export const device_metadata = z
618
618
 
619
619
  keynest_metadata: z
620
620
  .object({
621
+ key_id: z.string().describe(`Key ID for a KeyNest device.`),
621
622
  device_name: z.string().describe(`Device name for a KeyNest device.`),
623
+ property_id: z
624
+ .string()
625
+ .nullable()
626
+ .describe(`Property ID for a KeyNest device.`),
627
+ property_postcode: z
628
+ .string()
629
+ .nullable()
630
+ .describe(`Property postcode for a KeyNest device.`),
631
+ key_notes: z
632
+ .string()
633
+ .nullable()
634
+ .describe(`Key notes for a KeyNest device.`),
635
+ subscription_plan: z
636
+ .string()
637
+ .describe(`Subscription plan for a KeyNest device.`),
638
+ status_type: z.string().describe(`Status type for a KeyNest device.`),
639
+ current_or_last_store_id: z
640
+ .number()
641
+ .describe(`Current or last store ID for a KeyNest device.`),
642
+ last_movement: z
643
+ .string()
644
+ .describe(`Last movement timestamp for a KeyNest device.`),
645
+ address: z
646
+ .string()
647
+ .nullable()
648
+ .describe(`Address for a KeyNest device.`),
649
+ current_status: z
650
+ .string()
651
+ .nullable()
652
+ .describe(`Current status for a KeyNest device.`),
653
+ current_user_name: z
654
+ .string()
655
+ .nullable()
656
+ .describe(`Current user name for a KeyNest device.`),
657
+ current_user_email: z
658
+ .string()
659
+ .nullable()
660
+ .describe(`Current user email for a KeyNest device.`),
661
+ current_user_phone_number: z
662
+ .string()
663
+ .nullable()
664
+ .describe(`Current user phone number for a KeyNest device.`),
665
+ current_user_company: z
666
+ .string()
667
+ .nullable()
668
+ .describe(`Current user company for a KeyNest device.`),
669
+ handover_method: z
670
+ .string()
671
+ .nullable()
672
+ .describe(`Handover method for a KeyNest device.`),
673
+ keynest_app_user: z
674
+ .string()
675
+ .nullable()
676
+ .describe(`KeyNest app user for a KeyNest device.`),
677
+ default_office_id: z
678
+ .number()
679
+ .describe(`Default office ID for a KeyNest device.`),
680
+ fob_id: z.number().describe(`Fob ID for a KeyNest device.`),
681
+ has_photo: z
682
+ .boolean()
683
+ .describe(`Whether the KeyNest device has a photo.`),
622
684
  })
623
685
  .partial()
624
686
  .describe(`Metadata for a KeyNest device.`),
@@ -45,6 +45,23 @@ export const lock_device_type = z.enum(
45
45
 
46
46
  export type LockDeviceType = z.infer<typeof lock_device_type>
47
47
 
48
+ /** Keys */
49
+ export const KEY_DEVICE_TYPE = {
50
+ KEYNEST_KEY: 'keynest_key',
51
+ } as const
52
+
53
+ type KeyDeviceTypeFromMapping =
54
+ (typeof KEY_DEVICE_TYPE)[keyof typeof KEY_DEVICE_TYPE]
55
+
56
+ export const KEY_DEVICE_TYPE_LIST = Object.values(KEY_DEVICE_TYPE)
57
+
58
+ export const key_device_type = z.enum(
59
+ Object.values(KEY_DEVICE_TYPE) as [KeyDeviceTypeFromMapping],
60
+ ).describe(`Device type for keys.
61
+ `)
62
+
63
+ export type KeyDeviceType = z.infer<typeof key_device_type>
64
+
48
65
  /** Noise Sensors */
49
66
  export const NOISE_SENSOR_DEVICE_TYPE = {
50
67
  NOISEAWARE_ACTIVITY_ZONE: 'noiseaware_activity_zone',
@@ -111,6 +128,7 @@ export type PhoneDeviceType = z.infer<typeof phone_device_type>
111
128
 
112
129
  export const any_device_type = z.union([
113
130
  lock_device_type,
131
+ key_device_type,
114
132
  noise_sensor_device_type,
115
133
  thermostat_device_type,
116
134
  phone_device_type,
@@ -26,6 +26,12 @@ export const access_method_issued_event = access_method_event.extend({
26
26
  .describe(
27
27
  "The actual PIN code for code access methods (only present when mode is 'code').",
28
28
  ),
29
+ is_backup_code: z
30
+ .boolean()
31
+ .optional()
32
+ .describe(
33
+ "Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used).",
34
+ ),
29
35
  }).describe(`
30
36
  ---
31
37
  route_path: /access_methods
@@ -75,6 +81,12 @@ export const access_method_reissued_event = access_method_event.extend({
75
81
  .describe(
76
82
  "The actual PIN code for code access methods (only present when mode is 'code').",
77
83
  ),
84
+ is_backup_code: z
85
+ .boolean()
86
+ .optional()
87
+ .describe(
88
+ "Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used).",
89
+ ),
78
90
  }).describe(`
79
91
  ---
80
92
  route_path: /access_methods
@@ -9386,6 +9386,11 @@ export default {
9386
9386
  ],
9387
9387
  type: 'string',
9388
9388
  },
9389
+ {
9390
+ description: 'Device type for keys.\n ',
9391
+ enum: ['keynest_key'],
9392
+ type: 'string',
9393
+ },
9389
9394
  {
9390
9395
  description: 'Device type for noise sensors.\n ',
9391
9396
  enum: ['noiseaware_activity_zone', 'minut_sensor'],
@@ -10773,10 +10778,112 @@ export default {
10773
10778
  keynest_metadata: {
10774
10779
  description: 'Metadata for a KeyNest device.',
10775
10780
  properties: {
10781
+ address: {
10782
+ description: 'Address for a KeyNest device.',
10783
+ nullable: true,
10784
+ type: 'string',
10785
+ },
10786
+ current_or_last_store_id: {
10787
+ description:
10788
+ 'Current or last store ID for a KeyNest device.',
10789
+ format: 'float',
10790
+ type: 'number',
10791
+ },
10792
+ current_status: {
10793
+ description: 'Current status for a KeyNest device.',
10794
+ nullable: true,
10795
+ type: 'string',
10796
+ },
10797
+ current_user_company: {
10798
+ description:
10799
+ 'Current user company for a KeyNest device.',
10800
+ nullable: true,
10801
+ type: 'string',
10802
+ },
10803
+ current_user_email: {
10804
+ description:
10805
+ 'Current user email for a KeyNest device.',
10806
+ nullable: true,
10807
+ type: 'string',
10808
+ },
10809
+ current_user_name: {
10810
+ description:
10811
+ 'Current user name for a KeyNest device.',
10812
+ nullable: true,
10813
+ type: 'string',
10814
+ },
10815
+ current_user_phone_number: {
10816
+ description:
10817
+ 'Current user phone number for a KeyNest device.',
10818
+ nullable: true,
10819
+ type: 'string',
10820
+ },
10821
+ default_office_id: {
10822
+ description:
10823
+ 'Default office ID for a KeyNest device.',
10824
+ format: 'float',
10825
+ type: 'number',
10826
+ },
10776
10827
  device_name: {
10777
10828
  description: 'Device name for a KeyNest device.',
10778
10829
  type: 'string',
10779
10830
  },
10831
+ fob_id: {
10832
+ description: 'Fob ID for a KeyNest device.',
10833
+ format: 'float',
10834
+ type: 'number',
10835
+ },
10836
+ handover_method: {
10837
+ description:
10838
+ 'Handover method for a KeyNest device.',
10839
+ nullable: true,
10840
+ type: 'string',
10841
+ },
10842
+ has_photo: {
10843
+ description:
10844
+ 'Whether the KeyNest device has a photo.',
10845
+ type: 'boolean',
10846
+ },
10847
+ key_id: {
10848
+ description: 'Key ID for a KeyNest device.',
10849
+ type: 'string',
10850
+ },
10851
+ key_notes: {
10852
+ description: 'Key notes for a KeyNest device.',
10853
+ nullable: true,
10854
+ type: 'string',
10855
+ },
10856
+ keynest_app_user: {
10857
+ description:
10858
+ 'KeyNest app user for a KeyNest device.',
10859
+ nullable: true,
10860
+ type: 'string',
10861
+ },
10862
+ last_movement: {
10863
+ description:
10864
+ 'Last movement timestamp for a KeyNest device.',
10865
+ type: 'string',
10866
+ },
10867
+ property_id: {
10868
+ description: 'Property ID for a KeyNest device.',
10869
+ nullable: true,
10870
+ type: 'string',
10871
+ },
10872
+ property_postcode: {
10873
+ description:
10874
+ 'Property postcode for a KeyNest device.',
10875
+ nullable: true,
10876
+ type: 'string',
10877
+ },
10878
+ status_type: {
10879
+ description: 'Status type for a KeyNest device.',
10880
+ type: 'string',
10881
+ },
10882
+ subscription_plan: {
10883
+ description:
10884
+ 'Subscription plan for a KeyNest device.',
10885
+ type: 'string',
10886
+ },
10780
10887
  },
10781
10888
  type: 'object',
10782
10889
  },
@@ -14665,6 +14772,11 @@ export default {
14665
14772
  type: 'string',
14666
14773
  },
14667
14774
  event_type: { enum: ['access_method.issued'], type: 'string' },
14775
+ is_backup_code: {
14776
+ description:
14777
+ "Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used).",
14778
+ type: 'boolean',
14779
+ },
14668
14780
  occurred_at: {
14669
14781
  description: 'Date and time at which the event occurred.',
14670
14782
  format: 'date-time',
@@ -14895,6 +15007,11 @@ export default {
14895
15007
  type: 'string',
14896
15008
  },
14897
15009
  event_type: { enum: ['access_method.reissued'], type: 'string' },
15010
+ is_backup_code: {
15011
+ description:
15012
+ "Indicates whether the code is a backup code (only present when mode is 'code' and a backup code was used).",
15013
+ type: 'boolean',
15014
+ },
14898
15015
  occurred_at: {
14899
15016
  description: 'Date and time at which the event occurred.',
14900
15017
  format: 'date-time',
@@ -23837,6 +23954,11 @@ export default {
23837
23954
  ],
23838
23955
  type: 'string',
23839
23956
  },
23957
+ {
23958
+ description: 'Device type for keys.\n ',
23959
+ enum: ['keynest_key'],
23960
+ type: 'string',
23961
+ },
23840
23962
  {
23841
23963
  description: 'Device type for noise sensors.\n ',
23842
23964
  enum: ['noiseaware_activity_zone', 'minut_sensor'],
@@ -40657,6 +40779,11 @@ export default {
40657
40779
  ],
40658
40780
  type: 'string',
40659
40781
  },
40782
+ {
40783
+ description: 'Device type for keys.\n ',
40784
+ enum: ['keynest_key'],
40785
+ type: 'string',
40786
+ },
40660
40787
  {
40661
40788
  description: 'Device type for noise sensors.\n ',
40662
40789
  enum: ['noiseaware_activity_zone', 'minut_sensor'],
@@ -40723,6 +40850,11 @@ export default {
40723
40850
  ],
40724
40851
  type: 'string',
40725
40852
  },
40853
+ {
40854
+ description: 'Device type for keys.\n ',
40855
+ enum: ['keynest_key'],
40856
+ type: 'string',
40857
+ },
40726
40858
  {
40727
40859
  description: 'Device type for noise sensors.\n ',
40728
40860
  enum: ['noiseaware_activity_zone', 'minut_sensor'],
@@ -41079,6 +41211,11 @@ export default {
41079
41211
  ],
41080
41212
  type: 'string',
41081
41213
  },
41214
+ {
41215
+ description: 'Device type for keys.\n ',
41216
+ enum: ['keynest_key'],
41217
+ type: 'string',
41218
+ },
41082
41219
  {
41083
41220
  description:
41084
41221
  'Device type for noise sensors.\n ',
@@ -41143,6 +41280,11 @@ export default {
41143
41280
  ],
41144
41281
  type: 'string',
41145
41282
  },
41283
+ {
41284
+ description: 'Device type for keys.\n ',
41285
+ enum: ['keynest_key'],
41286
+ type: 'string',
41287
+ },
41146
41288
  {
41147
41289
  description:
41148
41290
  'Device type for noise sensors.\n ',
@@ -41986,6 +42128,11 @@ export default {
41986
42128
  ],
41987
42129
  type: 'string',
41988
42130
  },
42131
+ {
42132
+ description: 'Device type for keys.\n ',
42133
+ enum: ['keynest_key'],
42134
+ type: 'string',
42135
+ },
41989
42136
  {
41990
42137
  description: 'Device type for noise sensors.\n ',
41991
42138
  enum: ['noiseaware_activity_zone', 'minut_sensor'],
@@ -42052,6 +42199,11 @@ export default {
42052
42199
  ],
42053
42200
  type: 'string',
42054
42201
  },
42202
+ {
42203
+ description: 'Device type for keys.\n ',
42204
+ enum: ['keynest_key'],
42205
+ type: 'string',
42206
+ },
42055
42207
  {
42056
42208
  description: 'Device type for noise sensors.\n ',
42057
42209
  enum: ['noiseaware_activity_zone', 'minut_sensor'],
@@ -42405,6 +42557,11 @@ export default {
42405
42557
  ],
42406
42558
  type: 'string',
42407
42559
  },
42560
+ {
42561
+ description: 'Device type for keys.\n ',
42562
+ enum: ['keynest_key'],
42563
+ type: 'string',
42564
+ },
42408
42565
  {
42409
42566
  description:
42410
42567
  'Device type for noise sensors.\n ',
@@ -42469,6 +42626,11 @@ export default {
42469
42626
  ],
42470
42627
  type: 'string',
42471
42628
  },
42629
+ {
42630
+ description: 'Device type for keys.\n ',
42631
+ enum: ['keynest_key'],
42632
+ type: 'string',
42633
+ },
42472
42634
  {
42473
42635
  description:
42474
42636
  'Device type for noise sensors.\n ',