@seamapi/types 1.501.0 → 1.503.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 (33) hide show
  1. package/dist/connect.cjs +18 -133
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +179 -1358
  4. package/dist/index.cjs +18 -133
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +3 -0
  7. package/lib/seam/connect/models/access-codes/managed-access-code.js +4 -0
  8. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  9. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +3 -0
  10. package/lib/seam/connect/models/access-codes/unmanaged-access-code.js +1 -0
  11. package/lib/seam/connect/models/access-codes/unmanaged-access-code.js.map +1 -1
  12. package/lib/seam/connect/models/acs/acs-credential.d.ts +8 -8
  13. package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.d.ts +2 -2
  14. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +28 -28
  15. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +12 -12
  16. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +16 -16
  17. package/lib/seam/connect/models/batch.d.ts +171 -1196
  18. package/lib/seam/connect/models/devices/device-metadata.d.ts +5 -100
  19. package/lib/seam/connect/models/devices/device-metadata.js +1 -62
  20. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  21. package/lib/seam/connect/models/devices/device.d.ts +7 -140
  22. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +5 -100
  23. package/lib/seam/connect/models/phones/phone-session.d.ts +14 -14
  24. package/lib/seam/connect/openapi.d.ts +10 -91
  25. package/lib/seam/connect/openapi.js +12 -112
  26. package/lib/seam/connect/openapi.js.map +1 -1
  27. package/lib/seam/connect/route-types.d.ts +43 -663
  28. package/package.json +1 -1
  29. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +6 -0
  30. package/src/lib/seam/connect/models/access-codes/unmanaged-access-code.ts +1 -0
  31. package/src/lib/seam/connect/models/devices/device-metadata.ts +1 -62
  32. package/src/lib/seam/connect/openapi.ts +14 -124
  33. package/src/lib/seam/connect/route-types.ts +43 -663
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.501.0",
3
+ "version": "1.503.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -495,6 +495,12 @@ const _access_code_warning_map = z.object({
495
495
  export type AccessCodeWarningMap = z.infer<typeof _access_code_warning_map>
496
496
 
497
497
  export const access_code = z.object({
498
+ workspace_id: z
499
+ .string()
500
+ .uuid()
501
+ .describe(
502
+ 'Unique identifier for the Seam workspace associated with the access code.',
503
+ ),
498
504
  common_code_key: z
499
505
  .string()
500
506
  .nullable()
@@ -4,6 +4,7 @@ import { access_code } from './managed-access-code.js'
4
4
 
5
5
  export const unmanaged_access_code = access_code
6
6
  .pick({
7
+ workspace_id: true,
7
8
  type: true,
8
9
  access_code_id: true,
9
10
  device_id: true,
@@ -612,70 +612,9 @@ export const device_metadata = z
612
612
 
613
613
  keynest_metadata: z
614
614
  .object({
615
- key_id: z.string().describe(`Key ID for a KeyNest device.`),
616
615
  device_name: z.string().describe(`Device name for a KeyNest device.`),
617
- property_id: z
618
- .string()
619
- .nullable()
620
- .describe(`Property ID for a KeyNest device.`),
621
- property_postcode: z
622
- .string()
623
- .nullable()
624
- .describe(`Property postcode for a KeyNest device.`),
625
- key_notes: z
626
- .string()
627
- .nullable()
628
- .describe(`Key notes for a KeyNest device.`),
629
- subscription_plan: z
630
- .string()
631
- .describe(`Subscription plan for a KeyNest device.`),
632
- status_type: z.string().describe(`Status type for a KeyNest device.`),
633
- current_or_last_store_id: z
634
- .number()
635
- .describe(`Current or last store ID for a KeyNest device.`),
636
- last_movement: z
637
- .string()
638
- .describe(`Last movement timestamp for a KeyNest device.`),
639
- address: z
640
- .string()
641
- .nullable()
642
- .describe(`Address for a KeyNest device.`),
643
- current_status: z
644
- .string()
645
- .nullable()
646
- .describe(`Current status for a KeyNest device.`),
647
- current_user_name: z
648
- .string()
649
- .nullable()
650
- .describe(`Current user name for a KeyNest device.`),
651
- current_user_email: z
652
- .string()
653
- .nullable()
654
- .describe(`Current user email for a KeyNest device.`),
655
- current_user_phone_number: z
656
- .string()
657
- .nullable()
658
- .describe(`Current user phone number for a KeyNest device.`),
659
- current_user_company: z
660
- .string()
661
- .nullable()
662
- .describe(`Current user company for a KeyNest device.`),
663
- handover_method: z
664
- .string()
665
- .nullable()
666
- .describe(`Handover method for a KeyNest device.`),
667
- keynest_app_user: z
668
- .string()
669
- .nullable()
670
- .describe(`KeyNest app user for a KeyNest device.`),
671
- default_office_id: z
672
- .number()
673
- .describe(`Default office ID for a KeyNest device.`),
674
- fob_id: z.number().describe(`Fob ID for a KeyNest device.`),
675
- has_photo: z
676
- .boolean()
677
- .describe(`Whether the KeyNest device has a photo.`),
678
616
  })
617
+ .partial()
679
618
  .describe(`Metadata for a KeyNest device.`),
680
619
  })
681
620
  .partial().describe(`
@@ -1792,8 +1792,15 @@ export default {
1792
1792
  thermostats: { name: 'Thermostats' },
1793
1793
  },
1794
1794
  },
1795
+ workspace_id: {
1796
+ description:
1797
+ 'Unique identifier for the Seam workspace associated with the access code.',
1798
+ format: 'uuid',
1799
+ type: 'string',
1800
+ },
1795
1801
  },
1796
1802
  required: [
1803
+ 'workspace_id',
1797
1804
  'common_code_key',
1798
1805
  'type',
1799
1806
  'access_code_id',
@@ -10697,135 +10704,11 @@ export default {
10697
10704
  keynest_metadata: {
10698
10705
  description: 'Metadata for a KeyNest device.',
10699
10706
  properties: {
10700
- address: {
10701
- description: 'Address for a KeyNest device.',
10702
- nullable: true,
10703
- type: 'string',
10704
- },
10705
- current_or_last_store_id: {
10706
- description:
10707
- 'Current or last store ID for a KeyNest device.',
10708
- format: 'float',
10709
- type: 'number',
10710
- },
10711
- current_status: {
10712
- description: 'Current status for a KeyNest device.',
10713
- nullable: true,
10714
- type: 'string',
10715
- },
10716
- current_user_company: {
10717
- description:
10718
- 'Current user company for a KeyNest device.',
10719
- nullable: true,
10720
- type: 'string',
10721
- },
10722
- current_user_email: {
10723
- description:
10724
- 'Current user email for a KeyNest device.',
10725
- nullable: true,
10726
- type: 'string',
10727
- },
10728
- current_user_name: {
10729
- description:
10730
- 'Current user name for a KeyNest device.',
10731
- nullable: true,
10732
- type: 'string',
10733
- },
10734
- current_user_phone_number: {
10735
- description:
10736
- 'Current user phone number for a KeyNest device.',
10737
- nullable: true,
10738
- type: 'string',
10739
- },
10740
- default_office_id: {
10741
- description:
10742
- 'Default office ID for a KeyNest device.',
10743
- format: 'float',
10744
- type: 'number',
10745
- },
10746
10707
  device_name: {
10747
10708
  description: 'Device name for a KeyNest device.',
10748
10709
  type: 'string',
10749
10710
  },
10750
- fob_id: {
10751
- description: 'Fob ID for a KeyNest device.',
10752
- format: 'float',
10753
- type: 'number',
10754
- },
10755
- handover_method: {
10756
- description:
10757
- 'Handover method for a KeyNest device.',
10758
- nullable: true,
10759
- type: 'string',
10760
- },
10761
- has_photo: {
10762
- description:
10763
- 'Whether the KeyNest device has a photo.',
10764
- type: 'boolean',
10765
- },
10766
- key_id: {
10767
- description: 'Key ID for a KeyNest device.',
10768
- type: 'string',
10769
- },
10770
- key_notes: {
10771
- description: 'Key notes for a KeyNest device.',
10772
- nullable: true,
10773
- type: 'string',
10774
- },
10775
- keynest_app_user: {
10776
- description:
10777
- 'KeyNest app user for a KeyNest device.',
10778
- nullable: true,
10779
- type: 'string',
10780
- },
10781
- last_movement: {
10782
- description:
10783
- 'Last movement timestamp for a KeyNest device.',
10784
- type: 'string',
10785
- },
10786
- property_id: {
10787
- description: 'Property ID for a KeyNest device.',
10788
- nullable: true,
10789
- type: 'string',
10790
- },
10791
- property_postcode: {
10792
- description:
10793
- 'Property postcode for a KeyNest device.',
10794
- nullable: true,
10795
- type: 'string',
10796
- },
10797
- status_type: {
10798
- description: 'Status type for a KeyNest device.',
10799
- type: 'string',
10800
- },
10801
- subscription_plan: {
10802
- description:
10803
- 'Subscription plan for a KeyNest device.',
10804
- type: 'string',
10805
- },
10806
10711
  },
10807
- required: [
10808
- 'key_id',
10809
- 'device_name',
10810
- 'property_id',
10811
- 'property_postcode',
10812
- 'key_notes',
10813
- 'subscription_plan',
10814
- 'status_type',
10815
- 'current_or_last_store_id',
10816
- 'last_movement',
10817
- 'address',
10818
- 'current_status',
10819
- 'current_user_name',
10820
- 'current_user_email',
10821
- 'current_user_phone_number',
10822
- 'current_user_company',
10823
- 'handover_method',
10824
- 'keynest_app_user',
10825
- 'default_office_id',
10826
- 'fob_id',
10827
- 'has_photo',
10828
- ],
10829
10712
  type: 'object',
10830
10713
  },
10831
10714
  kwikset_metadata: {
@@ -22390,8 +22273,15 @@ export default {
22390
22273
  thermostats: { name: 'Thermostats' },
22391
22274
  },
22392
22275
  },
22276
+ workspace_id: {
22277
+ description:
22278
+ 'Unique identifier for the Seam workspace associated with the access code.',
22279
+ format: 'uuid',
22280
+ type: 'string',
22281
+ },
22393
22282
  },
22394
22283
  required: [
22284
+ 'workspace_id',
22395
22285
  'type',
22396
22286
  'access_code_id',
22397
22287
  'device_id',