@seamapi/types 1.282.0 → 1.284.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.
Files changed (31) hide show
  1. package/dist/connect.cjs +85 -14
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +336 -79
  4. package/lib/seam/connect/models/acs/acs-system.d.ts +7 -7
  5. package/lib/seam/connect/models/acs/acs-system.js +3 -0
  6. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  7. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +62 -2
  8. package/lib/seam/connect/models/action-attempts/common.d.ts +19 -0
  9. package/lib/seam/connect/models/action-attempts/common.js +10 -0
  10. package/lib/seam/connect/models/action-attempts/common.js.map +1 -1
  11. package/lib/seam/connect/models/action-attempts/encode-card.d.ts +30 -0
  12. package/lib/seam/connect/models/action-attempts/encode-card.js +2 -1
  13. package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -1
  14. package/lib/seam/connect/models/action-attempts/scan-card.d.ts +32 -2
  15. package/lib/seam/connect/models/action-attempts/scan-card.js +6 -2
  16. package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -1
  17. package/lib/seam/connect/models/devices/device-provider.d.ts +4 -2
  18. package/lib/seam/connect/models/devices/device-provider.js +3 -2
  19. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  20. package/lib/seam/connect/openapi.d.ts +15 -60
  21. package/lib/seam/connect/openapi.js +60 -8
  22. package/lib/seam/connect/openapi.js.map +1 -1
  23. package/lib/seam/connect/route-types.d.ts +250 -10
  24. package/package.json +1 -1
  25. package/src/lib/seam/connect/models/acs/acs-system.ts +3 -0
  26. package/src/lib/seam/connect/models/action-attempts/common.ts +11 -0
  27. package/src/lib/seam/connect/models/action-attempts/encode-card.ts +2 -0
  28. package/src/lib/seam/connect/models/action-attempts/scan-card.ts +7 -1
  29. package/src/lib/seam/connect/models/devices/device-provider.ts +3 -2
  30. package/src/lib/seam/connect/openapi.ts +60 -8
  31. package/src/lib/seam/connect/route-types.ts +450 -82
@@ -242,6 +242,12 @@ export interface Routes {
242
242
  result: null;
243
243
  action_type: 'SCAN_CARD';
244
244
  error: {
245
+ type: 'uncategorized_error';
246
+ message: string;
247
+ } | {
248
+ type: 'action_attempt_expired';
249
+ message: string;
250
+ } | {
245
251
  type: 'no_card_on_encoder';
246
252
  message: string;
247
253
  };
@@ -383,6 +389,12 @@ export interface Routes {
383
389
  result: null;
384
390
  action_type: 'ENCODE_CARD';
385
391
  error: {
392
+ type: 'uncategorized_error';
393
+ message: string;
394
+ } | {
395
+ type: 'action_attempt_expired';
396
+ message: string;
397
+ } | {
386
398
  type: 'no_card_on_encoder';
387
399
  message: string;
388
400
  } | {
@@ -1114,6 +1126,12 @@ export interface Routes {
1114
1126
  result: null;
1115
1127
  action_type: 'SCAN_CARD';
1116
1128
  error: {
1129
+ type: 'uncategorized_error';
1130
+ message: string;
1131
+ } | {
1132
+ type: 'action_attempt_expired';
1133
+ message: string;
1134
+ } | {
1117
1135
  type: 'no_card_on_encoder';
1118
1136
  message: string;
1119
1137
  };
@@ -1255,6 +1273,12 @@ export interface Routes {
1255
1273
  result: null;
1256
1274
  action_type: 'ENCODE_CARD';
1257
1275
  error: {
1276
+ type: 'uncategorized_error';
1277
+ message: string;
1278
+ } | {
1279
+ type: 'action_attempt_expired';
1280
+ message: string;
1281
+ } | {
1258
1282
  type: 'no_card_on_encoder';
1259
1283
  message: string;
1260
1284
  } | {
@@ -2143,6 +2167,12 @@ export interface Routes {
2143
2167
  result: null;
2144
2168
  action_type: 'SCAN_CARD';
2145
2169
  error: {
2170
+ type: 'uncategorized_error';
2171
+ message: string;
2172
+ } | {
2173
+ type: 'action_attempt_expired';
2174
+ message: string;
2175
+ } | {
2146
2176
  type: 'no_card_on_encoder';
2147
2177
  message: string;
2148
2178
  };
@@ -2284,6 +2314,12 @@ export interface Routes {
2284
2314
  result: null;
2285
2315
  action_type: 'ENCODE_CARD';
2286
2316
  error: {
2317
+ type: 'uncategorized_error';
2318
+ message: string;
2319
+ } | {
2320
+ type: 'action_attempt_expired';
2321
+ message: string;
2322
+ } | {
2287
2323
  type: 'no_card_on_encoder';
2288
2324
  message: string;
2289
2325
  } | {
@@ -3002,6 +3038,12 @@ export interface Routes {
3002
3038
  result: null;
3003
3039
  action_type: 'SCAN_CARD';
3004
3040
  error: {
3041
+ type: 'uncategorized_error';
3042
+ message: string;
3043
+ } | {
3044
+ type: 'action_attempt_expired';
3045
+ message: string;
3046
+ } | {
3005
3047
  type: 'no_card_on_encoder';
3006
3048
  message: string;
3007
3049
  };
@@ -3143,6 +3185,12 @@ export interface Routes {
3143
3185
  result: null;
3144
3186
  action_type: 'ENCODE_CARD';
3145
3187
  error: {
3188
+ type: 'uncategorized_error';
3189
+ message: string;
3190
+ } | {
3191
+ type: 'action_attempt_expired';
3192
+ message: string;
3193
+ } | {
3146
3194
  type: 'no_card_on_encoder';
3147
3195
  message: string;
3148
3196
  } | {
@@ -4841,6 +4889,12 @@ export interface Routes {
4841
4889
  result: null;
4842
4890
  action_type: 'SCAN_CARD';
4843
4891
  error: {
4892
+ type: 'uncategorized_error';
4893
+ message: string;
4894
+ } | {
4895
+ type: 'action_attempt_expired';
4896
+ message: string;
4897
+ } | {
4844
4898
  type: 'no_card_on_encoder';
4845
4899
  message: string;
4846
4900
  };
@@ -4982,6 +5036,12 @@ export interface Routes {
4982
5036
  result: null;
4983
5037
  action_type: 'ENCODE_CARD';
4984
5038
  error: {
5039
+ type: 'uncategorized_error';
5040
+ message: string;
5041
+ } | {
5042
+ type: 'action_attempt_expired';
5043
+ message: string;
5044
+ } | {
4985
5045
  type: 'no_card_on_encoder';
4986
5046
  message: string;
4987
5047
  } | {
@@ -6042,6 +6102,12 @@ export interface Routes {
6042
6102
  result: null;
6043
6103
  action_type: 'SCAN_CARD';
6044
6104
  error: {
6105
+ type: 'uncategorized_error';
6106
+ message: string;
6107
+ } | {
6108
+ type: 'action_attempt_expired';
6109
+ message: string;
6110
+ } | {
6045
6111
  type: 'no_card_on_encoder';
6046
6112
  message: string;
6047
6113
  };
@@ -6183,6 +6249,12 @@ export interface Routes {
6183
6249
  result: null;
6184
6250
  action_type: 'ENCODE_CARD';
6185
6251
  error: {
6252
+ type: 'uncategorized_error';
6253
+ message: string;
6254
+ } | {
6255
+ type: 'action_attempt_expired';
6256
+ message: string;
6257
+ } | {
6186
6258
  type: 'no_card_on_encoder';
6187
6259
  message: string;
6188
6260
  } | {
@@ -6744,7 +6816,7 @@ export interface Routes {
6744
6816
  /** ID of the `acs_system`. */
6745
6817
  acs_system_id: string;
6746
6818
  /** Brand-specific terminology for the `acs_system` type. */
6747
- external_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community') | undefined;
6819
+ external_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community' | 'legic_connect' | 'assa_abloy_vostio' | 'vostio_credential_service') | undefined;
6748
6820
  /** Display name that corresponds to the brand-specific terminology for the `acs_system` type. */
6749
6821
  external_type_display_name?: string | undefined;
6750
6822
  /** Indicates if the `acs_system` is a credential manager. */
@@ -6759,7 +6831,7 @@ export interface Routes {
6759
6831
  } | undefined;
6760
6832
  /**
6761
6833
  * @deprecated Use `external_type`. */
6762
- system_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community') | undefined;
6834
+ system_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community' | 'legic_connect' | 'assa_abloy_vostio' | 'vostio_credential_service') | undefined;
6763
6835
  /**
6764
6836
  * @deprecated Use `external_type_display_name`. */
6765
6837
  system_type_display_name?: string | undefined;
@@ -6849,7 +6921,7 @@ export interface Routes {
6849
6921
  /** ID of the `acs_system`. */
6850
6922
  acs_system_id: string;
6851
6923
  /** Brand-specific terminology for the `acs_system` type. */
6852
- external_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community') | undefined;
6924
+ external_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community' | 'legic_connect' | 'assa_abloy_vostio' | 'vostio_credential_service') | undefined;
6853
6925
  /** Display name that corresponds to the brand-specific terminology for the `acs_system` type. */
6854
6926
  external_type_display_name?: string | undefined;
6855
6927
  /** Indicates if the `acs_system` is a credential manager. */
@@ -6864,7 +6936,7 @@ export interface Routes {
6864
6936
  } | undefined;
6865
6937
  /**
6866
6938
  * @deprecated Use `external_type`. */
6867
- system_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community') | undefined;
6939
+ system_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community' | 'legic_connect' | 'assa_abloy_vostio' | 'vostio_credential_service') | undefined;
6868
6940
  /**
6869
6941
  * @deprecated Use `external_type_display_name`. */
6870
6942
  system_type_display_name?: string | undefined;
@@ -6954,7 +7026,7 @@ export interface Routes {
6954
7026
  /** ID of the `acs_system`. */
6955
7027
  acs_system_id: string;
6956
7028
  /** Brand-specific terminology for the `acs_system` type. */
6957
- external_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community') | undefined;
7029
+ external_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community' | 'legic_connect' | 'assa_abloy_vostio' | 'vostio_credential_service') | undefined;
6958
7030
  /** Display name that corresponds to the brand-specific terminology for the `acs_system` type. */
6959
7031
  external_type_display_name?: string | undefined;
6960
7032
  /** Indicates if the `acs_system` is a credential manager. */
@@ -6969,7 +7041,7 @@ export interface Routes {
6969
7041
  } | undefined;
6970
7042
  /**
6971
7043
  * @deprecated Use `external_type`. */
6972
- system_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community') | undefined;
7044
+ system_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community' | 'legic_connect' | 'assa_abloy_vostio' | 'vostio_credential_service') | undefined;
6973
7045
  /**
6974
7046
  * @deprecated Use `external_type_display_name`. */
6975
7047
  system_type_display_name?: string | undefined;
@@ -7959,6 +8031,12 @@ export interface Routes {
7959
8031
  result: null;
7960
8032
  action_type: 'SCAN_CARD';
7961
8033
  error: {
8034
+ type: 'uncategorized_error';
8035
+ message: string;
8036
+ } | {
8037
+ type: 'action_attempt_expired';
8038
+ message: string;
8039
+ } | {
7962
8040
  type: 'no_card_on_encoder';
7963
8041
  message: string;
7964
8042
  };
@@ -8100,6 +8178,12 @@ export interface Routes {
8100
8178
  result: null;
8101
8179
  action_type: 'ENCODE_CARD';
8102
8180
  error: {
8181
+ type: 'uncategorized_error';
8182
+ message: string;
8183
+ } | {
8184
+ type: 'action_attempt_expired';
8185
+ message: string;
8186
+ } | {
8103
8187
  type: 'no_card_on_encoder';
8104
8188
  message: string;
8105
8189
  } | {
@@ -8680,6 +8764,12 @@ export interface Routes {
8680
8764
  result: null;
8681
8765
  action_type: 'SCAN_CARD';
8682
8766
  error: {
8767
+ type: 'uncategorized_error';
8768
+ message: string;
8769
+ } | {
8770
+ type: 'action_attempt_expired';
8771
+ message: string;
8772
+ } | {
8683
8773
  type: 'no_card_on_encoder';
8684
8774
  message: string;
8685
8775
  };
@@ -8821,6 +8911,12 @@ export interface Routes {
8821
8911
  result: null;
8822
8912
  action_type: 'ENCODE_CARD';
8823
8913
  error: {
8914
+ type: 'uncategorized_error';
8915
+ message: string;
8916
+ } | {
8917
+ type: 'action_attempt_expired';
8918
+ message: string;
8919
+ } | {
8824
8920
  type: 'no_card_on_encoder';
8825
8921
  message: string;
8826
8922
  } | {
@@ -9336,7 +9432,7 @@ export interface Routes {
9336
9432
  device_selection_mode?: ('none' | 'single' | 'multiple') | undefined;
9337
9433
  custom_redirect_url?: string | undefined;
9338
9434
  custom_redirect_failure_url?: string | undefined;
9339
- accepted_providers?: Array<'dormakaba_community' | 'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'seam_relay_admin' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'seam_passport' | 'visionline' | 'assa_abloy_credential_service' | 'seam_bridge' | 'tedee' | 'honeywell_resideo' | 'latch' | 'akiles' | 'vostio' | 'yale_access' | 'hid_cm' | 'google_nest'> | undefined;
9435
+ accepted_providers?: Array<'dormakaba_community' | 'legic_connect' | 'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'seam_relay_admin' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'seam_passport' | 'visionline' | 'assa_abloy_credential_service' | 'seam_bridge' | 'tedee' | 'honeywell_resideo' | 'latch' | 'akiles' | 'assa_abloy_vostio' | 'vostio_credential_service' | 'yale_access' | 'hid_cm' | 'google_nest'> | undefined;
9340
9436
  provider_category?: ('stable' | 'consumer_smartlocks' | 'thermostats' | 'noise_sensors' | 'access_control_systems' | 'internal_beta') | undefined;
9341
9437
  custom_metadata?: Record<string, string | boolean | null> | undefined;
9342
9438
  automatically_manage_new_devices?: boolean;
@@ -10566,7 +10662,7 @@ export interface Routes {
10566
10662
  formData: {};
10567
10663
  jsonResponse: {
10568
10664
  device_providers: Array<{
10569
- device_provider_name: 'dormakaba_community' | 'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'seam_relay_admin' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'seam_passport' | 'visionline' | 'assa_abloy_credential_service' | 'seam_bridge' | 'tedee' | 'honeywell_resideo' | 'latch' | 'akiles' | 'vostio';
10665
+ device_provider_name: 'dormakaba_community' | 'legic_connect' | 'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'seam_relay_admin' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'seam_passport' | 'visionline' | 'assa_abloy_credential_service' | 'seam_bridge' | 'tedee' | 'honeywell_resideo' | 'latch' | 'akiles' | 'assa_abloy_vostio' | 'vostio_credential_service';
10570
10666
  display_name: string;
10571
10667
  image_url: string;
10572
10668
  provider_categories: Array<'stable' | 'consumer_smartlocks' | 'thermostats' | 'noise_sensors' | 'access_control_systems'>;
@@ -13072,6 +13168,12 @@ export interface Routes {
13072
13168
  result: null;
13073
13169
  action_type: 'SCAN_CARD';
13074
13170
  error: {
13171
+ type: 'uncategorized_error';
13172
+ message: string;
13173
+ } | {
13174
+ type: 'action_attempt_expired';
13175
+ message: string;
13176
+ } | {
13075
13177
  type: 'no_card_on_encoder';
13076
13178
  message: string;
13077
13179
  };
@@ -13213,6 +13315,12 @@ export interface Routes {
13213
13315
  result: null;
13214
13316
  action_type: 'ENCODE_CARD';
13215
13317
  error: {
13318
+ type: 'uncategorized_error';
13319
+ message: string;
13320
+ } | {
13321
+ type: 'action_attempt_expired';
13322
+ message: string;
13323
+ } | {
13216
13324
  type: 'no_card_on_encoder';
13217
13325
  message: string;
13218
13326
  } | {
@@ -13794,6 +13902,12 @@ export interface Routes {
13794
13902
  result: null;
13795
13903
  action_type: 'SCAN_CARD';
13796
13904
  error: {
13905
+ type: 'uncategorized_error';
13906
+ message: string;
13907
+ } | {
13908
+ type: 'action_attempt_expired';
13909
+ message: string;
13910
+ } | {
13797
13911
  type: 'no_card_on_encoder';
13798
13912
  message: string;
13799
13913
  };
@@ -13935,6 +14049,12 @@ export interface Routes {
13935
14049
  result: null;
13936
14050
  action_type: 'ENCODE_CARD';
13937
14051
  error: {
14052
+ type: 'uncategorized_error';
14053
+ message: string;
14054
+ } | {
14055
+ type: 'action_attempt_expired';
14056
+ message: string;
14057
+ } | {
13938
14058
  type: 'no_card_on_encoder';
13939
14059
  message: string;
13940
14060
  } | {
@@ -15498,6 +15618,12 @@ export interface Routes {
15498
15618
  result: null;
15499
15619
  action_type: 'SCAN_CARD';
15500
15620
  error: {
15621
+ type: 'uncategorized_error';
15622
+ message: string;
15623
+ } | {
15624
+ type: 'action_attempt_expired';
15625
+ message: string;
15626
+ } | {
15501
15627
  type: 'no_card_on_encoder';
15502
15628
  message: string;
15503
15629
  };
@@ -15639,6 +15765,12 @@ export interface Routes {
15639
15765
  result: null;
15640
15766
  action_type: 'ENCODE_CARD';
15641
15767
  error: {
15768
+ type: 'uncategorized_error';
15769
+ message: string;
15770
+ } | {
15771
+ type: 'action_attempt_expired';
15772
+ message: string;
15773
+ } | {
15642
15774
  type: 'no_card_on_encoder';
15643
15775
  message: string;
15644
15776
  } | {
@@ -16230,6 +16362,12 @@ export interface Routes {
16230
16362
  result: null;
16231
16363
  action_type: 'SCAN_CARD';
16232
16364
  error: {
16365
+ type: 'uncategorized_error';
16366
+ message: string;
16367
+ } | {
16368
+ type: 'action_attempt_expired';
16369
+ message: string;
16370
+ } | {
16233
16371
  type: 'no_card_on_encoder';
16234
16372
  message: string;
16235
16373
  };
@@ -16371,6 +16509,12 @@ export interface Routes {
16371
16509
  result: null;
16372
16510
  action_type: 'ENCODE_CARD';
16373
16511
  error: {
16512
+ type: 'uncategorized_error';
16513
+ message: string;
16514
+ } | {
16515
+ type: 'action_attempt_expired';
16516
+ message: string;
16517
+ } | {
16374
16518
  type: 'no_card_on_encoder';
16375
16519
  message: string;
16376
16520
  } | {
@@ -17001,6 +17145,12 @@ export interface Routes {
17001
17145
  result: null;
17002
17146
  action_type: 'SCAN_CARD';
17003
17147
  error: {
17148
+ type: 'uncategorized_error';
17149
+ message: string;
17150
+ } | {
17151
+ type: 'action_attempt_expired';
17152
+ message: string;
17153
+ } | {
17004
17154
  type: 'no_card_on_encoder';
17005
17155
  message: string;
17006
17156
  };
@@ -17142,6 +17292,12 @@ export interface Routes {
17142
17292
  result: null;
17143
17293
  action_type: 'ENCODE_CARD';
17144
17294
  error: {
17295
+ type: 'uncategorized_error';
17296
+ message: string;
17297
+ } | {
17298
+ type: 'action_attempt_expired';
17299
+ message: string;
17300
+ } | {
17145
17301
  type: 'no_card_on_encoder';
17146
17302
  message: string;
17147
17303
  } | {
@@ -17905,6 +18061,12 @@ export interface Routes {
17905
18061
  result: null;
17906
18062
  action_type: 'SCAN_CARD';
17907
18063
  error: {
18064
+ type: 'uncategorized_error';
18065
+ message: string;
18066
+ } | {
18067
+ type: 'action_attempt_expired';
18068
+ message: string;
18069
+ } | {
17908
18070
  type: 'no_card_on_encoder';
17909
18071
  message: string;
17910
18072
  };
@@ -18046,6 +18208,12 @@ export interface Routes {
18046
18208
  result: null;
18047
18209
  action_type: 'ENCODE_CARD';
18048
18210
  error: {
18211
+ type: 'uncategorized_error';
18212
+ message: string;
18213
+ } | {
18214
+ type: 'action_attempt_expired';
18215
+ message: string;
18216
+ } | {
18049
18217
  type: 'no_card_on_encoder';
18050
18218
  message: string;
18051
18219
  } | {
@@ -18629,6 +18797,12 @@ export interface Routes {
18629
18797
  result: null;
18630
18798
  action_type: 'SCAN_CARD';
18631
18799
  error: {
18800
+ type: 'uncategorized_error';
18801
+ message: string;
18802
+ } | {
18803
+ type: 'action_attempt_expired';
18804
+ message: string;
18805
+ } | {
18632
18806
  type: 'no_card_on_encoder';
18633
18807
  message: string;
18634
18808
  };
@@ -18770,6 +18944,12 @@ export interface Routes {
18770
18944
  result: null;
18771
18945
  action_type: 'ENCODE_CARD';
18772
18946
  error: {
18947
+ type: 'uncategorized_error';
18948
+ message: string;
18949
+ } | {
18950
+ type: 'action_attempt_expired';
18951
+ message: string;
18952
+ } | {
18773
18953
  type: 'no_card_on_encoder';
18774
18954
  message: string;
18775
18955
  } | {
@@ -19857,6 +20037,12 @@ export interface Routes {
19857
20037
  result: null;
19858
20038
  action_type: 'SCAN_CARD';
19859
20039
  error: {
20040
+ type: 'uncategorized_error';
20041
+ message: string;
20042
+ } | {
20043
+ type: 'action_attempt_expired';
20044
+ message: string;
20045
+ } | {
19860
20046
  type: 'no_card_on_encoder';
19861
20047
  message: string;
19862
20048
  };
@@ -19998,6 +20184,12 @@ export interface Routes {
19998
20184
  result: null;
19999
20185
  action_type: 'ENCODE_CARD';
20000
20186
  error: {
20187
+ type: 'uncategorized_error';
20188
+ message: string;
20189
+ } | {
20190
+ type: 'action_attempt_expired';
20191
+ message: string;
20192
+ } | {
20001
20193
  type: 'no_card_on_encoder';
20002
20194
  message: string;
20003
20195
  } | {
@@ -20583,6 +20775,12 @@ export interface Routes {
20583
20775
  result: null;
20584
20776
  action_type: 'SCAN_CARD';
20585
20777
  error: {
20778
+ type: 'uncategorized_error';
20779
+ message: string;
20780
+ } | {
20781
+ type: 'action_attempt_expired';
20782
+ message: string;
20783
+ } | {
20586
20784
  type: 'no_card_on_encoder';
20587
20785
  message: string;
20588
20786
  };
@@ -20724,6 +20922,12 @@ export interface Routes {
20724
20922
  result: null;
20725
20923
  action_type: 'ENCODE_CARD';
20726
20924
  error: {
20925
+ type: 'uncategorized_error';
20926
+ message: string;
20927
+ } | {
20928
+ type: 'action_attempt_expired';
20929
+ message: string;
20930
+ } | {
20727
20931
  type: 'no_card_on_encoder';
20728
20932
  message: string;
20729
20933
  } | {
@@ -22248,6 +22452,12 @@ export interface Routes {
22248
22452
  result: null;
22249
22453
  action_type: 'SCAN_CARD';
22250
22454
  error: {
22455
+ type: 'uncategorized_error';
22456
+ message: string;
22457
+ } | {
22458
+ type: 'action_attempt_expired';
22459
+ message: string;
22460
+ } | {
22251
22461
  type: 'no_card_on_encoder';
22252
22462
  message: string;
22253
22463
  };
@@ -22389,6 +22599,12 @@ export interface Routes {
22389
22599
  result: null;
22390
22600
  action_type: 'ENCODE_CARD';
22391
22601
  error: {
22602
+ type: 'uncategorized_error';
22603
+ message: string;
22604
+ } | {
22605
+ type: 'action_attempt_expired';
22606
+ message: string;
22607
+ } | {
22392
22608
  type: 'no_card_on_encoder';
22393
22609
  message: string;
22394
22610
  } | {
@@ -23091,6 +23307,12 @@ export interface Routes {
23091
23307
  result: null;
23092
23308
  action_type: 'SCAN_CARD';
23093
23309
  error: {
23310
+ type: 'uncategorized_error';
23311
+ message: string;
23312
+ } | {
23313
+ type: 'action_attempt_expired';
23314
+ message: string;
23315
+ } | {
23094
23316
  type: 'no_card_on_encoder';
23095
23317
  message: string;
23096
23318
  };
@@ -23232,6 +23454,12 @@ export interface Routes {
23232
23454
  result: null;
23233
23455
  action_type: 'ENCODE_CARD';
23234
23456
  error: {
23457
+ type: 'uncategorized_error';
23458
+ message: string;
23459
+ } | {
23460
+ type: 'action_attempt_expired';
23461
+ message: string;
23462
+ } | {
23235
23463
  type: 'no_card_on_encoder';
23236
23464
  message: string;
23237
23465
  } | {
@@ -24747,7 +24975,7 @@ export interface Routes {
24747
24975
  /** ID of the `acs_system`. */
24748
24976
  acs_system_id: string;
24749
24977
  /** Brand-specific terminology for the `acs_system` type. */
24750
- external_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community') | undefined;
24978
+ external_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community' | 'legic_connect' | 'assa_abloy_vostio' | 'vostio_credential_service') | undefined;
24751
24979
  /** Display name that corresponds to the brand-specific terminology for the `acs_system` type. */
24752
24980
  external_type_display_name?: string | undefined;
24753
24981
  /** Indicates if the `acs_system` is a credential manager. */
@@ -24762,7 +24990,7 @@ export interface Routes {
24762
24990
  } | undefined;
24763
24991
  /**
24764
24992
  * @deprecated Use `external_type`. */
24765
- system_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community') | undefined;
24993
+ system_type?: ('pti_site' | 'alta_org' | 'salto_ks_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building' | 'dormakaba_community' | 'legic_connect' | 'assa_abloy_vostio' | 'vostio_credential_service') | undefined;
24766
24994
  /**
24767
24995
  * @deprecated Use `external_type_display_name`. */
24768
24996
  system_type_display_name?: string | undefined;
@@ -25342,6 +25570,12 @@ export interface Routes {
25342
25570
  result: null;
25343
25571
  action_type: 'SCAN_CARD';
25344
25572
  error: {
25573
+ type: 'uncategorized_error';
25574
+ message: string;
25575
+ } | {
25576
+ type: 'action_attempt_expired';
25577
+ message: string;
25578
+ } | {
25345
25579
  type: 'no_card_on_encoder';
25346
25580
  message: string;
25347
25581
  };
@@ -25483,6 +25717,12 @@ export interface Routes {
25483
25717
  result: null;
25484
25718
  action_type: 'ENCODE_CARD';
25485
25719
  error: {
25720
+ type: 'uncategorized_error';
25721
+ message: string;
25722
+ } | {
25723
+ type: 'action_attempt_expired';
25724
+ message: string;
25725
+ } | {
25486
25726
  type: 'no_card_on_encoder';
25487
25727
  message: string;
25488
25728
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.282.0",
3
+ "version": "1.284.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -38,6 +38,9 @@ export const acs_system_external_type = z.enum([
38
38
  'assa_abloy_credential_service',
39
39
  'latch_building',
40
40
  'dormakaba_community',
41
+ 'legic_connect',
42
+ 'assa_abloy_vostio',
43
+ 'vostio_credential_service',
41
44
  ])
42
45
 
43
46
  export type AcsSystemExternalType = z.infer<typeof acs_system_external_type>
@@ -25,3 +25,14 @@ export const common_failed_action_attempt = common_action_attempt.extend({
25
25
  status: z.literal('error'),
26
26
  result: z.null(),
27
27
  })
28
+
29
+ export const common_action_attempt_errors = [
30
+ z.object({
31
+ type: z.literal('uncategorized_error'),
32
+ message: z.string(),
33
+ }),
34
+ z.object({
35
+ type: z.literal('action_attempt_expired'),
36
+ message: z.string(),
37
+ }),
38
+ ] as const
@@ -5,6 +5,7 @@ import {
5
5
  unmanaged_acs_credential,
6
6
  } from '../acs/acs-credential.js'
7
7
  import {
8
+ common_action_attempt_errors,
8
9
  common_failed_action_attempt,
9
10
  common_pending_action_attempt,
10
11
  common_succeeded_action_attempt,
@@ -23,6 +24,7 @@ const incompatible_card_format_error = z.object({
23
24
  })
24
25
 
25
26
  const error = z.union([
27
+ ...common_action_attempt_errors,
26
28
  no_card_on_encoder_error,
27
29
  incompatible_card_format_error,
28
30
  ])