@seamapi/types 1.469.0 → 1.470.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.
@@ -85528,324 +85528,6 @@ export type Routes = {
85528
85528
  }
85529
85529
  }
85530
85530
  }
85531
- '/unstable_access_grants/create': {
85532
- route: '/unstable_access_grants/create'
85533
- method: 'POST'
85534
- queryParams: {}
85535
- jsonBody: {}
85536
- commonParams: (
85537
- | {
85538
- /** ID of user identity for whom you want to grant access. */
85539
- user_identity_id: string
85540
- }
85541
- | {
85542
- /** User identity. When used, creates a new user identity with the specified details and grants them access. */
85543
- user_identity: {
85544
- /** Unique email address for the user identity. */
85545
- email_address?: (string | null) | undefined
85546
- /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */
85547
- phone_number?: (string | null) | undefined
85548
- full_name?: (string | null) | undefined
85549
- }
85550
- }
85551
- ) & {
85552
- /**
85553
- * @deprecated Use `space_ids`.*/
85554
- location_ids?: string[] | undefined
85555
- /** IDs of the existing spaces to which you want to grant access. */
85556
- space_ids?: string[] | undefined
85557
- /** Location. When used, creates a new location with the specified entrances and devices, and gives the user access to this location. */
85558
- location?:
85559
- | {
85560
- /** Name of the location. */
85561
- name?: string | undefined
85562
- /**
85563
- * @deprecated Use `acs_entrance_ids` at the top level.*/
85564
- acs_entrance_ids?: string[]
85565
- /**
85566
- * @deprecated Use `device_ids` at the top level.*/
85567
- device_ids?: string[]
85568
- }
85569
- | undefined
85570
- /** IDs of the [entrances](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) to which you want to grant access. */
85571
- acs_entrance_ids?: string[]
85572
- /** IDs of the devices to which you want to grant access. */
85573
- device_ids?: string[]
85574
- requested_access_methods: {
85575
- /** Access method mode. */
85576
- mode: 'code' | 'card' | 'mobile_key'
85577
- }[]
85578
- /** Date and time at which the validity of the new grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
85579
- starts_at?: string | undefined
85580
- /** Date and time at which the validity of the new grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`. */
85581
- ends_at?: string | undefined
85582
- }
85583
- formData: {}
85584
- jsonResponse: {
85585
- /** Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant. */
85586
- access_grant: {
85587
- /** ID of the Seam workspace associated with the Access Grant. */
85588
- workspace_id: string
85589
- /** ID of the Access Grant. */
85590
- access_grant_id: string
85591
- /** Unique key for the access grant within the workspace. */
85592
- access_grant_key?: string | undefined
85593
- /** ID of user identity to which the Access Grant gives access. */
85594
- user_identity_id: string
85595
- /**
85596
- * @deprecated Use `space_ids`.*/
85597
- location_ids: string[]
85598
- /** IDs of the spaces to which the Access Grant gives access. */
85599
- space_ids: string[]
85600
- /** Access methods that the user requested for the Access Grant. */
85601
- requested_access_methods: {
85602
- /** Display name of the access method. */
85603
- display_name: string
85604
- /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
85605
- mode: 'code' | 'card' | 'mobile_key'
85606
- /** Date and time at which the requested access method was added to the Access Grant. */
85607
- created_at: string
85608
- /** IDs of the access methods created for the requested access method. */
85609
- created_access_method_ids: string[]
85610
- }[]
85611
- /** IDs of the access methods created for the Access Grant. */
85612
- access_method_ids: string[]
85613
- /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
85614
- client_session_token?: string | undefined
85615
- /** Name of the Access Grant. If not provided, the display name will be computed. */
85616
- name: string | null
85617
- /** Display name of the Access Grant. */
85618
- display_name: string
85619
- /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
85620
- instant_key_url?: string | undefined
85621
- /** Date and time at which the Access Grant was created. */
85622
- created_at: string
85623
- /** Date and time at which the Access Grant starts. */
85624
- starts_at: string
85625
- /** Date and time at which the Access Grant ends. */
85626
- ends_at: string | null
85627
- }
85628
- }
85629
- }
85630
- '/unstable_access_grants/delete': {
85631
- route: '/unstable_access_grants/delete'
85632
- method: 'DELETE' | 'POST'
85633
- queryParams: {}
85634
- jsonBody: {}
85635
- commonParams: {
85636
- /** ID of access grant that you want to delete. */
85637
- access_grant_id: string
85638
- }
85639
- formData: {}
85640
- jsonResponse: {}
85641
- }
85642
- '/unstable_access_grants/get': {
85643
- route: '/unstable_access_grants/get'
85644
- method: 'GET' | 'POST'
85645
- queryParams: {}
85646
- jsonBody: {}
85647
- commonParams: {
85648
- /** ID of access grant that you want to get. */
85649
- access_grant_id: string
85650
- }
85651
- formData: {}
85652
- jsonResponse: {
85653
- /** Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant. */
85654
- access_grant: {
85655
- /** ID of the Seam workspace associated with the Access Grant. */
85656
- workspace_id: string
85657
- /** ID of the Access Grant. */
85658
- access_grant_id: string
85659
- /** Unique key for the access grant within the workspace. */
85660
- access_grant_key?: string | undefined
85661
- /** ID of user identity to which the Access Grant gives access. */
85662
- user_identity_id: string
85663
- /**
85664
- * @deprecated Use `space_ids`.*/
85665
- location_ids: string[]
85666
- /** IDs of the spaces to which the Access Grant gives access. */
85667
- space_ids: string[]
85668
- /** Access methods that the user requested for the Access Grant. */
85669
- requested_access_methods: {
85670
- /** Display name of the access method. */
85671
- display_name: string
85672
- /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
85673
- mode: 'code' | 'card' | 'mobile_key'
85674
- /** Date and time at which the requested access method was added to the Access Grant. */
85675
- created_at: string
85676
- /** IDs of the access methods created for the requested access method. */
85677
- created_access_method_ids: string[]
85678
- }[]
85679
- /** IDs of the access methods created for the Access Grant. */
85680
- access_method_ids: string[]
85681
- /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
85682
- client_session_token?: string | undefined
85683
- /** Name of the Access Grant. If not provided, the display name will be computed. */
85684
- name: string | null
85685
- /** Display name of the Access Grant. */
85686
- display_name: string
85687
- /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
85688
- instant_key_url?: string | undefined
85689
- /** Date and time at which the Access Grant was created. */
85690
- created_at: string
85691
- /** Date and time at which the Access Grant starts. */
85692
- starts_at: string
85693
- /** Date and time at which the Access Grant ends. */
85694
- ends_at: string | null
85695
- }
85696
- }
85697
- }
85698
- '/unstable_access_grants/list': {
85699
- route: '/unstable_access_grants/list'
85700
- method: 'GET' | 'POST'
85701
- queryParams: {}
85702
- jsonBody: {}
85703
- commonParams: {
85704
- /** ID of the user identity by which you want to filter the list of access grants. */
85705
- user_identity_id?: string | undefined
85706
- /** ID of the access system by which you want to filter the list of access grants. */
85707
- acs_system_id?: string | undefined
85708
- /** ID of the entrance by which you want to filter the list of access grants. */
85709
- acs_entrance_id?: string | undefined
85710
- /**
85711
- * @deprecated Use `space_id`.*/
85712
- location_id?: string | undefined
85713
- /** ID of the space by which you want to filter the list of access grants. */
85714
- space_id?: string | undefined
85715
- }
85716
- formData: {}
85717
- jsonResponse: {
85718
- access_grants: {
85719
- /** ID of the Seam workspace associated with the Access Grant. */
85720
- workspace_id: string
85721
- /** ID of the Access Grant. */
85722
- access_grant_id: string
85723
- /** Unique key for the access grant within the workspace. */
85724
- access_grant_key?: string | undefined
85725
- /** ID of user identity to which the Access Grant gives access. */
85726
- user_identity_id: string
85727
- /**
85728
- * @deprecated Use `space_ids`.*/
85729
- location_ids: string[]
85730
- /** IDs of the spaces to which the Access Grant gives access. */
85731
- space_ids: string[]
85732
- /** Access methods that the user requested for the Access Grant. */
85733
- requested_access_methods: {
85734
- /** Display name of the access method. */
85735
- display_name: string
85736
- /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
85737
- mode: 'code' | 'card' | 'mobile_key'
85738
- /** Date and time at which the requested access method was added to the Access Grant. */
85739
- created_at: string
85740
- /** IDs of the access methods created for the requested access method. */
85741
- created_access_method_ids: string[]
85742
- }[]
85743
- /** IDs of the access methods created for the Access Grant. */
85744
- access_method_ids: string[]
85745
- /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
85746
- client_session_token?: string | undefined
85747
- /** Name of the Access Grant. If not provided, the display name will be computed. */
85748
- name: string | null
85749
- /** Display name of the Access Grant. */
85750
- display_name: string
85751
- /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
85752
- instant_key_url?: string | undefined
85753
- /** Date and time at which the Access Grant was created. */
85754
- created_at: string
85755
- /** Date and time at which the Access Grant starts. */
85756
- starts_at: string
85757
- /** Date and time at which the Access Grant ends. */
85758
- ends_at: string | null
85759
- }[]
85760
- }
85761
- }
85762
- '/unstable_access_methods/delete': {
85763
- route: '/unstable_access_methods/delete'
85764
- method: 'DELETE' | 'POST'
85765
- queryParams: {}
85766
- jsonBody: {}
85767
- commonParams: {
85768
- /** ID of the access method that you want to delete. */
85769
- access_method_id: string
85770
- }
85771
- formData: {}
85772
- jsonResponse: {}
85773
- }
85774
- '/unstable_access_methods/get': {
85775
- route: '/unstable_access_methods/get'
85776
- method: 'GET' | 'POST'
85777
- queryParams: {}
85778
- jsonBody: {}
85779
- commonParams: {
85780
- /** ID of the access method that you want to get. */
85781
- access_method_id: string
85782
- }
85783
- formData: {}
85784
- jsonResponse: {
85785
- /** Represents an access method for an Access Grant. Access methods describe the modes of access, such as PIN codes, plastic cards, and mobile keys. For a mobile key, the access method also stores the URL for the associated Instant Key. */
85786
- access_method: {
85787
- /** ID of the Seam workspace associated with the access method. */
85788
- workspace_id: string
85789
- /** ID of the access method. */
85790
- access_method_id: string
85791
- /** Display name of the access method. */
85792
- display_name: string
85793
- /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
85794
- mode: 'code' | 'card' | 'mobile_key'
85795
- /** Date and time at which the access method was created. */
85796
- created_at: string
85797
- /** Date and time at which the access method was issued. */
85798
- issued_at: string | null
85799
- /** Indicates whether the access method has been issued. */
85800
- is_issued: boolean
85801
- /** URL of the Instant Key for mobile key access methods. */
85802
- instant_key_url?: string | undefined
85803
- /** Token of the client session associated with the access method. */
85804
- client_session_token?: string | undefined
85805
- /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */
85806
- is_encoding_required?: boolean | undefined
85807
- /** The actual PIN code for code access methods. */
85808
- code?: string | undefined
85809
- }
85810
- }
85811
- }
85812
- '/unstable_access_methods/list': {
85813
- route: '/unstable_access_methods/list'
85814
- method: 'GET' | 'POST'
85815
- queryParams: {}
85816
- jsonBody: {}
85817
- commonParams: {
85818
- /** ID of the access grant by which to filter the list of access methods. */
85819
- access_grant_id: string
85820
- }
85821
- formData: {}
85822
- jsonResponse: {
85823
- access_methods: {
85824
- /** ID of the Seam workspace associated with the access method. */
85825
- workspace_id: string
85826
- /** ID of the access method. */
85827
- access_method_id: string
85828
- /** Display name of the access method. */
85829
- display_name: string
85830
- /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
85831
- mode: 'code' | 'card' | 'mobile_key'
85832
- /** Date and time at which the access method was created. */
85833
- created_at: string
85834
- /** Date and time at which the access method was issued. */
85835
- issued_at: string | null
85836
- /** Indicates whether the access method has been issued. */
85837
- is_issued: boolean
85838
- /** URL of the Instant Key for mobile key access methods. */
85839
- instant_key_url?: string | undefined
85840
- /** Token of the client session associated with the access method. */
85841
- client_session_token?: string | undefined
85842
- /** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */
85843
- is_encoding_required?: boolean | undefined
85844
- /** The actual PIN code for code access methods. */
85845
- code?: string | undefined
85846
- }[]
85847
- }
85848
- }
85849
85531
  '/unstable_locations/add_acs_entrances': {
85850
85532
  route: '/unstable_locations/add_acs_entrances'
85851
85533
  method: 'POST' | 'PUT'