@seamapi/types 1.29.0 → 1.31.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/dist/connect.cjs +20 -4
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +8 -0
- package/dist/devicedb.cjs +5 -2
- package/dist/devicedb.cjs.map +1 -1
- package/dist/devicedb.d.cts +27 -8
- package/lib/seam/connect/openapi.d.ts +4 -0
- package/lib/seam/connect/openapi.js +20 -4
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +4 -0
- package/lib/seam/devicedb/public-models/device-model-v1.d.ts +6 -4
- package/lib/seam/devicedb/public-models/device-model-v1.js +3 -1
- package/lib/seam/devicedb/public-models/device-model-v1.js.map +1 -1
- package/lib/seam/devicedb/public-models/manufacturer.d.ts +3 -0
- package/lib/seam/devicedb/public-models/manufacturer.js +1 -0
- package/lib/seam/devicedb/public-models/manufacturer.js.map +1 -1
- package/lib/seam/devicedb/route-specs.d.ts +16 -4
- package/lib/seam/devicedb/route-types.d.ts +2 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +24 -4
- package/src/lib/seam/connect/route-types.ts +4 -0
- package/src/lib/seam/devicedb/public-models/device-model-v1.ts +3 -1
- package/src/lib/seam/devicedb/public-models/manufacturer.ts +1 -0
- package/src/lib/seam/devicedb/route-types.ts +2 -0
|
@@ -1674,6 +1674,7 @@ export interface Routes {
|
|
|
1674
1674
|
queryParams: {};
|
|
1675
1675
|
jsonBody: {};
|
|
1676
1676
|
commonParams: {
|
|
1677
|
+
/** List all devices owned by this connected account */
|
|
1677
1678
|
connected_account_id?: string | undefined;
|
|
1678
1679
|
connected_account_ids?: string[] | undefined;
|
|
1679
1680
|
connect_webview_id?: string | undefined;
|
|
@@ -2141,6 +2142,7 @@ export interface Routes {
|
|
|
2141
2142
|
queryParams: {};
|
|
2142
2143
|
jsonBody: {};
|
|
2143
2144
|
commonParams: {
|
|
2145
|
+
/** List all devices owned by this connected account */
|
|
2144
2146
|
connected_account_id?: string | undefined;
|
|
2145
2147
|
connected_account_ids?: string[] | undefined;
|
|
2146
2148
|
connect_webview_id?: string | undefined;
|
|
@@ -2360,6 +2362,7 @@ export interface Routes {
|
|
|
2360
2362
|
queryParams: {};
|
|
2361
2363
|
jsonBody: {};
|
|
2362
2364
|
commonParams: {
|
|
2365
|
+
/** List all devices owned by this connected account */
|
|
2363
2366
|
connected_account_id?: string | undefined;
|
|
2364
2367
|
connected_account_ids?: string[] | undefined;
|
|
2365
2368
|
connect_webview_id?: string | undefined;
|
|
@@ -3220,6 +3223,7 @@ export interface Routes {
|
|
|
3220
3223
|
queryParams: {};
|
|
3221
3224
|
jsonBody: {};
|
|
3222
3225
|
commonParams: {
|
|
3226
|
+
/** List all devices owned by this connected account */
|
|
3223
3227
|
connected_account_id?: string | undefined;
|
|
3224
3228
|
connected_account_ids?: string[] | undefined;
|
|
3225
3229
|
connect_webview_id?: string | undefined;
|
|
@@ -272,7 +272,7 @@ export declare const device_model_category_specific_properties: z.ZodDiscriminat
|
|
|
272
272
|
}>]>;
|
|
273
273
|
export declare const base_device_model_v1: z.ZodObject<{
|
|
274
274
|
device_model_id: z.ZodString;
|
|
275
|
-
manufacturer: z.ZodObject<{
|
|
275
|
+
manufacturer: z.ZodObject<Omit<{
|
|
276
276
|
manufacturer_id: z.ZodString;
|
|
277
277
|
display_name: z.ZodString;
|
|
278
278
|
logo: z.ZodOptional<z.ZodObject<{
|
|
@@ -291,7 +291,8 @@ export declare const base_device_model_v1: z.ZodObject<{
|
|
|
291
291
|
integration: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
292
292
|
is_connect_webview_supported: z.ZodBoolean;
|
|
293
293
|
requires_seam_support_to_add_account: z.ZodBoolean;
|
|
294
|
-
|
|
294
|
+
device_model_count: z.ZodOptional<z.ZodNumber>;
|
|
295
|
+
}, "device_model_count">, "strip", z.ZodTypeAny, {
|
|
295
296
|
display_name: string;
|
|
296
297
|
manufacturer_id: string;
|
|
297
298
|
integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
@@ -491,7 +492,7 @@ export declare const base_device_model_v1: z.ZodObject<{
|
|
|
491
492
|
export type BaseDeviceModelV1 = z.infer<typeof base_device_model_v1>;
|
|
492
493
|
export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
493
494
|
device_model_id: z.ZodString;
|
|
494
|
-
manufacturer: z.ZodObject<{
|
|
495
|
+
manufacturer: z.ZodObject<Omit<{
|
|
495
496
|
manufacturer_id: z.ZodString;
|
|
496
497
|
display_name: z.ZodString;
|
|
497
498
|
logo: z.ZodOptional<z.ZodObject<{
|
|
@@ -510,7 +511,8 @@ export declare const device_model_v1: z.ZodIntersection<z.ZodObject<{
|
|
|
510
511
|
integration: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
511
512
|
is_connect_webview_supported: z.ZodBoolean;
|
|
512
513
|
requires_seam_support_to_add_account: z.ZodBoolean;
|
|
513
|
-
|
|
514
|
+
device_model_count: z.ZodOptional<z.ZodNumber>;
|
|
515
|
+
}, "device_model_count">, "strip", z.ZodTypeAny, {
|
|
514
516
|
display_name: string;
|
|
515
517
|
manufacturer_id: string;
|
|
516
518
|
integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
@@ -81,7 +81,9 @@ const accessory = z.object({
|
|
|
81
81
|
export const device_model_category_specific_properties = z.discriminatedUnion('main_category', [smartlock, sensor, thermostat, relay, intercom, accessory]);
|
|
82
82
|
export const base_device_model_v1 = z.object({
|
|
83
83
|
device_model_id: z.string().uuid(),
|
|
84
|
-
manufacturer
|
|
84
|
+
manufacturer: manufacturer.omit({
|
|
85
|
+
device_model_count: true,
|
|
86
|
+
}),
|
|
85
87
|
is_device_supported: z.boolean(),
|
|
86
88
|
display_name: z.string(),
|
|
87
89
|
description: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-model-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AAG,CACrD,yCAAyC,CAC1C,CAAA"}
|
|
@@ -20,6 +20,7 @@ export declare const manufacturer: z.ZodObject<{
|
|
|
20
20
|
integration: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
21
21
|
is_connect_webview_supported: z.ZodBoolean;
|
|
22
22
|
requires_seam_support_to_add_account: z.ZodBoolean;
|
|
23
|
+
device_model_count: z.ZodOptional<z.ZodNumber>;
|
|
23
24
|
}, "strip", z.ZodTypeAny, {
|
|
24
25
|
display_name: string;
|
|
25
26
|
manufacturer_id: string;
|
|
@@ -31,6 +32,7 @@ export declare const manufacturer: z.ZodObject<{
|
|
|
31
32
|
width: number;
|
|
32
33
|
url: string;
|
|
33
34
|
} | undefined;
|
|
35
|
+
device_model_count?: number | undefined;
|
|
34
36
|
}, {
|
|
35
37
|
display_name: string;
|
|
36
38
|
manufacturer_id: string;
|
|
@@ -42,5 +44,6 @@ export declare const manufacturer: z.ZodObject<{
|
|
|
42
44
|
width: number;
|
|
43
45
|
url: string;
|
|
44
46
|
} | undefined;
|
|
47
|
+
device_model_count?: number | undefined;
|
|
45
48
|
}>;
|
|
46
49
|
export type Manufacturer = z.infer<typeof manufacturer>;
|
|
@@ -14,5 +14,6 @@ export const manufacturer = z.object({
|
|
|
14
14
|
integration: manufacturer_integration_support_level,
|
|
15
15
|
is_connect_webview_supported: z.boolean(),
|
|
16
16
|
requires_seam_support_to_add_account: z.boolean(),
|
|
17
|
+
device_model_count: z.number().optional(),
|
|
17
18
|
});
|
|
18
19
|
//# sourceMappingURL=manufacturer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manufacturer.js","sourceRoot":"","sources":["../../../../src/lib/seam/devicedb/public-models/manufacturer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3D,QAAQ;IACR,MAAM;IACN,SAAS;IACT,aAAa;IACb,SAAS;CACV,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,eAAe,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,sCAAsC;IACnD,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE;IACzC,oCAAoC,EAAE,CAAC,CAAC,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"manufacturer.js","sourceRoot":"","sources":["../../../../src/lib/seam/devicedb/public-models/manufacturer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3D,QAAQ;IACR,MAAM;IACN,SAAS;IACT,aAAa;IACb,SAAS;CACV,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,eAAe,CAAC,QAAQ,EAAE;IAChC,WAAW,EAAE,sCAAsC;IACnD,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE;IACzC,oCAAoC,EAAE,CAAC,CAAC,OAAO,EAAE;IACjD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAA"}
|
|
@@ -13,7 +13,7 @@ export declare const routes: {
|
|
|
13
13
|
readonly jsonResponse: z.ZodObject<{
|
|
14
14
|
device_model: z.ZodIntersection<z.ZodObject<{
|
|
15
15
|
device_model_id: z.ZodString;
|
|
16
|
-
manufacturer: z.ZodObject<{
|
|
16
|
+
manufacturer: z.ZodObject<Omit<{
|
|
17
17
|
manufacturer_id: z.ZodString;
|
|
18
18
|
display_name: z.ZodString;
|
|
19
19
|
logo: z.ZodOptional<z.ZodObject<{
|
|
@@ -32,7 +32,8 @@ export declare const routes: {
|
|
|
32
32
|
integration: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
33
33
|
is_connect_webview_supported: z.ZodBoolean;
|
|
34
34
|
requires_seam_support_to_add_account: z.ZodBoolean;
|
|
35
|
-
|
|
35
|
+
device_model_count: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
}, "device_model_count">, "strip", z.ZodTypeAny, {
|
|
36
37
|
display_name: string;
|
|
37
38
|
manufacturer_id: string;
|
|
38
39
|
integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
@@ -1050,7 +1051,7 @@ export declare const routes: {
|
|
|
1050
1051
|
readonly jsonResponse: z.ZodObject<{
|
|
1051
1052
|
device_models: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
1052
1053
|
device_model_id: z.ZodString;
|
|
1053
|
-
manufacturer: z.ZodObject<{
|
|
1054
|
+
manufacturer: z.ZodObject<Omit<{
|
|
1054
1055
|
manufacturer_id: z.ZodString;
|
|
1055
1056
|
display_name: z.ZodString;
|
|
1056
1057
|
logo: z.ZodOptional<z.ZodObject<{
|
|
@@ -1069,7 +1070,8 @@ export declare const routes: {
|
|
|
1069
1070
|
integration: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
1070
1071
|
is_connect_webview_supported: z.ZodBoolean;
|
|
1071
1072
|
requires_seam_support_to_add_account: z.ZodBoolean;
|
|
1072
|
-
|
|
1073
|
+
device_model_count: z.ZodOptional<z.ZodNumber>;
|
|
1074
|
+
}, "device_model_count">, "strip", z.ZodTypeAny, {
|
|
1073
1075
|
display_name: string;
|
|
1074
1076
|
manufacturer_id: string;
|
|
1075
1077
|
integration: "beta" | "stable" | "unsupported" | "planned" | "inquire";
|
|
@@ -1682,6 +1684,7 @@ export declare const routes: {
|
|
|
1682
1684
|
integration: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
1683
1685
|
is_connect_webview_supported: z.ZodBoolean;
|
|
1684
1686
|
requires_seam_support_to_add_account: z.ZodBoolean;
|
|
1687
|
+
device_model_count: z.ZodOptional<z.ZodNumber>;
|
|
1685
1688
|
}, "strip", z.ZodTypeAny, {
|
|
1686
1689
|
display_name: string;
|
|
1687
1690
|
manufacturer_id: string;
|
|
@@ -1693,6 +1696,7 @@ export declare const routes: {
|
|
|
1693
1696
|
width: number;
|
|
1694
1697
|
url: string;
|
|
1695
1698
|
} | undefined;
|
|
1699
|
+
device_model_count?: number | undefined;
|
|
1696
1700
|
}, {
|
|
1697
1701
|
display_name: string;
|
|
1698
1702
|
manufacturer_id: string;
|
|
@@ -1704,6 +1708,7 @@ export declare const routes: {
|
|
|
1704
1708
|
width: number;
|
|
1705
1709
|
url: string;
|
|
1706
1710
|
} | undefined;
|
|
1711
|
+
device_model_count?: number | undefined;
|
|
1707
1712
|
}>;
|
|
1708
1713
|
}, "strip", z.ZodTypeAny, {
|
|
1709
1714
|
manufacturer: {
|
|
@@ -1717,6 +1722,7 @@ export declare const routes: {
|
|
|
1717
1722
|
width: number;
|
|
1718
1723
|
url: string;
|
|
1719
1724
|
} | undefined;
|
|
1725
|
+
device_model_count?: number | undefined;
|
|
1720
1726
|
};
|
|
1721
1727
|
}, {
|
|
1722
1728
|
manufacturer: {
|
|
@@ -1730,6 +1736,7 @@ export declare const routes: {
|
|
|
1730
1736
|
width: number;
|
|
1731
1737
|
url: string;
|
|
1732
1738
|
} | undefined;
|
|
1739
|
+
device_model_count?: number | undefined;
|
|
1733
1740
|
};
|
|
1734
1741
|
}>;
|
|
1735
1742
|
};
|
|
@@ -1766,6 +1773,7 @@ export declare const routes: {
|
|
|
1766
1773
|
integration: z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>;
|
|
1767
1774
|
is_connect_webview_supported: z.ZodBoolean;
|
|
1768
1775
|
requires_seam_support_to_add_account: z.ZodBoolean;
|
|
1776
|
+
device_model_count: z.ZodOptional<z.ZodNumber>;
|
|
1769
1777
|
}, "strip", z.ZodTypeAny, {
|
|
1770
1778
|
display_name: string;
|
|
1771
1779
|
manufacturer_id: string;
|
|
@@ -1777,6 +1785,7 @@ export declare const routes: {
|
|
|
1777
1785
|
width: number;
|
|
1778
1786
|
url: string;
|
|
1779
1787
|
} | undefined;
|
|
1788
|
+
device_model_count?: number | undefined;
|
|
1780
1789
|
}, {
|
|
1781
1790
|
display_name: string;
|
|
1782
1791
|
manufacturer_id: string;
|
|
@@ -1788,6 +1797,7 @@ export declare const routes: {
|
|
|
1788
1797
|
width: number;
|
|
1789
1798
|
url: string;
|
|
1790
1799
|
} | undefined;
|
|
1800
|
+
device_model_count?: number | undefined;
|
|
1791
1801
|
}>, "many">;
|
|
1792
1802
|
}, "strip", z.ZodTypeAny, {
|
|
1793
1803
|
manufacturers: {
|
|
@@ -1801,6 +1811,7 @@ export declare const routes: {
|
|
|
1801
1811
|
width: number;
|
|
1802
1812
|
url: string;
|
|
1803
1813
|
} | undefined;
|
|
1814
|
+
device_model_count?: number | undefined;
|
|
1804
1815
|
}[];
|
|
1805
1816
|
}, {
|
|
1806
1817
|
manufacturers: {
|
|
@@ -1814,6 +1825,7 @@ export declare const routes: {
|
|
|
1814
1825
|
width: number;
|
|
1815
1826
|
url: string;
|
|
1816
1827
|
} | undefined;
|
|
1828
|
+
device_model_count?: number | undefined;
|
|
1817
1829
|
}[];
|
|
1818
1830
|
}>;
|
|
1819
1831
|
};
|
|
@@ -228,6 +228,7 @@ export interface Routes {
|
|
|
228
228
|
integration: 'stable' | 'beta' | 'planned' | 'unsupported' | 'inquire';
|
|
229
229
|
is_connect_webview_supported: boolean;
|
|
230
230
|
requires_seam_support_to_add_account: boolean;
|
|
231
|
+
device_model_count?: number | undefined;
|
|
231
232
|
};
|
|
232
233
|
};
|
|
233
234
|
};
|
|
@@ -253,6 +254,7 @@ export interface Routes {
|
|
|
253
254
|
integration: 'stable' | 'beta' | 'planned' | 'unsupported' | 'inquire';
|
|
254
255
|
is_connect_webview_supported: boolean;
|
|
255
256
|
requires_seam_support_to_add_account: boolean;
|
|
257
|
+
device_model_count?: number | undefined;
|
|
256
258
|
}>;
|
|
257
259
|
};
|
|
258
260
|
};
|
package/package.json
CHANGED
|
@@ -5044,7 +5044,12 @@ export default {
|
|
|
5044
5044
|
schema: {
|
|
5045
5045
|
properties: {
|
|
5046
5046
|
connect_webview_id: { format: 'uuid', type: 'string' },
|
|
5047
|
-
connected_account_id: {
|
|
5047
|
+
connected_account_id: {
|
|
5048
|
+
description:
|
|
5049
|
+
'List all devices owned by this connected account',
|
|
5050
|
+
format: 'uuid',
|
|
5051
|
+
type: 'string',
|
|
5052
|
+
},
|
|
5048
5053
|
connected_account_ids: {
|
|
5049
5054
|
items: { format: 'uuid', type: 'string' },
|
|
5050
5055
|
minItems: 1,
|
|
@@ -5349,7 +5354,12 @@ export default {
|
|
|
5349
5354
|
schema: {
|
|
5350
5355
|
properties: {
|
|
5351
5356
|
connect_webview_id: { format: 'uuid', type: 'string' },
|
|
5352
|
-
connected_account_id: {
|
|
5357
|
+
connected_account_id: {
|
|
5358
|
+
description:
|
|
5359
|
+
'List all devices owned by this connected account',
|
|
5360
|
+
format: 'uuid',
|
|
5361
|
+
type: 'string',
|
|
5362
|
+
},
|
|
5353
5363
|
connected_account_ids: {
|
|
5354
5364
|
items: { format: 'uuid', type: 'string' },
|
|
5355
5365
|
minItems: 1,
|
|
@@ -6146,7 +6156,12 @@ export default {
|
|
|
6146
6156
|
schema: {
|
|
6147
6157
|
properties: {
|
|
6148
6158
|
connect_webview_id: { format: 'uuid', type: 'string' },
|
|
6149
|
-
connected_account_id: {
|
|
6159
|
+
connected_account_id: {
|
|
6160
|
+
description:
|
|
6161
|
+
'List all devices owned by this connected account',
|
|
6162
|
+
format: 'uuid',
|
|
6163
|
+
type: 'string',
|
|
6164
|
+
},
|
|
6150
6165
|
connected_account_ids: {
|
|
6151
6166
|
items: { format: 'uuid', type: 'string' },
|
|
6152
6167
|
minItems: 1,
|
|
@@ -7492,7 +7507,12 @@ export default {
|
|
|
7492
7507
|
schema: {
|
|
7493
7508
|
properties: {
|
|
7494
7509
|
connect_webview_id: { format: 'uuid', type: 'string' },
|
|
7495
|
-
connected_account_id: {
|
|
7510
|
+
connected_account_id: {
|
|
7511
|
+
description:
|
|
7512
|
+
'List all devices owned by this connected account',
|
|
7513
|
+
format: 'uuid',
|
|
7514
|
+
type: 'string',
|
|
7515
|
+
},
|
|
7496
7516
|
connected_account_ids: {
|
|
7497
7517
|
items: { format: 'uuid', type: 'string' },
|
|
7498
7518
|
minItems: 1,
|
|
@@ -1956,6 +1956,7 @@ export interface Routes {
|
|
|
1956
1956
|
queryParams: {}
|
|
1957
1957
|
jsonBody: {}
|
|
1958
1958
|
commonParams: {
|
|
1959
|
+
/** List all devices owned by this connected account */
|
|
1959
1960
|
connected_account_id?: string | undefined
|
|
1960
1961
|
connected_account_ids?: string[] | undefined
|
|
1961
1962
|
connect_webview_id?: string | undefined
|
|
@@ -2742,6 +2743,7 @@ export interface Routes {
|
|
|
2742
2743
|
queryParams: {}
|
|
2743
2744
|
jsonBody: {}
|
|
2744
2745
|
commonParams: {
|
|
2746
|
+
/** List all devices owned by this connected account */
|
|
2745
2747
|
connected_account_id?: string | undefined
|
|
2746
2748
|
connected_account_ids?: string[] | undefined
|
|
2747
2749
|
connect_webview_id?: string | undefined
|
|
@@ -3187,6 +3189,7 @@ export interface Routes {
|
|
|
3187
3189
|
queryParams: {}
|
|
3188
3190
|
jsonBody: {}
|
|
3189
3191
|
commonParams: {
|
|
3192
|
+
/** List all devices owned by this connected account */
|
|
3190
3193
|
connected_account_id?: string | undefined
|
|
3191
3194
|
connected_account_ids?: string[] | undefined
|
|
3192
3195
|
connect_webview_id?: string | undefined
|
|
@@ -4350,6 +4353,7 @@ export interface Routes {
|
|
|
4350
4353
|
queryParams: {}
|
|
4351
4354
|
jsonBody: {}
|
|
4352
4355
|
commonParams: {
|
|
4356
|
+
/** List all devices owned by this connected account */
|
|
4353
4357
|
connected_account_id?: string | undefined
|
|
4354
4358
|
connected_account_ids?: string[] | undefined
|
|
4355
4359
|
connect_webview_id?: string | undefined
|
|
@@ -101,7 +101,9 @@ export const device_model_category_specific_properties = z.discriminatedUnion(
|
|
|
101
101
|
|
|
102
102
|
export const base_device_model_v1 = z.object({
|
|
103
103
|
device_model_id: z.string().uuid(),
|
|
104
|
-
manufacturer
|
|
104
|
+
manufacturer: manufacturer.omit({
|
|
105
|
+
device_model_count: true,
|
|
106
|
+
}),
|
|
105
107
|
is_device_supported: z.boolean(),
|
|
106
108
|
display_name: z.string(),
|
|
107
109
|
description: z.string(),
|
|
@@ -21,6 +21,7 @@ export const manufacturer = z.object({
|
|
|
21
21
|
integration: manufacturer_integration_support_level,
|
|
22
22
|
is_connect_webview_supported: z.boolean(),
|
|
23
23
|
requires_seam_support_to_add_account: z.boolean(),
|
|
24
|
+
device_model_count: z.number().optional(),
|
|
24
25
|
})
|
|
25
26
|
|
|
26
27
|
export type Manufacturer = z.infer<typeof manufacturer>
|
|
@@ -302,6 +302,7 @@ export interface Routes {
|
|
|
302
302
|
integration: 'stable' | 'beta' | 'planned' | 'unsupported' | 'inquire'
|
|
303
303
|
is_connect_webview_supported: boolean
|
|
304
304
|
requires_seam_support_to_add_account: boolean
|
|
305
|
+
device_model_count?: number | undefined
|
|
305
306
|
}
|
|
306
307
|
}
|
|
307
308
|
}
|
|
@@ -331,6 +332,7 @@ export interface Routes {
|
|
|
331
332
|
integration: 'stable' | 'beta' | 'planned' | 'unsupported' | 'inquire'
|
|
332
333
|
is_connect_webview_supported: boolean
|
|
333
334
|
requires_seam_support_to_add_account: boolean
|
|
335
|
+
device_model_count?: number | undefined
|
|
334
336
|
}>
|
|
335
337
|
}
|
|
336
338
|
}
|