@seamapi/types 1.946.0 → 1.948.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 (40) hide show
  1. package/dist/connect.cjs +441 -10
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1201 -24
  4. package/dist/index.cjs +441 -10
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +16 -16
  7. package/lib/seam/connect/models/access-codes/managed-access-code.js +5 -5
  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 +5 -5
  10. package/lib/seam/connect/models/events/access-codes.d.ts +126 -0
  11. package/lib/seam/connect/models/events/access-grants.d.ts +42 -0
  12. package/lib/seam/connect/models/events/access-methods.d.ts +36 -0
  13. package/lib/seam/connect/models/events/acs/access-groups.d.ts +6 -0
  14. package/lib/seam/connect/models/events/acs/common.d.ts +3 -0
  15. package/lib/seam/connect/models/events/acs/credentials.d.ts +24 -0
  16. package/lib/seam/connect/models/events/acs/encoders.d.ts +12 -0
  17. package/lib/seam/connect/models/events/acs/entrances.d.ts +12 -0
  18. package/lib/seam/connect/models/events/acs/index.d.ts +42 -0
  19. package/lib/seam/connect/models/events/acs/systems.d.ts +18 -0
  20. package/lib/seam/connect/models/events/acs/users.d.ts +12 -0
  21. package/lib/seam/connect/models/events/action-attempts.d.ts +48 -0
  22. package/lib/seam/connect/models/events/client-sessions.d.ts +6 -0
  23. package/lib/seam/connect/models/events/common.d.ts +3 -0
  24. package/lib/seam/connect/models/events/common.js +4 -0
  25. package/lib/seam/connect/models/events/common.js.map +1 -1
  26. package/lib/seam/connect/models/events/connect-webviews.d.ts +12 -0
  27. package/lib/seam/connect/models/events/connected-accounts.d.ts +48 -0
  28. package/lib/seam/connect/models/events/devices.d.ts +210 -0
  29. package/lib/seam/connect/models/events/enrollment-automations.d.ts +6 -0
  30. package/lib/seam/connect/models/events/phones.d.ts +6 -0
  31. package/lib/seam/connect/models/events/seam-event.d.ts +321 -0
  32. package/lib/seam/connect/models/events/spaces.d.ts +18 -0
  33. package/lib/seam/connect/openapi.js +432 -4
  34. package/lib/seam/connect/openapi.js.map +1 -1
  35. package/lib/seam/connect/route-types.d.ts +867 -11
  36. package/package.json +1 -1
  37. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +12 -13
  38. package/src/lib/seam/connect/models/events/common.ts +6 -0
  39. package/src/lib/seam/connect/openapi.ts +539 -4
  40. package/src/lib/seam/connect/route-types.ts +867 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.946.0",
3
+ "version": "1.948.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -243,16 +243,15 @@ const code_rotates_periodically = common_access_code_warning
243
243
  "The access code's PIN rotates periodically when the code is renewed. Retrieve the latest code before each use.",
244
244
  )
245
245
 
246
- const schlage_access_code_ambiguous_timezone_dst_risk =
247
- common_access_code_warning
248
- .extend({
249
- warning_code: z
250
- .literal('schlage_access_code_ambiguous_timezone_dst_risk')
251
- .describe(warning_code_description),
252
- })
253
- .describe(
254
- "The Schlage device's timezone is ambiguous and this code's schedule crosses a daylight-saving transition in at least one plausible timezone. A 1-hour safety buffer has been applied to the side of the schedule affected by the transition (`ends_at` for spring-forward, `starts_at` for fall-back) so the code stays active through the shift — the code may be usable up to 1 hour beyond your requested window. Set the device's timezone via `/devices/report_provider_metadata` to clear the buffer and guarantee exact DST handling.",
255
- )
246
+ const time_frame_adjusted_for_unknown_time_zone = common_access_code_warning
247
+ .extend({
248
+ warning_code: z
249
+ .literal('time_frame_adjusted_for_unknown_time_zone')
250
+ .describe(warning_code_description),
251
+ })
252
+ .describe(
253
+ "The device's time zone is unknown and this code's time frame crosses a daylight-saving transition in at least one plausible time zone. A 1-hour safety buffer has been applied to the side of the time frame affected by the transition (`ends_at` for spring-forward, `starts_at` for fall-back) so the code stays active through the shift — the code may be usable up to 1 hour beyond your requested window. Set the device's time zone via `/devices/report_provider_metadata` to clear the buffer and guarantee exact handling.",
254
+ )
256
255
 
257
256
  const delay_in_setting_on_device = common_access_code_warning
258
257
  .extend({
@@ -315,7 +314,7 @@ const being_deleted = common_access_code_warning
315
314
  const access_code_warning = z
316
315
  .discriminatedUnion('warning_code', [
317
316
  code_rotates_periodically,
318
- schlage_access_code_ambiguous_timezone_dst_risk,
317
+ time_frame_adjusted_for_unknown_time_zone,
319
318
  code_modified_external_to_seam_warning,
320
319
  delay_in_setting_on_device,
321
320
  delay_in_removing_from_device,
@@ -333,8 +332,8 @@ export type AccessCodeWarning = z.infer<typeof access_code_warning>
333
332
 
334
333
  const _access_code_warning_map = z.object({
335
334
  code_rotates_periodically: code_rotates_periodically.optional().nullable(),
336
- schlage_access_code_ambiguous_timezone_dst_risk:
337
- schlage_access_code_ambiguous_timezone_dst_risk.optional().nullable(),
335
+ time_frame_adjusted_for_unknown_time_zone:
336
+ time_frame_adjusted_for_unknown_time_zone.optional().nullable(),
338
337
  code_modified_external_to_seam_warning: code_modified_external_to_seam_warning
339
338
  .optional()
340
339
  .nullable(),
@@ -14,6 +14,12 @@ export const common_event = z.object({
14
14
  .string()
15
15
  .datetime()
16
16
  .describe('Date and time at which the event occurred.'),
17
+ event_description: z
18
+ .string()
19
+ .optional()
20
+ .describe(
21
+ 'Human-readable description of the event. Persisted when the event is created (so the creating code, including a provider, can supply a tailored description) and otherwise derived from the event.',
22
+ ),
17
23
  })
18
24
 
19
25
  const error_code_description =