@seamapi/types 1.111.0 → 1.113.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 (68) hide show
  1. package/dist/connect.cjs +6 -0
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +36 -2
  4. package/lib/seam/connect/openapi.js +6 -0
  5. package/lib/seam/connect/openapi.js.map +1 -1
  6. package/lib/seam/connect/unstable/models/devices/managed-device.js +5 -2
  7. package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -1
  8. package/package.json +4 -4
  9. package/src/lib/seam/connect/openapi.ts +6 -0
  10. package/src/lib/seam/connect/route-types.ts +24 -0
  11. package/src/lib/seam/connect/unstable/models/devices/managed-device.ts +72 -66
  12. package/connect.d.ts +0 -1
  13. package/devicedb.d.ts +0 -1
  14. package/index.d.ts +0 -2
  15. package/lib/seam/connect/enums.d.ts +0 -1
  16. package/lib/seam/connect/index.d.ts +0 -6
  17. package/lib/seam/connect/internal.d.ts +0 -1
  18. package/lib/seam/connect/openapi.d.ts +0 -16811
  19. package/lib/seam/connect/route-types.d.ts +0 -7635
  20. package/lib/seam/connect/stable/model-types.d.ts +0 -1
  21. package/lib/seam/connect/stable/models/connect-webview.d.ts +0 -63
  22. package/lib/seam/connect/stable/models/custom-metadata.d.ts +0 -3
  23. package/lib/seam/connect/stable/models/index.d.ts +0 -2
  24. package/lib/seam/connect/stable/schemas.d.ts +0 -1
  25. package/lib/seam/connect/unstable/index.d.ts +0 -3
  26. package/lib/seam/connect/unstable/model-types.d.ts +0 -1
  27. package/lib/seam/connect/unstable/models/access-codes/index.d.ts +0 -2
  28. package/lib/seam/connect/unstable/models/access-codes/managed-access-code.d.ts +0 -69
  29. package/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.d.ts +0 -42
  30. package/lib/seam/connect/unstable/models/acs/access_group.d.ts +0 -35
  31. package/lib/seam/connect/unstable/models/acs/credential.d.ts +0 -127
  32. package/lib/seam/connect/unstable/models/acs/credential_pool.d.ts +0 -29
  33. package/lib/seam/connect/unstable/models/acs/credential_provisioning_automation.d.ts +0 -41
  34. package/lib/seam/connect/unstable/models/acs/entrance.d.ts +0 -62
  35. package/lib/seam/connect/unstable/models/acs/index.d.ts +0 -7
  36. package/lib/seam/connect/unstable/models/acs/system.d.ts +0 -35
  37. package/lib/seam/connect/unstable/models/acs/user.d.ts +0 -74
  38. package/lib/seam/connect/unstable/models/capability-properties/access-code.d.ts +0 -93
  39. package/lib/seam/connect/unstable/models/capability-properties/index.d.ts +0 -819
  40. package/lib/seam/connect/unstable/models/capability-properties/lock.d.ts +0 -24
  41. package/lib/seam/connect/unstable/models/capability-properties/thermostat.d.ts +0 -1572
  42. package/lib/seam/connect/unstable/models/devices/capabilities-supported.d.ts +0 -3
  43. package/lib/seam/connect/unstable/models/devices/device-metadata.d.ts +0 -982
  44. package/lib/seam/connect/unstable/models/devices/device-type.d.ts +0 -65
  45. package/lib/seam/connect/unstable/models/devices/index.d.ts +0 -6
  46. package/lib/seam/connect/unstable/models/devices/managed-device.d.ts +0 -3705
  47. package/lib/seam/connect/unstable/models/devices/phone-properties.d.ts +0 -44
  48. package/lib/seam/connect/unstable/models/devices/phone.d.ts +0 -142
  49. package/lib/seam/connect/unstable/models/devices/unmanaged-device.d.ts +0 -188
  50. package/lib/seam/connect/unstable/models/events/access_code_events.d.ts +0 -70
  51. package/lib/seam/connect/unstable/models/events/connected_account_events.d.ts +0 -48
  52. package/lib/seam/connect/unstable/models/events/device_events.d.ts +0 -63
  53. package/lib/seam/connect/unstable/models/events/lock_events.d.ts +0 -42
  54. package/lib/seam/connect/unstable/models/index.d.ts +0 -7
  55. package/lib/seam/connect/unstable/models/network.d.ts +0 -18
  56. package/lib/seam/connect/unstable/models/phone-number.d.ts +0 -2
  57. package/lib/seam/connect/unstable/models/schedule.d.ts +0 -21
  58. package/lib/seam/connect/unstable/models/user-identity.d.ts +0 -30
  59. package/lib/seam/connect/unstable/schemas.d.ts +0 -1
  60. package/lib/seam/devicedb/index.d.ts +0 -5
  61. package/lib/seam/devicedb/models/device-capability.d.ts +0 -21
  62. package/lib/seam/devicedb/models/device-model.d.ts +0 -1064
  63. package/lib/seam/devicedb/models/hardware.d.ts +0 -8
  64. package/lib/seam/devicedb/models/image-reference.d.ts +0 -15
  65. package/lib/seam/devicedb/models/index.d.ts +0 -4
  66. package/lib/seam/devicedb/models/manufacturer.d.ts +0 -84
  67. package/lib/seam/devicedb/route-specs.d.ts +0 -2198
  68. package/lib/seam/devicedb/route-types.d.ts +0 -308
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { schemas as devicedb_schemas } from '@seamapi/types/devicedb';
2
3
  import { custom_metadata } from '../../../stable/models/custom-metadata.js';
3
4
  import { capability_properties } from '../capability-properties/index.js';
4
5
  import { capabilities } from './capabilities-supported.js';
@@ -72,7 +73,8 @@ export const common_device_properties = z.object({
72
73
  .describe('Deprecated. Use offline_access_codes_enabled.')
73
74
  .optional(),
74
75
  });
75
- export const managed_device = z.object({
76
+ export const managed_device = z
77
+ .object({
76
78
  device_id: z.string().uuid().describe('Unique identifier for the device.'),
77
79
  device_type: any_device_type.describe('Type of the device.'),
78
80
  capabilities_supported: z
@@ -125,5 +127,6 @@ export const managed_device = z.object({
125
127
  .literal(true)
126
128
  .describe('Indicates whether Seam manages the device.'),
127
129
  custom_metadata: custom_metadata.optional(),
128
- });
130
+ })
131
+ .merge(devicedb_schemas.device_capability_flags);
129
132
  //# sourceMappingURL=managed-device.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"managed-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/managed-device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,YAAY,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AAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,UAAU,EAAE,CAAC;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,4CAA4C,CAAC;IACzD,eAAe,EAAE,eAAe,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAA"}
1
+ {"version":3,"file":"managed-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/managed-device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAA;AAEjE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAIzE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACP,iIAAiI,CAClI;IACH,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;QACtE,yBAAyB,EAAE,CAAC;aACzB,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M,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,+DAA+D,CAChE;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,sEAAsE,CACvE;IACH,MAAM,EAAE,CAAC;SACN,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;SACA,QAAQ,CACP,mYAAmY,CACpY;IACH,QAAQ,EAAE,CAAC;SACR,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;SACA,QAAQ,CACP,+YAA+Y,CAChZ;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,UAAU,EAAE,CAAC;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,4CAA4C,CAAC;IACzD,eAAe,EAAE,eAAe,CAAC,QAAQ,EAAE;CAC5C,CAAC;KACD,KAAK,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.111.0",
3
+ "version": "1.113.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -71,7 +71,7 @@
71
71
  "build:entrypoints": "npm run build:ts",
72
72
  "postbuild:entrypoints": "tsup",
73
73
  "build:ts": "tsc --project tsconfig.build.json",
74
- "prebuild:ts": "del 'index.*' 'connect.*' 'devicedb.*' 'lib'",
74
+ "prebuild:ts": "del 'index.*' 'connect.*' 'devicedb.*' lib",
75
75
  "postbuild:ts": "tsc-alias --project tsconfig.build.json",
76
76
  "typecheck": "tsc",
77
77
  "docs:build": "typedoc",
@@ -102,9 +102,9 @@
102
102
  "eslint": "^8.9.0",
103
103
  "eslint-config-prettier": "^9.0.0",
104
104
  "eslint-config-standard": "^17.1.0",
105
- "eslint-config-standard-with-typescript": "^42.0.0",
105
+ "eslint-config-standard-with-typescript": "^43.0.1",
106
106
  "eslint-plugin-node": "^11.1.0",
107
- "eslint-plugin-simple-import-sort": "^10.0.0",
107
+ "eslint-plugin-simple-import-sort": "^12.0.0",
108
108
  "eslint-plugin-unused-imports": "^3.0.0",
109
109
  "patch-package": "^8.0.0",
110
110
  "prettier": "^3.0.0",
@@ -517,6 +517,8 @@ export default {
517
517
  },
518
518
  device: {
519
519
  properties: {
520
+ can_program_online_access_codes: { type: 'boolean' },
521
+ can_remotely_unlock: { type: 'boolean' },
520
522
  capabilities_supported: {
521
523
  description:
522
524
  'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.',
@@ -1791,6 +1793,8 @@ export default {
1791
1793
  },
1792
1794
  phone: {
1793
1795
  properties: {
1796
+ can_program_online_access_codes: { type: 'boolean' },
1797
+ can_remotely_unlock: { type: 'boolean' },
1794
1798
  capabilities_supported: {
1795
1799
  description:
1796
1800
  'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.',
@@ -8422,6 +8426,7 @@ export default {
8422
8426
  'connected_account.deleted',
8423
8427
  'connected_account.disconnected',
8424
8428
  'connected_account.completed_first_sync',
8429
+ 'connected_account.completed_first_sync_after_reconnection',
8425
8430
  'noise_sensor.noise_threshold_triggered',
8426
8431
  'access_code.backup_access_code_pulled',
8427
8432
  ],
@@ -8473,6 +8478,7 @@ export default {
8473
8478
  'connected_account.deleted',
8474
8479
  'connected_account.disconnected',
8475
8480
  'connected_account.completed_first_sync',
8481
+ 'connected_account.completed_first_sync_after_reconnection',
8476
8482
  'noise_sensor.noise_threshold_triggered',
8477
8483
  'access_code.backup_access_code_pulled',
8478
8484
  ],
@@ -2848,6 +2848,8 @@ export interface Routes {
2848
2848
  /** Indicates whether Seam manages the device. */
2849
2849
  is_managed: true
2850
2850
  custom_metadata?: Record<string, string | boolean | null> | undefined
2851
+ can_remotely_unlock?: boolean | undefined
2852
+ can_program_online_access_codes?: boolean | undefined
2851
2853
  }
2852
2854
  }
2853
2855
  }
@@ -3652,6 +3654,8 @@ export interface Routes {
3652
3654
  /** Indicates whether Seam manages the device. */
3653
3655
  is_managed: true
3654
3656
  custom_metadata?: Record<string, string | boolean | null> | undefined
3657
+ can_remotely_unlock?: boolean | undefined
3658
+ can_program_online_access_codes?: boolean | undefined
3655
3659
  }>
3656
3660
  }
3657
3661
  }
@@ -4127,6 +4131,7 @@ export interface Routes {
4127
4131
  | 'connected_account.deleted'
4128
4132
  | 'connected_account.disconnected'
4129
4133
  | 'connected_account.completed_first_sync'
4134
+ | 'connected_account.completed_first_sync_after_reconnection'
4130
4135
  | 'noise_sensor.noise_threshold_triggered'
4131
4136
  | 'access_code.backup_access_code_pulled'
4132
4137
  )
@@ -4176,6 +4181,7 @@ export interface Routes {
4176
4181
  | 'connected_account.deleted'
4177
4182
  | 'connected_account.disconnected'
4178
4183
  | 'connected_account.completed_first_sync'
4184
+ | 'connected_account.completed_first_sync_after_reconnection'
4179
4185
  | 'noise_sensor.noise_threshold_triggered'
4180
4186
  | 'access_code.backup_access_code_pulled'
4181
4187
  >
@@ -4957,6 +4963,8 @@ export interface Routes {
4957
4963
  /** Indicates whether Seam manages the device. */
4958
4964
  is_managed: true
4959
4965
  custom_metadata?: Record<string, string | boolean | null> | undefined
4966
+ can_remotely_unlock?: boolean | undefined
4967
+ can_program_online_access_codes?: boolean | undefined
4960
4968
  }
4961
4969
  device: {
4962
4970
  /** Unique identifier for the device. */
@@ -5633,6 +5641,8 @@ export interface Routes {
5633
5641
  /** Indicates whether Seam manages the device. */
5634
5642
  is_managed: true
5635
5643
  custom_metadata?: Record<string, string | boolean | null> | undefined
5644
+ can_remotely_unlock?: boolean | undefined
5645
+ can_program_online_access_codes?: boolean | undefined
5636
5646
  }
5637
5647
  }
5638
5648
  }
@@ -6437,6 +6447,8 @@ export interface Routes {
6437
6447
  /** Indicates whether Seam manages the device. */
6438
6448
  is_managed: true
6439
6449
  custom_metadata?: Record<string, string | boolean | null> | undefined
6450
+ can_remotely_unlock?: boolean | undefined
6451
+ can_program_online_access_codes?: boolean | undefined
6440
6452
  }>
6441
6453
  devices: Array<{
6442
6454
  /** Unique identifier for the device. */
@@ -7113,6 +7125,8 @@ export interface Routes {
7113
7125
  /** Indicates whether Seam manages the device. */
7114
7126
  is_managed: true
7115
7127
  custom_metadata?: Record<string, string | boolean | null> | undefined
7128
+ can_remotely_unlock?: boolean | undefined
7129
+ can_program_online_access_codes?: boolean | undefined
7116
7130
  }>
7117
7131
  }
7118
7132
  }
@@ -7484,6 +7498,8 @@ export interface Routes {
7484
7498
  /** Indicates whether Seam manages the device. */
7485
7499
  is_managed: true
7486
7500
  custom_metadata?: Record<string, string | boolean | null> | undefined
7501
+ can_remotely_unlock?: boolean | undefined
7502
+ can_program_online_access_codes?: boolean | undefined
7487
7503
  }>
7488
7504
  }
7489
7505
  }
@@ -7561,6 +7577,8 @@ export interface Routes {
7561
7577
  /** Indicates whether Seam manages the device. */
7562
7578
  is_managed: true
7563
7579
  custom_metadata?: Record<string, string | boolean | null> | undefined
7580
+ can_remotely_unlock?: boolean | undefined
7581
+ can_program_online_access_codes?: boolean | undefined
7564
7582
  }
7565
7583
  }
7566
7584
  }
@@ -8425,6 +8443,8 @@ export interface Routes {
8425
8443
  /** Indicates whether Seam manages the device. */
8426
8444
  is_managed: true
8427
8445
  custom_metadata?: Record<string, string | boolean | null> | undefined
8446
+ can_remotely_unlock?: boolean | undefined
8447
+ can_program_online_access_codes?: boolean | undefined
8428
8448
  }
8429
8449
  }
8430
8450
  }
@@ -9259,6 +9279,8 @@ export interface Routes {
9259
9279
  /** Indicates whether Seam manages the device. */
9260
9280
  is_managed: true
9261
9281
  custom_metadata?: Record<string, string | boolean | null> | undefined
9282
+ can_remotely_unlock?: boolean | undefined
9283
+ can_program_online_access_codes?: boolean | undefined
9262
9284
  }>
9263
9285
  }
9264
9286
  }
@@ -10162,6 +10184,8 @@ export interface Routes {
10162
10184
  /** Indicates whether Seam manages the device. */
10163
10185
  is_managed: true
10164
10186
  custom_metadata?: Record<string, string | boolean | null> | undefined
10187
+ can_remotely_unlock?: boolean | undefined
10188
+ can_program_online_access_codes?: boolean | undefined
10165
10189
  }>
10166
10190
  }
10167
10191
  }
@@ -1,6 +1,8 @@
1
1
  import type { SetRequired, Simplify } from 'type-fest'
2
2
  import { z } from 'zod'
3
3
 
4
+ import { schemas as devicedb_schemas } from '@seamapi/types/devicedb'
5
+
4
6
  import { custom_metadata } from '../../../stable/models/custom-metadata.js'
5
7
  import { capability_properties } from '../capability-properties/index.js'
6
8
  import { capabilities } from './capabilities-supported.js'
@@ -94,72 +96,76 @@ export const common_device_properties = z.object({
94
96
  .optional(),
95
97
  })
96
98
 
97
- export const managed_device = z.object({
98
- device_id: z.string().uuid().describe('Unique identifier for the device.'),
99
- device_type: any_device_type.describe('Type of the device.'),
100
- capabilities_supported: z
101
- .array(capabilities)
102
- .describe(
103
- 'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.',
104
- ),
105
- properties: common_device_properties
106
- .and(phone_specific_properties.partial())
107
- .and(device_metadata)
108
- .and(capability_properties)
109
- .describe('Properties of the device.'),
110
- location: z
111
- // todo: optional instead of nullable
112
- .object({
113
- location_name: z
114
- .string()
115
- .optional()
116
- .describe('Name of the device location.'),
117
- timezone: z
118
- .string()
119
- .optional()
120
- .describe('Time zone of the device location.'),
121
- })
122
- .nullable()
123
- .describe('Location information for the device.'),
124
- connected_account_id: z
125
- .string()
126
- .uuid()
127
- .describe('Unique identifier for the account associated with the device.'),
128
- workspace_id: z
129
- .string()
130
- .uuid()
131
- .describe(
132
- 'Unique identifier for the Seam workspace associated with the device.',
133
- ),
134
- errors: z
135
- .array(
136
- z.object({
137
- error_code: z.string(),
138
- message: z.string(),
139
- }),
140
- )
141
- .describe(
142
- 'Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
143
- ),
144
- warnings: z
145
- .array(
146
- z.object({
147
- warning_code: z.string(),
148
- message: z.string(),
149
- }),
150
- )
151
- .describe(
152
- 'Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.',
153
- ),
154
- created_at: z
155
- .string()
156
- .datetime()
157
- .describe('Date and time at which the device object was created.'),
158
- is_managed: z
159
- .literal(true)
160
- .describe('Indicates whether Seam manages the device.'),
161
- custom_metadata: custom_metadata.optional(),
162
- })
99
+ export const managed_device = z
100
+ .object({
101
+ device_id: z.string().uuid().describe('Unique identifier for the device.'),
102
+ device_type: any_device_type.describe('Type of the device.'),
103
+ capabilities_supported: z
104
+ .array(capabilities)
105
+ .describe(
106
+ 'Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health.',
107
+ ),
108
+ properties: common_device_properties
109
+ .and(phone_specific_properties.partial())
110
+ .and(device_metadata)
111
+ .and(capability_properties)
112
+ .describe('Properties of the device.'),
113
+ location: z
114
+ // todo: optional instead of nullable
115
+ .object({
116
+ location_name: z
117
+ .string()
118
+ .optional()
119
+ .describe('Name of the device location.'),
120
+ timezone: z
121
+ .string()
122
+ .optional()
123
+ .describe('Time zone of the device location.'),
124
+ })
125
+ .nullable()
126
+ .describe('Location information for the device.'),
127
+ connected_account_id: z
128
+ .string()
129
+ .uuid()
130
+ .describe(
131
+ 'Unique identifier for the account associated with the device.',
132
+ ),
133
+ workspace_id: z
134
+ .string()
135
+ .uuid()
136
+ .describe(
137
+ 'Unique identifier for the Seam workspace associated with the device.',
138
+ ),
139
+ errors: z
140
+ .array(
141
+ z.object({
142
+ error_code: z.string(),
143
+ message: z.string(),
144
+ }),
145
+ )
146
+ .describe(
147
+ 'Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
148
+ ),
149
+ warnings: z
150
+ .array(
151
+ z.object({
152
+ warning_code: z.string(),
153
+ message: z.string(),
154
+ }),
155
+ )
156
+ .describe(
157
+ 'Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.',
158
+ ),
159
+ created_at: z
160
+ .string()
161
+ .datetime()
162
+ .describe('Date and time at which the device object was created.'),
163
+ is_managed: z
164
+ .literal(true)
165
+ .describe('Indicates whether Seam manages the device.'),
166
+ custom_metadata: custom_metadata.optional(),
167
+ })
168
+ .merge(devicedb_schemas.device_capability_flags)
163
169
 
164
170
  export type ManagedDevice = z.infer<typeof managed_device>
165
171
 
package/connect.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './lib/seam/connect/index.js';
package/devicedb.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './lib/seam/devicedb/index.js';
package/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const _default: null;
2
- export default _default;
@@ -1 +0,0 @@
1
- export { LOCK_DEVICE_TYPE, LOCK_DEVICE_TYPE_LIST, NOISE_SENSOR_DEVICE_TYPE, NOISE_SENSOR_DEVICE_TYPE_LIST, THERMOSTAT_DEVICE_TYPE, THERMOSTAT_DEVICE_TYPE_LIST, } from './unstable/models/index.js';
@@ -1,6 +0,0 @@
1
- import * as schemas from './stable/schemas.js';
2
- export { schemas };
3
- export { default as openapi } from './openapi.js';
4
- export * from './route-types.js';
5
- export * from './stable/model-types.js';
6
- export declare const routes: {};
@@ -1 +0,0 @@
1
- export * from './enums.js';