@seamapi/types 1.565.0 → 1.566.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.
@@ -31200,6 +31200,8 @@ export type Routes = {
31200
31200
  connect?: {
31201
31201
  /** Whether to exclude this feature from the portal. */
31202
31202
  exclude?: boolean;
31203
+ /** List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account. */
31204
+ excluded_providers?: string[] | undefined;
31203
31205
  };
31204
31206
  /** Configuration for the manage devices feature. */
31205
31207
  manage_devices?: {
@@ -31225,7 +31227,7 @@ export type Routes = {
31225
31227
  is_embedded?: boolean;
31226
31228
  /** Configuration for the landing page when the portal loads. */
31227
31229
  landing_page?: {
31228
- manage?: ({
31230
+ manage?: (({
31229
31231
  space_key: string;
31230
31232
  } | {
31231
31233
  property_key: string;
@@ -31243,7 +31245,13 @@ export type Routes = {
31243
31245
  listing_key: string;
31244
31246
  } | {
31245
31247
  property_listing_key: string;
31246
- }) | undefined;
31248
+ }) | ({
31249
+ reservation_key: string;
31250
+ } | {
31251
+ booking_key: string;
31252
+ } | {
31253
+ access_grant_key: string;
31254
+ })) | undefined;
31247
31255
  } | undefined;
31248
31256
  } & {
31249
31257
  customer_data?: {
@@ -58168,6 +58176,7 @@ export type Routes = {
58168
58176
  features?: {
58169
58177
  connect?: {
58170
58178
  exclude?: boolean | undefined;
58179
+ excluded_providers?: string[] | undefined;
58171
58180
  } | undefined;
58172
58181
  manage_devices?: {
58173
58182
  exclude?: boolean | undefined;
@@ -58183,7 +58192,7 @@ export type Routes = {
58183
58192
  } | undefined;
58184
58193
  is_embedded?: boolean | undefined;
58185
58194
  landing_page?: {
58186
- manage?: ({
58195
+ manage?: (({
58187
58196
  space_key: string;
58188
58197
  } | {
58189
58198
  property_key: string;
@@ -58201,7 +58210,13 @@ export type Routes = {
58201
58210
  listing_key: string;
58202
58211
  } | {
58203
58212
  property_listing_key: string;
58204
- }) | undefined;
58213
+ }) | ({
58214
+ reservation_key: string;
58215
+ } | {
58216
+ booking_key: string;
58217
+ } | {
58218
+ access_grant_key: string;
58219
+ })) | undefined;
58205
58220
  } | undefined;
58206
58221
  /** Business vertical of the customer portal. */
58207
58222
  business_vertical?: ('short_term_rental' | 'hospitality' | 'multi_family' | 'gym_management' | 'property_tours') | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.565.0",
3
+ "version": "1.566.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { access_grant_key_aliases } from './access-grant-resources.js'
3
4
  import { location_key_aliases } from './location-resources.js'
4
5
 
5
6
  const base_feature = z.object({
@@ -9,7 +10,14 @@ const base_feature = z.object({
9
10
  .describe('Whether to exclude this feature from the portal.'),
10
11
  })
11
12
 
12
- const base_connect_feature = base_feature
13
+ const base_connect_feature = base_feature.extend({
14
+ excluded_providers: z
15
+ .array(z.string())
16
+ .optional()
17
+ .describe(
18
+ 'List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account.',
19
+ ),
20
+ })
13
21
  const base_manage_devices_feature = base_feature
14
22
  const base_organize_feature = base_feature
15
23
 
@@ -52,7 +60,9 @@ export const portal_configuration = z
52
60
  .describe('Whether the portal is embedded in another application.'),
53
61
  landing_page: z
54
62
  .object({
55
- manage: location_key_aliases.optional(),
63
+ manage: z
64
+ .union([location_key_aliases, access_grant_key_aliases])
65
+ .optional(),
56
66
  })
57
67
  .optional()
58
68
  .describe('Configuration for the landing page when the portal loads.'),
@@ -38737,6 +38737,12 @@ export default {
38737
38737
  'Whether to exclude this feature from the portal.',
38738
38738
  type: 'boolean',
38739
38739
  },
38740
+ excluded_providers: {
38741
+ description:
38742
+ 'List of provider keys to exclude from the connect feature. These providers will not be shown when the customer tries to connect an account.',
38743
+ items: { type: 'string' },
38744
+ type: 'array',
38745
+ },
38740
38746
  },
38741
38747
  type: 'object',
38742
38748
  },
@@ -38784,59 +38790,96 @@ export default {
38784
38790
  manage: {
38785
38791
  oneOf: [
38786
38792
  {
38787
- properties: { space_key: { type: 'string' } },
38788
- required: ['space_key'],
38789
- type: 'object',
38790
- },
38791
- {
38792
- properties: {
38793
- property_key: { type: 'string' },
38794
- },
38795
- required: ['property_key'],
38796
- type: 'object',
38797
- },
38798
- {
38799
- properties: { room_key: { type: 'string' } },
38800
- required: ['room_key'],
38801
- type: 'object',
38802
- },
38803
- {
38804
- properties: {
38805
- common_area_key: { type: 'string' },
38806
- },
38807
- required: ['common_area_key'],
38808
- type: 'object',
38809
- },
38810
- {
38811
- properties: { unit_key: { type: 'string' } },
38812
- required: ['unit_key'],
38813
- type: 'object',
38814
- },
38815
- {
38816
- properties: {
38817
- facility_key: { type: 'string' },
38818
- },
38819
- required: ['facility_key'],
38820
- type: 'object',
38821
- },
38822
- {
38823
- properties: {
38824
- building_key: { type: 'string' },
38825
- },
38826
- required: ['building_key'],
38827
- type: 'object',
38828
- },
38829
- {
38830
- properties: { listing_key: { type: 'string' } },
38831
- required: ['listing_key'],
38832
- type: 'object',
38793
+ oneOf: [
38794
+ {
38795
+ properties: {
38796
+ space_key: { type: 'string' },
38797
+ },
38798
+ required: ['space_key'],
38799
+ type: 'object',
38800
+ },
38801
+ {
38802
+ properties: {
38803
+ property_key: { type: 'string' },
38804
+ },
38805
+ required: ['property_key'],
38806
+ type: 'object',
38807
+ },
38808
+ {
38809
+ properties: {
38810
+ room_key: { type: 'string' },
38811
+ },
38812
+ required: ['room_key'],
38813
+ type: 'object',
38814
+ },
38815
+ {
38816
+ properties: {
38817
+ common_area_key: { type: 'string' },
38818
+ },
38819
+ required: ['common_area_key'],
38820
+ type: 'object',
38821
+ },
38822
+ {
38823
+ properties: {
38824
+ unit_key: { type: 'string' },
38825
+ },
38826
+ required: ['unit_key'],
38827
+ type: 'object',
38828
+ },
38829
+ {
38830
+ properties: {
38831
+ facility_key: { type: 'string' },
38832
+ },
38833
+ required: ['facility_key'],
38834
+ type: 'object',
38835
+ },
38836
+ {
38837
+ properties: {
38838
+ building_key: { type: 'string' },
38839
+ },
38840
+ required: ['building_key'],
38841
+ type: 'object',
38842
+ },
38843
+ {
38844
+ properties: {
38845
+ listing_key: { type: 'string' },
38846
+ },
38847
+ required: ['listing_key'],
38848
+ type: 'object',
38849
+ },
38850
+ {
38851
+ properties: {
38852
+ property_listing_key: { type: 'string' },
38853
+ },
38854
+ required: ['property_listing_key'],
38855
+ type: 'object',
38856
+ },
38857
+ ],
38833
38858
  },
38834
38859
  {
38835
- properties: {
38836
- property_listing_key: { type: 'string' },
38837
- },
38838
- required: ['property_listing_key'],
38839
- type: 'object',
38860
+ oneOf: [
38861
+ {
38862
+ properties: {
38863
+ reservation_key: { type: 'string' },
38864
+ },
38865
+ required: ['reservation_key'],
38866
+ type: 'object',
38867
+ },
38868
+ {
38869
+ properties: {
38870
+ booking_key: { type: 'string' },
38871
+ },
38872
+ required: ['booking_key'],
38873
+ type: 'object',
38874
+ },
38875
+ {
38876
+ properties: {
38877
+ access_grant_key: { type: 'string' },
38878
+ },
38879
+ required: ['access_grant_key'],
38880
+ type: 'object',
38881
+ },
38882
+ ],
38840
38883
  },
38841
38884
  ],
38842
38885
  },
@@ -49718,7 +49761,13 @@ export default {
49718
49761
  type: 'object',
49719
49762
  },
49720
49763
  connect: {
49721
- properties: { exclude: { type: 'boolean' } },
49764
+ properties: {
49765
+ exclude: { type: 'boolean' },
49766
+ excluded_providers: {
49767
+ items: { type: 'string' },
49768
+ type: 'array',
49769
+ },
49770
+ },
49722
49771
  type: 'object',
49723
49772
  },
49724
49773
  manage_devices: {
@@ -49738,61 +49787,98 @@ export default {
49738
49787
  manage: {
49739
49788
  oneOf: [
49740
49789
  {
49741
- properties: { space_key: { type: 'string' } },
49742
- required: ['space_key'],
49743
- type: 'object',
49744
- },
49745
- {
49746
- properties: {
49747
- property_key: { type: 'string' },
49748
- },
49749
- required: ['property_key'],
49750
- type: 'object',
49751
- },
49752
- {
49753
- properties: { room_key: { type: 'string' } },
49754
- required: ['room_key'],
49755
- type: 'object',
49756
- },
49757
- {
49758
- properties: {
49759
- common_area_key: { type: 'string' },
49760
- },
49761
- required: ['common_area_key'],
49762
- type: 'object',
49763
- },
49764
- {
49765
- properties: { unit_key: { type: 'string' } },
49766
- required: ['unit_key'],
49767
- type: 'object',
49768
- },
49769
- {
49770
- properties: {
49771
- facility_key: { type: 'string' },
49772
- },
49773
- required: ['facility_key'],
49774
- type: 'object',
49775
- },
49776
- {
49777
- properties: {
49778
- building_key: { type: 'string' },
49779
- },
49780
- required: ['building_key'],
49781
- type: 'object',
49782
- },
49783
- {
49784
- properties: {
49785
- listing_key: { type: 'string' },
49786
- },
49787
- required: ['listing_key'],
49788
- type: 'object',
49790
+ oneOf: [
49791
+ {
49792
+ properties: {
49793
+ space_key: { type: 'string' },
49794
+ },
49795
+ required: ['space_key'],
49796
+ type: 'object',
49797
+ },
49798
+ {
49799
+ properties: {
49800
+ property_key: { type: 'string' },
49801
+ },
49802
+ required: ['property_key'],
49803
+ type: 'object',
49804
+ },
49805
+ {
49806
+ properties: {
49807
+ room_key: { type: 'string' },
49808
+ },
49809
+ required: ['room_key'],
49810
+ type: 'object',
49811
+ },
49812
+ {
49813
+ properties: {
49814
+ common_area_key: { type: 'string' },
49815
+ },
49816
+ required: ['common_area_key'],
49817
+ type: 'object',
49818
+ },
49819
+ {
49820
+ properties: {
49821
+ unit_key: { type: 'string' },
49822
+ },
49823
+ required: ['unit_key'],
49824
+ type: 'object',
49825
+ },
49826
+ {
49827
+ properties: {
49828
+ facility_key: { type: 'string' },
49829
+ },
49830
+ required: ['facility_key'],
49831
+ type: 'object',
49832
+ },
49833
+ {
49834
+ properties: {
49835
+ building_key: { type: 'string' },
49836
+ },
49837
+ required: ['building_key'],
49838
+ type: 'object',
49839
+ },
49840
+ {
49841
+ properties: {
49842
+ listing_key: { type: 'string' },
49843
+ },
49844
+ required: ['listing_key'],
49845
+ type: 'object',
49846
+ },
49847
+ {
49848
+ properties: {
49849
+ property_listing_key: {
49850
+ type: 'string',
49851
+ },
49852
+ },
49853
+ required: ['property_listing_key'],
49854
+ type: 'object',
49855
+ },
49856
+ ],
49789
49857
  },
49790
49858
  {
49791
- properties: {
49792
- property_listing_key: { type: 'string' },
49793
- },
49794
- required: ['property_listing_key'],
49795
- type: 'object',
49859
+ oneOf: [
49860
+ {
49861
+ properties: {
49862
+ reservation_key: { type: 'string' },
49863
+ },
49864
+ required: ['reservation_key'],
49865
+ type: 'object',
49866
+ },
49867
+ {
49868
+ properties: {
49869
+ booking_key: { type: 'string' },
49870
+ },
49871
+ required: ['booking_key'],
49872
+ type: 'object',
49873
+ },
49874
+ {
49875
+ properties: {
49876
+ access_grant_key: { type: 'string' },
49877
+ },
49878
+ required: ['access_grant_key'],
49879
+ type: 'object',
49880
+ },
49881
+ ],
49796
49882
  },
49797
49883
  ],
49798
49884
  },
@@ -49880,7 +49966,13 @@ export default {
49880
49966
  type: 'object',
49881
49967
  },
49882
49968
  connect: {
49883
- properties: { exclude: { type: 'boolean' } },
49969
+ properties: {
49970
+ exclude: { type: 'boolean' },
49971
+ excluded_providers: {
49972
+ items: { type: 'string' },
49973
+ type: 'array',
49974
+ },
49975
+ },
49884
49976
  type: 'object',
49885
49977
  },
49886
49978
  manage_devices: {
@@ -49900,61 +49992,98 @@ export default {
49900
49992
  manage: {
49901
49993
  oneOf: [
49902
49994
  {
49903
- properties: { space_key: { type: 'string' } },
49904
- required: ['space_key'],
49905
- type: 'object',
49906
- },
49907
- {
49908
- properties: {
49909
- property_key: { type: 'string' },
49910
- },
49911
- required: ['property_key'],
49912
- type: 'object',
49913
- },
49914
- {
49915
- properties: { room_key: { type: 'string' } },
49916
- required: ['room_key'],
49917
- type: 'object',
49918
- },
49919
- {
49920
- properties: {
49921
- common_area_key: { type: 'string' },
49922
- },
49923
- required: ['common_area_key'],
49924
- type: 'object',
49925
- },
49926
- {
49927
- properties: { unit_key: { type: 'string' } },
49928
- required: ['unit_key'],
49929
- type: 'object',
49930
- },
49931
- {
49932
- properties: {
49933
- facility_key: { type: 'string' },
49934
- },
49935
- required: ['facility_key'],
49936
- type: 'object',
49937
- },
49938
- {
49939
- properties: {
49940
- building_key: { type: 'string' },
49941
- },
49942
- required: ['building_key'],
49943
- type: 'object',
49944
- },
49945
- {
49946
- properties: {
49947
- listing_key: { type: 'string' },
49948
- },
49949
- required: ['listing_key'],
49950
- type: 'object',
49995
+ oneOf: [
49996
+ {
49997
+ properties: {
49998
+ space_key: { type: 'string' },
49999
+ },
50000
+ required: ['space_key'],
50001
+ type: 'object',
50002
+ },
50003
+ {
50004
+ properties: {
50005
+ property_key: { type: 'string' },
50006
+ },
50007
+ required: ['property_key'],
50008
+ type: 'object',
50009
+ },
50010
+ {
50011
+ properties: {
50012
+ room_key: { type: 'string' },
50013
+ },
50014
+ required: ['room_key'],
50015
+ type: 'object',
50016
+ },
50017
+ {
50018
+ properties: {
50019
+ common_area_key: { type: 'string' },
50020
+ },
50021
+ required: ['common_area_key'],
50022
+ type: 'object',
50023
+ },
50024
+ {
50025
+ properties: {
50026
+ unit_key: { type: 'string' },
50027
+ },
50028
+ required: ['unit_key'],
50029
+ type: 'object',
50030
+ },
50031
+ {
50032
+ properties: {
50033
+ facility_key: { type: 'string' },
50034
+ },
50035
+ required: ['facility_key'],
50036
+ type: 'object',
50037
+ },
50038
+ {
50039
+ properties: {
50040
+ building_key: { type: 'string' },
50041
+ },
50042
+ required: ['building_key'],
50043
+ type: 'object',
50044
+ },
50045
+ {
50046
+ properties: {
50047
+ listing_key: { type: 'string' },
50048
+ },
50049
+ required: ['listing_key'],
50050
+ type: 'object',
50051
+ },
50052
+ {
50053
+ properties: {
50054
+ property_listing_key: {
50055
+ type: 'string',
50056
+ },
50057
+ },
50058
+ required: ['property_listing_key'],
50059
+ type: 'object',
50060
+ },
50061
+ ],
49951
50062
  },
49952
50063
  {
49953
- properties: {
49954
- property_listing_key: { type: 'string' },
49955
- },
49956
- required: ['property_listing_key'],
49957
- type: 'object',
50064
+ oneOf: [
50065
+ {
50066
+ properties: {
50067
+ reservation_key: { type: 'string' },
50068
+ },
50069
+ required: ['reservation_key'],
50070
+ type: 'object',
50071
+ },
50072
+ {
50073
+ properties: {
50074
+ booking_key: { type: 'string' },
50075
+ },
50076
+ required: ['booking_key'],
50077
+ type: 'object',
50078
+ },
50079
+ {
50080
+ properties: {
50081
+ access_grant_key: { type: 'string' },
50082
+ },
50083
+ required: ['access_grant_key'],
50084
+ type: 'object',
50085
+ },
50086
+ ],
49958
50087
  },
49959
50088
  ],
49960
50089
  },