@seamapi/types 1.932.0 → 1.934.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 +127 -60
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +731 -475
  4. package/dist/index.cjs +127 -60
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/devices/capability-properties/access-code.d.ts +38 -38
  7. package/lib/seam/connect/models/devices/capability-properties/access-code.js +11 -13
  8. package/lib/seam/connect/models/devices/capability-properties/access-code.js.map +1 -1
  9. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +28 -28
  10. package/lib/seam/connect/models/devices/device-metadata.d.ts +44 -16
  11. package/lib/seam/connect/models/devices/device-metadata.js +14 -0
  12. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  13. package/lib/seam/connect/models/devices/device-provider.d.ts +2 -1
  14. package/lib/seam/connect/models/devices/device-provider.js +2 -1
  15. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  16. package/lib/seam/connect/models/devices/device-type.d.ts +1 -0
  17. package/lib/seam/connect/models/devices/device-type.js +1 -0
  18. package/lib/seam/connect/models/devices/device-type.js.map +1 -1
  19. package/lib/seam/connect/models/devices/device.d.ts +95 -55
  20. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +71 -43
  21. package/lib/seam/connect/models/events/access-codes.d.ts +12 -12
  22. package/lib/seam/connect/models/events/seam-event.d.ts +6 -6
  23. package/lib/seam/connect/openapi.js +87 -28
  24. package/lib/seam/connect/openapi.js.map +1 -1
  25. package/lib/seam/connect/route-types.d.ts +558 -371
  26. package/lib/seam/devicedb/models/device-model.d.ts +4 -4
  27. package/lib/seam/devicedb/route-specs.d.ts +8 -8
  28. package/package.json +1 -1
  29. package/src/lib/seam/connect/models/devices/capability-properties/access-code.ts +11 -13
  30. package/src/lib/seam/connect/models/devices/device-metadata.ts +15 -0
  31. package/src/lib/seam/connect/models/devices/device-provider.ts +2 -1
  32. package/src/lib/seam/connect/models/devices/device-type.ts +1 -0
  33. package/src/lib/seam/connect/openapi.ts +87 -28
  34. package/src/lib/seam/connect/route-types.ts +595 -340
@@ -545,6 +545,7 @@ export declare const base_device_model_v1: z.ZodObject<{
545
545
  power_sources: z.ZodArray<z.ZodEnum<["battery", "hardwired", "mechanical_harvesting", "wireless", "ethernet"]>, "many">;
546
546
  }, "strip", z.ZodTypeAny, {
547
547
  display_name: string;
548
+ description: string;
548
549
  manufacturer: {
549
550
  display_name: string;
550
551
  manufacturer_id: string;
@@ -573,7 +574,6 @@ export declare const base_device_model_v1: z.ZodObject<{
573
574
  us_customer_support_contact_url?: string | undefined;
574
575
  seam_api_guide?: string | undefined;
575
576
  };
576
- description: string;
577
577
  hardware: {
578
578
  has_physical_key?: boolean | undefined;
579
579
  };
@@ -605,6 +605,7 @@ export declare const base_device_model_v1: z.ZodObject<{
605
605
  product_url?: string | undefined;
606
606
  }, {
607
607
  display_name: string;
608
+ description: string;
608
609
  manufacturer: {
609
610
  display_name: string;
610
611
  manufacturer_id: string;
@@ -633,7 +634,6 @@ export declare const base_device_model_v1: z.ZodObject<{
633
634
  us_customer_support_contact_url?: string | undefined;
634
635
  seam_api_guide?: string | undefined;
635
636
  };
636
- description: string;
637
637
  hardware: {
638
638
  has_physical_key?: boolean | undefined;
639
639
  };
@@ -864,6 +864,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
864
864
  power_sources: z.ZodArray<z.ZodEnum<["battery", "hardwired", "mechanical_harvesting", "wireless", "ethernet"]>, "many">;
865
865
  }, "strip", z.ZodTypeAny, {
866
866
  display_name: string;
867
+ description: string;
867
868
  manufacturer: {
868
869
  display_name: string;
869
870
  manufacturer_id: string;
@@ -892,7 +893,6 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
892
893
  us_customer_support_contact_url?: string | undefined;
893
894
  seam_api_guide?: string | undefined;
894
895
  };
895
- description: string;
896
896
  hardware: {
897
897
  has_physical_key?: boolean | undefined;
898
898
  };
@@ -924,6 +924,7 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
924
924
  product_url?: string | undefined;
925
925
  }, {
926
926
  display_name: string;
927
+ description: string;
927
928
  manufacturer: {
928
929
  display_name: string;
929
930
  manufacturer_id: string;
@@ -952,7 +953,6 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
952
953
  us_customer_support_contact_url?: string | undefined;
953
954
  seam_api_guide?: string | undefined;
954
955
  };
955
- description: string;
956
956
  hardware: {
957
957
  has_physical_key?: boolean | undefined;
958
958
  };
@@ -210,6 +210,7 @@ export declare const routes: {
210
210
  power_sources: z.ZodArray<z.ZodEnum<["battery", "hardwired", "mechanical_harvesting", "wireless", "ethernet"]>, "many">;
211
211
  }, "strip", z.ZodTypeAny, {
212
212
  display_name: string;
213
+ description: string;
213
214
  manufacturer: {
214
215
  display_name: string;
215
216
  manufacturer_id: string;
@@ -238,7 +239,6 @@ export declare const routes: {
238
239
  us_customer_support_contact_url?: string | undefined;
239
240
  seam_api_guide?: string | undefined;
240
241
  };
241
- description: string;
242
242
  hardware: {
243
243
  has_physical_key?: boolean | undefined;
244
244
  };
@@ -270,6 +270,7 @@ export declare const routes: {
270
270
  product_url?: string | undefined;
271
271
  }, {
272
272
  display_name: string;
273
+ description: string;
273
274
  manufacturer: {
274
275
  display_name: string;
275
276
  manufacturer_id: string;
@@ -298,7 +299,6 @@ export declare const routes: {
298
299
  us_customer_support_contact_url?: string | undefined;
299
300
  seam_api_guide?: string | undefined;
300
301
  };
301
- description: string;
302
302
  hardware: {
303
303
  has_physical_key?: boolean | undefined;
304
304
  };
@@ -593,6 +593,7 @@ export declare const routes: {
593
593
  }, "strip", z.ZodTypeAny, {
594
594
  device_model: {
595
595
  display_name: string;
596
+ description: string;
596
597
  manufacturer: {
597
598
  display_name: string;
598
599
  manufacturer_id: string;
@@ -621,7 +622,6 @@ export declare const routes: {
621
622
  us_customer_support_contact_url?: string | undefined;
622
623
  seam_api_guide?: string | undefined;
623
624
  };
624
- description: string;
625
625
  hardware: {
626
626
  has_physical_key?: boolean | undefined;
627
627
  };
@@ -716,6 +716,7 @@ export declare const routes: {
716
716
  }, {
717
717
  device_model: {
718
718
  display_name: string;
719
+ description: string;
719
720
  manufacturer: {
720
721
  display_name: string;
721
722
  manufacturer_id: string;
@@ -744,7 +745,6 @@ export declare const routes: {
744
745
  us_customer_support_contact_url?: string | undefined;
745
746
  seam_api_guide?: string | undefined;
746
747
  };
747
- description: string;
748
748
  hardware: {
749
749
  has_physical_key?: boolean | undefined;
750
750
  };
@@ -1070,6 +1070,7 @@ export declare const routes: {
1070
1070
  power_sources: z.ZodArray<z.ZodEnum<["battery", "hardwired", "mechanical_harvesting", "wireless", "ethernet"]>, "many">;
1071
1071
  }, "strip", z.ZodTypeAny, {
1072
1072
  display_name: string;
1073
+ description: string;
1073
1074
  manufacturer: {
1074
1075
  display_name: string;
1075
1076
  manufacturer_id: string;
@@ -1098,7 +1099,6 @@ export declare const routes: {
1098
1099
  us_customer_support_contact_url?: string | undefined;
1099
1100
  seam_api_guide?: string | undefined;
1100
1101
  };
1101
- description: string;
1102
1102
  hardware: {
1103
1103
  has_physical_key?: boolean | undefined;
1104
1104
  };
@@ -1130,6 +1130,7 @@ export declare const routes: {
1130
1130
  product_url?: string | undefined;
1131
1131
  }, {
1132
1132
  display_name: string;
1133
+ description: string;
1133
1134
  manufacturer: {
1134
1135
  display_name: string;
1135
1136
  manufacturer_id: string;
@@ -1158,7 +1159,6 @@ export declare const routes: {
1158
1159
  us_customer_support_contact_url?: string | undefined;
1159
1160
  seam_api_guide?: string | undefined;
1160
1161
  };
1161
- description: string;
1162
1162
  hardware: {
1163
1163
  has_physical_key?: boolean | undefined;
1164
1164
  };
@@ -1453,6 +1453,7 @@ export declare const routes: {
1453
1453
  }, "strip", z.ZodTypeAny, {
1454
1454
  device_models: ({
1455
1455
  display_name: string;
1456
+ description: string;
1456
1457
  manufacturer: {
1457
1458
  display_name: string;
1458
1459
  manufacturer_id: string;
@@ -1481,7 +1482,6 @@ export declare const routes: {
1481
1482
  us_customer_support_contact_url?: string | undefined;
1482
1483
  seam_api_guide?: string | undefined;
1483
1484
  };
1484
- description: string;
1485
1485
  hardware: {
1486
1486
  has_physical_key?: boolean | undefined;
1487
1487
  };
@@ -1576,6 +1576,7 @@ export declare const routes: {
1576
1576
  }, {
1577
1577
  device_models: ({
1578
1578
  display_name: string;
1579
+ description: string;
1579
1580
  manufacturer: {
1580
1581
  display_name: string;
1581
1582
  manufacturer_id: string;
@@ -1604,7 +1605,6 @@ export declare const routes: {
1604
1605
  us_customer_support_contact_url?: string | undefined;
1605
1606
  seam_api_guide?: string | undefined;
1606
1607
  };
1607
- description: string;
1608
1608
  hardware: {
1609
1609
  has_physical_key?: boolean | undefined;
1610
1610
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.932.0",
3
+ "version": "1.934.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -43,22 +43,20 @@ export type AccessCodeConstraint = z.infer<typeof access_code_constraint>
43
43
 
44
44
  const time_frame_option_time_pair = z
45
45
  .object({
46
- display_name: z
47
- .string()
48
- .describe('Label for the check-in/check-out time pairing.'),
49
- check_in_time: z
46
+ display_name: z.string().describe('Label for the start/end time pairing.'),
47
+ start_time: z
50
48
  .string()
51
49
  .describe(
52
- "Check-in time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`.",
50
+ "Start time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`.",
53
51
  ),
54
- check_out_time: z
52
+ end_time: z
55
53
  .string()
56
54
  .describe(
57
- "Check-out time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. A `check_out_time` earlier on the clock than `check_in_time` means check-out falls on a later date.",
55
+ "End time of day as a 24-hour `HH:MM` value, interpreted in the option's `time_zone`. An `end_time` earlier on the clock than `start_time` means the end falls on a later date.",
58
56
  ),
59
57
  })
60
58
  .describe(
61
- 'Fixed check-in/check-out time pairing. The caller picks one whole pairing; the two times cannot be mixed across pairs.',
59
+ 'Fixed start/end time pairing. The caller picks one whole pairing; the two times cannot be mixed across pairs.',
62
60
  )
63
61
 
64
62
  export const time_frame_option = z
@@ -66,7 +64,7 @@ export const time_frame_option = z
66
64
  display_name: z
67
65
  .string()
68
66
  .describe(
69
- 'Label for this option. For a single-option device, the product name (for example, `algoPIN` or `SmartPIN`); for a multi-option device, a label that distinguishes it (for example, `Hourly` or `Fixed check-in times`).',
67
+ 'Label for this option. For a single-option device, the product name (for example, `algoPIN` or `SmartPIN`); for a multi-option device, a label that distinguishes it (for example, `Hourly` or `Fixed start times`).',
70
68
  ),
71
69
  min_duration: z
72
70
  .string()
@@ -84,25 +82,25 @@ export const time_frame_option = z
84
82
  .literal(true)
85
83
  .optional()
86
84
  .describe(
87
- 'When `true`, the check-in and check-out must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`.',
85
+ 'When `true`, the start and end must fall at the same time of day (the caller picks which). Mutually exclusive with `time_pairs`.',
88
86
  ),
89
87
  time_pairs: z
90
88
  .array(time_frame_option_time_pair)
91
89
  .optional()
92
90
  .describe(
93
- 'Fixed check-in/check-out time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`.',
91
+ 'Fixed start/end time pairings the caller chooses from. Mutually exclusive with `matching_start_end_time`.',
94
92
  ),
95
93
  start_date_recurrence_rule: z
96
94
  .string()
97
95
  .optional()
98
96
  .describe(
99
- 'iCalendar recurrence rule (RRULE) that the check-in date must fall on (for example, `FREQ=MONTHLY;BYDAY=1MO,3MO`). Constrains which calendar dates are selectable, independent of the time-of-day rules.',
97
+ 'iCalendar recurrence rule (RRULE) that the start date must fall on (for example, `FREQ=MONTHLY;BYDAY=1MO,3MO`). Constrains which calendar dates are selectable, independent of the time-of-day rules.',
100
98
  ),
101
99
  end_date_recurrence_rule: z
102
100
  .string()
103
101
  .optional()
104
102
  .describe(
105
- 'iCalendar recurrence rule (RRULE) that the check-out date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules.',
103
+ 'iCalendar recurrence rule (RRULE) that the end date must fall on. Constrains which calendar dates are selectable, independent of the time-of-day rules.',
106
104
  ),
107
105
  time_zone: z
108
106
  .string()
@@ -797,6 +797,21 @@ export const device_metadata = z
797
797
  })
798
798
  .partial()
799
799
  .describe(`Metadata for a Korelock device.`),
800
+
801
+ kisi_metadata: z
802
+ .object({
803
+ lock_id: z.number().describe(`Lock ID for a Kisi device.`),
804
+ lock_name: z.string().describe(`Lock name for a Kisi device.`),
805
+ place_name: z
806
+ .string()
807
+ .nullable()
808
+ .describe(`Place name for a Kisi device.`),
809
+ description: z
810
+ .string()
811
+ .nullable()
812
+ .describe(`Description for a Kisi device.`),
813
+ })
814
+ .describe(`Metadata for a Kisi device.`),
800
815
  })
801
816
  .partial().describe(`
802
817
  ---
@@ -64,6 +64,7 @@ export const DEVICE_PROVIDERS = {
64
64
  GUESTY: 'guesty',
65
65
  ACUITY_SCHEDULING: 'acuity_scheduling',
66
66
  OMNITEC: 'omnitec',
67
+ KISI: 'kisi',
67
68
  } as const
68
69
 
69
70
  export type DeviceProviderName =
@@ -142,7 +143,7 @@ export const PROVIDER_CATEGORY_MAP = {
142
143
  'thirty_three_lock',
143
144
  ],
144
145
 
145
- beta: [],
146
+ beta: ['kisi'],
146
147
 
147
148
  thermostats: ['ecobee', 'nest', 'sensi', 'honeywell_resideo', 'first_alert'],
148
149
  noise_sensors: ['minut', 'noiseaware'],
@@ -30,6 +30,7 @@ export const LOCK_DEVICE_TYPE = {
30
30
  ULTRALOQ_LOCK: 'ultraloq_lock',
31
31
  KEYINCODE_LOCK: 'keyincode_lock',
32
32
  OMNITEC_LOCK: 'omnitec_lock',
33
+ KISI_LOCK: 'kisi_lock',
33
34
  } as const
34
35
 
35
36
  type LockDeviceTypeFromMapping =