@seamapi/types 1.410.2 → 1.411.1

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.
@@ -56841,7 +56841,7 @@ export interface Routes {
56841
56841
  /** */
56842
56842
  magic_link: {
56843
56843
  url: string;
56844
- building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
56844
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces' | 'console';
56845
56845
  customer_key: string;
56846
56846
  expires_at: string;
56847
56847
  workspace_id: string;
@@ -56855,23 +56855,13 @@ export interface Routes {
56855
56855
  queryParams: {};
56856
56856
  jsonBody: {};
56857
56857
  commonParams: {
56858
- /** `connect_accounts` building block type. */
56859
- building_block_type: 'connect_accounts';
56858
+ /** Type of building block to create a magic link for. */
56859
+ building_block_type: 'connect_accounts' | 'organize_spaces' | 'console' | 'manage_devices';
56860
56860
  /** Customer key for which you want to create a new building block magic link. */
56861
56861
  customer_key: string;
56862
- } | {
56863
- /** `manage_devices` building block type. */
56864
- building_block_type: 'manage_devices';
56865
- /** Customer key for which you want to create a new building block magic link. */
56866
- customer_key: string;
56867
- } | {
56868
- /** `organize_spaces` building block type. */
56869
- building_block_type: 'organize_spaces';
56870
- /** Customer key for which you want to create a new building block magic link. */
56871
- customer_key: string;
56872
- /** Optional list of partner resources that you want to include in the new building block magic link. */
56873
- partner_resources?: Array<{
56874
- partner_resource_key: string;
56862
+ /** Optional list of spaces that you want to include in the new building block magic link. */
56863
+ spaces?: Array<{
56864
+ space_key: string;
56875
56865
  name: string;
56876
56866
  description?: string | undefined;
56877
56867
  custom_metadata?: Record<string, string> | undefined;
@@ -56882,7 +56872,7 @@ export interface Routes {
56882
56872
  /** */
56883
56873
  magic_link: {
56884
56874
  url: string;
56885
- building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
56875
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces' | 'console';
56886
56876
  customer_key: string;
56887
56877
  expires_at: string;
56888
56878
  workspace_id: string;
@@ -56904,7 +56894,7 @@ export interface Routes {
56904
56894
  /** */
56905
56895
  magic_link: {
56906
56896
  url: string;
56907
- building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
56897
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces' | 'console';
56908
56898
  customer_key: string;
56909
56899
  expires_at: string;
56910
56900
  workspace_id: string;
@@ -56920,9 +56910,9 @@ export interface Routes {
56920
56910
  commonParams: {
56921
56911
  /** Customer key for which you want to organize spaces. */
56922
56912
  customer_key: string;
56923
- /** Optional list of partner resources that you want to include in the new building block magic link. */
56924
- partner_resources?: Array<{
56925
- partner_resource_key: string;
56913
+ /** Optional list of spaces that you want to include in the new building block magic link. */
56914
+ spaces?: Array<{
56915
+ space_key: string;
56926
56916
  name: string;
56927
56917
  description?: string | undefined;
56928
56918
  custom_metadata?: Record<string, string> | undefined;
@@ -56933,7 +56923,7 @@ export interface Routes {
56933
56923
  /** */
56934
56924
  magic_link: {
56935
56925
  url: string;
56936
- building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
56926
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces' | 'console';
56937
56927
  customer_key: string;
56938
56928
  expires_at: string;
56939
56929
  workspace_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.410.2",
3
+ "version": "1.411.1",
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>