@seamapi/types 1.377.0 → 1.379.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.
@@ -9594,14 +9594,17 @@ export interface Routes {
9594
9594
  | Array<
9595
9595
  | {
9596
9596
  created_at: string
9597
+ message: string
9597
9598
  mutation_code: 'creating'
9598
9599
  }
9599
9600
  | {
9600
9601
  created_at: string
9602
+ message: string
9601
9603
  mutation_code: 'deleting'
9602
9604
  }
9603
9605
  | {
9604
9606
  created_at: string
9607
+ message: string
9605
9608
  mutation_code: 'updating_user_information'
9606
9609
  from: {
9607
9610
  email_address?: (string | null) | undefined
@@ -9616,22 +9619,20 @@ export interface Routes {
9616
9619
  }
9617
9620
  | {
9618
9621
  created_at: string
9622
+ message: string
9619
9623
  mutation_code: 'updating_access_schedule'
9620
9624
  from: {
9621
- /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
9622
- starts_at: string
9623
- /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
9625
+ starts_at: string | null
9624
9626
  ends_at: string | null
9625
9627
  }
9626
9628
  to: {
9627
- /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
9628
- starts_at: string
9629
- /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
9629
+ starts_at: string | null
9630
9630
  ends_at: string | null
9631
9631
  }
9632
9632
  }
9633
9633
  | {
9634
9634
  created_at: string
9635
+ message: string
9635
9636
  mutation_code: 'updating_suspension_state'
9636
9637
  from: {
9637
9638
  is_suspended: boolean
@@ -9642,6 +9643,7 @@ export interface Routes {
9642
9643
  }
9643
9644
  | {
9644
9645
  created_at: string
9646
+ message: string
9645
9647
  mutation_code: 'updating_group_membership'
9646
9648
  from: {
9647
9649
  acs_access_group_id: string | null
@@ -12568,6 +12570,54 @@ export interface Routes {
12568
12570
  }
12569
12571
  }
12570
12572
  }
12573
+ '/acs/encoders/get': {
12574
+ route: '/acs/encoders/get'
12575
+ method: 'GET' | 'POST'
12576
+ queryParams: {}
12577
+ jsonBody: {}
12578
+ commonParams: {
12579
+ /** ID of the desired encoder. */
12580
+ acs_encoder_id: string
12581
+ }
12582
+ formData: {}
12583
+ jsonResponse: {
12584
+ /** Represents a hardware device that encodes [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) data onto physical cards within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).
12585
+
12586
+ Some access control systems require credentials to be encoded onto plastic key cards using a card encoder. This process involves the following two key steps:
12587
+
12588
+ 1. Credential creation
12589
+ Configure the access parameters for the credential.
12590
+ 2. Card encoding
12591
+ Write the credential data onto the card using a compatible card encoder.
12592
+
12593
+ Separately, the Seam API also supports card scanning, which enables you to scan and read the encoded data on a card. You can use this action to confirm consistency with access control system records or diagnose discrepancies if needed.
12594
+
12595
+ See [Working with Card Encoders and Scanners](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).
12596
+
12597
+ To verify if your access control system requires a card encoder, see the corresponding [system integration guide](https://docs.seam.co/latest/device-and-system-integration-guides/overview#access-control-systems). */
12598
+ acs_encoder: {
12599
+ /** ID of the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners. */
12600
+ acs_encoder_id: string
12601
+ /** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
12602
+ acs_system_id: string
12603
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
12604
+ workspace_id: string
12605
+ /** Errors associated with the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
12606
+ errors: Array<{
12607
+ /** Date and time at which Seam created the error. */
12608
+ created_at: string
12609
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
12610
+ message: string
12611
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
12612
+ error_code: 'acs_encoder_removed'
12613
+ }>
12614
+ /** Date and time at which the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) was created. */
12615
+ created_at: string
12616
+ /** Display name for the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
12617
+ display_name: string
12618
+ }
12619
+ }
12620
+ }
12571
12621
  '/acs/encoders/list': {
12572
12622
  route: '/acs/encoders/list'
12573
12623
  method: 'GET' | 'POST'
@@ -14923,14 +14973,17 @@ export interface Routes {
14923
14973
  | Array<
14924
14974
  | {
14925
14975
  created_at: string
14976
+ message: string
14926
14977
  mutation_code: 'creating'
14927
14978
  }
14928
14979
  | {
14929
14980
  created_at: string
14981
+ message: string
14930
14982
  mutation_code: 'deleting'
14931
14983
  }
14932
14984
  | {
14933
14985
  created_at: string
14986
+ message: string
14934
14987
  mutation_code: 'updating_user_information'
14935
14988
  from: {
14936
14989
  email_address?: (string | null) | undefined
@@ -14945,22 +14998,20 @@ export interface Routes {
14945
14998
  }
14946
14999
  | {
14947
15000
  created_at: string
15001
+ message: string
14948
15002
  mutation_code: 'updating_access_schedule'
14949
15003
  from: {
14950
- /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
14951
- starts_at: string
14952
- /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15004
+ starts_at: string | null
14953
15005
  ends_at: string | null
14954
15006
  }
14955
15007
  to: {
14956
- /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
14957
- starts_at: string
14958
- /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15008
+ starts_at: string | null
14959
15009
  ends_at: string | null
14960
15010
  }
14961
15011
  }
14962
15012
  | {
14963
15013
  created_at: string
15014
+ message: string
14964
15015
  mutation_code: 'updating_suspension_state'
14965
15016
  from: {
14966
15017
  is_suspended: boolean
@@ -14971,6 +15022,7 @@ export interface Routes {
14971
15022
  }
14972
15023
  | {
14973
15024
  created_at: string
15025
+ message: string
14974
15026
  mutation_code: 'updating_group_membership'
14975
15027
  from: {
14976
15028
  acs_access_group_id: string | null
@@ -15142,14 +15194,17 @@ export interface Routes {
15142
15194
  | Array<
15143
15195
  | {
15144
15196
  created_at: string
15197
+ message: string
15145
15198
  mutation_code: 'creating'
15146
15199
  }
15147
15200
  | {
15148
15201
  created_at: string
15202
+ message: string
15149
15203
  mutation_code: 'deleting'
15150
15204
  }
15151
15205
  | {
15152
15206
  created_at: string
15207
+ message: string
15153
15208
  mutation_code: 'updating_user_information'
15154
15209
  from: {
15155
15210
  email_address?: (string | null) | undefined
@@ -15164,22 +15219,20 @@ export interface Routes {
15164
15219
  }
15165
15220
  | {
15166
15221
  created_at: string
15222
+ message: string
15167
15223
  mutation_code: 'updating_access_schedule'
15168
15224
  from: {
15169
- /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15170
- starts_at: string
15171
- /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15225
+ starts_at: string | null
15172
15226
  ends_at: string | null
15173
15227
  }
15174
15228
  to: {
15175
- /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15176
- starts_at: string
15177
- /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15229
+ starts_at: string | null
15178
15230
  ends_at: string | null
15179
15231
  }
15180
15232
  }
15181
15233
  | {
15182
15234
  created_at: string
15235
+ message: string
15183
15236
  mutation_code: 'updating_suspension_state'
15184
15237
  from: {
15185
15238
  is_suspended: boolean
@@ -15190,6 +15243,7 @@ export interface Routes {
15190
15243
  }
15191
15244
  | {
15192
15245
  created_at: string
15246
+ message: string
15193
15247
  mutation_code: 'updating_group_membership'
15194
15248
  from: {
15195
15249
  acs_access_group_id: string | null
@@ -15357,14 +15411,17 @@ export interface Routes {
15357
15411
  | Array<
15358
15412
  | {
15359
15413
  created_at: string
15414
+ message: string
15360
15415
  mutation_code: 'creating'
15361
15416
  }
15362
15417
  | {
15363
15418
  created_at: string
15419
+ message: string
15364
15420
  mutation_code: 'deleting'
15365
15421
  }
15366
15422
  | {
15367
15423
  created_at: string
15424
+ message: string
15368
15425
  mutation_code: 'updating_user_information'
15369
15426
  from: {
15370
15427
  email_address?: (string | null) | undefined
@@ -15379,22 +15436,20 @@ export interface Routes {
15379
15436
  }
15380
15437
  | {
15381
15438
  created_at: string
15439
+ message: string
15382
15440
  mutation_code: 'updating_access_schedule'
15383
15441
  from: {
15384
- /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15385
- starts_at: string
15386
- /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15442
+ starts_at: string | null
15387
15443
  ends_at: string | null
15388
15444
  }
15389
15445
  to: {
15390
- /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15391
- starts_at: string
15392
- /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15446
+ starts_at: string | null
15393
15447
  ends_at: string | null
15394
15448
  }
15395
15449
  }
15396
15450
  | {
15397
15451
  created_at: string
15452
+ message: string
15398
15453
  mutation_code: 'updating_suspension_state'
15399
15454
  from: {
15400
15455
  is_suspended: boolean
@@ -15405,6 +15460,7 @@ export interface Routes {
15405
15460
  }
15406
15461
  | {
15407
15462
  created_at: string
15463
+ message: string
15408
15464
  mutation_code: 'updating_group_membership'
15409
15465
  from: {
15410
15466
  acs_access_group_id: string | null
@@ -15704,14 +15760,17 @@ export interface Routes {
15704
15760
  | Array<
15705
15761
  | {
15706
15762
  created_at: string
15763
+ message: string
15707
15764
  mutation_code: 'creating'
15708
15765
  }
15709
15766
  | {
15710
15767
  created_at: string
15768
+ message: string
15711
15769
  mutation_code: 'deleting'
15712
15770
  }
15713
15771
  | {
15714
15772
  created_at: string
15773
+ message: string
15715
15774
  mutation_code: 'updating_user_information'
15716
15775
  from: {
15717
15776
  email_address?: (string | null) | undefined
@@ -15726,22 +15785,20 @@ export interface Routes {
15726
15785
  }
15727
15786
  | {
15728
15787
  created_at: string
15788
+ message: string
15729
15789
  mutation_code: 'updating_access_schedule'
15730
15790
  from: {
15731
- /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15732
- starts_at: string
15733
- /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15791
+ starts_at: string | null
15734
15792
  ends_at: string | null
15735
15793
  }
15736
15794
  to: {
15737
- /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15738
- starts_at: string
15739
- /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15795
+ starts_at: string | null
15740
15796
  ends_at: string | null
15741
15797
  }
15742
15798
  }
15743
15799
  | {
15744
15800
  created_at: string
15801
+ message: string
15745
15802
  mutation_code: 'updating_suspension_state'
15746
15803
  from: {
15747
15804
  is_suspended: boolean
@@ -15752,6 +15809,7 @@ export interface Routes {
15752
15809
  }
15753
15810
  | {
15754
15811
  created_at: string
15812
+ message: string
15755
15813
  mutation_code: 'updating_group_membership'
15756
15814
  from: {
15757
15815
  acs_access_group_id: string | null
@@ -15909,14 +15967,17 @@ export interface Routes {
15909
15967
  | Array<
15910
15968
  | {
15911
15969
  created_at: string
15970
+ message: string
15912
15971
  mutation_code: 'creating'
15913
15972
  }
15914
15973
  | {
15915
15974
  created_at: string
15975
+ message: string
15916
15976
  mutation_code: 'deleting'
15917
15977
  }
15918
15978
  | {
15919
15979
  created_at: string
15980
+ message: string
15920
15981
  mutation_code: 'updating_user_information'
15921
15982
  from: {
15922
15983
  email_address?: (string | null) | undefined
@@ -15931,22 +15992,20 @@ export interface Routes {
15931
15992
  }
15932
15993
  | {
15933
15994
  created_at: string
15995
+ message: string
15934
15996
  mutation_code: 'updating_access_schedule'
15935
15997
  from: {
15936
- /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15937
- starts_at: string
15938
- /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15998
+ starts_at: string | null
15939
15999
  ends_at: string | null
15940
16000
  }
15941
16001
  to: {
15942
- /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
15943
- starts_at: string
15944
- /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
16002
+ starts_at: string | null
15945
16003
  ends_at: string | null
15946
16004
  }
15947
16005
  }
15948
16006
  | {
15949
16007
  created_at: string
16008
+ message: string
15950
16009
  mutation_code: 'updating_suspension_state'
15951
16010
  from: {
15952
16011
  is_suspended: boolean
@@ -15957,6 +16016,7 @@ export interface Routes {
15957
16016
  }
15958
16017
  | {
15959
16018
  created_at: string
16019
+ message: string
15960
16020
  mutation_code: 'updating_group_membership'
15961
16021
  from: {
15962
16022
  acs_access_group_id: string | null
@@ -36885,15 +36945,15 @@ export interface Routes {
36885
36945
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
36886
36946
  error_code: 'bridge_lan_unreachable'
36887
36947
  /** Seam cannot reach the tailscale proxy */
36888
- is_tailscale_proxy_reachable: boolean
36948
+ is_tailscale_proxy_reachable: boolean | null
36889
36949
  /** Tailscale proxy's SOCKS server is unhealthy */
36890
- is_tailscale_proxy_socks_server_healthy: boolean
36950
+ is_tailscale_proxy_socks_server_healthy: boolean | null
36891
36951
  /** Tailscale proxy cannot reach the Tailscale network */
36892
- can_tailscale_proxy_reach_tailscale_network: boolean
36952
+ can_tailscale_proxy_reach_tailscale_network: boolean | null
36893
36953
  /** Tailscale proxy cannot reach the bridge */
36894
- can_tailscale_proxy_reach_bridge: boolean
36954
+ can_tailscale_proxy_reach_bridge: boolean | null
36895
36955
  /** Bridge's SOCKS server is unhealthy */
36896
- is_bridge_socks_server_healthy: boolean
36956
+ is_bridge_socks_server_healthy: boolean | null
36897
36957
  }
36898
36958
  | {
36899
36959
  message: string
@@ -36932,15 +36992,15 @@ export interface Routes {
36932
36992
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
36933
36993
  error_code: 'bridge_lan_unreachable'
36934
36994
  /** Seam cannot reach the tailscale proxy */
36935
- is_tailscale_proxy_reachable: boolean
36995
+ is_tailscale_proxy_reachable: boolean | null
36936
36996
  /** Tailscale proxy's SOCKS server is unhealthy */
36937
- is_tailscale_proxy_socks_server_healthy: boolean
36997
+ is_tailscale_proxy_socks_server_healthy: boolean | null
36938
36998
  /** Tailscale proxy cannot reach the Tailscale network */
36939
- can_tailscale_proxy_reach_tailscale_network: boolean
36999
+ can_tailscale_proxy_reach_tailscale_network: boolean | null
36940
37000
  /** Tailscale proxy cannot reach the bridge */
36941
- can_tailscale_proxy_reach_bridge: boolean
37001
+ can_tailscale_proxy_reach_bridge: boolean | null
36942
37002
  /** Bridge's SOCKS server is unhealthy */
36943
- is_bridge_socks_server_healthy: boolean
37003
+ is_bridge_socks_server_healthy: boolean | null
36944
37004
  }
36945
37005
  | {
36946
37006
  message: string
@@ -36979,15 +37039,15 @@ export interface Routes {
36979
37039
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
36980
37040
  error_code: 'bridge_lan_unreachable'
36981
37041
  /** Seam cannot reach the tailscale proxy */
36982
- is_tailscale_proxy_reachable: boolean
37042
+ is_tailscale_proxy_reachable: boolean | null
36983
37043
  /** Tailscale proxy's SOCKS server is unhealthy */
36984
- is_tailscale_proxy_socks_server_healthy: boolean
37044
+ is_tailscale_proxy_socks_server_healthy: boolean | null
36985
37045
  /** Tailscale proxy cannot reach the Tailscale network */
36986
- can_tailscale_proxy_reach_tailscale_network: boolean
37046
+ can_tailscale_proxy_reach_tailscale_network: boolean | null
36987
37047
  /** Tailscale proxy cannot reach the bridge */
36988
- can_tailscale_proxy_reach_bridge: boolean
37048
+ can_tailscale_proxy_reach_bridge: boolean | null
36989
37049
  /** Bridge's SOCKS server is unhealthy */
36990
- is_bridge_socks_server_healthy: boolean
37050
+ is_bridge_socks_server_healthy: boolean | null
36991
37051
  }
36992
37052
  | {
36993
37053
  message: string
@@ -50894,14 +50954,17 @@ export interface Routes {
50894
50954
  | Array<
50895
50955
  | {
50896
50956
  created_at: string
50957
+ message: string
50897
50958
  mutation_code: 'creating'
50898
50959
  }
50899
50960
  | {
50900
50961
  created_at: string
50962
+ message: string
50901
50963
  mutation_code: 'deleting'
50902
50964
  }
50903
50965
  | {
50904
50966
  created_at: string
50967
+ message: string
50905
50968
  mutation_code: 'updating_user_information'
50906
50969
  from: {
50907
50970
  email_address?: (string | null) | undefined
@@ -50916,22 +50979,20 @@ export interface Routes {
50916
50979
  }
50917
50980
  | {
50918
50981
  created_at: string
50982
+ message: string
50919
50983
  mutation_code: 'updating_access_schedule'
50920
50984
  from: {
50921
- /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
50922
- starts_at: string
50923
- /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
50985
+ starts_at: string | null
50924
50986
  ends_at: string | null
50925
50987
  }
50926
50988
  to: {
50927
- /** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
50928
- starts_at: string
50929
- /** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
50989
+ starts_at: string | null
50930
50990
  ends_at: string | null
50931
50991
  }
50932
50992
  }
50933
50993
  | {
50934
50994
  created_at: string
50995
+ message: string
50935
50996
  mutation_code: 'updating_suspension_state'
50936
50997
  from: {
50937
50998
  is_suspended: boolean
@@ -50942,6 +51003,7 @@ export interface Routes {
50942
51003
  }
50943
51004
  | {
50944
51005
  created_at: string
51006
+ message: string
50945
51007
  mutation_code: 'updating_group_membership'
50946
51008
  from: {
50947
51009
  acs_access_group_id: string | null