@seamapi/types 1.46.0 → 1.47.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 +204 -7
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +324 -10
- package/lib/seam/connect/openapi.d.ts +266 -0
- package/lib/seam/connect/openapi.js +204 -7
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +58 -10
- package/lib/seam/connect/unstable/models/acs/entrance.d.ts +18 -0
- package/lib/seam/connect/unstable/models/acs/entrance.js +8 -0
- package/lib/seam/connect/unstable/models/acs/entrance.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/system.d.ts +7 -7
- package/lib/seam/connect/unstable/models/acs/system.js +1 -0
- package/lib/seam/connect/unstable/models/acs/system.js.map +1 -1
- package/lib/seam/connect/unstable/models/acs/user.d.ts +4 -4
- package/lib/seam/connect/unstable/models/acs/user.js +5 -1
- 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/openapi.ts +204 -7
- package/src/lib/seam/connect/route-types.ts +78 -10
- package/src/lib/seam/connect/unstable/models/acs/entrance.ts +10 -0
- package/src/lib/seam/connect/unstable/models/acs/index.ts +1 -0
- package/src/lib/seam/connect/unstable/models/acs/system.ts +1 -0
- package/src/lib/seam/connect/unstable/models/acs/user.ts +5 -1
- package/src/lib/seam/connect/unstable/schemas.ts +1 -0
|
@@ -587,7 +587,7 @@ export interface Routes {
|
|
|
587
587
|
workspace_id: string
|
|
588
588
|
created_at: string
|
|
589
589
|
display_name: string
|
|
590
|
-
external_type: 'pti_user' | 'brivo_user'
|
|
590
|
+
external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user'
|
|
591
591
|
external_type_display_name: string
|
|
592
592
|
is_suspended: boolean
|
|
593
593
|
full_name?: string | undefined
|
|
@@ -721,7 +721,55 @@ export interface Routes {
|
|
|
721
721
|
}
|
|
722
722
|
commonParams: {}
|
|
723
723
|
formData: {}
|
|
724
|
-
jsonResponse: {
|
|
724
|
+
jsonResponse: {
|
|
725
|
+
acs_credential: {
|
|
726
|
+
acs_credential_id: string
|
|
727
|
+
acs_user_id?: string | undefined
|
|
728
|
+
acs_system_id: string
|
|
729
|
+
display_name: string
|
|
730
|
+
code: string | null
|
|
731
|
+
external_type: 'pti_card' | 'brivo_credential'
|
|
732
|
+
external_type_display_name: string
|
|
733
|
+
created_at: string
|
|
734
|
+
workspace_id: string
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
'/acs/entrances/get': {
|
|
739
|
+
route: '/acs/entrances/get'
|
|
740
|
+
method: 'GET' | 'POST'
|
|
741
|
+
queryParams: {}
|
|
742
|
+
jsonBody: {}
|
|
743
|
+
commonParams: {
|
|
744
|
+
acs_entrance_id: string
|
|
745
|
+
}
|
|
746
|
+
formData: {}
|
|
747
|
+
jsonResponse: {
|
|
748
|
+
acs_entrance: {
|
|
749
|
+
acs_entrance_id: string
|
|
750
|
+
display_name: string
|
|
751
|
+
acs_system_id: string
|
|
752
|
+
created_at: string
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
'/acs/entrances/list': {
|
|
757
|
+
route: '/acs/entrances/list'
|
|
758
|
+
method: 'GET' | 'POST'
|
|
759
|
+
queryParams: {}
|
|
760
|
+
jsonBody: {}
|
|
761
|
+
commonParams: {
|
|
762
|
+
acs_system_id?: string | undefined
|
|
763
|
+
}
|
|
764
|
+
formData: {}
|
|
765
|
+
jsonResponse: {
|
|
766
|
+
acs_entrances: Array<{
|
|
767
|
+
acs_entrance_id: string
|
|
768
|
+
display_name: string
|
|
769
|
+
acs_system_id: string
|
|
770
|
+
created_at: string
|
|
771
|
+
}>
|
|
772
|
+
}
|
|
725
773
|
}
|
|
726
774
|
'/acs/systems/get': {
|
|
727
775
|
route: '/acs/systems/get'
|
|
@@ -735,10 +783,20 @@ export interface Routes {
|
|
|
735
783
|
jsonResponse: {
|
|
736
784
|
acs_system: {
|
|
737
785
|
acs_system_id: string
|
|
738
|
-
external_type:
|
|
786
|
+
external_type:
|
|
787
|
+
| 'pti_site'
|
|
788
|
+
| 'alta_org'
|
|
789
|
+
| 'salto_site'
|
|
790
|
+
| 'brivo_system'
|
|
791
|
+
| 'hid_cm_org'
|
|
739
792
|
external_type_display_name: string
|
|
740
793
|
/** deprecated: use external_type */
|
|
741
|
-
system_type:
|
|
794
|
+
system_type:
|
|
795
|
+
| 'pti_site'
|
|
796
|
+
| 'alta_org'
|
|
797
|
+
| 'salto_site'
|
|
798
|
+
| 'brivo_system'
|
|
799
|
+
| 'hid_cm_org'
|
|
742
800
|
/** deprecated: use external_type_display_name */
|
|
743
801
|
system_type_display_name: string
|
|
744
802
|
name: string
|
|
@@ -759,10 +817,20 @@ export interface Routes {
|
|
|
759
817
|
jsonResponse: {
|
|
760
818
|
acs_systems: Array<{
|
|
761
819
|
acs_system_id: string
|
|
762
|
-
external_type:
|
|
820
|
+
external_type:
|
|
821
|
+
| 'pti_site'
|
|
822
|
+
| 'alta_org'
|
|
823
|
+
| 'salto_site'
|
|
824
|
+
| 'brivo_system'
|
|
825
|
+
| 'hid_cm_org'
|
|
763
826
|
external_type_display_name: string
|
|
764
827
|
/** deprecated: use external_type */
|
|
765
|
-
system_type:
|
|
828
|
+
system_type:
|
|
829
|
+
| 'pti_site'
|
|
830
|
+
| 'alta_org'
|
|
831
|
+
| 'salto_site'
|
|
832
|
+
| 'brivo_system'
|
|
833
|
+
| 'hid_cm_org'
|
|
766
834
|
/** deprecated: use external_type_display_name */
|
|
767
835
|
system_type_display_name: string
|
|
768
836
|
name: string
|
|
@@ -805,7 +873,7 @@ export interface Routes {
|
|
|
805
873
|
workspace_id: string
|
|
806
874
|
created_at: string
|
|
807
875
|
display_name: string
|
|
808
|
-
external_type: 'pti_user' | 'brivo_user'
|
|
876
|
+
external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user'
|
|
809
877
|
external_type_display_name: string
|
|
810
878
|
is_suspended: boolean
|
|
811
879
|
full_name?: string | undefined
|
|
@@ -843,7 +911,7 @@ export interface Routes {
|
|
|
843
911
|
workspace_id: string
|
|
844
912
|
created_at: string
|
|
845
913
|
display_name: string
|
|
846
|
-
external_type: 'pti_user' | 'brivo_user'
|
|
914
|
+
external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user'
|
|
847
915
|
external_type_display_name: string
|
|
848
916
|
is_suspended: boolean
|
|
849
917
|
full_name?: string | undefined
|
|
@@ -870,7 +938,7 @@ export interface Routes {
|
|
|
870
938
|
workspace_id: string
|
|
871
939
|
created_at: string
|
|
872
940
|
display_name: string
|
|
873
|
-
external_type: 'pti_user' | 'brivo_user'
|
|
941
|
+
external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user'
|
|
874
942
|
external_type_display_name: string
|
|
875
943
|
is_suspended: boolean
|
|
876
944
|
full_name?: string | undefined
|
|
@@ -8203,7 +8271,7 @@ export interface Routes {
|
|
|
8203
8271
|
workspace_id: string
|
|
8204
8272
|
created_at: string
|
|
8205
8273
|
display_name: string
|
|
8206
|
-
external_type: 'pti_user' | 'brivo_user'
|
|
8274
|
+
external_type: 'pti_user' | 'brivo_user' | 'hid_cm_user'
|
|
8207
8275
|
external_type_display_name: string
|
|
8208
8276
|
is_suspended: boolean
|
|
8209
8277
|
full_name?: string | undefined
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
export const acs_entrance = z.object({
|
|
4
|
+
acs_entrance_id: z.string().uuid(),
|
|
5
|
+
display_name: z.string(),
|
|
6
|
+
acs_system_id: z.string().uuid(),
|
|
7
|
+
created_at: z.string().datetime(),
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
export type AcsEntrance = z.infer<typeof acs_entrance>
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
-
export const acs_user_external_type = z.enum([
|
|
3
|
+
export const acs_user_external_type = z.enum([
|
|
4
|
+
'pti_user',
|
|
5
|
+
'brivo_user',
|
|
6
|
+
'hid_cm_user',
|
|
7
|
+
])
|
|
4
8
|
|
|
5
9
|
export type AcsUserExternalType = z.infer<typeof acs_user_external_type>
|
|
6
10
|
|