@seamapi/types 1.1022.0 → 1.1024.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1022.0",
3
+ "version": "1.1024.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,87 +1,89 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { resource_key } from '../../models/resource-key.js'
4
+
3
5
  export const customer_delete_data = z.object({
4
6
  // Customer keys to delete all data for
5
7
  customer_keys: z
6
- .array(z.string())
8
+ .array(resource_key)
7
9
  .optional()
8
10
  .describe('List of customer keys to delete all data for.'),
9
11
 
10
12
  // Location resources to delete
11
13
  space_keys: z
12
- .array(z.string())
14
+ .array(resource_key)
13
15
  .optional()
14
16
  .describe('List of space keys to delete.'),
15
17
  property_keys: z
16
- .array(z.string())
18
+ .array(resource_key)
17
19
  .optional()
18
20
  .describe('List of property keys to delete.'),
19
21
  room_keys: z
20
- .array(z.string())
22
+ .array(resource_key)
21
23
  .optional()
22
24
  .describe('List of room keys to delete.'),
23
25
  common_area_keys: z
24
- .array(z.string())
26
+ .array(resource_key)
25
27
  .optional()
26
28
  .describe('List of common area keys to delete.'),
27
29
  unit_keys: z
28
- .array(z.string())
30
+ .array(resource_key)
29
31
  .optional()
30
32
  .describe('List of unit keys to delete.'),
31
33
  facility_keys: z
32
- .array(z.string())
34
+ .array(resource_key)
33
35
  .optional()
34
36
  .describe('List of facility keys to delete.'),
35
37
  building_keys: z
36
- .array(z.string())
38
+ .array(resource_key)
37
39
  .optional()
38
40
  .describe('List of building keys to delete.'),
39
41
  listing_keys: z
40
- .array(z.string())
42
+ .array(resource_key)
41
43
  .optional()
42
44
  .describe('List of listing keys to delete.'),
43
45
  property_listing_keys: z
44
- .array(z.string())
46
+ .array(resource_key)
45
47
  .optional()
46
48
  .describe('List of property listing keys to delete.'),
47
49
 
48
50
  // User identity resources to delete
49
51
  guest_keys: z
50
- .array(z.string())
52
+ .array(resource_key)
51
53
  .optional()
52
54
  .describe('List of guest keys to delete.'),
53
55
  tenant_keys: z
54
- .array(z.string())
56
+ .array(resource_key)
55
57
  .optional()
56
58
  .describe('List of tenant keys to delete.'),
57
59
  resident_keys: z
58
- .array(z.string())
60
+ .array(resource_key)
59
61
  .optional()
60
62
  .describe('List of resident keys to delete.'),
61
63
  user_keys: z
62
- .array(z.string())
64
+ .array(resource_key)
63
65
  .optional()
64
66
  .describe('List of user keys to delete.'),
65
67
  user_identity_keys: z
66
- .array(z.string())
68
+ .array(resource_key)
67
69
  .optional()
68
70
  .describe('List of user identity keys to delete.'),
69
71
 
70
72
  // Access grant resources to delete
71
73
  reservation_keys: z
72
- .array(z.string())
74
+ .array(resource_key)
73
75
  .optional()
74
76
  .describe('List of reservation keys to delete.'),
75
77
  booking_keys: z
76
- .array(z.string())
78
+ .array(resource_key)
77
79
  .optional()
78
80
  .describe('List of booking keys to delete.'),
79
81
  access_grant_keys: z
80
- .array(z.string())
82
+ .array(resource_key)
81
83
  .optional()
82
84
  .describe('List of access grant keys to delete.'),
83
85
  staff_member_keys: z
84
- .array(z.string())
86
+ .array(resource_key)
85
87
  .optional()
86
88
  .describe('List of staff member keys to delete.'),
87
89
  })
@@ -37518,6 +37518,7 @@ const openapi: OpenAPISpec = {
37518
37518
  schema: {
37519
37519
  description:
37520
37520
  'Code of the access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.',
37521
+ minLength: 1,
37521
37522
  type: 'string',
37522
37523
  },
37523
37524
  },
@@ -37577,6 +37578,7 @@ const openapi: OpenAPISpec = {
37577
37578
  code: {
37578
37579
  description:
37579
37580
  'Code of the access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.',
37581
+ minLength: 1,
37580
37582
  type: 'string',
37581
37583
  },
37582
37584
  device_id: {
@@ -38902,6 +38904,7 @@ const openapi: OpenAPISpec = {
38902
38904
  schema: {
38903
38905
  description:
38904
38906
  'Code of the unmanaged access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.',
38907
+ minLength: 1,
38905
38908
  type: 'string',
38906
38909
  },
38907
38910
  },
@@ -38963,6 +38966,7 @@ const openapi: OpenAPISpec = {
38963
38966
  code: {
38964
38967
  description:
38965
38968
  'Code of the unmanaged access code that you want to get. You must specify either `access_code_id` or both `device_id` and `code`.',
38969
+ minLength: 1,
38966
38970
  type: 'string',
38967
38971
  },
38968
38972
  device_id: {
@@ -53613,7 +53617,7 @@ const openapi: OpenAPISpec = {
53613
53617
  name: 'customer_keys',
53614
53618
  schema: {
53615
53619
  description: 'List of customer keys to delete all data for.',
53616
- items: { type: 'string' },
53620
+ items: { minLength: 1, type: 'string' },
53617
53621
  type: 'array',
53618
53622
  },
53619
53623
  },
@@ -53622,7 +53626,7 @@ const openapi: OpenAPISpec = {
53622
53626
  name: 'space_keys',
53623
53627
  schema: {
53624
53628
  description: 'List of space keys to delete.',
53625
- items: { type: 'string' },
53629
+ items: { minLength: 1, type: 'string' },
53626
53630
  type: 'array',
53627
53631
  },
53628
53632
  },
@@ -53631,7 +53635,7 @@ const openapi: OpenAPISpec = {
53631
53635
  name: 'property_keys',
53632
53636
  schema: {
53633
53637
  description: 'List of property keys to delete.',
53634
- items: { type: 'string' },
53638
+ items: { minLength: 1, type: 'string' },
53635
53639
  type: 'array',
53636
53640
  },
53637
53641
  },
@@ -53640,7 +53644,7 @@ const openapi: OpenAPISpec = {
53640
53644
  name: 'room_keys',
53641
53645
  schema: {
53642
53646
  description: 'List of room keys to delete.',
53643
- items: { type: 'string' },
53647
+ items: { minLength: 1, type: 'string' },
53644
53648
  type: 'array',
53645
53649
  },
53646
53650
  },
@@ -53649,7 +53653,7 @@ const openapi: OpenAPISpec = {
53649
53653
  name: 'common_area_keys',
53650
53654
  schema: {
53651
53655
  description: 'List of common area keys to delete.',
53652
- items: { type: 'string' },
53656
+ items: { minLength: 1, type: 'string' },
53653
53657
  type: 'array',
53654
53658
  },
53655
53659
  },
@@ -53658,7 +53662,7 @@ const openapi: OpenAPISpec = {
53658
53662
  name: 'unit_keys',
53659
53663
  schema: {
53660
53664
  description: 'List of unit keys to delete.',
53661
- items: { type: 'string' },
53665
+ items: { minLength: 1, type: 'string' },
53662
53666
  type: 'array',
53663
53667
  },
53664
53668
  },
@@ -53667,7 +53671,7 @@ const openapi: OpenAPISpec = {
53667
53671
  name: 'facility_keys',
53668
53672
  schema: {
53669
53673
  description: 'List of facility keys to delete.',
53670
- items: { type: 'string' },
53674
+ items: { minLength: 1, type: 'string' },
53671
53675
  type: 'array',
53672
53676
  },
53673
53677
  },
@@ -53676,7 +53680,7 @@ const openapi: OpenAPISpec = {
53676
53680
  name: 'building_keys',
53677
53681
  schema: {
53678
53682
  description: 'List of building keys to delete.',
53679
- items: { type: 'string' },
53683
+ items: { minLength: 1, type: 'string' },
53680
53684
  type: 'array',
53681
53685
  },
53682
53686
  },
@@ -53685,7 +53689,7 @@ const openapi: OpenAPISpec = {
53685
53689
  name: 'listing_keys',
53686
53690
  schema: {
53687
53691
  description: 'List of listing keys to delete.',
53688
- items: { type: 'string' },
53692
+ items: { minLength: 1, type: 'string' },
53689
53693
  type: 'array',
53690
53694
  },
53691
53695
  },
@@ -53694,7 +53698,7 @@ const openapi: OpenAPISpec = {
53694
53698
  name: 'property_listing_keys',
53695
53699
  schema: {
53696
53700
  description: 'List of property listing keys to delete.',
53697
- items: { type: 'string' },
53701
+ items: { minLength: 1, type: 'string' },
53698
53702
  type: 'array',
53699
53703
  },
53700
53704
  },
@@ -53703,7 +53707,7 @@ const openapi: OpenAPISpec = {
53703
53707
  name: 'guest_keys',
53704
53708
  schema: {
53705
53709
  description: 'List of guest keys to delete.',
53706
- items: { type: 'string' },
53710
+ items: { minLength: 1, type: 'string' },
53707
53711
  type: 'array',
53708
53712
  },
53709
53713
  },
@@ -53712,7 +53716,7 @@ const openapi: OpenAPISpec = {
53712
53716
  name: 'tenant_keys',
53713
53717
  schema: {
53714
53718
  description: 'List of tenant keys to delete.',
53715
- items: { type: 'string' },
53719
+ items: { minLength: 1, type: 'string' },
53716
53720
  type: 'array',
53717
53721
  },
53718
53722
  },
@@ -53721,7 +53725,7 @@ const openapi: OpenAPISpec = {
53721
53725
  name: 'resident_keys',
53722
53726
  schema: {
53723
53727
  description: 'List of resident keys to delete.',
53724
- items: { type: 'string' },
53728
+ items: { minLength: 1, type: 'string' },
53725
53729
  type: 'array',
53726
53730
  },
53727
53731
  },
@@ -53730,7 +53734,7 @@ const openapi: OpenAPISpec = {
53730
53734
  name: 'user_keys',
53731
53735
  schema: {
53732
53736
  description: 'List of user keys to delete.',
53733
- items: { type: 'string' },
53737
+ items: { minLength: 1, type: 'string' },
53734
53738
  type: 'array',
53735
53739
  },
53736
53740
  },
@@ -53739,7 +53743,7 @@ const openapi: OpenAPISpec = {
53739
53743
  name: 'user_identity_keys',
53740
53744
  schema: {
53741
53745
  description: 'List of user identity keys to delete.',
53742
- items: { type: 'string' },
53746
+ items: { minLength: 1, type: 'string' },
53743
53747
  type: 'array',
53744
53748
  },
53745
53749
  },
@@ -53748,7 +53752,7 @@ const openapi: OpenAPISpec = {
53748
53752
  name: 'reservation_keys',
53749
53753
  schema: {
53750
53754
  description: 'List of reservation keys to delete.',
53751
- items: { type: 'string' },
53755
+ items: { minLength: 1, type: 'string' },
53752
53756
  type: 'array',
53753
53757
  },
53754
53758
  },
@@ -53757,7 +53761,7 @@ const openapi: OpenAPISpec = {
53757
53761
  name: 'booking_keys',
53758
53762
  schema: {
53759
53763
  description: 'List of booking keys to delete.',
53760
- items: { type: 'string' },
53764
+ items: { minLength: 1, type: 'string' },
53761
53765
  type: 'array',
53762
53766
  },
53763
53767
  },
@@ -53766,7 +53770,7 @@ const openapi: OpenAPISpec = {
53766
53770
  name: 'access_grant_keys',
53767
53771
  schema: {
53768
53772
  description: 'List of access grant keys to delete.',
53769
- items: { type: 'string' },
53773
+ items: { minLength: 1, type: 'string' },
53770
53774
  type: 'array',
53771
53775
  },
53772
53776
  },
@@ -53775,7 +53779,7 @@ const openapi: OpenAPISpec = {
53775
53779
  name: 'staff_member_keys',
53776
53780
  schema: {
53777
53781
  description: 'List of staff member keys to delete.',
53778
- items: { type: 'string' },
53782
+ items: { minLength: 1, type: 'string' },
53779
53783
  type: 'array',
53780
53784
  },
53781
53785
  },
@@ -53820,98 +53824,98 @@ const openapi: OpenAPISpec = {
53820
53824
  properties: {
53821
53825
  access_grant_keys: {
53822
53826
  description: 'List of access grant keys to delete.',
53823
- items: { type: 'string' },
53827
+ items: { minLength: 1, type: 'string' },
53824
53828
  type: 'array',
53825
53829
  },
53826
53830
  booking_keys: {
53827
53831
  description: 'List of booking keys to delete.',
53828
- items: { type: 'string' },
53832
+ items: { minLength: 1, type: 'string' },
53829
53833
  type: 'array',
53830
53834
  },
53831
53835
  building_keys: {
53832
53836
  description: 'List of building keys to delete.',
53833
- items: { type: 'string' },
53837
+ items: { minLength: 1, type: 'string' },
53834
53838
  type: 'array',
53835
53839
  },
53836
53840
  common_area_keys: {
53837
53841
  description: 'List of common area keys to delete.',
53838
- items: { type: 'string' },
53842
+ items: { minLength: 1, type: 'string' },
53839
53843
  type: 'array',
53840
53844
  },
53841
53845
  customer_keys: {
53842
53846
  description:
53843
53847
  'List of customer keys to delete all data for.',
53844
- items: { type: 'string' },
53848
+ items: { minLength: 1, type: 'string' },
53845
53849
  type: 'array',
53846
53850
  },
53847
53851
  facility_keys: {
53848
53852
  description: 'List of facility keys to delete.',
53849
- items: { type: 'string' },
53853
+ items: { minLength: 1, type: 'string' },
53850
53854
  type: 'array',
53851
53855
  },
53852
53856
  guest_keys: {
53853
53857
  description: 'List of guest keys to delete.',
53854
- items: { type: 'string' },
53858
+ items: { minLength: 1, type: 'string' },
53855
53859
  type: 'array',
53856
53860
  },
53857
53861
  listing_keys: {
53858
53862
  description: 'List of listing keys to delete.',
53859
- items: { type: 'string' },
53863
+ items: { minLength: 1, type: 'string' },
53860
53864
  type: 'array',
53861
53865
  },
53862
53866
  property_keys: {
53863
53867
  description: 'List of property keys to delete.',
53864
- items: { type: 'string' },
53868
+ items: { minLength: 1, type: 'string' },
53865
53869
  type: 'array',
53866
53870
  },
53867
53871
  property_listing_keys: {
53868
53872
  description: 'List of property listing keys to delete.',
53869
- items: { type: 'string' },
53873
+ items: { minLength: 1, type: 'string' },
53870
53874
  type: 'array',
53871
53875
  },
53872
53876
  reservation_keys: {
53873
53877
  description: 'List of reservation keys to delete.',
53874
- items: { type: 'string' },
53878
+ items: { minLength: 1, type: 'string' },
53875
53879
  type: 'array',
53876
53880
  },
53877
53881
  resident_keys: {
53878
53882
  description: 'List of resident keys to delete.',
53879
- items: { type: 'string' },
53883
+ items: { minLength: 1, type: 'string' },
53880
53884
  type: 'array',
53881
53885
  },
53882
53886
  room_keys: {
53883
53887
  description: 'List of room keys to delete.',
53884
- items: { type: 'string' },
53888
+ items: { minLength: 1, type: 'string' },
53885
53889
  type: 'array',
53886
53890
  },
53887
53891
  space_keys: {
53888
53892
  description: 'List of space keys to delete.',
53889
- items: { type: 'string' },
53893
+ items: { minLength: 1, type: 'string' },
53890
53894
  type: 'array',
53891
53895
  },
53892
53896
  staff_member_keys: {
53893
53897
  description: 'List of staff member keys to delete.',
53894
- items: { type: 'string' },
53898
+ items: { minLength: 1, type: 'string' },
53895
53899
  type: 'array',
53896
53900
  },
53897
53901
  tenant_keys: {
53898
53902
  description: 'List of tenant keys to delete.',
53899
- items: { type: 'string' },
53903
+ items: { minLength: 1, type: 'string' },
53900
53904
  type: 'array',
53901
53905
  },
53902
53906
  unit_keys: {
53903
53907
  description: 'List of unit keys to delete.',
53904
- items: { type: 'string' },
53908
+ items: { minLength: 1, type: 'string' },
53905
53909
  type: 'array',
53906
53910
  },
53907
53911
  user_identity_keys: {
53908
53912
  description: 'List of user identity keys to delete.',
53909
- items: { type: 'string' },
53913
+ items: { minLength: 1, type: 'string' },
53910
53914
  type: 'array',
53911
53915
  },
53912
53916
  user_keys: {
53913
53917
  description: 'List of user keys to delete.',
53914
- items: { type: 'string' },
53918
+ items: { minLength: 1, type: 'string' },
53915
53919
  type: 'array',
53916
53920
  },
53917
53921
  },
@@ -55098,6 +55102,7 @@ const openapi: OpenAPISpec = {
55098
55102
  name: 'name',
55099
55103
  schema: {
55100
55104
  description: 'Name of the device that you want to get.',
55105
+ minLength: 1,
55101
55106
  type: 'string',
55102
55107
  },
55103
55108
  },
@@ -55155,6 +55160,7 @@ const openapi: OpenAPISpec = {
55155
55160
  },
55156
55161
  name: {
55157
55162
  description: 'Name of the device that you want to get.',
55163
+ minLength: 1,
55158
55164
  type: 'string',
55159
55165
  },
55160
55166
  },
@@ -57938,6 +57944,7 @@ const openapi: OpenAPISpec = {
57938
57944
  name: 'name',
57939
57945
  schema: {
57940
57946
  description: 'Name of the unmanaged device that you want to get.',
57947
+ minLength: 1,
57941
57948
  type: 'string',
57942
57949
  },
57943
57950
  },
@@ -57995,6 +58002,7 @@ const openapi: OpenAPISpec = {
57995
58002
  name: {
57996
58003
  description:
57997
58004
  'Name of the unmanaged device that you want to get.',
58005
+ minLength: 1,
57998
58006
  type: 'string',
57999
58007
  },
58000
58008
  },
@@ -59186,6 +59194,7 @@ const openapi: OpenAPISpec = {
59186
59194
  name: 'event_type',
59187
59195
  schema: {
59188
59196
  description: 'Type of the event that you want to get.',
59197
+ minLength: 1,
59189
59198
  type: 'string',
59190
59199
  },
59191
59200
  },
@@ -59261,6 +59270,7 @@ const openapi: OpenAPISpec = {
59261
59270
  },
59262
59271
  event_type: {
59263
59272
  description: 'Type of the event that you want to get.',
59273
+ minLength: 1,
59264
59274
  type: 'string',
59265
59275
  },
59266
59276
  },
@@ -60722,6 +60732,7 @@ const openapi: OpenAPISpec = {
60722
60732
  name: 'name',
60723
60733
  schema: {
60724
60734
  description: 'Name of the lock that you want to get.',
60735
+ minLength: 1,
60725
60736
  type: 'string',
60726
60737
  },
60727
60738
  },
@@ -60779,6 +60790,7 @@ const openapi: OpenAPISpec = {
60779
60790
  },
60780
60791
  name: {
60781
60792
  description: 'Name of the lock that you want to get.',
60793
+ minLength: 1,
60782
60794
  type: 'string',
60783
60795
  },
60784
60796
  },
@@ -81471,6 +81483,7 @@ const openapi: OpenAPISpec = {
81471
81483
  schema: {
81472
81484
  description:
81473
81485
  'Name of the thermostat device that you want to retrieve.',
81486
+ minLength: 1,
81474
81487
  type: 'string',
81475
81488
  },
81476
81489
  },
@@ -81529,6 +81542,7 @@ const openapi: OpenAPISpec = {
81529
81542
  name: {
81530
81543
  description:
81531
81544
  'Name of the thermostat device that you want to retrieve.',
81545
+ minLength: 1,
81532
81546
  type: 'string',
81533
81547
  },
81534
81548
  },
@@ -86803,6 +86817,7 @@ const openapi: OpenAPISpec = {
86803
86817
  required: true,
86804
86818
  schema: {
86805
86819
  description: 'ID of the webhook that you want to delete.',
86820
+ minLength: 1,
86806
86821
  type: 'string',
86807
86822
  },
86808
86823
  },
@@ -86846,6 +86861,7 @@ const openapi: OpenAPISpec = {
86846
86861
  properties: {
86847
86862
  webhook_id: {
86848
86863
  description: 'ID of the webhook that you want to delete.',
86864
+ minLength: 1,
86849
86865
  type: 'string',
86850
86866
  },
86851
86867
  },
@@ -86896,6 +86912,7 @@ const openapi: OpenAPISpec = {
86896
86912
  required: true,
86897
86913
  schema: {
86898
86914
  description: 'ID of the webhook that you want to get.',
86915
+ minLength: 1,
86899
86916
  type: 'string',
86900
86917
  },
86901
86918
  },
@@ -86943,6 +86960,7 @@ const openapi: OpenAPISpec = {
86943
86960
  properties: {
86944
86961
  webhook_id: {
86945
86962
  description: 'ID of the webhook that you want to get.',
86963
+ minLength: 1,
86946
86964
  type: 'string',
86947
86965
  },
86948
86966
  },