@seamapi/types 1.11.0 → 1.12.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 +6048 -6074
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +6721 -6762
- package/lib/seam/connect/openapi.d.ts +6721 -6762
- package/lib/seam/connect/openapi.js +5733 -5759
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +3 -1
- package/lib/seam/connect/unstable/models/acs/user.d.ts +20 -6
- package/lib/seam/connect/unstable/models/acs/user.js +15 -10
- package/lib/seam/connect/unstable/models/acs/user.js.map +1 -1
- package/lib/seam/connect/unstable/models/capability-properties/index.d.ts +90 -90
- package/lib/seam/connect/unstable/models/capability-properties/thermostat.d.ts +186 -186
- package/lib/seam/connect/unstable/models/device-metadata.d.ts +8 -8
- package/lib/seam/connect/unstable/models/managed-device.d.ts +204 -204
- package/lib/seam/connect/unstable/models/unmanaged-device.d.ts +2 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +5733 -5759
- package/src/lib/seam/connect/route-types.ts +3 -1
- package/src/lib/seam/connect/unstable/models/acs/user.ts +22 -13
|
@@ -295,6 +295,7 @@ export interface Routes {
|
|
|
295
295
|
jsonBody: {};
|
|
296
296
|
commonParams: {
|
|
297
297
|
access_code_id: string;
|
|
298
|
+
allow_external_modification?: boolean | undefined;
|
|
298
299
|
force?: boolean | undefined;
|
|
299
300
|
sync?: boolean;
|
|
300
301
|
};
|
|
@@ -398,6 +399,7 @@ export interface Routes {
|
|
|
398
399
|
commonParams: {
|
|
399
400
|
access_code_id: string;
|
|
400
401
|
is_managed: boolean;
|
|
402
|
+
allow_external_modification?: boolean | undefined;
|
|
401
403
|
force?: boolean | undefined;
|
|
402
404
|
};
|
|
403
405
|
formData: {};
|
|
@@ -713,7 +715,7 @@ export interface Routes {
|
|
|
713
715
|
};
|
|
714
716
|
'/acs/users/remove_from_access_group': {
|
|
715
717
|
route: '/acs/users/remove_from_access_group';
|
|
716
|
-
method: '
|
|
718
|
+
method: 'DELETE' | 'POST';
|
|
717
719
|
queryParams: {};
|
|
718
720
|
jsonBody: {};
|
|
719
721
|
commonParams: {
|
|
@@ -1,28 +1,42 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const desired_user_properties: z.ZodObject<{
|
|
3
|
+
_desired_full_name: z.ZodString;
|
|
4
|
+
_desired_email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
_desired_phone_number: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
_desired_full_name: string;
|
|
8
|
+
_desired_email?: string | null | undefined;
|
|
9
|
+
_desired_phone_number?: string | null | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
_desired_full_name: string;
|
|
12
|
+
_desired_email?: string | null | undefined;
|
|
13
|
+
_desired_phone_number?: string | null | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type DesiredAcsUserProperties = z.output<typeof desired_user_properties>;
|
|
2
16
|
export declare const acs_user: z.ZodObject<{
|
|
3
17
|
workspace_id: z.ZodString;
|
|
4
18
|
created_at: z.ZodString;
|
|
5
|
-
display_name: z.ZodString;
|
|
6
|
-
acs_user_id: z.ZodString;
|
|
7
19
|
acs_system_id: z.ZodString;
|
|
20
|
+
acs_user_id: z.ZodString;
|
|
21
|
+
display_name: z.ZodString;
|
|
8
22
|
full_name: z.ZodOptional<z.ZodString>;
|
|
9
23
|
email: z.ZodOptional<z.ZodString>;
|
|
10
24
|
phone_number: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
11
25
|
}, "strip", z.ZodTypeAny, {
|
|
12
26
|
workspace_id: string;
|
|
13
27
|
created_at: string;
|
|
14
|
-
display_name: string;
|
|
15
|
-
acs_user_id: string;
|
|
16
28
|
acs_system_id: string;
|
|
29
|
+
acs_user_id: string;
|
|
30
|
+
display_name: string;
|
|
17
31
|
full_name?: string | undefined;
|
|
18
32
|
email?: string | undefined;
|
|
19
33
|
phone_number?: string | undefined;
|
|
20
34
|
}, {
|
|
21
35
|
workspace_id: string;
|
|
22
36
|
created_at: string;
|
|
23
|
-
display_name: string;
|
|
24
|
-
acs_user_id: string;
|
|
25
37
|
acs_system_id: string;
|
|
38
|
+
acs_user_id: string;
|
|
39
|
+
display_name: string;
|
|
26
40
|
full_name?: string | undefined;
|
|
27
41
|
email?: string | undefined;
|
|
28
42
|
phone_number?: string | undefined;
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
const phone_number = z.coerce
|
|
3
|
+
.string()
|
|
4
|
+
.trim()
|
|
5
|
+
.refine((val) => {
|
|
6
|
+
// https://www.twilio.com/docs/glossary/what-e164
|
|
7
|
+
return /^\+[1-9]\d{1,14}$/.test(val);
|
|
8
|
+
}, {
|
|
9
|
+
message: 'Phone number must be in E.164 format: +14155552671',
|
|
10
|
+
});
|
|
11
|
+
export const desired_user_properties = z.object({
|
|
12
|
+
_desired_full_name: z.string(),
|
|
13
|
+
_desired_email: z.string().email().nullish(),
|
|
14
|
+
_desired_phone_number: phone_number.nullish(),
|
|
15
|
+
});
|
|
2
16
|
const user_fields = z.object({
|
|
3
17
|
full_name: z.string().optional(),
|
|
4
18
|
email: z.string().email().optional(),
|
|
5
|
-
phone_number:
|
|
6
|
-
.string()
|
|
7
|
-
.trim()
|
|
8
|
-
.refine((val) => {
|
|
9
|
-
// https://www.twilio.com/docs/glossary/what-e164
|
|
10
|
-
return /^\+[1-9]\d{1,14}$/.test(val);
|
|
11
|
-
}, {
|
|
12
|
-
message: 'Phone number must be in E.164 format: +14155552671',
|
|
13
|
-
})
|
|
14
|
-
.optional(),
|
|
19
|
+
phone_number: phone_number.optional(),
|
|
15
20
|
});
|
|
16
21
|
export const acs_user = z
|
|
17
22
|
.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM;KAC1B,MAAM,EAAE;KACR,IAAI,EAAE;KACN,MAAM,CACL,CAAC,GAAG,EAAE,EAAE;IACN,iDAAiD;IACjD,OAAO,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACtC,CAAC,EACD;IACE,OAAO,EAAE,oDAAoD;CAC9D,CACF,CAAA;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE;IAC5C,qBAAqB,EAAE,YAAY,CAAC,OAAO,EAAE;CAC9C,CAAC,CAAA;AAIF,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACpC,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC9B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;CACzB,CAAC;KACD,KAAK,CAAC,WAAW,CAAC,CAAA"}
|