@seamapi/types 1.12.0 → 1.14.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 +243 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +4378 -339
- package/lib/seam/connect/index.d.ts +1 -0
- package/lib/seam/connect/index.js +1 -0
- package/lib/seam/connect/index.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +363 -0
- package/lib/seam/connect/openapi.js +242 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +79 -1
- package/lib/seam/connect/unstable/models/acs/credential.d.ts +24 -0
- package/lib/seam/connect/unstable/models/acs/credential.js +11 -0
- package/lib/seam/connect/unstable/models/acs/credential.js.map +1 -0
- package/lib/seam/connect/unstable/models/acs/index.d.ts +1 -0
- package/lib/seam/connect/unstable/models/acs/index.js +1 -0
- package/lib/seam/connect/unstable/models/acs/index.js.map +1 -1
- package/lib/seam/connect/unstable/models/acs/user.d.ts +0 -14
- package/lib/seam/connect/unstable/models/acs/user.js +0 -5
- package/lib/seam/connect/unstable/models/acs/user.js.map +1 -1
- 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 +1 -1
- package/src/lib/seam/connect/index.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +242 -0
- package/src/lib/seam/connect/route-types.ts +79 -0
- package/src/lib/seam/connect/unstable/models/acs/credential.ts +13 -0
- package/src/lib/seam/connect/unstable/models/acs/index.ts +1 -0
- package/src/lib/seam/connect/unstable/models/acs/user.ts +0 -8
- package/src/lib/seam/connect/unstable/schemas.ts +1 -0
|
@@ -63,6 +63,7 @@ export interface Routes {
|
|
|
63
63
|
is_backup_access_code_available: boolean
|
|
64
64
|
is_backup?: boolean | undefined
|
|
65
65
|
pulled_backup_access_code_id?: (string | null) | undefined
|
|
66
|
+
is_external_modification_allowed: boolean
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
}
|
|
@@ -104,6 +105,7 @@ export interface Routes {
|
|
|
104
105
|
is_backup_access_code_available: boolean
|
|
105
106
|
is_backup?: boolean | undefined
|
|
106
107
|
pulled_backup_access_code_id?: (string | null) | undefined
|
|
108
|
+
is_external_modification_allowed: boolean
|
|
107
109
|
}>
|
|
108
110
|
}
|
|
109
111
|
}
|
|
@@ -193,6 +195,7 @@ export interface Routes {
|
|
|
193
195
|
is_backup_access_code_available: boolean
|
|
194
196
|
is_backup?: boolean | undefined
|
|
195
197
|
pulled_backup_access_code_id?: (string | null) | undefined
|
|
198
|
+
is_external_modification_allowed: boolean
|
|
196
199
|
}
|
|
197
200
|
}
|
|
198
201
|
}
|
|
@@ -226,6 +229,7 @@ export interface Routes {
|
|
|
226
229
|
is_backup_access_code_available: boolean
|
|
227
230
|
is_backup?: boolean | undefined
|
|
228
231
|
pulled_backup_access_code_id?: (string | null) | undefined
|
|
232
|
+
is_external_modification_allowed: boolean
|
|
229
233
|
}>
|
|
230
234
|
}
|
|
231
235
|
}
|
|
@@ -258,6 +262,7 @@ export interface Routes {
|
|
|
258
262
|
is_backup_access_code_available: boolean
|
|
259
263
|
is_backup?: boolean | undefined
|
|
260
264
|
pulled_backup_access_code_id?: (string | null) | undefined
|
|
265
|
+
is_external_modification_allowed: boolean
|
|
261
266
|
}
|
|
262
267
|
}
|
|
263
268
|
}
|
|
@@ -433,6 +438,7 @@ export interface Routes {
|
|
|
433
438
|
access_code_id: string
|
|
434
439
|
device_id?: string | undefined
|
|
435
440
|
type?: ('ongoing' | 'time_bound') | undefined
|
|
441
|
+
is_managed?: boolean | undefined
|
|
436
442
|
}
|
|
437
443
|
commonParams: {}
|
|
438
444
|
formData: {}
|
|
@@ -598,6 +604,78 @@ export interface Routes {
|
|
|
598
604
|
formData: {}
|
|
599
605
|
jsonResponse: {}
|
|
600
606
|
}
|
|
607
|
+
'/acs/credentials/create': {
|
|
608
|
+
route: '/acs/credentials/create'
|
|
609
|
+
method: 'POST'
|
|
610
|
+
queryParams: {}
|
|
611
|
+
jsonBody: {}
|
|
612
|
+
commonParams: {
|
|
613
|
+
acs_user_id: string
|
|
614
|
+
code: string
|
|
615
|
+
}
|
|
616
|
+
formData: {}
|
|
617
|
+
jsonResponse: {
|
|
618
|
+
acs_credential: {
|
|
619
|
+
acs_credential_id: string
|
|
620
|
+
acs_user_id: string
|
|
621
|
+
acs_system_id: string
|
|
622
|
+
code: string
|
|
623
|
+
created_at: string
|
|
624
|
+
workspace_id: string
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
'/acs/credentials/delete': {
|
|
629
|
+
route: '/acs/credentials/delete'
|
|
630
|
+
method: 'DELETE' | 'POST'
|
|
631
|
+
queryParams: {}
|
|
632
|
+
jsonBody: {}
|
|
633
|
+
commonParams: {
|
|
634
|
+
acs_credential_id: string
|
|
635
|
+
}
|
|
636
|
+
formData: {}
|
|
637
|
+
jsonResponse: {}
|
|
638
|
+
}
|
|
639
|
+
'/acs/credentials/get': {
|
|
640
|
+
route: '/acs/credentials/get'
|
|
641
|
+
method: 'GET' | 'POST'
|
|
642
|
+
queryParams: {}
|
|
643
|
+
jsonBody: {}
|
|
644
|
+
commonParams: {
|
|
645
|
+
acs_credentials_id: string
|
|
646
|
+
}
|
|
647
|
+
formData: {}
|
|
648
|
+
jsonResponse: {
|
|
649
|
+
acs_credential: {
|
|
650
|
+
acs_credential_id: string
|
|
651
|
+
acs_user_id: string
|
|
652
|
+
acs_system_id: string
|
|
653
|
+
code: string
|
|
654
|
+
created_at: string
|
|
655
|
+
workspace_id: string
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
'/acs/credentials/list': {
|
|
660
|
+
route: '/acs/credentials/list'
|
|
661
|
+
method: 'GET' | 'POST'
|
|
662
|
+
queryParams: {}
|
|
663
|
+
jsonBody: {}
|
|
664
|
+
commonParams: {
|
|
665
|
+
acs_user_id: string
|
|
666
|
+
}
|
|
667
|
+
formData: {}
|
|
668
|
+
jsonResponse: {
|
|
669
|
+
acs_credentials: Array<{
|
|
670
|
+
acs_credential_id: string
|
|
671
|
+
acs_user_id: string
|
|
672
|
+
acs_system_id: string
|
|
673
|
+
code: string
|
|
674
|
+
created_at: string
|
|
675
|
+
workspace_id: string
|
|
676
|
+
}>
|
|
677
|
+
}
|
|
678
|
+
}
|
|
601
679
|
'/acs/systems/get': {
|
|
602
680
|
route: '/acs/systems/get'
|
|
603
681
|
method: 'GET' | 'POST'
|
|
@@ -953,6 +1031,7 @@ export interface Routes {
|
|
|
953
1031
|
| 'genie'
|
|
954
1032
|
| 'doorking'
|
|
955
1033
|
| 'salto'
|
|
1034
|
+
| 'lockly'
|
|
956
1035
|
| 'ttlock'
|
|
957
1036
|
| 'linear'
|
|
958
1037
|
| 'noiseaware'
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
export const acs_credential = z.object({
|
|
4
|
+
acs_credential_id: z.string().uuid(),
|
|
5
|
+
acs_user_id: z.string().uuid(),
|
|
6
|
+
acs_system_id: z.string().uuid(),
|
|
7
|
+
code: z.string(),
|
|
8
|
+
// TODO: credential_type: z.enum([...]) we don't know what enum types we want yet
|
|
9
|
+
created_at: z.string().datetime(),
|
|
10
|
+
workspace_id: z.string().uuid(),
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
export type AcsCredential = z.output<typeof acs_credential>
|
|
@@ -13,14 +13,6 @@ const phone_number = z.coerce
|
|
|
13
13
|
},
|
|
14
14
|
)
|
|
15
15
|
|
|
16
|
-
export const desired_user_properties = z.object({
|
|
17
|
-
_desired_full_name: z.string(),
|
|
18
|
-
_desired_email: z.string().email().nullish(),
|
|
19
|
-
_desired_phone_number: phone_number.nullish(),
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
export type DesiredAcsUserProperties = z.output<typeof desired_user_properties>
|
|
23
|
-
|
|
24
16
|
const user_fields = z.object({
|
|
25
17
|
full_name: z.string().optional(),
|
|
26
18
|
email: z.string().email().optional(),
|