@seamapi/types 1.18.0 → 1.18.2
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 +6 -3
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +7 -8
- package/dist/devicedb.cjs +1 -0
- package/dist/devicedb.cjs.map +1 -1
- package/dist/devicedb.d.cts +3 -0
- package/lib/seam/connect/openapi.d.ts +5 -7
- package/lib/seam/connect/openapi.js +6 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +2 -1
- package/lib/seam/devicedb/public-models.d.ts +3 -0
- package/lib/seam/devicedb/public-models.js +1 -0
- package/lib/seam/devicedb/public-models.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +6 -3
- package/src/lib/seam/connect/route-types.ts +2 -1
- package/src/lib/seam/devicedb/public-models.ts +1 -0
|
@@ -598,7 +598,7 @@ export interface Routes {
|
|
|
598
598
|
jsonBody: {};
|
|
599
599
|
commonParams: {
|
|
600
600
|
acs_user_id: string;
|
|
601
|
-
code
|
|
601
|
+
code: string;
|
|
602
602
|
};
|
|
603
603
|
formData: {};
|
|
604
604
|
jsonResponse: {
|
|
@@ -2613,6 +2613,7 @@ export interface Routes {
|
|
|
2613
2613
|
jsonBody: {};
|
|
2614
2614
|
commonParams: {
|
|
2615
2615
|
device_id: string;
|
|
2616
|
+
user_identifier_key?: string | undefined;
|
|
2616
2617
|
};
|
|
2617
2618
|
formData: {};
|
|
2618
2619
|
jsonResponse: {
|
|
@@ -131,6 +131,7 @@ export declare const device_model_v1: z.ZodObject<{
|
|
|
131
131
|
}>;
|
|
132
132
|
is_device_supported: z.ZodBoolean;
|
|
133
133
|
display_name: z.ZodString;
|
|
134
|
+
description: z.ZodString;
|
|
134
135
|
product_url: z.ZodString;
|
|
135
136
|
main_connection_type: z.ZodEnum<["wifi", "zwave", "zigbee", "unknown"]>;
|
|
136
137
|
main_category: z.ZodEnum<["smartlock", "thermostat", "noise_sensor"]>;
|
|
@@ -197,6 +198,7 @@ export declare const device_model_v1: z.ZodObject<{
|
|
|
197
198
|
} | undefined;
|
|
198
199
|
}>, "many">;
|
|
199
200
|
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
description: string;
|
|
200
202
|
display_name: string;
|
|
201
203
|
main_category: "thermostat" | "smartlock" | "noise_sensor";
|
|
202
204
|
device_model_id: string;
|
|
@@ -232,6 +234,7 @@ export declare const device_model_v1: z.ZodObject<{
|
|
|
232
234
|
} | undefined;
|
|
233
235
|
}[];
|
|
234
236
|
}, {
|
|
237
|
+
description: string;
|
|
235
238
|
display_name: string;
|
|
236
239
|
main_category: "thermostat" | "smartlock" | "noise_sensor";
|
|
237
240
|
device_model_id: string;
|
|
@@ -27,6 +27,7 @@ export const device_model_v1 = z.object({
|
|
|
27
27
|
manufacturer,
|
|
28
28
|
is_device_supported: z.boolean(),
|
|
29
29
|
display_name: z.string(),
|
|
30
|
+
description: z.string(),
|
|
30
31
|
product_url: z.string(),
|
|
31
32
|
main_connection_type: z.enum(['wifi', 'zwave', 'zigbee', 'unknown']),
|
|
32
33
|
main_category: z.enum(['smartlock', 'thermostat', 'noise_sensor']),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-models.js","sourceRoot":"","sources":["../../../src/lib/seam/devicedb/public-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;IACjC,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC/D,aAAa,EAA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gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;QAC5B,WAAW,EAAE,eAAe,CAAC,QAAQ,EAAE;QACvC,UAAU,EAAE,eAAe,CAAC,QAAQ,EAAE;KACvC,CAAC;SACD,KAAK,EAAE;CACX,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -3031,9 +3031,9 @@ export default {
|
|
|
3031
3031
|
schema: {
|
|
3032
3032
|
properties: {
|
|
3033
3033
|
acs_user_id: { format: 'uuid', type: 'string' },
|
|
3034
|
-
code: {
|
|
3034
|
+
code: { pattern: '^\\d+$', type: 'string' },
|
|
3035
3035
|
},
|
|
3036
|
-
required: ['acs_user_id'],
|
|
3036
|
+
required: ['acs_user_id', 'code'],
|
|
3037
3037
|
type: 'object',
|
|
3038
3038
|
},
|
|
3039
3039
|
},
|
|
@@ -6660,7 +6660,10 @@ export default {
|
|
|
6660
6660
|
content: {
|
|
6661
6661
|
'application/json': {
|
|
6662
6662
|
schema: {
|
|
6663
|
-
properties: {
|
|
6663
|
+
properties: {
|
|
6664
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
6665
|
+
user_identifier_key: { type: 'string' },
|
|
6666
|
+
},
|
|
6664
6667
|
required: ['device_id'],
|
|
6665
6668
|
type: 'object',
|
|
6666
6669
|
},
|
|
@@ -612,7 +612,7 @@ export interface Routes {
|
|
|
612
612
|
jsonBody: {}
|
|
613
613
|
commonParams: {
|
|
614
614
|
acs_user_id: string
|
|
615
|
-
code
|
|
615
|
+
code: string
|
|
616
616
|
}
|
|
617
617
|
formData: {}
|
|
618
618
|
jsonResponse: {
|
|
@@ -3516,6 +3516,7 @@ export interface Routes {
|
|
|
3516
3516
|
jsonBody: {}
|
|
3517
3517
|
commonParams: {
|
|
3518
3518
|
device_id: string
|
|
3519
|
+
user_identifier_key?: string | undefined
|
|
3519
3520
|
}
|
|
3520
3521
|
formData: {}
|
|
3521
3522
|
jsonResponse: {
|
|
@@ -37,6 +37,7 @@ export const device_model_v1 = z.object({
|
|
|
37
37
|
manufacturer,
|
|
38
38
|
is_device_supported: z.boolean(),
|
|
39
39
|
display_name: z.string(),
|
|
40
|
+
description: z.string(),
|
|
40
41
|
product_url: z.string(),
|
|
41
42
|
main_connection_type: z.enum(['wifi', 'zwave', 'zigbee', 'unknown']),
|
|
42
43
|
main_category: z.enum(['smartlock', 'thermostat', 'noise_sensor']),
|