@seamapi/types 1.463.0 → 1.464.3

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 (99) hide show
  1. package/LICENSE.txt +1 -1
  2. package/dist/connect.cjs +57 -55
  3. package/dist/connect.cjs.map +1 -1
  4. package/dist/connect.d.cts +2884 -2548
  5. package/dist/devicedb.d.cts +0 -4
  6. package/dist/index.cjs +57 -55
  7. package/dist/index.cjs.map +1 -1
  8. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +8 -8
  9. package/lib/seam/connect/models/access-codes/managed-access-code.js +2 -2
  10. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  11. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +5 -5
  12. package/lib/seam/connect/models/access-grants/access-grant.d.ts +6 -6
  13. package/lib/seam/connect/models/access-grants/access-grant.js +1 -2
  14. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
  15. package/lib/seam/connect/models/acs/acs-access-group.d.ts +2 -2
  16. package/lib/seam/connect/models/acs/acs-access-group.js +1 -1
  17. package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
  18. package/lib/seam/connect/models/acs/acs-credential.d.ts +6 -6
  19. package/lib/seam/connect/models/acs/acs-credential.js +1 -1
  20. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  21. package/lib/seam/connect/models/acs/acs-encoder.d.ts +2 -2
  22. package/lib/seam/connect/models/acs/acs-encoder.js +1 -1
  23. package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
  24. package/lib/seam/connect/models/acs/acs-system.d.ts +11 -10
  25. package/lib/seam/connect/models/acs/acs-system.js +2 -2
  26. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  27. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +5 -4
  28. package/lib/seam/connect/models/acs/acs-users/acs-user.js +2 -2
  29. package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
  30. package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +3 -2
  31. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +1 -1
  32. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -1
  33. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +248 -248
  34. package/lib/seam/connect/models/action-attempts/activate-climate-preset.d.ts +12 -12
  35. package/lib/seam/connect/models/action-attempts/common.d.ts +10 -10
  36. package/lib/seam/connect/models/action-attempts/deprecated.d.ts +84 -84
  37. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +28 -28
  38. package/lib/seam/connect/models/action-attempts/lock-door.d.ts +12 -12
  39. package/lib/seam/connect/models/action-attempts/push-thermostat-programs.d.ts +12 -12
  40. package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.d.ts +12 -12
  41. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +28 -28
  42. package/lib/seam/connect/models/action-attempts/set-fan-mode.d.ts +12 -12
  43. package/lib/seam/connect/models/action-attempts/set-hvac-mode.d.ts +12 -12
  44. package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.d.ts +12 -12
  45. package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.d.ts +12 -12
  46. package/lib/seam/connect/models/action-attempts/unlock-door.d.ts +12 -12
  47. package/lib/seam/connect/models/batch.d.ts +2925 -3128
  48. package/lib/seam/connect/models/bridges/bridge-client-session.d.ts +2 -2
  49. package/lib/seam/connect/models/bridges/bridge-client-session.js +1 -1
  50. package/lib/seam/connect/models/bridges/bridge-client-session.js.map +1 -1
  51. package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +6 -6
  52. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +16 -16
  53. package/lib/seam/connect/models/connected-accounts/connected-account.js +2 -2
  54. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  55. package/lib/seam/connect/models/customer/customer-portal.d.ts +34 -0
  56. package/lib/seam/connect/models/customer/customer-portal.js +18 -0
  57. package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
  58. package/lib/seam/connect/models/devices/capability-properties/index.d.ts +12 -12
  59. package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +12 -12
  60. package/lib/seam/connect/models/devices/device-metadata.d.ts +56 -56
  61. package/lib/seam/connect/models/devices/device.d.ts +136 -194
  62. package/lib/seam/connect/models/devices/device.js +2 -16
  63. package/lib/seam/connect/models/devices/device.js.map +1 -1
  64. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +100 -121
  65. package/lib/seam/connect/models/events/devices.d.ts +16 -16
  66. package/lib/seam/connect/models/events/seam-event.d.ts +8 -8
  67. package/lib/seam/connect/models/locations/location.d.ts +2 -2
  68. package/lib/seam/connect/models/partner/magic-link.d.ts +2 -2
  69. package/lib/seam/connect/models/thermostats/climate-preset.d.ts +2 -2
  70. package/lib/seam/connect/models/thermostats/thermostat-schedule.d.ts +2 -2
  71. package/lib/seam/connect/models/user-identities/user-identity.d.ts +5 -4
  72. package/lib/seam/connect/models/user-identities/user-identity.js +2 -2
  73. package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
  74. package/lib/seam/connect/models/webhooks/webhook.d.ts +2 -2
  75. package/lib/seam/connect/models/workspaces/workspace.d.ts +4 -4
  76. package/lib/seam/connect/openapi.d.ts +58 -0
  77. package/lib/seam/connect/openapi.js +62 -50
  78. package/lib/seam/connect/openapi.js.map +1 -1
  79. package/lib/seam/connect/route-types.d.ts +2820 -2429
  80. package/lib/seam/devicedb/models/device-model.d.ts +116 -116
  81. package/lib/seam/devicedb/models/image-reference.d.ts +4 -4
  82. package/lib/seam/devicedb/models/manufacturer.d.ts +12 -12
  83. package/lib/seam/devicedb/route-specs.d.ts +210 -214
  84. package/package.json +12 -13
  85. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +4 -4
  86. package/src/lib/seam/connect/models/access-grants/access-grant.ts +1 -2
  87. package/src/lib/seam/connect/models/acs/acs-access-group.ts +2 -2
  88. package/src/lib/seam/connect/models/acs/acs-credential.ts +4 -2
  89. package/src/lib/seam/connect/models/acs/acs-encoder.ts +2 -2
  90. package/src/lib/seam/connect/models/acs/acs-system.ts +4 -4
  91. package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +4 -4
  92. package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +2 -2
  93. package/src/lib/seam/connect/models/bridges/bridge-client-session.ts +2 -2
  94. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +4 -4
  95. package/src/lib/seam/connect/models/customer/customer-portal.ts +23 -0
  96. package/src/lib/seam/connect/models/devices/device.ts +4 -19
  97. package/src/lib/seam/connect/models/user-identities/user-identity.ts +4 -4
  98. package/src/lib/seam/connect/openapi.ts +60 -52
  99. package/src/lib/seam/connect/route-types.ts +3038 -2543
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.463.0",
3
+ "version": "1.464.3",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -77,12 +77,11 @@
77
77
  "docs:build": "typedoc",
78
78
  "blueprint": "tsx ./blueprint.ts",
79
79
  "preblueprint": "mkdirp tmp",
80
- "lint": "eslint --ignore-path .gitignore .",
81
- "prelint": "prettier --check --ignore-path .gitignore .",
80
+ "lint": "eslint .",
81
+ "postlint": "prettier --check --ignore-path .gitignore .",
82
82
  "postversion": "git push --follow-tags",
83
83
  "format": "prettier --write --ignore-path .gitignore .",
84
- "preformat": "patch-package",
85
- "postformat": "eslint --ignore-path .gitignore --fix ."
84
+ "preformat": "eslint --fix ."
86
85
  },
87
86
  "engines": {
88
87
  "node": ">=20.9.0",
@@ -97,21 +96,21 @@
97
96
  "@types/node": "^22.15.21",
98
97
  "concurrently": "^9.2.0",
99
98
  "del-cli": "^6.0.0",
100
- "eslint": "^8.9.0",
101
- "eslint-config-prettier": "^9.0.0",
102
- "eslint-config-standard": "^17.1.0",
103
- "eslint-config-standard-with-typescript": "^43.0.1",
104
- "eslint-plugin-node": "^11.1.0",
105
- "eslint-plugin-simple-import-sort": "^12.0.0",
106
- "eslint-plugin-unused-imports": "^3.0.0",
99
+ "eslint": "^9.31.0",
100
+ "eslint-plugin-import": "^2.32.0",
101
+ "eslint-plugin-n": "^17.21.0",
102
+ "eslint-plugin-simple-import-sort": "^12.1.1",
103
+ "eslint-plugin-unused-imports": "^4.1.4",
104
+ "jiti": "^2.4.2",
107
105
  "mkdirp": "^3.0.1",
106
+ "neostandard": "^0.12.2",
108
107
  "patch-package": "^8.0.0",
109
108
  "prettier": "^3.0.0",
110
109
  "tsc-alias": "^1.8.2",
111
110
  "tsup": "^8.0.1",
112
111
  "tsx": "^4.6.2",
113
112
  "typedoc": "^0.28.7",
114
- "typescript": "~5.3.3",
113
+ "typescript": "^5.8.3",
115
114
  "zod": "^3.24.0"
116
115
  }
117
116
  }
@@ -261,7 +261,7 @@ const access_code_error = z
261
261
 
262
262
  export type AccessCodeError = z.infer<typeof access_code_error>
263
263
 
264
- const access_code_error_map = z.object({
264
+ const _access_code_error_map = z.object({
265
265
  smartthings_failed_to_set_access_code:
266
266
  smartthings_failed_to_set_access_code_error.optional().nullable(),
267
267
  smartthings_failed_to_set_after_multiple_retries:
@@ -324,7 +324,7 @@ const access_code_error_map = z.object({
324
324
  .nullable(),
325
325
  })
326
326
 
327
- export type AccessCodeErrorMap = z.infer<typeof access_code_error_map>
327
+ export type AccessCodeErrorMap = z.infer<typeof _access_code_error_map>
328
328
 
329
329
  const common_access_code_warning = z.object({
330
330
  message: z
@@ -463,7 +463,7 @@ const access_code_warning = z
463
463
 
464
464
  export type AccessCodeWarning = z.infer<typeof access_code_warning>
465
465
 
466
- const access_code_warning_map = z.object({
466
+ const _access_code_warning_map = z.object({
467
467
  smartthings_failed_to_set_access_code:
468
468
  smartthings_failed_to_set_access_code_warning.optional().nullable(),
469
469
  schlage_detected_duplicate: schlage_detected_duplicate.optional().nullable(),
@@ -492,7 +492,7 @@ const access_code_warning_map = z.object({
492
492
  .nullable(),
493
493
  })
494
494
 
495
- export type AccessCodeWarningMap = z.infer<typeof access_code_warning_map>
495
+ export type AccessCodeWarningMap = z.infer<typeof _access_code_warning_map>
496
496
 
497
497
  export const access_code = z.object({
498
498
  common_code_key: z
@@ -57,12 +57,11 @@ export const access_grant = z.object({
57
57
  starts_at: z
58
58
  .string()
59
59
  .datetime()
60
- .optional()
61
60
  .describe('Date and time at which the Access Grant starts.'),
62
61
  ends_at: z
63
62
  .string()
64
63
  .datetime()
65
- .optional()
64
+ .nullable()
66
65
  .describe('Date and time at which the Access Grant ends.'),
67
66
  }).describe(`
68
67
  ---
@@ -44,14 +44,14 @@ const acs_access_group_warning = unknown_issue_with_acs_access_group.describe(
44
44
  'Warning associated with the `acs_access_group`.',
45
45
  )
46
46
 
47
- const acs_access_group_warning_map = z.object({
47
+ const _acs_access_group_warning_map = z.object({
48
48
  unknown_issue_with_acs_access_group: unknown_issue_with_acs_access_group
49
49
  .optional()
50
50
  .nullable(),
51
51
  })
52
52
 
53
53
  export type AcsAccessGroupWarningMap = z.infer<
54
- typeof acs_access_group_warning_map
54
+ typeof _acs_access_group_warning_map
55
55
  >
56
56
 
57
57
  const common_acs_access_group = z.object({
@@ -113,7 +113,7 @@ const acs_credential_warning = z
113
113
  'Warning associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).',
114
114
  )
115
115
 
116
- const acs_credential_warning_map = z.object({
116
+ const _acs_credential_warning_map = z.object({
117
117
  waiting_to_be_issued: waiting_to_be_issued.optional().nullable(),
118
118
  schedule_externally_modified: schedule_externally_modified
119
119
  .optional()
@@ -126,7 +126,9 @@ const acs_credential_warning_map = z.object({
126
126
  needs_to_be_reissued: needs_to_be_reissued.optional().nullable(),
127
127
  })
128
128
 
129
- export type AcsCredentialWarningMap = z.infer<typeof acs_credential_warning_map>
129
+ export type AcsCredentialWarningMap = z.infer<
130
+ typeof _acs_credential_warning_map
131
+ >
130
132
 
131
133
  const common_acs_credential = z.object({
132
134
  acs_credential_id: z
@@ -27,11 +27,11 @@ const acs_encoder_error =
27
27
  'Error associated with the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).',
28
28
  )
29
29
 
30
- const acs_encoder_error_map = z.object({
30
+ const _acs_encoder_error_map = z.object({
31
31
  acs_encoder_removed: acs_encoder_removed.optional().nullable(),
32
32
  })
33
33
 
34
- export type AcsEncoderErrorMap = z.infer<typeof acs_encoder_error_map>
34
+ export type AcsEncoderErrorMap = z.infer<typeof _acs_encoder_error_map>
35
35
 
36
36
  export const acs_encoder = z.object({
37
37
  acs_encoder_id: z
@@ -129,7 +129,7 @@ const acs_system_error = z
129
129
  'Error associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
130
130
  )
131
131
 
132
- export const acs_system_error_map = z.object({
132
+ const _acs_system_error_map = z.object({
133
133
  seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
134
134
  bridge_disconnected: bridge_disconnected.optional().nullable(),
135
135
  visionline_instance_unreachable: visionline_instance_unreachable
@@ -145,7 +145,7 @@ export const acs_system_error_map = z.object({
145
145
  .nullable(),
146
146
  })
147
147
 
148
- export type AcsSystemErrorMap = z.infer<typeof acs_system_error_map>
148
+ export type AcsSystemErrorMap = z.infer<typeof _acs_system_error_map>
149
149
 
150
150
  const common_acs_system_warning = z.object({
151
151
  created_at: z
@@ -198,7 +198,7 @@ const acs_system_warning = z
198
198
  'Warning associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
199
199
  )
200
200
 
201
- export const acs_system_warning_map = z.object({
201
+ const _acs_system_warning_map = z.object({
202
202
  salto_ks_subscription_limit_almost_reached:
203
203
  salto_ks_subscription_limit_almost_reached.optional().nullable(),
204
204
  time_zone_does_not_match_location: time_zone_does_not_match_location
@@ -206,7 +206,7 @@ export const acs_system_warning_map = z.object({
206
206
  .nullable(),
207
207
  })
208
208
 
209
- export type AcsSystemWarningMap = z.infer<typeof acs_system_warning_map>
209
+ export type AcsSystemWarningMap = z.infer<typeof _acs_system_warning_map>
210
210
 
211
211
  export const acs_system = z
212
212
  .object({
@@ -89,7 +89,7 @@ const acs_user_errors = z
89
89
  'Errors associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
90
90
  )
91
91
 
92
- export const acs_users_error_map = z.object({
92
+ const _acs_users_error_map = z.object({
93
93
  deleted_externally: acs_users_deleted_externally.optional().nullable(),
94
94
  salto_ks_subscription_limit_exceeded:
95
95
  acs_users_salto_ks_subscription_limit_exceeded.optional().nullable(),
@@ -107,7 +107,7 @@ export const acs_users_error_map = z.object({
107
107
  .nullable(),
108
108
  })
109
109
 
110
- export type AcsUsersErrorMap = z.infer<typeof acs_users_error_map>
110
+ export type AcsUsersErrorMap = z.infer<typeof _acs_users_error_map>
111
111
 
112
112
  const common_acs_user_warning = z.object({
113
113
  created_at: z
@@ -153,7 +153,7 @@ export const latch_resident_user = common_acs_user_warning
153
153
  'Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created on Latch Mission Control. Please use the Latch Mission Control to manage this user.',
154
154
  )
155
155
 
156
- export const acs_users_warning_map = z.object({
156
+ const _acs_users_warning_map = z.object({
157
157
  being_deleted: acs_users_being_deleted.optional().nullable(),
158
158
  salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed
159
159
  .optional()
@@ -175,7 +175,7 @@ export const acs_users_warnings = z
175
175
  'Warnings associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
176
176
  )
177
177
 
178
- export type AcsUsersWarningMap = z.infer<typeof acs_users_warning_map>
178
+ export type AcsUsersWarningMap = z.infer<typeof _acs_users_warning_map>
179
179
 
180
180
  const user_fields = z.object({
181
181
  full_name: z
@@ -154,7 +154,7 @@ export const acs_user_pending_mutations = z.discriminatedUnion(
154
154
 
155
155
  export type AcsUserPendingMutation = z.infer<typeof acs_user_pending_mutations>
156
156
 
157
- export const acs_user_pending_mutations_map = z.object({
157
+ const _acs_user_pending_mutations_map = z.object({
158
158
  creating: creating.optional().nullable(),
159
159
  deleting: deleting.optional().nullable(),
160
160
  updating_access_schedule: updating_access_schedule_mutation
@@ -206,5 +206,5 @@ export const acs_user_pending_mutations_map = z.object({
206
206
  })
207
207
 
208
208
  export type AcsUserPendingMutationsMap = z.infer<
209
- typeof acs_user_pending_mutations_map
209
+ typeof _acs_user_pending_mutations_map
210
210
  >
@@ -68,7 +68,7 @@ export type BridgeClientSessionError = z.infer<
68
68
  typeof bridge_client_session_error
69
69
  >
70
70
 
71
- const bridge_client_session_error_map = z.object({
71
+ const _bridge_client_session_error_map = z.object({
72
72
  bridge_lan_unreachable: bridge_lan_unreachable.optional().nullable(),
73
73
  no_communication_from_bridge: no_communication_from_bridge
74
74
  .optional()
@@ -76,7 +76,7 @@ const bridge_client_session_error_map = z.object({
76
76
  })
77
77
 
78
78
  export type BridgeClientSessionErrorMap = z.infer<
79
- typeof bridge_client_session_error_map
79
+ typeof _bridge_client_session_error_map
80
80
  >
81
81
 
82
82
  export const bridge_client_session = z.object({
@@ -135,7 +135,7 @@ export type ConnectedAccountError = z.infer<typeof connected_account_error>
135
135
 
136
136
  export type ConnectedAccountWarning = z.infer<typeof connected_account_warning>
137
137
 
138
- const connected_account_error_map = z.object({
138
+ const _connected_account_error_map = z.object({
139
139
  account_disconnected: account_disconnected.nullable().optional(),
140
140
  invalid_credentials: invalid_credentials.nullable().optional(),
141
141
  bridge_disconnected: bridge_disconnected.nullable().optional(),
@@ -145,7 +145,7 @@ const connected_account_error_map = z.object({
145
145
  })
146
146
 
147
147
  export type ConnectedAccountErrorMap = z.infer<
148
- typeof connected_account_error_map
148
+ typeof _connected_account_error_map
149
149
  >
150
150
 
151
151
  export const unknown_issue_with_connected_account =
@@ -230,7 +230,7 @@ const connected_account_warning = z
230
230
  ])
231
231
  .describe('Warning associated with the connected account.')
232
232
 
233
- const connected_account_warning_map = z.object({
233
+ const _connected_account_warning_map = z.object({
234
234
  scheduled_maintenance_window: scheduled_maintenance_window
235
235
  .nullable()
236
236
  .optional(),
@@ -242,7 +242,7 @@ const connected_account_warning_map = z.object({
242
242
  })
243
243
 
244
244
  export type ConnectedAccountWarningMap = z.infer<
245
- typeof connected_account_warning_map
245
+ typeof _connected_account_warning_map
246
246
  >
247
247
 
248
248
  export const connected_account = z.object({
@@ -11,6 +11,21 @@ const base_connect_feature = base_feature
11
11
  const base_manage_devices_feature = base_feature
12
12
  const base_organize_feature = base_feature
13
13
 
14
+ const base_configure_feature = base_feature.extend({
15
+ allow_access_automation_rule_customization: z
16
+ .boolean()
17
+ .default(false)
18
+ .describe(
19
+ 'Indicates whether the customer can customize the access automation rules for their properties.',
20
+ ),
21
+ allow_instant_key_customization: z
22
+ .boolean()
23
+ .default(false)
24
+ .describe(
25
+ 'Indicates whether the customer can customize the Instant Key profile for their properties.',
26
+ ),
27
+ })
28
+
14
29
  const base_features = z.object({
15
30
  connect: base_connect_feature
16
31
  .default({})
@@ -21,6 +36,9 @@ const base_features = z.object({
21
36
  organize: base_organize_feature
22
37
  .default({})
23
38
  .describe('Configuration for the organize feature.'),
39
+ configure: base_configure_feature
40
+ .default({})
41
+ .describe('Configuration for the configure feature.'),
24
42
  })
25
43
 
26
44
  export const portal_configuration = z
@@ -36,6 +54,11 @@ export const portal_configuration = z
36
54
  connect: { exclude: false },
37
55
  organize: { exclude: false },
38
56
  manage_devices: { exclude: false },
57
+ configure: {
58
+ exclude: false,
59
+ allow_instant_key_customization: false, // default
60
+ allow_access_automation_rule_customization: false, // default
61
+ },
39
62
  },
40
63
  is_embedded: false,
41
64
  })
@@ -207,7 +207,7 @@ export const device_error = z
207
207
 
208
208
  export type DeviceError = z.infer<typeof device_error>
209
209
 
210
- const device_error_map = z.object({
210
+ const _device_error_map = z.object({
211
211
  device_offline: device_offline.optional().nullable(),
212
212
  device_removed: device_removed.optional().nullable(),
213
213
  hub_disconnected: hub_disconnected.optional().nullable(),
@@ -230,7 +230,7 @@ const device_error_map = z.object({
230
230
  lockly_missing_wifi_bridge: lockly_missing_wifi_bridge.optional().nullable(),
231
231
  })
232
232
 
233
- export type DeviceErrorMap = z.infer<typeof device_error_map>
233
+ export type DeviceErrorMap = z.infer<typeof _device_error_map>
234
234
 
235
235
  const warning_code_description =
236
236
  'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.'
@@ -327,17 +327,6 @@ const third_party_integration_detected = common_device_warning
327
327
  })
328
328
  .describe('Indicates that a third-party integration has been detected.')
329
329
 
330
- const nest_thermostat_in_manual_eco_mode = common_device_warning.extend({
331
- warning_code: z
332
- .literal('nest_thermostat_in_manual_eco_mode')
333
- .describe(warning_code_description),
334
- }).describe(`
335
- ---
336
- variant_group_key: thermostats
337
- ---
338
- Indicates that the Nest thermostat is in manual eco mode.
339
- `)
340
-
341
330
  const ttlock_lock_gateway_unlocking_not_enabled = common_device_warning.extend({
342
331
  warning_code: z
343
332
  .literal('ttlock_lock_gateway_unlocking_not_enabled')
@@ -430,7 +419,6 @@ const device_warning = z.discriminatedUnion('warning_code', [
430
419
  wyze_device_missing_gateway,
431
420
  functional_offline_device,
432
421
  third_party_integration_detected,
433
- nest_thermostat_in_manual_eco_mode,
434
422
  ttlock_lock_gateway_unlocking_not_enabled,
435
423
  ttlock_weak_gateway_signal,
436
424
  power_saving_mode,
@@ -447,7 +435,7 @@ const device_warning = z.discriminatedUnion('warning_code', [
447
435
 
448
436
  export type DeviceWarning = z.infer<typeof device_warning>
449
437
 
450
- export const device_warning_map = z.object({
438
+ const _device_warning_map = z.object({
451
439
  partial_backup_access_code_pool: partial_backup_access_code_pool
452
440
  .optional()
453
441
  .nullable(),
@@ -466,9 +454,6 @@ export const device_warning_map = z.object({
466
454
  third_party_integration_detected: third_party_integration_detected
467
455
  .optional()
468
456
  .nullable(),
469
- nest_thermostat_in_manual_eco_mode: nest_thermostat_in_manual_eco_mode
470
- .optional()
471
- .nullable(),
472
457
  ttlock_lock_gateway_unlocking_not_enabled:
473
458
  ttlock_lock_gateway_unlocking_not_enabled.optional().nullable(),
474
459
  ttlock_weak_gateway_signal: ttlock_weak_gateway_signal.optional().nullable(),
@@ -492,7 +477,7 @@ export const device_warning_map = z.object({
492
477
  .nullable(),
493
478
  })
494
479
 
495
- export type DeviceWarningMap = z.infer<typeof device_warning_map>
480
+ export type DeviceWarningMap = z.infer<typeof _device_warning_map>
496
481
 
497
482
  export const common_device_properties = z.object({
498
483
  online: z.boolean().describe('Indicates whether the device is online.'),
@@ -71,7 +71,7 @@ const user_identity_issue_with_acs_user = common_user_identity_error
71
71
  'Indicates that there is an issue with an access system user associated with this user identity.',
72
72
  )
73
73
 
74
- export const user_identity_error_map = z.object({
74
+ const _user_identity_error_map = z.object({
75
75
  issue_with_acs_user: z
76
76
  .record(z.string().uuid(), user_identity_issue_with_acs_user)
77
77
  .optional()
@@ -81,7 +81,7 @@ export const user_identity_error_map = z.object({
81
81
  ),
82
82
  })
83
83
 
84
- export type UserIdentityErrorMap = z.infer<typeof user_identity_error_map>
84
+ export type UserIdentityErrorMap = z.infer<typeof _user_identity_error_map>
85
85
 
86
86
  const user_identity_warnings = z
87
87
  .discriminatedUnion('warning_code', [
@@ -90,7 +90,7 @@ const user_identity_warnings = z
90
90
  ])
91
91
  .describe('Warnings associated with the user identity.')
92
92
 
93
- export const user_identity_warning_map = z.object({
93
+ const _user_identity_warning_map = z.object({
94
94
  user_identity_being_deleted: user_identity_being_deleted
95
95
  .optional()
96
96
  .nullable(),
@@ -98,7 +98,7 @@ export const user_identity_warning_map = z.object({
98
98
  acs_user_profile_does_not_match_user_identity.optional().nullable(),
99
99
  })
100
100
 
101
- export type UserIdentityWarningMap = z.infer<typeof user_identity_warning_map>
101
+ export type UserIdentityWarningMap = z.infer<typeof _user_identity_warning_map>
102
102
 
103
103
  const user_identity_errors = z
104
104
  .discriminatedUnion('error_code', [user_identity_issue_with_acs_user])
@@ -1850,6 +1850,7 @@ export default {
1850
1850
  ends_at: {
1851
1851
  description: 'Date and time at which the Access Grant ends.',
1852
1852
  format: 'date-time',
1853
+ nullable: true,
1853
1854
  type: 'string',
1854
1855
  },
1855
1856
  instant_key_url: {
@@ -1943,6 +1944,8 @@ export default {
1943
1944
  'name',
1944
1945
  'display_name',
1945
1946
  'created_at',
1947
+ 'starts_at',
1948
+ 'ends_at',
1946
1949
  ],
1947
1950
  type: 'object',
1948
1951
  'x-draft': 'Early access.',
@@ -12581,32 +12584,6 @@ export default {
12581
12584
  required: ['message', 'created_at', 'warning_code'],
12582
12585
  type: 'object',
12583
12586
  },
12584
- {
12585
- description:
12586
- 'Indicates that the Nest thermostat is in manual eco mode.',
12587
- properties: {
12588
- created_at: {
12589
- description:
12590
- 'Date and time at which Seam created the warning.',
12591
- format: 'date-time',
12592
- type: 'string',
12593
- },
12594
- message: {
12595
- description:
12596
- 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
12597
- type: 'string',
12598
- },
12599
- warning_code: {
12600
- description:
12601
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12602
- enum: ['nest_thermostat_in_manual_eco_mode'],
12603
- type: 'string',
12604
- },
12605
- },
12606
- required: ['message', 'created_at', 'warning_code'],
12607
- type: 'object',
12608
- 'x-variant-group-key': 'thermostats',
12609
- },
12610
12587
  {
12611
12588
  description:
12612
12589
  'Indicates that the Remote Unlock feature is not enabled in the settings."',
@@ -24655,32 +24632,6 @@ export default {
24655
24632
  required: ['message', 'created_at', 'warning_code'],
24656
24633
  type: 'object',
24657
24634
  },
24658
- {
24659
- description:
24660
- 'Indicates that the Nest thermostat is in manual eco mode.',
24661
- properties: {
24662
- created_at: {
24663
- description:
24664
- 'Date and time at which Seam created the warning.',
24665
- format: 'date-time',
24666
- type: 'string',
24667
- },
24668
- message: {
24669
- description:
24670
- 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
24671
- type: 'string',
24672
- },
24673
- warning_code: {
24674
- description:
24675
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
24676
- enum: ['nest_thermostat_in_manual_eco_mode'],
24677
- type: 'string',
24678
- },
24679
- },
24680
- required: ['message', 'created_at', 'warning_code'],
24681
- type: 'object',
24682
- 'x-variant-group-key': 'thermostats',
24683
- },
24684
24635
  {
24685
24636
  description:
24686
24637
  'Indicates that the Remote Unlock feature is not enabled in the settings."',
@@ -28001,8 +27952,10 @@ export default {
28001
27952
  type: 'array',
28002
27953
  },
28003
27954
  ends_at: {
27955
+ default: null,
28004
27956
  description:
28005
27957
  'Date and time at which the validity of the new grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.',
27958
+ nullable: true,
28006
27959
  type: 'string',
28007
27960
  },
28008
27961
  location: {
@@ -38067,6 +38020,11 @@ export default {
38067
38020
  {
38068
38021
  default: {
38069
38022
  features: {
38023
+ configure: {
38024
+ allow_access_automation_rule_customization: false,
38025
+ allow_instant_key_customization: false,
38026
+ exclude: false,
38027
+ },
38070
38028
  connect: { exclude: false },
38071
38029
  manage_devices: { exclude: false },
38072
38030
  organize: { exclude: false },
@@ -38078,6 +38036,32 @@ export default {
38078
38036
  features: {
38079
38037
  default: {},
38080
38038
  properties: {
38039
+ configure: {
38040
+ default: {},
38041
+ description:
38042
+ 'Configuration for the configure feature.',
38043
+ properties: {
38044
+ allow_access_automation_rule_customization: {
38045
+ default: false,
38046
+ description:
38047
+ 'Indicates whether the customer can customize the access automation rules for their properties.',
38048
+ type: 'boolean',
38049
+ },
38050
+ allow_instant_key_customization: {
38051
+ default: false,
38052
+ description:
38053
+ 'Indicates whether the customer can customize the Instant Key profile for their properties.',
38054
+ type: 'boolean',
38055
+ },
38056
+ exclude: {
38057
+ default: false,
38058
+ description:
38059
+ 'Whether to exclude this feature from the portal.',
38060
+ type: 'boolean',
38061
+ },
38062
+ },
38063
+ type: 'object',
38064
+ },
38081
38065
  connect: {
38082
38066
  default: {},
38083
38067
  description:
@@ -47269,6 +47253,18 @@ export default {
47269
47253
  },
47270
47254
  features: {
47271
47255
  properties: {
47256
+ configure: {
47257
+ properties: {
47258
+ allow_access_automation_rule_customization: {
47259
+ type: 'boolean',
47260
+ },
47261
+ allow_instant_key_customization: {
47262
+ type: 'boolean',
47263
+ },
47264
+ exclude: { type: 'boolean' },
47265
+ },
47266
+ type: 'object',
47267
+ },
47272
47268
  connect: {
47273
47269
  properties: { exclude: { type: 'boolean' } },
47274
47270
  type: 'object',
@@ -47352,6 +47348,18 @@ export default {
47352
47348
  },
47353
47349
  features: {
47354
47350
  properties: {
47351
+ configure: {
47352
+ properties: {
47353
+ allow_access_automation_rule_customization: {
47354
+ type: 'boolean',
47355
+ },
47356
+ allow_instant_key_customization: {
47357
+ type: 'boolean',
47358
+ },
47359
+ exclude: { type: 'boolean' },
47360
+ },
47361
+ type: 'object',
47362
+ },
47355
47363
  connect: {
47356
47364
  properties: { exclude: { type: 'boolean' } },
47357
47365
  type: 'object',