@seamapi/types 1.26.1 → 1.27.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.
@@ -710,6 +710,7 @@ export interface Routes {
710
710
  system_type_display_name: string;
711
711
  name: string;
712
712
  created_at: string;
713
+ connected_account_ids: string[];
713
714
  };
714
715
  };
715
716
  };
@@ -733,6 +734,7 @@ export interface Routes {
733
734
  system_type_display_name: string;
734
735
  name: string;
735
736
  created_at: string;
737
+ connected_account_ids: string[];
736
738
  }>;
737
739
  };
738
740
  };
@@ -9,6 +9,7 @@ export declare const acs_system: z.ZodObject<{
9
9
  system_type_display_name: z.ZodString;
10
10
  name: z.ZodString;
11
11
  created_at: z.ZodString;
12
+ connected_account_ids: z.ZodArray<z.ZodString, "many">;
12
13
  }, "strip", z.ZodTypeAny, {
13
14
  name: string;
14
15
  created_at: string;
@@ -17,6 +18,7 @@ export declare const acs_system: z.ZodObject<{
17
18
  external_type_display_name: string;
18
19
  system_type: "pti_site" | "alta_org";
19
20
  system_type_display_name: string;
21
+ connected_account_ids: string[];
20
22
  }, {
21
23
  name: string;
22
24
  created_at: string;
@@ -25,5 +27,6 @@ export declare const acs_system: z.ZodObject<{
25
27
  external_type_display_name: string;
26
28
  system_type: "pti_site" | "alta_org";
27
29
  system_type_display_name: string;
30
+ connected_account_ids: string[];
28
31
  }>;
29
32
  export type AcsSystem = z.output<typeof acs_system>;
@@ -11,5 +11,6 @@ export const acs_system = z.object({
11
11
  .describe('deprecated: use external_type_display_name'),
12
12
  name: z.string(),
13
13
  created_at: z.string().datetime(),
14
+ connected_account_ids: z.array(z.string()),
14
15
  });
15
16
  //# sourceMappingURL=system.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"system.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,kEAAkE;AAClE,MAAM,CAA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;IACjC,qBAAqB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3C,CAAC,CAAA"}
@@ -1029,19 +1029,19 @@ export declare const routes: {
1029
1029
  readonly auth: "publishable_key";
1030
1030
  readonly methods: readonly ["GET", "OPTIONS"];
1031
1031
  readonly queryParams: z.ZodObject<{
1032
- main_category: z.ZodEnum<["smartlock", "sensor", "thermostat", "relay", "intercom", "accessory"]>;
1032
+ main_category: z.ZodOptional<z.ZodEnum<["smartlock", "sensor", "thermostat", "relay", "intercom", "accessory"]>>;
1033
1033
  manufacturer_id: z.ZodOptional<z.ZodString>;
1034
1034
  manufacturer_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1035
1035
  integration_status: z.ZodOptional<z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>>;
1036
1036
  text_search: z.ZodOptional<z.ZodString>;
1037
1037
  }, "strip", z.ZodTypeAny, {
1038
- main_category: "relay" | "thermostat" | "smartlock" | "sensor" | "intercom" | "accessory";
1038
+ main_category?: "relay" | "thermostat" | "smartlock" | "sensor" | "intercom" | "accessory" | undefined;
1039
1039
  manufacturer_id?: string | undefined;
1040
1040
  manufacturer_ids?: string[] | undefined;
1041
1041
  integration_status?: "beta" | "stable" | "unsupported" | "planned" | "inquire" | undefined;
1042
1042
  text_search?: string | undefined;
1043
1043
  }, {
1044
- main_category: "relay" | "thermostat" | "smartlock" | "sensor" | "intercom" | "accessory";
1044
+ main_category?: "relay" | "thermostat" | "smartlock" | "sensor" | "intercom" | "accessory" | undefined;
1045
1045
  manufacturer_id?: string | undefined;
1046
1046
  manufacturer_ids?: string[] | undefined;
1047
1047
  integration_status?: "beta" | "stable" | "unsupported" | "planned" | "inquire" | undefined;
@@ -15,7 +15,7 @@ export const routes = {
15
15
  auth: 'publishable_key',
16
16
  methods: ['GET', 'OPTIONS'],
17
17
  queryParams: z.object({
18
- main_category: schemas.device_category,
18
+ main_category: schemas.device_category.optional(),
19
19
  manufacturer_id: z.string().uuid().optional(),
20
20
  manufacturer_ids: z.string().uuid().array().optional(),
21
21
  integration_status: schemas.manufacturer.shape.integration.optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"route-specs.js","sourceRoot":"","sources":["../../../src/lib/seam/devicedb/route-specs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAA;AAEnD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,2BAA2B,EAAE;QAC3B,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC;QAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YACpB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;SACnC,CAAC;QACF,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC;YACrB,YAAY,EAAE,OAAO,CAAC,eAAe;SACtC,CAAC;KACH;IACD,4BAA4B,EAAE;QAC5B,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC;QAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YACpB,aAAa,EAAE,OAAO,CAAC,eAAe;YACtC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;YAC7C,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;YACtD,kBAAkB,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE;YACrE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACnC,CAAC;QACF,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC;YACrB,aAAa,EAAE,OAAO,CAAC,eAAe,CAAC,KAA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Y,CAAC,KAAK,EAAE;SAC5C,CAAC;KACH;CACO,CAAA"}
@@ -105,7 +105,7 @@ export interface Routes {
105
105
  route: '/v1/device_models/list';
106
106
  method: 'GET' | 'OPTIONS';
107
107
  queryParams: {
108
- main_category: 'smartlock' | 'sensor' | 'thermostat' | 'relay' | 'intercom' | 'accessory';
108
+ main_category?: ('smartlock' | 'sensor' | 'thermostat' | 'relay' | 'intercom' | 'accessory') | undefined;
109
109
  manufacturer_id?: string | undefined;
110
110
  manufacturer_ids?: string[] | undefined;
111
111
  integration_status?: ('stable' | 'beta' | 'planned' | 'unsupported' | 'inquire') | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.26.1",
3
+ "version": "1.27.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -93,6 +93,7 @@ export default {
93
93
  acs_system: {
94
94
  properties: {
95
95
  acs_system_id: { format: 'uuid', type: 'string' },
96
+ connected_account_ids: { items: { type: 'string' }, type: 'array' },
96
97
  created_at: { format: 'date-time', type: 'string' },
97
98
  external_type: { enum: ['pti_site', 'alta_org'], type: 'string' },
98
99
  external_type_display_name: { type: 'string' },
@@ -115,6 +116,7 @@ export default {
115
116
  'system_type_display_name',
116
117
  'name',
117
118
  'created_at',
119
+ 'connected_account_ids',
118
120
  ],
119
121
  type: 'object',
120
122
  },
@@ -748,6 +748,7 @@ export interface Routes {
748
748
  system_type_display_name: string
749
749
  name: string
750
750
  created_at: string
751
+ connected_account_ids: string[]
751
752
  }
752
753
  }
753
754
  }
@@ -771,6 +772,7 @@ export interface Routes {
771
772
  system_type_display_name: string
772
773
  name: string
773
774
  created_at: string
775
+ connected_account_ids: string[]
774
776
  }>
775
777
  }
776
778
  }
@@ -17,6 +17,7 @@ export const acs_system = z.object({
17
17
  .describe('deprecated: use external_type_display_name'),
18
18
  name: z.string(),
19
19
  created_at: z.string().datetime(),
20
+ connected_account_ids: z.array(z.string()),
20
21
  })
21
22
 
22
23
  export type AcsSystem = z.output<typeof acs_system>
@@ -17,7 +17,7 @@ export const routes = {
17
17
  auth: 'publishable_key',
18
18
  methods: ['GET', 'OPTIONS'],
19
19
  queryParams: z.object({
20
- main_category: schemas.device_category,
20
+ main_category: schemas.device_category.optional(),
21
21
  manufacturer_id: z.string().uuid().optional(),
22
22
  manufacturer_ids: z.string().uuid().array().optional(),
23
23
  integration_status: schemas.manufacturer.shape.integration.optional(),
@@ -132,13 +132,16 @@ export interface Routes {
132
132
  route: '/v1/device_models/list'
133
133
  method: 'GET' | 'OPTIONS'
134
134
  queryParams: {
135
- main_category:
136
- | 'smartlock'
137
- | 'sensor'
138
- | 'thermostat'
139
- | 'relay'
140
- | 'intercom'
141
- | 'accessory'
135
+ main_category?:
136
+ | (
137
+ | 'smartlock'
138
+ | 'sensor'
139
+ | 'thermostat'
140
+ | 'relay'
141
+ | 'intercom'
142
+ | 'accessory'
143
+ )
144
+ | undefined
142
145
  manufacturer_id?: string | undefined
143
146
  manufacturer_ids?: string[] | undefined
144
147
  integration_status?: