@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.
@@ -23525,16 +23525,42 @@ export declare const batch: z.ZodObject<{
23525
23525
  created_at: z.ZodOptional<z.ZodString>;
23526
23526
  } & {
23527
23527
  error_code: z.ZodLiteral<"code_modified_external_to_seam">;
23528
+ change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
23529
+ modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
23530
+ field: z.ZodString;
23531
+ from: z.ZodNullable<z.ZodString>;
23532
+ to: z.ZodNullable<z.ZodString>;
23533
+ }, "strip", z.ZodTypeAny, {
23534
+ from: string | null;
23535
+ to: string | null;
23536
+ field: string;
23537
+ }, {
23538
+ from: string | null;
23539
+ to: string | null;
23540
+ field: string;
23541
+ }>, "many">>;
23528
23542
  }, "strip", z.ZodTypeAny, {
23529
23543
  message: string;
23530
23544
  error_code: "code_modified_external_to_seam";
23531
23545
  is_access_code_error: true;
23532
23546
  created_at?: string | undefined;
23547
+ change_type?: "modified" | "removed" | undefined;
23548
+ modified_fields?: {
23549
+ from: string | null;
23550
+ to: string | null;
23551
+ field: string;
23552
+ }[] | undefined;
23533
23553
  }, {
23534
23554
  message: string;
23535
23555
  error_code: "code_modified_external_to_seam";
23536
23556
  is_access_code_error: true;
23537
23557
  created_at?: string | undefined;
23558
+ change_type?: "modified" | "removed" | undefined;
23559
+ modified_fields?: {
23560
+ from: string | null;
23561
+ to: string | null;
23562
+ field: string;
23563
+ }[] | undefined;
23538
23564
  }>, z.ZodObject<{
23539
23565
  message: z.ZodString;
23540
23566
  is_access_code_error: z.ZodLiteral<true>;
@@ -24088,14 +24114,40 @@ export declare const batch: z.ZodObject<{
24088
24114
  created_at: z.ZodOptional<z.ZodString>;
24089
24115
  } & {
24090
24116
  warning_code: z.ZodLiteral<"code_modified_external_to_seam">;
24117
+ change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
24118
+ modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
24119
+ field: z.ZodString;
24120
+ from: z.ZodNullable<z.ZodString>;
24121
+ to: z.ZodNullable<z.ZodString>;
24122
+ }, "strip", z.ZodTypeAny, {
24123
+ from: string | null;
24124
+ to: string | null;
24125
+ field: string;
24126
+ }, {
24127
+ from: string | null;
24128
+ to: string | null;
24129
+ field: string;
24130
+ }>, "many">>;
24091
24131
  }, "strip", z.ZodTypeAny, {
24092
24132
  message: string;
24093
24133
  warning_code: "code_modified_external_to_seam";
24094
24134
  created_at?: string | undefined;
24135
+ change_type?: "modified" | "removed" | undefined;
24136
+ modified_fields?: {
24137
+ from: string | null;
24138
+ to: string | null;
24139
+ field: string;
24140
+ }[] | undefined;
24095
24141
  }, {
24096
24142
  message: string;
24097
24143
  warning_code: "code_modified_external_to_seam";
24098
24144
  created_at?: string | undefined;
24145
+ change_type?: "modified" | "removed" | undefined;
24146
+ modified_fields?: {
24147
+ from: string | null;
24148
+ to: string | null;
24149
+ field: string;
24150
+ }[] | undefined;
24099
24151
  }>, z.ZodObject<{
24100
24152
  message: z.ZodString;
24101
24153
  created_at: z.ZodOptional<z.ZodString>;
@@ -24569,6 +24621,12 @@ export declare const batch: z.ZodObject<{
24569
24621
  error_code: "code_modified_external_to_seam";
24570
24622
  is_access_code_error: true;
24571
24623
  created_at?: string | undefined;
24624
+ change_type?: "modified" | "removed" | undefined;
24625
+ modified_fields?: {
24626
+ from: string | null;
24627
+ to: string | null;
24628
+ field: string;
24629
+ }[] | undefined;
24572
24630
  } | {
24573
24631
  message: string;
24574
24632
  error_code: "failed_to_set_on_device";
@@ -24674,6 +24732,12 @@ export declare const batch: z.ZodObject<{
24674
24732
  message: string;
24675
24733
  warning_code: "code_modified_external_to_seam";
24676
24734
  created_at?: string | undefined;
24735
+ change_type?: "modified" | "removed" | undefined;
24736
+ modified_fields?: {
24737
+ from: string | null;
24738
+ to: string | null;
24739
+ field: string;
24740
+ }[] | undefined;
24677
24741
  } | {
24678
24742
  message: string;
24679
24743
  warning_code: "schlage_detected_duplicate";
@@ -24917,6 +24981,12 @@ export declare const batch: z.ZodObject<{
24917
24981
  error_code: "code_modified_external_to_seam";
24918
24982
  is_access_code_error: true;
24919
24983
  created_at?: string | undefined;
24984
+ change_type?: "modified" | "removed" | undefined;
24985
+ modified_fields?: {
24986
+ from: string | null;
24987
+ to: string | null;
24988
+ field: string;
24989
+ }[] | undefined;
24920
24990
  } | {
24921
24991
  message: string;
24922
24992
  error_code: "failed_to_set_on_device";
@@ -25022,6 +25092,12 @@ export declare const batch: z.ZodObject<{
25022
25092
  message: string;
25023
25093
  warning_code: "code_modified_external_to_seam";
25024
25094
  created_at?: string | undefined;
25095
+ change_type?: "modified" | "removed" | undefined;
25096
+ modified_fields?: {
25097
+ from: string | null;
25098
+ to: string | null;
25099
+ field: string;
25100
+ }[] | undefined;
25025
25101
  } | {
25026
25102
  message: string;
25027
25103
  warning_code: "schlage_detected_duplicate";
@@ -25326,16 +25402,42 @@ export declare const batch: z.ZodObject<{
25326
25402
  created_at: z.ZodOptional<z.ZodString>;
25327
25403
  } & {
25328
25404
  error_code: z.ZodLiteral<"code_modified_external_to_seam">;
25405
+ change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
25406
+ modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
25407
+ field: z.ZodString;
25408
+ from: z.ZodNullable<z.ZodString>;
25409
+ to: z.ZodNullable<z.ZodString>;
25410
+ }, "strip", z.ZodTypeAny, {
25411
+ from: string | null;
25412
+ to: string | null;
25413
+ field: string;
25414
+ }, {
25415
+ from: string | null;
25416
+ to: string | null;
25417
+ field: string;
25418
+ }>, "many">>;
25329
25419
  }, "strip", z.ZodTypeAny, {
25330
25420
  message: string;
25331
25421
  error_code: "code_modified_external_to_seam";
25332
25422
  is_access_code_error: true;
25333
25423
  created_at?: string | undefined;
25424
+ change_type?: "modified" | "removed" | undefined;
25425
+ modified_fields?: {
25426
+ from: string | null;
25427
+ to: string | null;
25428
+ field: string;
25429
+ }[] | undefined;
25334
25430
  }, {
25335
25431
  message: string;
25336
25432
  error_code: "code_modified_external_to_seam";
25337
25433
  is_access_code_error: true;
25338
25434
  created_at?: string | undefined;
25435
+ change_type?: "modified" | "removed" | undefined;
25436
+ modified_fields?: {
25437
+ from: string | null;
25438
+ to: string | null;
25439
+ field: string;
25440
+ }[] | undefined;
25339
25441
  }>, z.ZodObject<{
25340
25442
  message: z.ZodString;
25341
25443
  is_access_code_error: z.ZodLiteral<true>;
@@ -25889,14 +25991,40 @@ export declare const batch: z.ZodObject<{
25889
25991
  created_at: z.ZodOptional<z.ZodString>;
25890
25992
  } & {
25891
25993
  warning_code: z.ZodLiteral<"code_modified_external_to_seam">;
25994
+ change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
25995
+ modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
25996
+ field: z.ZodString;
25997
+ from: z.ZodNullable<z.ZodString>;
25998
+ to: z.ZodNullable<z.ZodString>;
25999
+ }, "strip", z.ZodTypeAny, {
26000
+ from: string | null;
26001
+ to: string | null;
26002
+ field: string;
26003
+ }, {
26004
+ from: string | null;
26005
+ to: string | null;
26006
+ field: string;
26007
+ }>, "many">>;
25892
26008
  }, "strip", z.ZodTypeAny, {
25893
26009
  message: string;
25894
26010
  warning_code: "code_modified_external_to_seam";
25895
26011
  created_at?: string | undefined;
26012
+ change_type?: "modified" | "removed" | undefined;
26013
+ modified_fields?: {
26014
+ from: string | null;
26015
+ to: string | null;
26016
+ field: string;
26017
+ }[] | undefined;
25896
26018
  }, {
25897
26019
  message: string;
25898
26020
  warning_code: "code_modified_external_to_seam";
25899
26021
  created_at?: string | undefined;
26022
+ change_type?: "modified" | "removed" | undefined;
26023
+ modified_fields?: {
26024
+ from: string | null;
26025
+ to: string | null;
26026
+ field: string;
26027
+ }[] | undefined;
25900
26028
  }>, z.ZodObject<{
25901
26029
  message: z.ZodString;
25902
26030
  created_at: z.ZodOptional<z.ZodString>;
@@ -26196,6 +26324,12 @@ export declare const batch: z.ZodObject<{
26196
26324
  error_code: "code_modified_external_to_seam";
26197
26325
  is_access_code_error: true;
26198
26326
  created_at?: string | undefined;
26327
+ change_type?: "modified" | "removed" | undefined;
26328
+ modified_fields?: {
26329
+ from: string | null;
26330
+ to: string | null;
26331
+ field: string;
26332
+ }[] | undefined;
26199
26333
  } | {
26200
26334
  message: string;
26201
26335
  error_code: "failed_to_set_on_device";
@@ -26301,6 +26435,12 @@ export declare const batch: z.ZodObject<{
26301
26435
  message: string;
26302
26436
  warning_code: "code_modified_external_to_seam";
26303
26437
  created_at?: string | undefined;
26438
+ change_type?: "modified" | "removed" | undefined;
26439
+ modified_fields?: {
26440
+ from: string | null;
26441
+ to: string | null;
26442
+ field: string;
26443
+ }[] | undefined;
26304
26444
  } | {
26305
26445
  message: string;
26306
26446
  warning_code: "schlage_detected_duplicate";
@@ -26491,6 +26631,12 @@ export declare const batch: z.ZodObject<{
26491
26631
  error_code: "code_modified_external_to_seam";
26492
26632
  is_access_code_error: true;
26493
26633
  created_at?: string | undefined;
26634
+ change_type?: "modified" | "removed" | undefined;
26635
+ modified_fields?: {
26636
+ from: string | null;
26637
+ to: string | null;
26638
+ field: string;
26639
+ }[] | undefined;
26494
26640
  } | {
26495
26641
  message: string;
26496
26642
  error_code: "failed_to_set_on_device";
@@ -26596,6 +26742,12 @@ export declare const batch: z.ZodObject<{
26596
26742
  message: string;
26597
26743
  warning_code: "code_modified_external_to_seam";
26598
26744
  created_at?: string | undefined;
26745
+ change_type?: "modified" | "removed" | undefined;
26746
+ modified_fields?: {
26747
+ from: string | null;
26748
+ to: string | null;
26749
+ field: string;
26750
+ }[] | undefined;
26599
26751
  } | {
26600
26752
  message: string;
26601
26753
  warning_code: "schlage_detected_duplicate";
@@ -31389,6 +31541,12 @@ export declare const batch: z.ZodObject<{
31389
31541
  error_code: "code_modified_external_to_seam";
31390
31542
  is_access_code_error: true;
31391
31543
  created_at?: string | undefined;
31544
+ change_type?: "modified" | "removed" | undefined;
31545
+ modified_fields?: {
31546
+ from: string | null;
31547
+ to: string | null;
31548
+ field: string;
31549
+ }[] | undefined;
31392
31550
  } | {
31393
31551
  message: string;
31394
31552
  error_code: "failed_to_set_on_device";
@@ -31494,6 +31652,12 @@ export declare const batch: z.ZodObject<{
31494
31652
  message: string;
31495
31653
  warning_code: "code_modified_external_to_seam";
31496
31654
  created_at?: string | undefined;
31655
+ change_type?: "modified" | "removed" | undefined;
31656
+ modified_fields?: {
31657
+ from: string | null;
31658
+ to: string | null;
31659
+ field: string;
31660
+ }[] | undefined;
31497
31661
  } | {
31498
31662
  message: string;
31499
31663
  warning_code: "schlage_detected_duplicate";
@@ -31738,6 +31902,12 @@ export declare const batch: z.ZodObject<{
31738
31902
  error_code: "code_modified_external_to_seam";
31739
31903
  is_access_code_error: true;
31740
31904
  created_at?: string | undefined;
31905
+ change_type?: "modified" | "removed" | undefined;
31906
+ modified_fields?: {
31907
+ from: string | null;
31908
+ to: string | null;
31909
+ field: string;
31910
+ }[] | undefined;
31741
31911
  } | {
31742
31912
  message: string;
31743
31913
  error_code: "failed_to_set_on_device";
@@ -31843,6 +32013,12 @@ export declare const batch: z.ZodObject<{
31843
32013
  message: string;
31844
32014
  warning_code: "code_modified_external_to_seam";
31845
32015
  created_at?: string | undefined;
32016
+ change_type?: "modified" | "removed" | undefined;
32017
+ modified_fields?: {
32018
+ from: string | null;
32019
+ to: string | null;
32020
+ field: string;
32021
+ }[] | undefined;
31846
32022
  } | {
31847
32023
  message: string;
31848
32024
  warning_code: "schlage_detected_duplicate";
@@ -36509,6 +36685,12 @@ export declare const batch: z.ZodObject<{
36509
36685
  error_code: "code_modified_external_to_seam";
36510
36686
  is_access_code_error: true;
36511
36687
  created_at?: string | undefined;
36688
+ change_type?: "modified" | "removed" | undefined;
36689
+ modified_fields?: {
36690
+ from: string | null;
36691
+ to: string | null;
36692
+ field: string;
36693
+ }[] | undefined;
36512
36694
  } | {
36513
36695
  message: string;
36514
36696
  error_code: "failed_to_set_on_device";
@@ -36614,6 +36796,12 @@ export declare const batch: z.ZodObject<{
36614
36796
  message: string;
36615
36797
  warning_code: "code_modified_external_to_seam";
36616
36798
  created_at?: string | undefined;
36799
+ change_type?: "modified" | "removed" | undefined;
36800
+ modified_fields?: {
36801
+ from: string | null;
36802
+ to: string | null;
36803
+ field: string;
36804
+ }[] | undefined;
36617
36805
  } | {
36618
36806
  message: string;
36619
36807
  warning_code: "schlage_detected_duplicate";
@@ -36858,6 +37046,12 @@ export declare const batch: z.ZodObject<{
36858
37046
  error_code: "code_modified_external_to_seam";
36859
37047
  is_access_code_error: true;
36860
37048
  created_at?: string | undefined;
37049
+ change_type?: "modified" | "removed" | undefined;
37050
+ modified_fields?: {
37051
+ from: string | null;
37052
+ to: string | null;
37053
+ field: string;
37054
+ }[] | undefined;
36861
37055
  } | {
36862
37056
  message: string;
36863
37057
  error_code: "failed_to_set_on_device";
@@ -36963,6 +37157,12 @@ export declare const batch: z.ZodObject<{
36963
37157
  message: string;
36964
37158
  warning_code: "code_modified_external_to_seam";
36965
37159
  created_at?: string | undefined;
37160
+ change_type?: "modified" | "removed" | undefined;
37161
+ modified_fields?: {
37162
+ from: string | null;
37163
+ to: string | null;
37164
+ field: string;
37165
+ }[] | undefined;
36966
37166
  } | {
36967
37167
  message: string;
36968
37168
  warning_code: "schlage_detected_duplicate";
@@ -361,6 +361,11 @@ const openapi = {
361
361
  {
362
362
  description: 'Code was modified or removed externally after Seam successfully set it on the device.',
363
363
  properties: {
364
+ change_type: {
365
+ description: "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.",
366
+ enum: ['modified', 'removed'],
367
+ type: 'string',
368
+ },
364
369
  created_at: {
365
370
  description: 'Date and time at which Seam created the error.',
366
371
  format: 'date-time',
@@ -380,6 +385,30 @@ const openapi = {
380
385
  description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
381
386
  type: 'string',
382
387
  },
388
+ modified_fields: {
389
+ description: 'List of fields that were changed externally, with their previous and new values.',
390
+ items: {
391
+ properties: {
392
+ field: {
393
+ description: 'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).',
394
+ type: 'string',
395
+ },
396
+ from: {
397
+ description: 'The previous value of the field.',
398
+ nullable: true,
399
+ type: 'string',
400
+ },
401
+ to: {
402
+ description: 'The new value of the field.',
403
+ nullable: true,
404
+ type: 'string',
405
+ },
406
+ },
407
+ required: ['field', 'from', 'to'],
408
+ type: 'object',
409
+ },
410
+ type: 'array',
411
+ },
383
412
  },
384
413
  required: ['message', 'is_access_code_error', 'error_code'],
385
414
  type: 'object',
@@ -1553,6 +1582,11 @@ const openapi = {
1553
1582
  {
1554
1583
  description: 'Code was modified or removed externally after Seam successfully set it on the device.',
1555
1584
  properties: {
1585
+ change_type: {
1586
+ description: "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.",
1587
+ enum: ['modified', 'removed'],
1588
+ type: 'string',
1589
+ },
1556
1590
  created_at: {
1557
1591
  description: 'Date and time at which Seam created the warning.',
1558
1592
  format: 'date-time',
@@ -1562,6 +1596,30 @@ const openapi = {
1562
1596
  description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
1563
1597
  type: 'string',
1564
1598
  },
1599
+ modified_fields: {
1600
+ description: 'List of fields that were changed externally, with their previous and new values.',
1601
+ items: {
1602
+ properties: {
1603
+ field: {
1604
+ description: 'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).',
1605
+ type: 'string',
1606
+ },
1607
+ from: {
1608
+ description: 'The previous value of the field.',
1609
+ nullable: true,
1610
+ type: 'string',
1611
+ },
1612
+ to: {
1613
+ description: 'The new value of the field.',
1614
+ nullable: true,
1615
+ type: 'string',
1616
+ },
1617
+ },
1618
+ required: ['field', 'from', 'to'],
1619
+ type: 'object',
1620
+ },
1621
+ type: 'array',
1622
+ },
1565
1623
  warning_code: {
1566
1624
  description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
1567
1625
  enum: ['code_modified_external_to_seam'],
@@ -24863,6 +24921,11 @@ const openapi = {
24863
24921
  {
24864
24922
  description: 'Code was modified or removed externally after Seam successfully set it on the device.',
24865
24923
  properties: {
24924
+ change_type: {
24925
+ description: "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.",
24926
+ enum: ['modified', 'removed'],
24927
+ type: 'string',
24928
+ },
24866
24929
  created_at: {
24867
24930
  description: 'Date and time at which Seam created the error.',
24868
24931
  format: 'date-time',
@@ -24882,6 +24945,30 @@ const openapi = {
24882
24945
  description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
24883
24946
  type: 'string',
24884
24947
  },
24948
+ modified_fields: {
24949
+ description: 'List of fields that were changed externally, with their previous and new values.',
24950
+ items: {
24951
+ properties: {
24952
+ field: {
24953
+ description: 'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).',
24954
+ type: 'string',
24955
+ },
24956
+ from: {
24957
+ description: 'The previous value of the field.',
24958
+ nullable: true,
24959
+ type: 'string',
24960
+ },
24961
+ to: {
24962
+ description: 'The new value of the field.',
24963
+ nullable: true,
24964
+ type: 'string',
24965
+ },
24966
+ },
24967
+ required: ['field', 'from', 'to'],
24968
+ type: 'object',
24969
+ },
24970
+ type: 'array',
24971
+ },
24885
24972
  },
24886
24973
  required: ['message', 'is_access_code_error', 'error_code'],
24887
24974
  type: 'object',
@@ -25772,6 +25859,11 @@ const openapi = {
25772
25859
  {
25773
25860
  description: 'Code was modified or removed externally after Seam successfully set it on the device.',
25774
25861
  properties: {
25862
+ change_type: {
25863
+ description: "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.",
25864
+ enum: ['modified', 'removed'],
25865
+ type: 'string',
25866
+ },
25775
25867
  created_at: {
25776
25868
  description: 'Date and time at which Seam created the warning.',
25777
25869
  format: 'date-time',
@@ -25781,6 +25873,30 @@ const openapi = {
25781
25873
  description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
25782
25874
  type: 'string',
25783
25875
  },
25876
+ modified_fields: {
25877
+ description: 'List of fields that were changed externally, with their previous and new values.',
25878
+ items: {
25879
+ properties: {
25880
+ field: {
25881
+ description: 'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).',
25882
+ type: 'string',
25883
+ },
25884
+ from: {
25885
+ description: 'The previous value of the field.',
25886
+ nullable: true,
25887
+ type: 'string',
25888
+ },
25889
+ to: {
25890
+ description: 'The new value of the field.',
25891
+ nullable: true,
25892
+ type: 'string',
25893
+ },
25894
+ },
25895
+ required: ['field', 'from', 'to'],
25896
+ type: 'object',
25897
+ },
25898
+ type: 'array',
25899
+ },
25784
25900
  warning_code: {
25785
25901
  description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
25786
25902
  enum: ['code_modified_external_to_seam'],