@seamapi/types 1.13.0 → 1.15.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 +249 -23
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +445 -11
- package/lib/seam/connect/openapi.d.ts +358 -9
- package/lib/seam/connect/openapi.js +242 -16
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +87 -2
- 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/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/openapi.ts +242 -16
- package/src/lib/seam/connect/route-types.ts +87 -1
- 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/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
|
}
|
|
@@ -204,6 +207,7 @@ export interface Routes {
|
|
|
204
207
|
commonParams: {
|
|
205
208
|
device_id?: string | undefined
|
|
206
209
|
access_code_ids?: string[] | undefined
|
|
210
|
+
user_identifier_key?: string | undefined
|
|
207
211
|
}
|
|
208
212
|
formData: {}
|
|
209
213
|
jsonResponse: {
|
|
@@ -226,6 +230,7 @@ export interface Routes {
|
|
|
226
230
|
is_backup_access_code_available: boolean
|
|
227
231
|
is_backup?: boolean | undefined
|
|
228
232
|
pulled_backup_access_code_id?: (string | null) | undefined
|
|
233
|
+
is_external_modification_allowed: boolean
|
|
229
234
|
}>
|
|
230
235
|
}
|
|
231
236
|
}
|
|
@@ -258,6 +263,7 @@ export interface Routes {
|
|
|
258
263
|
is_backup_access_code_available: boolean
|
|
259
264
|
is_backup?: boolean | undefined
|
|
260
265
|
pulled_backup_access_code_id?: (string | null) | undefined
|
|
266
|
+
is_external_modification_allowed: boolean
|
|
261
267
|
}
|
|
262
268
|
}
|
|
263
269
|
}
|
|
@@ -433,6 +439,7 @@ export interface Routes {
|
|
|
433
439
|
access_code_id: string
|
|
434
440
|
device_id?: string | undefined
|
|
435
441
|
type?: ('ongoing' | 'time_bound') | undefined
|
|
442
|
+
is_managed?: boolean | undefined
|
|
436
443
|
}
|
|
437
444
|
commonParams: {}
|
|
438
445
|
formData: {}
|
|
@@ -598,6 +605,78 @@ export interface Routes {
|
|
|
598
605
|
formData: {}
|
|
599
606
|
jsonResponse: {}
|
|
600
607
|
}
|
|
608
|
+
'/acs/credentials/create': {
|
|
609
|
+
route: '/acs/credentials/create'
|
|
610
|
+
method: 'POST'
|
|
611
|
+
queryParams: {}
|
|
612
|
+
jsonBody: {}
|
|
613
|
+
commonParams: {
|
|
614
|
+
acs_user_id: string
|
|
615
|
+
code?: string | undefined
|
|
616
|
+
}
|
|
617
|
+
formData: {}
|
|
618
|
+
jsonResponse: {
|
|
619
|
+
acs_credential: {
|
|
620
|
+
acs_credential_id: string
|
|
621
|
+
acs_user_id: string
|
|
622
|
+
acs_system_id: string
|
|
623
|
+
code: string | null
|
|
624
|
+
created_at: string
|
|
625
|
+
workspace_id: string
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
'/acs/credentials/delete': {
|
|
630
|
+
route: '/acs/credentials/delete'
|
|
631
|
+
method: 'DELETE' | 'POST'
|
|
632
|
+
queryParams: {}
|
|
633
|
+
jsonBody: {}
|
|
634
|
+
commonParams: {
|
|
635
|
+
acs_credential_id: string
|
|
636
|
+
}
|
|
637
|
+
formData: {}
|
|
638
|
+
jsonResponse: {}
|
|
639
|
+
}
|
|
640
|
+
'/acs/credentials/get': {
|
|
641
|
+
route: '/acs/credentials/get'
|
|
642
|
+
method: 'GET' | 'POST'
|
|
643
|
+
queryParams: {}
|
|
644
|
+
jsonBody: {}
|
|
645
|
+
commonParams: {
|
|
646
|
+
acs_credentials_id: string
|
|
647
|
+
}
|
|
648
|
+
formData: {}
|
|
649
|
+
jsonResponse: {
|
|
650
|
+
acs_credential: {
|
|
651
|
+
acs_credential_id: string
|
|
652
|
+
acs_user_id: string
|
|
653
|
+
acs_system_id: string
|
|
654
|
+
code: string | null
|
|
655
|
+
created_at: string
|
|
656
|
+
workspace_id: string
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
'/acs/credentials/list': {
|
|
661
|
+
route: '/acs/credentials/list'
|
|
662
|
+
method: 'GET' | 'POST'
|
|
663
|
+
queryParams: {}
|
|
664
|
+
jsonBody: {}
|
|
665
|
+
commonParams: {
|
|
666
|
+
acs_user_id: string
|
|
667
|
+
}
|
|
668
|
+
formData: {}
|
|
669
|
+
jsonResponse: {
|
|
670
|
+
acs_credentials: Array<{
|
|
671
|
+
acs_credential_id: string
|
|
672
|
+
acs_user_id: string
|
|
673
|
+
acs_system_id: string
|
|
674
|
+
code: string | null
|
|
675
|
+
created_at: string
|
|
676
|
+
workspace_id: string
|
|
677
|
+
}>
|
|
678
|
+
}
|
|
679
|
+
}
|
|
601
680
|
'/acs/systems/get': {
|
|
602
681
|
route: '/acs/systems/get'
|
|
603
682
|
method: 'GET' | 'POST'
|
|
@@ -622,7 +701,9 @@ export interface Routes {
|
|
|
622
701
|
method: 'GET' | 'POST'
|
|
623
702
|
queryParams: {}
|
|
624
703
|
jsonBody: {}
|
|
625
|
-
commonParams: {
|
|
704
|
+
commonParams: {
|
|
705
|
+
connected_account_id?: string | undefined
|
|
706
|
+
}
|
|
626
707
|
formData: {}
|
|
627
708
|
jsonResponse: {
|
|
628
709
|
acs_systems: Array<{
|
|
@@ -953,6 +1034,7 @@ export interface Routes {
|
|
|
953
1034
|
| 'genie'
|
|
954
1035
|
| 'doorking'
|
|
955
1036
|
| 'salto'
|
|
1037
|
+
| 'lockly'
|
|
956
1038
|
| 'ttlock'
|
|
957
1039
|
| 'linear'
|
|
958
1040
|
| 'noiseaware'
|
|
@@ -1865,6 +1947,7 @@ export interface Routes {
|
|
|
1865
1947
|
device_ids?: string[] | undefined
|
|
1866
1948
|
limit?: number
|
|
1867
1949
|
created_before?: string | undefined
|
|
1950
|
+
user_identifier_key?: string | undefined
|
|
1868
1951
|
}
|
|
1869
1952
|
formData: {}
|
|
1870
1953
|
jsonResponse: {
|
|
@@ -2648,6 +2731,7 @@ export interface Routes {
|
|
|
2648
2731
|
device_ids?: string[] | undefined
|
|
2649
2732
|
limit?: number
|
|
2650
2733
|
created_before?: string | undefined
|
|
2734
|
+
user_identifier_key?: string | undefined
|
|
2651
2735
|
}
|
|
2652
2736
|
formData: {}
|
|
2653
2737
|
jsonResponse: {
|
|
@@ -3078,6 +3162,7 @@ export interface Routes {
|
|
|
3078
3162
|
device_ids?: string[] | undefined
|
|
3079
3163
|
limit?: number
|
|
3080
3164
|
created_before?: string | undefined
|
|
3165
|
+
user_identifier_key?: string | undefined
|
|
3081
3166
|
}
|
|
3082
3167
|
formData: {}
|
|
3083
3168
|
jsonResponse: {
|
|
@@ -4237,6 +4322,7 @@ export interface Routes {
|
|
|
4237
4322
|
device_ids?: string[] | undefined
|
|
4238
4323
|
limit?: number
|
|
4239
4324
|
created_before?: string | undefined
|
|
4325
|
+
user_identifier_key?: string | undefined
|
|
4240
4326
|
}
|
|
4241
4327
|
formData: {}
|
|
4242
4328
|
jsonResponse: {
|
|
@@ -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().nullable(),
|
|
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>
|