@seamapi/types 1.870.0 → 1.871.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.
@@ -1680,6 +1680,17 @@ export type Routes = {
1680
1680
  created_at?: string | undefined;
1681
1681
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
1682
1682
  error_code: 'code_modified_external_to_seam';
1683
+ /** 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. */
1684
+ change_type?: ('modified' | 'removed') | undefined;
1685
+ /** List of fields that were changed externally, with their previous and new values. */
1686
+ modified_fields?: {
1687
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
1688
+ field: string;
1689
+ /** The previous value of the field. */
1690
+ from: string | null;
1691
+ /** The new value of the field. */
1692
+ to: string | null;
1693
+ }[] | undefined;
1683
1694
  } | {
1684
1695
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
1685
1696
  message: string;
@@ -1948,6 +1959,17 @@ export type Routes = {
1948
1959
  created_at?: string | undefined;
1949
1960
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
1950
1961
  warning_code: 'code_modified_external_to_seam';
1962
+ /** 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. */
1963
+ change_type?: ('modified' | 'removed') | undefined;
1964
+ /** List of fields that were changed externally, with their previous and new values. */
1965
+ modified_fields?: {
1966
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
1967
+ field: string;
1968
+ /** The previous value of the field. */
1969
+ from: string | null;
1970
+ /** The new value of the field. */
1971
+ to: string | null;
1972
+ }[] | undefined;
1951
1973
  } | {
1952
1974
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
1953
1975
  message: string;
@@ -2312,6 +2334,17 @@ export type Routes = {
2312
2334
  created_at?: string | undefined;
2313
2335
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2314
2336
  error_code: 'code_modified_external_to_seam';
2337
+ /** 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. */
2338
+ change_type?: ('modified' | 'removed') | undefined;
2339
+ /** List of fields that were changed externally, with their previous and new values. */
2340
+ modified_fields?: {
2341
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
2342
+ field: string;
2343
+ /** The previous value of the field. */
2344
+ from: string | null;
2345
+ /** The new value of the field. */
2346
+ to: string | null;
2347
+ }[] | undefined;
2315
2348
  } | {
2316
2349
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2317
2350
  message: string;
@@ -2580,6 +2613,17 @@ export type Routes = {
2580
2613
  created_at?: string | undefined;
2581
2614
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
2582
2615
  warning_code: 'code_modified_external_to_seam';
2616
+ /** 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. */
2617
+ change_type?: ('modified' | 'removed') | undefined;
2618
+ /** List of fields that were changed externally, with their previous and new values. */
2619
+ modified_fields?: {
2620
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
2621
+ field: string;
2622
+ /** The previous value of the field. */
2623
+ from: string | null;
2624
+ /** The new value of the field. */
2625
+ to: string | null;
2626
+ }[] | undefined;
2583
2627
  } | {
2584
2628
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
2585
2629
  message: string;
@@ -4464,6 +4508,17 @@ export type Routes = {
4464
4508
  created_at?: string | undefined;
4465
4509
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
4466
4510
  error_code: 'code_modified_external_to_seam';
4511
+ /** 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. */
4512
+ change_type?: ('modified' | 'removed') | undefined;
4513
+ /** List of fields that were changed externally, with their previous and new values. */
4514
+ modified_fields?: {
4515
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
4516
+ field: string;
4517
+ /** The previous value of the field. */
4518
+ from: string | null;
4519
+ /** The new value of the field. */
4520
+ to: string | null;
4521
+ }[] | undefined;
4467
4522
  } | {
4468
4523
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
4469
4524
  message: string;
@@ -4732,6 +4787,17 @@ export type Routes = {
4732
4787
  created_at?: string | undefined;
4733
4788
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
4734
4789
  warning_code: 'code_modified_external_to_seam';
4790
+ /** 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. */
4791
+ change_type?: ('modified' | 'removed') | undefined;
4792
+ /** List of fields that were changed externally, with their previous and new values. */
4793
+ modified_fields?: {
4794
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
4795
+ field: string;
4796
+ /** The previous value of the field. */
4797
+ from: string | null;
4798
+ /** The new value of the field. */
4799
+ to: string | null;
4800
+ }[] | undefined;
4735
4801
  } | {
4736
4802
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
4737
4803
  message: string;
@@ -5142,6 +5208,17 @@ export type Routes = {
5142
5208
  created_at?: string | undefined;
5143
5209
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5144
5210
  error_code: 'code_modified_external_to_seam';
5211
+ /** 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. */
5212
+ change_type?: ('modified' | 'removed') | undefined;
5213
+ /** List of fields that were changed externally, with their previous and new values. */
5214
+ modified_fields?: {
5215
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
5216
+ field: string;
5217
+ /** The previous value of the field. */
5218
+ from: string | null;
5219
+ /** The new value of the field. */
5220
+ to: string | null;
5221
+ }[] | undefined;
5145
5222
  } | {
5146
5223
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5147
5224
  message: string;
@@ -5410,6 +5487,17 @@ export type Routes = {
5410
5487
  created_at?: string | undefined;
5411
5488
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
5412
5489
  warning_code: 'code_modified_external_to_seam';
5490
+ /** 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. */
5491
+ change_type?: ('modified' | 'removed') | undefined;
5492
+ /** List of fields that were changed externally, with their previous and new values. */
5493
+ modified_fields?: {
5494
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
5495
+ field: string;
5496
+ /** The previous value of the field. */
5497
+ from: string | null;
5498
+ /** The new value of the field. */
5499
+ to: string | null;
5500
+ }[] | undefined;
5413
5501
  } | {
5414
5502
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
5415
5503
  message: string;
@@ -5763,6 +5851,17 @@ export type Routes = {
5763
5851
  created_at?: string | undefined;
5764
5852
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5765
5853
  error_code: 'code_modified_external_to_seam';
5854
+ /** 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. */
5855
+ change_type?: ('modified' | 'removed') | undefined;
5856
+ /** List of fields that were changed externally, with their previous and new values. */
5857
+ modified_fields?: {
5858
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
5859
+ field: string;
5860
+ /** The previous value of the field. */
5861
+ from: string | null;
5862
+ /** The new value of the field. */
5863
+ to: string | null;
5864
+ }[] | undefined;
5766
5865
  } | {
5767
5866
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
5768
5867
  message: string;
@@ -6031,6 +6130,17 @@ export type Routes = {
6031
6130
  created_at?: string | undefined;
6032
6131
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
6033
6132
  warning_code: 'code_modified_external_to_seam';
6133
+ /** 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. */
6134
+ change_type?: ('modified' | 'removed') | undefined;
6135
+ /** List of fields that were changed externally, with their previous and new values. */
6136
+ modified_fields?: {
6137
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
6138
+ field: string;
6139
+ /** The previous value of the field. */
6140
+ from: string | null;
6141
+ /** The new value of the field. */
6142
+ to: string | null;
6143
+ }[] | undefined;
6034
6144
  } | {
6035
6145
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
6036
6146
  message: string;
@@ -6361,6 +6471,17 @@ export type Routes = {
6361
6471
  created_at?: string | undefined;
6362
6472
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6363
6473
  error_code: 'code_modified_external_to_seam';
6474
+ /** 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. */
6475
+ change_type?: ('modified' | 'removed') | undefined;
6476
+ /** List of fields that were changed externally, with their previous and new values. */
6477
+ modified_fields?: {
6478
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
6479
+ field: string;
6480
+ /** The previous value of the field. */
6481
+ from: string | null;
6482
+ /** The new value of the field. */
6483
+ to: string | null;
6484
+ }[] | undefined;
6364
6485
  } | {
6365
6486
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6366
6487
  message: string;
@@ -6629,6 +6750,17 @@ export type Routes = {
6629
6750
  created_at?: string | undefined;
6630
6751
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
6631
6752
  warning_code: 'code_modified_external_to_seam';
6753
+ /** 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. */
6754
+ change_type?: ('modified' | 'removed') | undefined;
6755
+ /** List of fields that were changed externally, with their previous and new values. */
6756
+ modified_fields?: {
6757
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
6758
+ field: string;
6759
+ /** The previous value of the field. */
6760
+ from: string | null;
6761
+ /** The new value of the field. */
6762
+ to: string | null;
6763
+ }[] | undefined;
6632
6764
  } | {
6633
6765
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
6634
6766
  message: string;
@@ -6994,6 +7126,17 @@ export type Routes = {
6994
7126
  created_at?: string | undefined;
6995
7127
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6996
7128
  error_code: 'code_modified_external_to_seam';
7129
+ /** 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. */
7130
+ change_type?: ('modified' | 'removed') | undefined;
7131
+ /** List of fields that were changed externally, with their previous and new values. */
7132
+ modified_fields?: {
7133
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
7134
+ field: string;
7135
+ /** The previous value of the field. */
7136
+ from: string | null;
7137
+ /** The new value of the field. */
7138
+ to: string | null;
7139
+ }[] | undefined;
6997
7140
  } | {
6998
7141
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
6999
7142
  message: string;
@@ -7262,6 +7405,17 @@ export type Routes = {
7262
7405
  created_at?: string | undefined;
7263
7406
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
7264
7407
  warning_code: 'code_modified_external_to_seam';
7408
+ /** 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. */
7409
+ change_type?: ('modified' | 'removed') | undefined;
7410
+ /** List of fields that were changed externally, with their previous and new values. */
7411
+ modified_fields?: {
7412
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
7413
+ field: string;
7414
+ /** The previous value of the field. */
7415
+ from: string | null;
7416
+ /** The new value of the field. */
7417
+ to: string | null;
7418
+ }[] | undefined;
7265
7419
  } | {
7266
7420
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
7267
7421
  message: string;
@@ -9057,6 +9211,17 @@ export type Routes = {
9057
9211
  created_at?: string | undefined;
9058
9212
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
9059
9213
  error_code: 'code_modified_external_to_seam';
9214
+ /** 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. */
9215
+ change_type?: ('modified' | 'removed') | undefined;
9216
+ /** List of fields that were changed externally, with their previous and new values. */
9217
+ modified_fields?: {
9218
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
9219
+ field: string;
9220
+ /** The previous value of the field. */
9221
+ from: string | null;
9222
+ /** The new value of the field. */
9223
+ to: string | null;
9224
+ }[] | undefined;
9060
9225
  } | {
9061
9226
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
9062
9227
  message: string;
@@ -9325,6 +9490,17 @@ export type Routes = {
9325
9490
  created_at?: string | undefined;
9326
9491
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
9327
9492
  warning_code: 'code_modified_external_to_seam';
9493
+ /** 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. */
9494
+ change_type?: ('modified' | 'removed') | undefined;
9495
+ /** List of fields that were changed externally, with their previous and new values. */
9496
+ modified_fields?: {
9497
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
9498
+ field: string;
9499
+ /** The previous value of the field. */
9500
+ from: string | null;
9501
+ /** The new value of the field. */
9502
+ to: string | null;
9503
+ }[] | undefined;
9328
9504
  } | {
9329
9505
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
9330
9506
  message: string;
@@ -9576,6 +9752,17 @@ export type Routes = {
9576
9752
  created_at?: string | undefined;
9577
9753
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
9578
9754
  error_code: 'code_modified_external_to_seam';
9755
+ /** 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. */
9756
+ change_type?: ('modified' | 'removed') | undefined;
9757
+ /** List of fields that were changed externally, with their previous and new values. */
9758
+ modified_fields?: {
9759
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
9760
+ field: string;
9761
+ /** The previous value of the field. */
9762
+ from: string | null;
9763
+ /** The new value of the field. */
9764
+ to: string | null;
9765
+ }[] | undefined;
9579
9766
  } | {
9580
9767
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
9581
9768
  message: string;
@@ -9844,6 +10031,17 @@ export type Routes = {
9844
10031
  created_at?: string | undefined;
9845
10032
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
9846
10033
  warning_code: 'code_modified_external_to_seam';
10034
+ /** 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. */
10035
+ change_type?: ('modified' | 'removed') | undefined;
10036
+ /** List of fields that were changed externally, with their previous and new values. */
10037
+ modified_fields?: {
10038
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
10039
+ field: string;
10040
+ /** The previous value of the field. */
10041
+ from: string | null;
10042
+ /** The new value of the field. */
10043
+ to: string | null;
10044
+ }[] | undefined;
9847
10045
  } | {
9848
10046
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
9849
10047
  message: string;
@@ -107489,6 +107687,17 @@ export type Routes = {
107489
107687
  created_at?: string | undefined;
107490
107688
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
107491
107689
  error_code: 'code_modified_external_to_seam';
107690
+ /** 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. */
107691
+ change_type?: ('modified' | 'removed') | undefined;
107692
+ /** List of fields that were changed externally, with their previous and new values. */
107693
+ modified_fields?: {
107694
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
107695
+ field: string;
107696
+ /** The previous value of the field. */
107697
+ from: string | null;
107698
+ /** The new value of the field. */
107699
+ to: string | null;
107700
+ }[] | undefined;
107492
107701
  } | {
107493
107702
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
107494
107703
  message: string;
@@ -107757,6 +107966,17 @@ export type Routes = {
107757
107966
  created_at?: string | undefined;
107758
107967
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
107759
107968
  warning_code: 'code_modified_external_to_seam';
107969
+ /** 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. */
107970
+ change_type?: ('modified' | 'removed') | undefined;
107971
+ /** List of fields that were changed externally, with their previous and new values. */
107972
+ modified_fields?: {
107973
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
107974
+ field: string;
107975
+ /** The previous value of the field. */
107976
+ from: string | null;
107977
+ /** The new value of the field. */
107978
+ to: string | null;
107979
+ }[] | undefined;
107760
107980
  } | {
107761
107981
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
107762
107982
  message: string;
@@ -107992,6 +108212,17 @@ export type Routes = {
107992
108212
  created_at?: string | undefined;
107993
108213
  /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
107994
108214
  error_code: 'code_modified_external_to_seam';
108215
+ /** 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. */
108216
+ change_type?: ('modified' | 'removed') | undefined;
108217
+ /** List of fields that were changed externally, with their previous and new values. */
108218
+ modified_fields?: {
108219
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
108220
+ field: string;
108221
+ /** The previous value of the field. */
108222
+ from: string | null;
108223
+ /** The new value of the field. */
108224
+ to: string | null;
108225
+ }[] | undefined;
107995
108226
  } | {
107996
108227
  /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
107997
108228
  message: string;
@@ -108260,6 +108491,17 @@ export type Routes = {
108260
108491
  created_at?: string | undefined;
108261
108492
  /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
108262
108493
  warning_code: 'code_modified_external_to_seam';
108494
+ /** 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. */
108495
+ change_type?: ('modified' | 'removed') | undefined;
108496
+ /** List of fields that were changed externally, with their previous and new values. */
108497
+ modified_fields?: {
108498
+ /** The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`). */
108499
+ field: string;
108500
+ /** The previous value of the field. */
108501
+ from: string | null;
108502
+ /** The new value of the field. */
108503
+ to: string | null;
108504
+ }[] | undefined;
108263
108505
  } | {
108264
108506
  /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
108265
108507
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.870.0",
3
+ "version": "1.871.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -39,11 +39,33 @@ const smartthings_failed_to_set_after_multiple_retries =
39
39
  })
40
40
  .describe('Failed to set code after multiple retries.')
41
41
 
42
+ const modified_field = z.object({
43
+ field: z
44
+ .string()
45
+ .describe(
46
+ 'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).',
47
+ ),
48
+ from: z.string().nullable().describe('The previous value of the field.'),
49
+ to: z.string().nullable().describe('The new value of the field.'),
50
+ })
51
+
42
52
  const code_modified_external_to_seam_error = common_access_code_error
43
53
  .extend({
44
54
  error_code: z
45
55
  .literal('code_modified_external_to_seam')
46
56
  .describe(error_code_description),
57
+ change_type: z
58
+ .enum(['modified', 'removed'])
59
+ .optional()
60
+ .describe(
61
+ "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.",
62
+ ),
63
+ modified_fields: z
64
+ .array(modified_field)
65
+ .optional()
66
+ .describe(
67
+ 'List of fields that were changed externally, with their previous and new values.',
68
+ ),
47
69
  })
48
70
  .describe(
49
71
  'Code was modified or removed externally after Seam successfully set it on the device.',
@@ -369,6 +391,18 @@ const code_modified_external_to_seam_warning = common_access_code_warning
369
391
  warning_code: z
370
392
  .literal('code_modified_external_to_seam')
371
393
  .describe(warning_code_description),
394
+ change_type: z
395
+ .enum(['modified', 'removed'])
396
+ .optional()
397
+ .describe(
398
+ "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.",
399
+ ),
400
+ modified_fields: z
401
+ .array(modified_field)
402
+ .optional()
403
+ .describe(
404
+ 'List of fields that were changed externally, with their previous and new values.',
405
+ ),
372
406
  })
373
407
  .describe(
374
408
  'Code was modified or removed externally after Seam successfully set it on the device.',
@@ -432,6 +432,12 @@ const openapi: OpenAPISpec = {
432
432
  description:
433
433
  'Code was modified or removed externally after Seam successfully set it on the device.',
434
434
  properties: {
435
+ change_type: {
436
+ description:
437
+ "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.",
438
+ enum: ['modified', 'removed'],
439
+ type: 'string',
440
+ },
435
441
  created_at: {
436
442
  description:
437
443
  'Date and time at which Seam created the error.',
@@ -455,6 +461,32 @@ const openapi: OpenAPISpec = {
455
461
  'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
456
462
  type: 'string',
457
463
  },
464
+ modified_fields: {
465
+ description:
466
+ 'List of fields that were changed externally, with their previous and new values.',
467
+ items: {
468
+ properties: {
469
+ field: {
470
+ description:
471
+ 'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).',
472
+ type: 'string',
473
+ },
474
+ from: {
475
+ description: 'The previous value of the field.',
476
+ nullable: true,
477
+ type: 'string',
478
+ },
479
+ to: {
480
+ description: 'The new value of the field.',
481
+ nullable: true,
482
+ type: 'string',
483
+ },
484
+ },
485
+ required: ['field', 'from', 'to'],
486
+ type: 'object',
487
+ },
488
+ type: 'array',
489
+ },
458
490
  },
459
491
  required: ['message', 'is_access_code_error', 'error_code'],
460
492
  type: 'object',
@@ -1792,6 +1824,12 @@ const openapi: OpenAPISpec = {
1792
1824
  description:
1793
1825
  'Code was modified or removed externally after Seam successfully set it on the device.',
1794
1826
  properties: {
1827
+ change_type: {
1828
+ description:
1829
+ "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.",
1830
+ enum: ['modified', 'removed'],
1831
+ type: 'string',
1832
+ },
1795
1833
  created_at: {
1796
1834
  description:
1797
1835
  'Date and time at which Seam created the warning.',
@@ -1803,6 +1841,32 @@ const openapi: OpenAPISpec = {
1803
1841
  'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
1804
1842
  type: 'string',
1805
1843
  },
1844
+ modified_fields: {
1845
+ description:
1846
+ 'List of fields that were changed externally, with their previous and new values.',
1847
+ items: {
1848
+ properties: {
1849
+ field: {
1850
+ description:
1851
+ 'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).',
1852
+ type: 'string',
1853
+ },
1854
+ from: {
1855
+ description: 'The previous value of the field.',
1856
+ nullable: true,
1857
+ type: 'string',
1858
+ },
1859
+ to: {
1860
+ description: 'The new value of the field.',
1861
+ nullable: true,
1862
+ type: 'string',
1863
+ },
1864
+ },
1865
+ required: ['field', 'from', 'to'],
1866
+ type: 'object',
1867
+ },
1868
+ type: 'array',
1869
+ },
1806
1870
  warning_code: {
1807
1871
  description:
1808
1872
  'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
@@ -27741,6 +27805,12 @@ const openapi: OpenAPISpec = {
27741
27805
  description:
27742
27806
  'Code was modified or removed externally after Seam successfully set it on the device.',
27743
27807
  properties: {
27808
+ change_type: {
27809
+ description:
27810
+ "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.",
27811
+ enum: ['modified', 'removed'],
27812
+ type: 'string',
27813
+ },
27744
27814
  created_at: {
27745
27815
  description:
27746
27816
  'Date and time at which Seam created the error.',
@@ -27764,6 +27834,32 @@ const openapi: OpenAPISpec = {
27764
27834
  'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
27765
27835
  type: 'string',
27766
27836
  },
27837
+ modified_fields: {
27838
+ description:
27839
+ 'List of fields that were changed externally, with their previous and new values.',
27840
+ items: {
27841
+ properties: {
27842
+ field: {
27843
+ description:
27844
+ 'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).',
27845
+ type: 'string',
27846
+ },
27847
+ from: {
27848
+ description: 'The previous value of the field.',
27849
+ nullable: true,
27850
+ type: 'string',
27851
+ },
27852
+ to: {
27853
+ description: 'The new value of the field.',
27854
+ nullable: true,
27855
+ type: 'string',
27856
+ },
27857
+ },
27858
+ required: ['field', 'from', 'to'],
27859
+ type: 'object',
27860
+ },
27861
+ type: 'array',
27862
+ },
27767
27863
  },
27768
27864
  required: ['message', 'is_access_code_error', 'error_code'],
27769
27865
  type: 'object',
@@ -28790,6 +28886,12 @@ const openapi: OpenAPISpec = {
28790
28886
  description:
28791
28887
  'Code was modified or removed externally after Seam successfully set it on the device.',
28792
28888
  properties: {
28889
+ change_type: {
28890
+ description:
28891
+ "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.",
28892
+ enum: ['modified', 'removed'],
28893
+ type: 'string',
28894
+ },
28793
28895
  created_at: {
28794
28896
  description:
28795
28897
  'Date and time at which Seam created the warning.',
@@ -28801,6 +28903,32 @@ const openapi: OpenAPISpec = {
28801
28903
  'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
28802
28904
  type: 'string',
28803
28905
  },
28906
+ modified_fields: {
28907
+ description:
28908
+ 'List of fields that were changed externally, with their previous and new values.',
28909
+ items: {
28910
+ properties: {
28911
+ field: {
28912
+ description:
28913
+ 'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).',
28914
+ type: 'string',
28915
+ },
28916
+ from: {
28917
+ description: 'The previous value of the field.',
28918
+ nullable: true,
28919
+ type: 'string',
28920
+ },
28921
+ to: {
28922
+ description: 'The new value of the field.',
28923
+ nullable: true,
28924
+ type: 'string',
28925
+ },
28926
+ },
28927
+ required: ['field', 'from', 'to'],
28928
+ type: 'object',
28929
+ },
28930
+ type: 'array',
28931
+ },
28804
28932
  warning_code: {
28805
28933
  description:
28806
28934
  'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',