@seamapi/types 1.410.1 → 1.411.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.410.1",
3
+ "version": "1.411.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -54,6 +54,7 @@ export {
54
54
  phone_registration,
55
55
  phone_session,
56
56
  space,
57
+ space_resource,
57
58
  thermostat_capability_properties,
58
59
  thermostat_device_type,
59
60
  thermostat_schedule,
@@ -4,6 +4,7 @@ export const building_block_type = z.enum([
4
4
  'connect_accounts',
5
5
  'manage_devices',
6
6
  'organize_spaces',
7
+ 'console',
7
8
  ])
8
9
 
9
10
  export type BuildingBlockType = z.infer<typeof building_block_type>
@@ -42,3 +42,18 @@ export const typed_partner_resource = z.object({
42
42
  `)
43
43
 
44
44
  export type TypedPartnerResource = z.infer<typeof typed_partner_resource>
45
+
46
+ export const space_resource = z.object({
47
+ space_key: z.string(),
48
+
49
+ name: z.string(),
50
+ description: z.string().optional(),
51
+ custom_metadata: z.record(z.string(), z.string()).optional(),
52
+ }).describe(`
53
+ ---
54
+ undocumented: Unreleased.
55
+ route_path: /unstable_partner/resources
56
+ ---
57
+ `)
58
+
59
+ export type SpaceResource = z.infer<typeof space_resource>