@seamapi/types 1.948.0 → 1.950.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 +27 -89
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +48 -215
- package/dist/index.cjs +27 -89
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +70 -141
- package/lib/seam/connect/models/access-codes/managed-access-code.js +10 -24
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +10 -36
- package/lib/seam/connect/openapi.js +8 -62
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +22 -121
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +27 -40
- package/src/lib/seam/connect/openapi.ts +8 -72
- package/src/lib/seam/connect/route-types.ts +22 -132
|
@@ -1785,15 +1785,6 @@ export type Routes = {
|
|
|
1785
1785
|
unmanaged_access_code_id?: string | undefined;
|
|
1786
1786
|
/** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
|
|
1787
1787
|
managed_access_code_id?: string | undefined;
|
|
1788
|
-
} | {
|
|
1789
|
-
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
1790
|
-
message: string;
|
|
1791
|
-
/** Indicates that this is an access code error. */
|
|
1792
|
-
is_access_code_error: true;
|
|
1793
|
-
/** Date and time at which Seam created the error. */
|
|
1794
|
-
created_at?: string | undefined;
|
|
1795
|
-
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1796
|
-
error_code: 'duplicate_code_attempt_prevented';
|
|
1797
1788
|
} | {
|
|
1798
1789
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
1799
1790
|
message: string;
|
|
@@ -1811,7 +1802,7 @@ export type Routes = {
|
|
|
1811
1802
|
/** Date and time at which Seam created the error. */
|
|
1812
1803
|
created_at?: string | undefined;
|
|
1813
1804
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1814
|
-
error_code: '
|
|
1805
|
+
error_code: 'conflicting_external_modification';
|
|
1815
1806
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
1816
1807
|
change_type?: ('modified' | 'removed') | undefined;
|
|
1817
1808
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -2015,7 +2006,7 @@ export type Routes = {
|
|
|
2015
2006
|
/** Date and time at which Seam created the warning. */
|
|
2016
2007
|
created_at?: string | undefined;
|
|
2017
2008
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
2018
|
-
warning_code: '
|
|
2009
|
+
warning_code: 'external_modification_in_effect';
|
|
2019
2010
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
2020
2011
|
change_type?: ('modified' | 'removed') | undefined;
|
|
2021
2012
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -2300,15 +2291,6 @@ export type Routes = {
|
|
|
2300
2291
|
unmanaged_access_code_id?: string | undefined;
|
|
2301
2292
|
/** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
|
|
2302
2293
|
managed_access_code_id?: string | undefined;
|
|
2303
|
-
} | {
|
|
2304
|
-
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
2305
|
-
message: string;
|
|
2306
|
-
/** Indicates that this is an access code error. */
|
|
2307
|
-
is_access_code_error: true;
|
|
2308
|
-
/** Date and time at which Seam created the error. */
|
|
2309
|
-
created_at?: string | undefined;
|
|
2310
|
-
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
2311
|
-
error_code: 'duplicate_code_attempt_prevented';
|
|
2312
2294
|
} | {
|
|
2313
2295
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
2314
2296
|
message: string;
|
|
@@ -2326,7 +2308,7 @@ export type Routes = {
|
|
|
2326
2308
|
/** Date and time at which Seam created the error. */
|
|
2327
2309
|
created_at?: string | undefined;
|
|
2328
2310
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
2329
|
-
error_code: '
|
|
2311
|
+
error_code: 'conflicting_external_modification';
|
|
2330
2312
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
2331
2313
|
change_type?: ('modified' | 'removed') | undefined;
|
|
2332
2314
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -2530,7 +2512,7 @@ export type Routes = {
|
|
|
2530
2512
|
/** Date and time at which Seam created the warning. */
|
|
2531
2513
|
created_at?: string | undefined;
|
|
2532
2514
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
2533
|
-
warning_code: '
|
|
2515
|
+
warning_code: 'external_modification_in_effect';
|
|
2534
2516
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
2535
2517
|
change_type?: ('modified' | 'removed') | undefined;
|
|
2536
2518
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -4503,15 +4485,6 @@ export type Routes = {
|
|
|
4503
4485
|
unmanaged_access_code_id?: string | undefined;
|
|
4504
4486
|
/** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
|
|
4505
4487
|
managed_access_code_id?: string | undefined;
|
|
4506
|
-
} | {
|
|
4507
|
-
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
4508
|
-
message: string;
|
|
4509
|
-
/** Indicates that this is an access code error. */
|
|
4510
|
-
is_access_code_error: true;
|
|
4511
|
-
/** Date and time at which Seam created the error. */
|
|
4512
|
-
created_at?: string | undefined;
|
|
4513
|
-
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4514
|
-
error_code: 'duplicate_code_attempt_prevented';
|
|
4515
4488
|
} | {
|
|
4516
4489
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
4517
4490
|
message: string;
|
|
@@ -4529,7 +4502,7 @@ export type Routes = {
|
|
|
4529
4502
|
/** Date and time at which Seam created the error. */
|
|
4530
4503
|
created_at?: string | undefined;
|
|
4531
4504
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4532
|
-
error_code: '
|
|
4505
|
+
error_code: 'conflicting_external_modification';
|
|
4533
4506
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
4534
4507
|
change_type?: ('modified' | 'removed') | undefined;
|
|
4535
4508
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -4733,7 +4706,7 @@ export type Routes = {
|
|
|
4733
4706
|
/** Date and time at which Seam created the warning. */
|
|
4734
4707
|
created_at?: string | undefined;
|
|
4735
4708
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
4736
|
-
warning_code: '
|
|
4709
|
+
warning_code: 'external_modification_in_effect';
|
|
4737
4710
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
4738
4711
|
change_type?: ('modified' | 'removed') | undefined;
|
|
4739
4712
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -5064,15 +5037,6 @@ export type Routes = {
|
|
|
5064
5037
|
unmanaged_access_code_id?: string | undefined;
|
|
5065
5038
|
/** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
|
|
5066
5039
|
managed_access_code_id?: string | undefined;
|
|
5067
|
-
} | {
|
|
5068
|
-
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
5069
|
-
message: string;
|
|
5070
|
-
/** Indicates that this is an access code error. */
|
|
5071
|
-
is_access_code_error: true;
|
|
5072
|
-
/** Date and time at which Seam created the error. */
|
|
5073
|
-
created_at?: string | undefined;
|
|
5074
|
-
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5075
|
-
error_code: 'duplicate_code_attempt_prevented';
|
|
5076
5040
|
} | {
|
|
5077
5041
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
5078
5042
|
message: string;
|
|
@@ -5090,7 +5054,7 @@ export type Routes = {
|
|
|
5090
5054
|
/** Date and time at which Seam created the error. */
|
|
5091
5055
|
created_at?: string | undefined;
|
|
5092
5056
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5093
|
-
error_code: '
|
|
5057
|
+
error_code: 'conflicting_external_modification';
|
|
5094
5058
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
5095
5059
|
change_type?: ('modified' | 'removed') | undefined;
|
|
5096
5060
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -5294,7 +5258,7 @@ export type Routes = {
|
|
|
5294
5258
|
/** Date and time at which Seam created the warning. */
|
|
5295
5259
|
created_at?: string | undefined;
|
|
5296
5260
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
5297
|
-
warning_code: '
|
|
5261
|
+
warning_code: 'external_modification_in_effect';
|
|
5298
5262
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
5299
5263
|
change_type?: ('modified' | 'removed') | undefined;
|
|
5300
5264
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -5570,15 +5534,6 @@ export type Routes = {
|
|
|
5570
5534
|
unmanaged_access_code_id?: string | undefined;
|
|
5571
5535
|
/** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
|
|
5572
5536
|
managed_access_code_id?: string | undefined;
|
|
5573
|
-
} | {
|
|
5574
|
-
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
5575
|
-
message: string;
|
|
5576
|
-
/** Indicates that this is an access code error. */
|
|
5577
|
-
is_access_code_error: true;
|
|
5578
|
-
/** Date and time at which Seam created the error. */
|
|
5579
|
-
created_at?: string | undefined;
|
|
5580
|
-
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5581
|
-
error_code: 'duplicate_code_attempt_prevented';
|
|
5582
5537
|
} | {
|
|
5583
5538
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
5584
5539
|
message: string;
|
|
@@ -5596,7 +5551,7 @@ export type Routes = {
|
|
|
5596
5551
|
/** Date and time at which Seam created the error. */
|
|
5597
5552
|
created_at?: string | undefined;
|
|
5598
5553
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5599
|
-
error_code: '
|
|
5554
|
+
error_code: 'conflicting_external_modification';
|
|
5600
5555
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
5601
5556
|
change_type?: ('modified' | 'removed') | undefined;
|
|
5602
5557
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -5800,7 +5755,7 @@ export type Routes = {
|
|
|
5800
5755
|
/** Date and time at which Seam created the warning. */
|
|
5801
5756
|
created_at?: string | undefined;
|
|
5802
5757
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
5803
|
-
warning_code: '
|
|
5758
|
+
warning_code: 'external_modification_in_effect';
|
|
5804
5759
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
5805
5760
|
change_type?: ('modified' | 'removed') | undefined;
|
|
5806
5761
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -6053,15 +6008,6 @@ export type Routes = {
|
|
|
6053
6008
|
unmanaged_access_code_id?: string | undefined;
|
|
6054
6009
|
/** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
|
|
6055
6010
|
managed_access_code_id?: string | undefined;
|
|
6056
|
-
} | {
|
|
6057
|
-
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
6058
|
-
message: string;
|
|
6059
|
-
/** Indicates that this is an access code error. */
|
|
6060
|
-
is_access_code_error: true;
|
|
6061
|
-
/** Date and time at which Seam created the error. */
|
|
6062
|
-
created_at?: string | undefined;
|
|
6063
|
-
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
6064
|
-
error_code: 'duplicate_code_attempt_prevented';
|
|
6065
6011
|
} | {
|
|
6066
6012
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
6067
6013
|
message: string;
|
|
@@ -6079,7 +6025,7 @@ export type Routes = {
|
|
|
6079
6025
|
/** Date and time at which Seam created the error. */
|
|
6080
6026
|
created_at?: string | undefined;
|
|
6081
6027
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
6082
|
-
error_code: '
|
|
6028
|
+
error_code: 'conflicting_external_modification';
|
|
6083
6029
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
6084
6030
|
change_type?: ('modified' | 'removed') | undefined;
|
|
6085
6031
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -6283,7 +6229,7 @@ export type Routes = {
|
|
|
6283
6229
|
/** Date and time at which Seam created the warning. */
|
|
6284
6230
|
created_at?: string | undefined;
|
|
6285
6231
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
6286
|
-
warning_code: '
|
|
6232
|
+
warning_code: 'external_modification_in_effect';
|
|
6287
6233
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
6288
6234
|
change_type?: ('modified' | 'removed') | undefined;
|
|
6289
6235
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -6569,15 +6515,6 @@ export type Routes = {
|
|
|
6569
6515
|
unmanaged_access_code_id?: string | undefined;
|
|
6570
6516
|
/** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
|
|
6571
6517
|
managed_access_code_id?: string | undefined;
|
|
6572
|
-
} | {
|
|
6573
|
-
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
6574
|
-
message: string;
|
|
6575
|
-
/** Indicates that this is an access code error. */
|
|
6576
|
-
is_access_code_error: true;
|
|
6577
|
-
/** Date and time at which Seam created the error. */
|
|
6578
|
-
created_at?: string | undefined;
|
|
6579
|
-
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
6580
|
-
error_code: 'duplicate_code_attempt_prevented';
|
|
6581
6518
|
} | {
|
|
6582
6519
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
6583
6520
|
message: string;
|
|
@@ -6595,7 +6532,7 @@ export type Routes = {
|
|
|
6595
6532
|
/** Date and time at which Seam created the error. */
|
|
6596
6533
|
created_at?: string | undefined;
|
|
6597
6534
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
6598
|
-
error_code: '
|
|
6535
|
+
error_code: 'conflicting_external_modification';
|
|
6599
6536
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
6600
6537
|
change_type?: ('modified' | 'removed') | undefined;
|
|
6601
6538
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -6799,7 +6736,7 @@ export type Routes = {
|
|
|
6799
6736
|
/** Date and time at which Seam created the warning. */
|
|
6800
6737
|
created_at?: string | undefined;
|
|
6801
6738
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
6802
|
-
warning_code: '
|
|
6739
|
+
warning_code: 'external_modification_in_effect';
|
|
6803
6740
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
6804
6741
|
change_type?: ('modified' | 'removed') | undefined;
|
|
6805
6742
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -8681,15 +8618,6 @@ export type Routes = {
|
|
|
8681
8618
|
unmanaged_access_code_id?: string | undefined;
|
|
8682
8619
|
/** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
|
|
8683
8620
|
managed_access_code_id?: string | undefined;
|
|
8684
|
-
} | {
|
|
8685
|
-
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
8686
|
-
message: string;
|
|
8687
|
-
/** Indicates that this is an access code error. */
|
|
8688
|
-
is_access_code_error: true;
|
|
8689
|
-
/** Date and time at which Seam created the error. */
|
|
8690
|
-
created_at?: string | undefined;
|
|
8691
|
-
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
8692
|
-
error_code: 'duplicate_code_attempt_prevented';
|
|
8693
8621
|
} | {
|
|
8694
8622
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
8695
8623
|
message: string;
|
|
@@ -8707,7 +8635,7 @@ export type Routes = {
|
|
|
8707
8635
|
/** Date and time at which Seam created the error. */
|
|
8708
8636
|
created_at?: string | undefined;
|
|
8709
8637
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
8710
|
-
error_code: '
|
|
8638
|
+
error_code: 'conflicting_external_modification';
|
|
8711
8639
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
8712
8640
|
change_type?: ('modified' | 'removed') | undefined;
|
|
8713
8641
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -8911,7 +8839,7 @@ export type Routes = {
|
|
|
8911
8839
|
/** Date and time at which Seam created the warning. */
|
|
8912
8840
|
created_at?: string | undefined;
|
|
8913
8841
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
8914
|
-
warning_code: '
|
|
8842
|
+
warning_code: 'external_modification_in_effect';
|
|
8915
8843
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
8916
8844
|
change_type?: ('modified' | 'removed') | undefined;
|
|
8917
8845
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -9083,15 +9011,6 @@ export type Routes = {
|
|
|
9083
9011
|
unmanaged_access_code_id?: string | undefined;
|
|
9084
9012
|
/** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
|
|
9085
9013
|
managed_access_code_id?: string | undefined;
|
|
9086
|
-
} | {
|
|
9087
|
-
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
9088
|
-
message: string;
|
|
9089
|
-
/** Indicates that this is an access code error. */
|
|
9090
|
-
is_access_code_error: true;
|
|
9091
|
-
/** Date and time at which Seam created the error. */
|
|
9092
|
-
created_at?: string | undefined;
|
|
9093
|
-
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
9094
|
-
error_code: 'duplicate_code_attempt_prevented';
|
|
9095
9014
|
} | {
|
|
9096
9015
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
9097
9016
|
message: string;
|
|
@@ -9109,7 +9028,7 @@ export type Routes = {
|
|
|
9109
9028
|
/** Date and time at which Seam created the error. */
|
|
9110
9029
|
created_at?: string | undefined;
|
|
9111
9030
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
9112
|
-
error_code: '
|
|
9031
|
+
error_code: 'conflicting_external_modification';
|
|
9113
9032
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
9114
9033
|
change_type?: ('modified' | 'removed') | undefined;
|
|
9115
9034
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -9313,7 +9232,7 @@ export type Routes = {
|
|
|
9313
9232
|
/** Date and time at which Seam created the warning. */
|
|
9314
9233
|
created_at?: string | undefined;
|
|
9315
9234
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
9316
|
-
warning_code: '
|
|
9235
|
+
warning_code: 'external_modification_in_effect';
|
|
9317
9236
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
9318
9237
|
change_type?: ('modified' | 'removed') | undefined;
|
|
9319
9238
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -119794,15 +119713,6 @@ export type Routes = {
|
|
|
119794
119713
|
unmanaged_access_code_id?: string | undefined;
|
|
119795
119714
|
/** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
|
|
119796
119715
|
managed_access_code_id?: string | undefined;
|
|
119797
|
-
} | {
|
|
119798
|
-
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
119799
|
-
message: string;
|
|
119800
|
-
/** Indicates that this is an access code error. */
|
|
119801
|
-
is_access_code_error: true;
|
|
119802
|
-
/** Date and time at which Seam created the error. */
|
|
119803
|
-
created_at?: string | undefined;
|
|
119804
|
-
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
119805
|
-
error_code: 'duplicate_code_attempt_prevented';
|
|
119806
119716
|
} | {
|
|
119807
119717
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
119808
119718
|
message: string;
|
|
@@ -119820,7 +119730,7 @@ export type Routes = {
|
|
|
119820
119730
|
/** Date and time at which Seam created the error. */
|
|
119821
119731
|
created_at?: string | undefined;
|
|
119822
119732
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
119823
|
-
error_code: '
|
|
119733
|
+
error_code: 'conflicting_external_modification';
|
|
119824
119734
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
119825
119735
|
change_type?: ('modified' | 'removed') | undefined;
|
|
119826
119736
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -120024,7 +119934,7 @@ export type Routes = {
|
|
|
120024
119934
|
/** Date and time at which Seam created the warning. */
|
|
120025
119935
|
created_at?: string | undefined;
|
|
120026
119936
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
120027
|
-
warning_code: '
|
|
119937
|
+
warning_code: 'external_modification_in_effect';
|
|
120028
119938
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
120029
119939
|
change_type?: ('modified' | 'removed') | undefined;
|
|
120030
119940
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -120180,15 +120090,6 @@ export type Routes = {
|
|
|
120180
120090
|
unmanaged_access_code_id?: string | undefined;
|
|
120181
120091
|
/** ID of the managed access code that conflicts with this managed access code, when Seam can identify it. */
|
|
120182
120092
|
managed_access_code_id?: string | undefined;
|
|
120183
|
-
} | {
|
|
120184
|
-
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
120185
|
-
message: string;
|
|
120186
|
-
/** Indicates that this is an access code error. */
|
|
120187
|
-
is_access_code_error: true;
|
|
120188
|
-
/** Date and time at which Seam created the error. */
|
|
120189
|
-
created_at?: string | undefined;
|
|
120190
|
-
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
120191
|
-
error_code: 'duplicate_code_attempt_prevented';
|
|
120192
120093
|
} | {
|
|
120193
120094
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
120194
120095
|
message: string;
|
|
@@ -120206,7 +120107,7 @@ export type Routes = {
|
|
|
120206
120107
|
/** Date and time at which Seam created the error. */
|
|
120207
120108
|
created_at?: string | undefined;
|
|
120208
120109
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
120209
|
-
error_code: '
|
|
120110
|
+
error_code: 'conflicting_external_modification';
|
|
120210
120111
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
120211
120112
|
change_type?: ('modified' | 'removed') | undefined;
|
|
120212
120113
|
/** List of fields that were changed externally, with their previous and new values. */
|
|
@@ -120410,7 +120311,7 @@ export type Routes = {
|
|
|
120410
120311
|
/** Date and time at which Seam created the warning. */
|
|
120411
120312
|
created_at?: string | undefined;
|
|
120412
120313
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
120413
|
-
warning_code: '
|
|
120314
|
+
warning_code: 'external_modification_in_effect';
|
|
120414
120315
|
/** Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device. */
|
|
120415
120316
|
change_type?: ('modified' | 'removed') | undefined;
|
|
120416
120317
|
/** List of fields that were changed externally, with their previous and new values. */
|
package/package.json
CHANGED
|
@@ -41,27 +41,29 @@ const modified_field = z.object({
|
|
|
41
41
|
to: z.string().nullable().describe('The new value of the field.'),
|
|
42
42
|
})
|
|
43
43
|
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
44
|
+
const conflicting_external_modification_error = common_access_code_error.extend(
|
|
45
|
+
{
|
|
46
|
+
error_code: z
|
|
47
|
+
.literal('conflicting_external_modification')
|
|
48
|
+
.describe(error_code_description),
|
|
49
|
+
change_type: z
|
|
50
|
+
.enum(['modified', 'removed'])
|
|
51
|
+
.optional()
|
|
52
|
+
.describe(
|
|
53
|
+
"Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
54
|
+
),
|
|
55
|
+
modified_fields: z
|
|
56
|
+
.array(modified_field)
|
|
57
|
+
.optional()
|
|
58
|
+
.describe(
|
|
59
|
+
'List of fields that were changed externally, with their previous and new values.',
|
|
60
|
+
),
|
|
61
|
+
},
|
|
62
|
+
).describe(`
|
|
61
63
|
---
|
|
62
64
|
resource_type: access_code
|
|
63
65
|
---
|
|
64
|
-
Code was modified or removed externally after Seam successfully set it on the device.
|
|
66
|
+
Code was modified or removed externally after Seam successfully set it on the device. The external change conflicts with the state that Seam is trying to apply, so Seam will attempt to set the code on the device again.
|
|
65
67
|
`)
|
|
66
68
|
|
|
67
69
|
const failed_to_set_on_device = common_access_code_error.extend({
|
|
@@ -111,17 +113,6 @@ const duplicate_code_on_device = common_access_code_error.extend({
|
|
|
111
113
|
Duplicate access code detected on device.
|
|
112
114
|
`)
|
|
113
115
|
|
|
114
|
-
const duplicate_code_attempt_prevented = common_access_code_error.extend({
|
|
115
|
-
error_code: z
|
|
116
|
-
.literal('duplicate_code_attempt_prevented')
|
|
117
|
-
.describe(error_code_description),
|
|
118
|
-
}).describe(`
|
|
119
|
-
---
|
|
120
|
-
resource_type: access_code
|
|
121
|
-
---
|
|
122
|
-
An attempt to modify this access code was prevented.
|
|
123
|
-
`)
|
|
124
|
-
|
|
125
116
|
const no_space_for_access_code_on_device = common_access_code_error.extend({
|
|
126
117
|
error_code: z
|
|
127
118
|
.literal('no_space_for_access_code_on_device')
|
|
@@ -161,9 +152,8 @@ const access_code_error = z
|
|
|
161
152
|
failed_to_set_on_device,
|
|
162
153
|
failed_to_remove_from_device,
|
|
163
154
|
duplicate_code_on_device,
|
|
164
|
-
duplicate_code_attempt_prevented,
|
|
165
155
|
no_space_for_access_code_on_device,
|
|
166
|
-
|
|
156
|
+
conflicting_external_modification_error,
|
|
167
157
|
access_code_inactive_error,
|
|
168
158
|
insufficient_permissions,
|
|
169
159
|
])
|
|
@@ -183,11 +173,8 @@ const _access_code_error_map = z.object({
|
|
|
183
173
|
.optional()
|
|
184
174
|
.nullable(),
|
|
185
175
|
duplicate_code_on_device: duplicate_code_on_device.optional().nullable(),
|
|
186
|
-
duplicate_code_attempt_prevented: duplicate_code_attempt_prevented
|
|
187
|
-
.optional()
|
|
188
|
-
.nullable(),
|
|
189
176
|
insufficient_permissions: insufficient_permissions.optional().nullable(),
|
|
190
|
-
|
|
177
|
+
conflicting_external_modification: conflicting_external_modification_error
|
|
191
178
|
.optional()
|
|
192
179
|
.nullable(),
|
|
193
180
|
access_code_inactive: access_code_inactive_error.optional().nullable(),
|
|
@@ -211,10 +198,10 @@ const common_access_code_warning = z.object({
|
|
|
211
198
|
const warning_code_description =
|
|
212
199
|
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.'
|
|
213
200
|
|
|
214
|
-
const
|
|
201
|
+
const external_modification_in_effect_warning = common_access_code_warning
|
|
215
202
|
.extend({
|
|
216
203
|
warning_code: z
|
|
217
|
-
.literal('
|
|
204
|
+
.literal('external_modification_in_effect')
|
|
218
205
|
.describe(warning_code_description),
|
|
219
206
|
change_type: z
|
|
220
207
|
.enum(['modified', 'removed'])
|
|
@@ -230,7 +217,7 @@ const code_modified_external_to_seam_warning = common_access_code_warning
|
|
|
230
217
|
),
|
|
231
218
|
})
|
|
232
219
|
.describe(
|
|
233
|
-
'Code was modified or removed externally after Seam successfully set it on the device.',
|
|
220
|
+
'Code was modified or removed externally after Seam successfully set it on the device. External modification is allowed for this code, so the externally modified state is being honored.',
|
|
234
221
|
)
|
|
235
222
|
|
|
236
223
|
const code_rotates_periodically = common_access_code_warning
|
|
@@ -315,7 +302,7 @@ const access_code_warning = z
|
|
|
315
302
|
.discriminatedUnion('warning_code', [
|
|
316
303
|
code_rotates_periodically,
|
|
317
304
|
time_frame_adjusted_for_unknown_time_zone,
|
|
318
|
-
|
|
305
|
+
external_modification_in_effect_warning,
|
|
319
306
|
delay_in_setting_on_device,
|
|
320
307
|
delay_in_removing_from_device,
|
|
321
308
|
third_party_integration_detected,
|
|
@@ -334,7 +321,7 @@ const _access_code_warning_map = z.object({
|
|
|
334
321
|
code_rotates_periodically: code_rotates_periodically.optional().nullable(),
|
|
335
322
|
time_frame_adjusted_for_unknown_time_zone:
|
|
336
323
|
time_frame_adjusted_for_unknown_time_zone.optional().nullable(),
|
|
337
|
-
|
|
324
|
+
external_modification_in_effect: external_modification_in_effect_warning
|
|
338
325
|
.optional()
|
|
339
326
|
.nullable(),
|
|
340
327
|
delay_in_setting_on_device: delay_in_setting_on_device.optional().nullable(),
|