@seamapi/types 1.6.0 → 1.7.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/lib/seam/connect/route-types.d.ts +76 -11
- package/lib/seam/connect/unstable/model-types.d.ts +1 -1
- package/lib/seam/connect/unstable/models/acs/access_group.d.ts +29 -0
- package/lib/seam/connect/unstable/models/acs/access_group.js +12 -0
- package/lib/seam/connect/unstable/models/acs/access_group.js.map +1 -0
- package/lib/seam/connect/unstable/models/acs/index.d.ts +3 -0
- package/lib/seam/connect/unstable/models/acs/index.js +4 -0
- package/lib/seam/connect/unstable/models/acs/index.js.map +1 -0
- package/lib/seam/connect/unstable/models/acs/system.d.ts +23 -0
- package/lib/seam/connect/unstable/models/acs/system.js +10 -0
- package/lib/seam/connect/unstable/models/acs/system.js.map +1 -0
- package/lib/seam/connect/unstable/models/acs/user.d.ts +30 -0
- package/lib/seam/connect/unstable/models/acs/user.js +25 -0
- package/lib/seam/connect/unstable/models/acs/user.js.map +1 -0
- package/lib/seam/connect/unstable/models/capability-properties/index.d.ts +42 -42
- package/lib/seam/connect/unstable/models/capability-properties/thermostat.d.ts +88 -88
- package/lib/seam/connect/unstable/models/index.d.ts +1 -0
- package/lib/seam/connect/unstable/models/index.js +1 -0
- package/lib/seam/connect/unstable/models/index.js.map +1 -1
- package/lib/seam/connect/unstable/models/managed-device.d.ts +90 -90
- package/lib/seam/connect/unstable/schemas.d.ts +1 -1
- package/lib/seam/connect/unstable/schemas.js +1 -1
- package/lib/seam/connect/unstable/schemas.js.map +1 -1
- package/package.json +8 -8
- package/src/lib/seam/connect/route-types.ts +76 -11
- package/src/lib/seam/connect/unstable/model-types.ts +5 -0
- package/src/lib/seam/connect/unstable/models/acs/access_group.ts +17 -0
- package/src/lib/seam/connect/unstable/models/acs/index.ts +3 -0
- package/src/lib/seam/connect/unstable/models/acs/system.ts +15 -0
- package/src/lib/seam/connect/unstable/models/acs/user.ts +31 -0
- package/src/lib/seam/connect/unstable/models/index.ts +1 -0
- package/src/lib/seam/connect/unstable/schemas.ts +5 -0
|
@@ -465,7 +465,8 @@ export interface Routes {
|
|
|
465
465
|
workspace_id: string;
|
|
466
466
|
name: string;
|
|
467
467
|
access_group_type: 'pti_unit';
|
|
468
|
-
|
|
468
|
+
access_group_type_display_name: string;
|
|
469
|
+
created_at: string;
|
|
469
470
|
};
|
|
470
471
|
};
|
|
471
472
|
};
|
|
@@ -496,7 +497,8 @@ export interface Routes {
|
|
|
496
497
|
workspace_id: string;
|
|
497
498
|
name: string;
|
|
498
499
|
access_group_type: 'pti_unit';
|
|
499
|
-
|
|
500
|
+
access_group_type_display_name: string;
|
|
501
|
+
created_at: string;
|
|
500
502
|
};
|
|
501
503
|
};
|
|
502
504
|
};
|
|
@@ -517,7 +519,8 @@ export interface Routes {
|
|
|
517
519
|
workspace_id: string;
|
|
518
520
|
name: string;
|
|
519
521
|
access_group_type: 'pti_unit';
|
|
520
|
-
|
|
522
|
+
access_group_type_display_name: string;
|
|
523
|
+
created_at: string;
|
|
521
524
|
}>;
|
|
522
525
|
};
|
|
523
526
|
};
|
|
@@ -546,8 +549,9 @@ export interface Routes {
|
|
|
546
549
|
acs_system: {
|
|
547
550
|
acs_system_id: string;
|
|
548
551
|
system_type: 'pti_site' | 'alta_org';
|
|
552
|
+
system_type_display_name: string;
|
|
549
553
|
name: string;
|
|
550
|
-
created_at: string
|
|
554
|
+
created_at: string;
|
|
551
555
|
};
|
|
552
556
|
};
|
|
553
557
|
};
|
|
@@ -562,8 +566,9 @@ export interface Routes {
|
|
|
562
566
|
acs_systems: Array<{
|
|
563
567
|
acs_system_id: string;
|
|
564
568
|
system_type: 'pti_site' | 'alta_org';
|
|
569
|
+
system_type_display_name: string;
|
|
565
570
|
name: string;
|
|
566
|
-
created_at: string
|
|
571
|
+
created_at: string;
|
|
567
572
|
}>;
|
|
568
573
|
};
|
|
569
574
|
};
|
|
@@ -586,9 +591,10 @@ export interface Routes {
|
|
|
586
591
|
jsonBody: {};
|
|
587
592
|
commonParams: {
|
|
588
593
|
acs_system_id: string;
|
|
589
|
-
name?: string | undefined;
|
|
590
|
-
email?: string | undefined;
|
|
591
594
|
acs_access_group_ids?: string[];
|
|
595
|
+
full_name?: string | undefined;
|
|
596
|
+
email?: string | undefined;
|
|
597
|
+
phone_number?: string | undefined;
|
|
592
598
|
};
|
|
593
599
|
formData: {};
|
|
594
600
|
jsonResponse: {
|
|
@@ -596,11 +602,69 @@ export interface Routes {
|
|
|
596
602
|
acs_user_id: string;
|
|
597
603
|
acs_system_id: string;
|
|
598
604
|
workspace_id: string;
|
|
599
|
-
|
|
600
|
-
|
|
605
|
+
created_at: string;
|
|
606
|
+
display_name: string;
|
|
607
|
+
full_name?: string | undefined;
|
|
608
|
+
email?: string | undefined;
|
|
609
|
+
phone_number?: string | undefined;
|
|
601
610
|
};
|
|
602
611
|
};
|
|
603
612
|
};
|
|
613
|
+
'/acs/users/delete': {
|
|
614
|
+
route: '/acs/users/delete';
|
|
615
|
+
method: 'DELETE' | 'POST';
|
|
616
|
+
queryParams: {};
|
|
617
|
+
jsonBody: {};
|
|
618
|
+
commonParams: {
|
|
619
|
+
acs_user_id: string;
|
|
620
|
+
};
|
|
621
|
+
formData: {};
|
|
622
|
+
jsonResponse: {};
|
|
623
|
+
};
|
|
624
|
+
'/acs/users/get': {
|
|
625
|
+
route: '/acs/users/get';
|
|
626
|
+
method: 'GET' | 'POST';
|
|
627
|
+
queryParams: {};
|
|
628
|
+
jsonBody: {};
|
|
629
|
+
commonParams: {
|
|
630
|
+
acs_user_id: string;
|
|
631
|
+
};
|
|
632
|
+
formData: {};
|
|
633
|
+
jsonResponse: {
|
|
634
|
+
acs_user: {
|
|
635
|
+
acs_user_id: string;
|
|
636
|
+
acs_system_id: string;
|
|
637
|
+
workspace_id: string;
|
|
638
|
+
created_at: string;
|
|
639
|
+
display_name: string;
|
|
640
|
+
full_name?: string | undefined;
|
|
641
|
+
email?: string | undefined;
|
|
642
|
+
phone_number?: string | undefined;
|
|
643
|
+
};
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
'/acs/users/list': {
|
|
647
|
+
route: '/acs/users/list';
|
|
648
|
+
method: 'GET' | 'POST';
|
|
649
|
+
queryParams: {};
|
|
650
|
+
jsonBody: {};
|
|
651
|
+
commonParams: {
|
|
652
|
+
acs_system_id: string;
|
|
653
|
+
};
|
|
654
|
+
formData: {};
|
|
655
|
+
jsonResponse: {
|
|
656
|
+
acs_users: Array<{
|
|
657
|
+
acs_user_id: string;
|
|
658
|
+
acs_system_id: string;
|
|
659
|
+
workspace_id: string;
|
|
660
|
+
created_at: string;
|
|
661
|
+
display_name: string;
|
|
662
|
+
full_name?: string | undefined;
|
|
663
|
+
email?: string | undefined;
|
|
664
|
+
phone_number?: string | undefined;
|
|
665
|
+
}>;
|
|
666
|
+
};
|
|
667
|
+
};
|
|
604
668
|
'/acs/users/remove_from_access_group': {
|
|
605
669
|
route: '/acs/users/remove_from_access_group';
|
|
606
670
|
method: 'POST' | 'PATCH';
|
|
@@ -620,8 +684,9 @@ export interface Routes {
|
|
|
620
684
|
jsonBody: {};
|
|
621
685
|
commonParams: {
|
|
622
686
|
acs_user_id: string;
|
|
623
|
-
|
|
624
|
-
email?:
|
|
687
|
+
full_name?: string | undefined;
|
|
688
|
+
email?: string | undefined;
|
|
689
|
+
phone_number?: string | undefined;
|
|
625
690
|
};
|
|
626
691
|
formData: {};
|
|
627
692
|
jsonResponse: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { AccessCodeConstraint, AnyDeviceType, BatteryStatus, Capabilities, ClimateSetting, LockDeviceType, ManagedDevice, ManagedDeviceWithBackendMetadata, NoiseSensorDeviceType, ThermostatDeviceType, UnmanagedDevice, } from './models/index.js';
|
|
1
|
+
export type { AccessCodeConstraint, AcsAccessGroup, AcsAccessGroupType, AcsSystem, AcsSystemType, AcsUser, AnyDeviceType, BatteryStatus, Capabilities, ClimateSetting, LockDeviceType, ManagedDevice, ManagedDeviceWithBackendMetadata, NoiseSensorDeviceType, ThermostatDeviceType, UnmanagedDevice, } from './models/index.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const acs_access_group_type: z.ZodEnum<["pti_unit"]>;
|
|
3
|
+
export type AcsAccessGroupType = z.infer<typeof acs_access_group_type>;
|
|
4
|
+
export declare const acs_access_group: z.ZodObject<{
|
|
5
|
+
acs_access_group_id: z.ZodString;
|
|
6
|
+
acs_system_id: z.ZodString;
|
|
7
|
+
workspace_id: z.ZodString;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
access_group_type: z.ZodEnum<["pti_unit"]>;
|
|
10
|
+
access_group_type_display_name: z.ZodString;
|
|
11
|
+
created_at: z.ZodString;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
name: string;
|
|
14
|
+
workspace_id: string;
|
|
15
|
+
created_at: string;
|
|
16
|
+
acs_access_group_id: string;
|
|
17
|
+
acs_system_id: string;
|
|
18
|
+
access_group_type: "pti_unit";
|
|
19
|
+
access_group_type_display_name: string;
|
|
20
|
+
}, {
|
|
21
|
+
name: string;
|
|
22
|
+
workspace_id: string;
|
|
23
|
+
created_at: string;
|
|
24
|
+
acs_access_group_id: string;
|
|
25
|
+
acs_system_id: string;
|
|
26
|
+
access_group_type: "pti_unit";
|
|
27
|
+
access_group_type_display_name: string;
|
|
28
|
+
}>;
|
|
29
|
+
export type AcsAccessGroup = z.output<typeof acs_access_group>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const acs_access_group_type = z.enum(['pti_unit']);
|
|
3
|
+
export const acs_access_group = z.object({
|
|
4
|
+
acs_access_group_id: z.string().uuid(),
|
|
5
|
+
acs_system_id: z.string().uuid(),
|
|
6
|
+
workspace_id: z.string().uuid(),
|
|
7
|
+
name: z.string(),
|
|
8
|
+
access_group_type: acs_access_group_type,
|
|
9
|
+
access_group_type_display_name: z.string(),
|
|
10
|
+
created_at: z.string().datetime(),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=access_group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access_group.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/access_group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,CAAA;AAIzD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACtC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,iBAAiB,EAAE,qBAAqB;IACxC,8BAA8B,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const acs_system_type: z.ZodEnum<["pti_site", "alta_org"]>;
|
|
3
|
+
export type AcsSystemType = z.infer<typeof acs_system_type>;
|
|
4
|
+
export declare const acs_system: z.ZodObject<{
|
|
5
|
+
acs_system_id: z.ZodString;
|
|
6
|
+
system_type: z.ZodEnum<["pti_site", "alta_org"]>;
|
|
7
|
+
system_type_display_name: z.ZodString;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
created_at: z.ZodString;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
name: string;
|
|
12
|
+
created_at: string;
|
|
13
|
+
acs_system_id: string;
|
|
14
|
+
system_type: "pti_site" | "alta_org";
|
|
15
|
+
system_type_display_name: string;
|
|
16
|
+
}, {
|
|
17
|
+
name: string;
|
|
18
|
+
created_at: string;
|
|
19
|
+
acs_system_id: string;
|
|
20
|
+
system_type: "pti_site" | "alta_org";
|
|
21
|
+
system_type_display_name: string;
|
|
22
|
+
}>;
|
|
23
|
+
export type AcsSystem = z.output<typeof acs_system>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const acs_system_type = z.enum(['pti_site', 'alta_org']);
|
|
3
|
+
export const acs_system = z.object({
|
|
4
|
+
acs_system_id: z.string().uuid(),
|
|
5
|
+
system_type: acs_system_type,
|
|
6
|
+
system_type_display_name: z.string(),
|
|
7
|
+
name: z.string(),
|
|
8
|
+
created_at: z.string().datetime(),
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=system.js.map
|
|
@@ -0,0 +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,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAA;AAI/D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,WAAW,EAAE,eAAe;IAC5B,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE;IACpC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const acs_user: z.ZodObject<{
|
|
3
|
+
workspace_id: z.ZodString;
|
|
4
|
+
created_at: z.ZodString;
|
|
5
|
+
display_name: z.ZodString;
|
|
6
|
+
acs_system_id: z.ZodString;
|
|
7
|
+
acs_user_id: z.ZodString;
|
|
8
|
+
full_name: z.ZodOptional<z.ZodString>;
|
|
9
|
+
email: z.ZodOptional<z.ZodString>;
|
|
10
|
+
phone_number: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
workspace_id: string;
|
|
13
|
+
created_at: string;
|
|
14
|
+
display_name: string;
|
|
15
|
+
acs_system_id: string;
|
|
16
|
+
acs_user_id: string;
|
|
17
|
+
full_name?: string | undefined;
|
|
18
|
+
email?: string | undefined;
|
|
19
|
+
phone_number?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
workspace_id: string;
|
|
22
|
+
created_at: string;
|
|
23
|
+
display_name: string;
|
|
24
|
+
acs_system_id: string;
|
|
25
|
+
acs_user_id: string;
|
|
26
|
+
full_name?: string | undefined;
|
|
27
|
+
email?: string | undefined;
|
|
28
|
+
phone_number?: string | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export type AcsUser = z.output<typeof acs_user>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
const user_fields = z.object({
|
|
3
|
+
full_name: z.string().optional(),
|
|
4
|
+
email: z.string().email().optional(),
|
|
5
|
+
phone_number: z.coerce
|
|
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(),
|
|
15
|
+
});
|
|
16
|
+
export const acs_user = z
|
|
17
|
+
.object({
|
|
18
|
+
acs_user_id: z.string().uuid(),
|
|
19
|
+
acs_system_id: z.string().uuid(),
|
|
20
|
+
workspace_id: z.string().uuid(),
|
|
21
|
+
created_at: z.string().datetime(),
|
|
22
|
+
display_name: z.string(),
|
|
23
|
+
})
|
|
24
|
+
.merge(user_fields);
|
|
25
|
+
//# sourceMappingURL=user.js.map
|
|
@@ -0,0 +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,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,CAAC,CAAC,MAAM;SACnB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,MAAM,CACL,CAAC,GAAG,EAAE,EAAE;QACN,iDAAiD;QACjD,OAAO,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IACtC,CAAC,EACD;QACE,OAAO,EAAE,oDAAoD;KAC9D,CACF;SACA,QAAQ,EAAE;CACd,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"}
|