@seamapi/types 1.587.0 → 1.589.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.
@@ -31186,12 +31186,14 @@ export type Routes = {
31186
31186
  connected_account_id: string;
31187
31187
  /** Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices). */
31188
31188
  automatically_manage_new_devices?: boolean | undefined;
31189
- /** Custom metadata that you want to associate with the connected account. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter connected accounts by the desired metadata](https://docs.seam.co/latest/core-concepts/connected-accounts/filtering-connected-accounts-by-custom-metadata). */
31189
+ /** Custom metadata that you want to associate with the connected account. Entirely replaces the existing custom metadata object. If a new Connect Webview contains custom metadata and is used to reconnect a connected account, the custom metadata from the Connect Webview will entirely replace the entire custom metadata object on the connected account. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter connected accounts by the desired metadata](https://docs.seam.co/latest/core-concepts/connected-accounts/filtering-connected-accounts-by-custom-metadata). */
31190
31190
  custom_metadata?: {
31191
31191
  [x: string]: string | boolean | null;
31192
31192
  } | undefined;
31193
31193
  /** List of accepted device capabilities that restrict the types of devices that can be connected through this connected account. Valid values are `lock`, `thermostat`, `noise_sensor`, and `access_control`. */
31194
31194
  accepted_capabilities?: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control')[] | undefined;
31195
+ /** The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. */
31196
+ customer_key?: string | undefined;
31195
31197
  };
31196
31198
  commonParams: {};
31197
31199
  formData: {};
@@ -31381,6 +31383,8 @@ export type Routes = {
31381
31383
  listing_key: string;
31382
31384
  } | {
31383
31385
  property_listing_key: string;
31386
+ } | {
31387
+ site_key: string;
31384
31388
  }) | ({
31385
31389
  reservation_key: string;
31386
31390
  } | {
@@ -31400,6 +31404,13 @@ export type Routes = {
31400
31404
  /** Your unique identifier for the space. */
31401
31405
  space_key: string;
31402
31406
  }[] | undefined;
31407
+ /** List of general sites or areas. */
31408
+ sites?: {
31409
+ /** Your display name for this location resource. */
31410
+ name: string;
31411
+ /** Your unique identifier for the site. */
31412
+ site_key: string;
31413
+ }[] | undefined;
31403
31414
  /** List of short-term rental properties. */
31404
31415
  properties?: {
31405
31416
  /** Your display name for this location resource. */
@@ -31413,6 +31424,8 @@ export type Routes = {
31413
31424
  name: string;
31414
31425
  /** Your unique identifier for the room. */
31415
31426
  room_key: string;
31427
+ /** Your unique identifier for the site. */
31428
+ parent_site_key?: string | undefined;
31416
31429
  }[] | undefined;
31417
31430
  /** List of shared common areas. */
31418
31431
  common_areas?: {
@@ -31420,6 +31433,8 @@ export type Routes = {
31420
31433
  name: string;
31421
31434
  /** Your unique identifier for the common area. */
31422
31435
  common_area_key: string;
31436
+ /** Your unique identifier for the site. */
31437
+ parent_site_key?: string | undefined;
31423
31438
  }[] | undefined;
31424
31439
  /** List of multi-family residential units. */
31425
31440
  units?: {
@@ -31427,6 +31442,8 @@ export type Routes = {
31427
31442
  name: string;
31428
31443
  /** Your unique identifier for the unit. */
31429
31444
  unit_key: string;
31445
+ /** Your unique identifier for the site. */
31446
+ parent_site_key?: string | undefined;
31430
31447
  }[] | undefined;
31431
31448
  /** List of gym or fitness facilities. */
31432
31449
  facilities?: {
@@ -31712,6 +31729,13 @@ export type Routes = {
31712
31729
  /** Your unique identifier for the space. */
31713
31730
  space_key: string;
31714
31731
  }[] | undefined;
31732
+ /** List of general sites or areas. */
31733
+ sites?: {
31734
+ /** Your display name for this location resource. */
31735
+ name: string;
31736
+ /** Your unique identifier for the site. */
31737
+ site_key: string;
31738
+ }[] | undefined;
31715
31739
  /** List of short-term rental properties. */
31716
31740
  properties?: {
31717
31741
  /** Your display name for this location resource. */
@@ -31725,6 +31749,8 @@ export type Routes = {
31725
31749
  name: string;
31726
31750
  /** Your unique identifier for the room. */
31727
31751
  room_key: string;
31752
+ /** Your unique identifier for the site. */
31753
+ parent_site_key?: string | undefined;
31728
31754
  }[] | undefined;
31729
31755
  /** List of shared common areas. */
31730
31756
  common_areas?: {
@@ -31732,6 +31758,8 @@ export type Routes = {
31732
31758
  name: string;
31733
31759
  /** Your unique identifier for the common area. */
31734
31760
  common_area_key: string;
31761
+ /** Your unique identifier for the site. */
31762
+ parent_site_key?: string | undefined;
31735
31763
  }[] | undefined;
31736
31764
  /** List of multi-family residential units. */
31737
31765
  units?: {
@@ -31739,6 +31767,8 @@ export type Routes = {
31739
31767
  name: string;
31740
31768
  /** Your unique identifier for the unit. */
31741
31769
  unit_key: string;
31770
+ /** Your unique identifier for the site. */
31771
+ parent_site_key?: string | undefined;
31742
31772
  }[] | undefined;
31743
31773
  /** List of gym or fitness facilities. */
31744
31774
  facilities?: {
@@ -58436,6 +58466,8 @@ export type Routes = {
58436
58466
  listing_key: string;
58437
58467
  } | {
58438
58468
  property_listing_key: string;
58469
+ } | {
58470
+ site_key: string;
58439
58471
  }) | ({
58440
58472
  reservation_key: string;
58441
58473
  } | {
@@ -59151,6 +59183,7 @@ export type Routes = {
59151
59183
  spaces: {
59152
59184
  name: string;
59153
59185
  partner_resource_key: string;
59186
+ parent_partner_resource_key?: string | undefined;
59154
59187
  devices: {
59155
59188
  device_id: string;
59156
59189
  device_type: 'lock' | 'thermostat' | 'sensor';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.587.0",
3
+ "version": "1.589.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -14,6 +14,7 @@ import {
14
14
  property_listing_resource,
15
15
  property_resource,
16
16
  room_resource,
17
+ site_resource,
17
18
  unit_resource,
18
19
  } from './location-resources.js'
19
20
  import {
@@ -32,6 +33,10 @@ export const customer_data = z.object({
32
33
  .array(neutral_resource)
33
34
  .optional()
34
35
  .describe('List of general spaces or areas.'),
36
+ sites: z
37
+ .array(site_resource)
38
+ .optional()
39
+ .describe('List of general sites or areas.'),
35
40
  properties: z
36
41
  .array(property_resource)
37
42
  .optional()
@@ -16,16 +16,28 @@ export const property_resource = base_location_resource.extend({
16
16
 
17
17
  export const room_resource = base_location_resource.extend({
18
18
  room_key: z.string().describe('Your unique identifier for the room.'),
19
+ parent_site_key: z
20
+ .string()
21
+ .optional()
22
+ .describe('Your unique identifier for the site.'),
19
23
  })
20
24
 
21
25
  export const common_area_resource = base_location_resource.extend({
22
26
  common_area_key: z
23
27
  .string()
24
28
  .describe('Your unique identifier for the common area.'),
29
+ parent_site_key: z
30
+ .string()
31
+ .optional()
32
+ .describe('Your unique identifier for the site.'),
25
33
  })
26
34
 
27
35
  export const unit_resource = base_location_resource.extend({
28
36
  unit_key: z.string().describe('Your unique identifier for the unit.'),
37
+ parent_site_key: z
38
+ .string()
39
+ .optional()
40
+ .describe('Your unique identifier for the site.'),
29
41
  })
30
42
 
31
43
  export const facility_resource = base_location_resource.extend({
@@ -46,6 +58,10 @@ export const property_listing_resource = base_location_resource.extend({
46
58
  .describe('Your unique identifier for the property listing.'),
47
59
  })
48
60
 
61
+ export const site_resource = base_location_resource.extend({
62
+ site_key: z.string().describe('Your unique identifier for the site.'),
63
+ })
64
+
49
65
  // Union of all location resource types
50
66
  export const location_resource = z.union([
51
67
  neutral_resource,
@@ -57,6 +73,7 @@ export const location_resource = z.union([
57
73
  building_resource,
58
74
  listing_resource,
59
75
  property_listing_resource,
76
+ site_resource,
60
77
  ])
61
78
 
62
79
  // All location key aliases for use in references
@@ -70,6 +87,7 @@ export const location_key_aliases = z.union([
70
87
  z.object({ building_key: z.string() }),
71
88
  z.object({ listing_key: z.string() }),
72
89
  z.object({ property_listing_key: z.string() }),
90
+ z.object({ site_key: z.string() }),
73
91
  ])
74
92
 
75
93
  // Export types
@@ -84,3 +102,4 @@ export type ListingResource = z.infer<typeof listing_resource>
84
102
  export type PropertyListingResource = z.infer<typeof property_listing_resource>
85
103
  export type LocationResource = z.infer<typeof location_resource>
86
104
  export type LocationKeyAliases = z.infer<typeof location_key_aliases>
105
+ export type SiteResource = z.infer<typeof site_resource>
@@ -40267,9 +40267,15 @@ export default {
40267
40267
  ],
40268
40268
  },
40269
40269
  description:
40270
- 'Custom metadata that you want to associate with the connected account. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter connected accounts by the desired metadata](https://docs.seam.co/latest/core-concepts/connected-accounts/filtering-connected-accounts-by-custom-metadata).',
40270
+ 'Custom metadata that you want to associate with the connected account. Entirely replaces the existing custom metadata object. If a new Connect Webview contains custom metadata and is used to reconnect a connected account, the custom metadata from the Connect Webview will entirely replace the entire custom metadata object on the connected account. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter connected accounts by the desired metadata](https://docs.seam.co/latest/core-concepts/connected-accounts/filtering-connected-accounts-by-custom-metadata).',
40271
40271
  type: 'object',
40272
40272
  },
40273
+ customer_key: {
40274
+ description:
40275
+ 'The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. ',
40276
+ minLength: 1,
40277
+ type: 'string',
40278
+ },
40273
40279
  },
40274
40280
  required: ['connected_account_id'],
40275
40281
  type: 'object',
@@ -40494,6 +40500,13 @@ export default {
40494
40500
  required: ['property_listing_key'],
40495
40501
  type: 'object',
40496
40502
  },
40503
+ {
40504
+ properties: {
40505
+ site_key: { type: 'string' },
40506
+ },
40507
+ required: ['site_key'],
40508
+ type: 'object',
40509
+ },
40497
40510
  ],
40498
40511
  },
40499
40512
  {
@@ -40783,6 +40796,11 @@ export default {
40783
40796
  'Your display name for this location resource.',
40784
40797
  type: 'string',
40785
40798
  },
40799
+ parent_site_key: {
40800
+ description:
40801
+ 'Your unique identifier for the site.',
40802
+ type: 'string',
40803
+ },
40786
40804
  },
40787
40805
  required: ['name', 'common_area_key'],
40788
40806
  type: 'object',
@@ -41052,6 +41070,11 @@ export default {
41052
41070
  'Your display name for this location resource.',
41053
41071
  type: 'string',
41054
41072
  },
41073
+ parent_site_key: {
41074
+ description:
41075
+ 'Your unique identifier for the site.',
41076
+ type: 'string',
41077
+ },
41055
41078
  room_key: {
41056
41079
  description:
41057
41080
  'Your unique identifier for the room.',
@@ -41063,6 +41086,26 @@ export default {
41063
41086
  },
41064
41087
  type: 'array',
41065
41088
  },
41089
+ sites: {
41090
+ description: 'List of general sites or areas.',
41091
+ items: {
41092
+ properties: {
41093
+ name: {
41094
+ description:
41095
+ 'Your display name for this location resource.',
41096
+ type: 'string',
41097
+ },
41098
+ site_key: {
41099
+ description:
41100
+ 'Your unique identifier for the site.',
41101
+ type: 'string',
41102
+ },
41103
+ },
41104
+ required: ['name', 'site_key'],
41105
+ type: 'object',
41106
+ },
41107
+ type: 'array',
41108
+ },
41066
41109
  spaces: {
41067
41110
  description: 'List of general spaces or areas.',
41068
41111
  items: {
@@ -41123,6 +41166,11 @@ export default {
41123
41166
  'Your display name for this location resource.',
41124
41167
  type: 'string',
41125
41168
  },
41169
+ parent_site_key: {
41170
+ description:
41171
+ 'Your unique identifier for the site.',
41172
+ type: 'string',
41173
+ },
41126
41174
  unit_key: {
41127
41175
  description:
41128
41176
  'Your unique identifier for the unit.',
@@ -41831,6 +41879,10 @@ export default {
41831
41879
  'Your display name for this location resource.',
41832
41880
  type: 'string',
41833
41881
  },
41882
+ parent_site_key: {
41883
+ description: 'Your unique identifier for the site.',
41884
+ type: 'string',
41885
+ },
41834
41886
  },
41835
41887
  required: ['name', 'common_area_key'],
41836
41888
  type: 'object',
@@ -42097,6 +42149,10 @@ export default {
42097
42149
  'Your display name for this location resource.',
42098
42150
  type: 'string',
42099
42151
  },
42152
+ parent_site_key: {
42153
+ description: 'Your unique identifier for the site.',
42154
+ type: 'string',
42155
+ },
42100
42156
  room_key: {
42101
42157
  description: 'Your unique identifier for the room.',
42102
42158
  type: 'string',
@@ -42107,6 +42163,25 @@ export default {
42107
42163
  },
42108
42164
  type: 'array',
42109
42165
  },
42166
+ sites: {
42167
+ description: 'List of general sites or areas.',
42168
+ items: {
42169
+ properties: {
42170
+ name: {
42171
+ description:
42172
+ 'Your display name for this location resource.',
42173
+ type: 'string',
42174
+ },
42175
+ site_key: {
42176
+ description: 'Your unique identifier for the site.',
42177
+ type: 'string',
42178
+ },
42179
+ },
42180
+ required: ['name', 'site_key'],
42181
+ type: 'object',
42182
+ },
42183
+ type: 'array',
42184
+ },
42110
42185
  spaces: {
42111
42186
  description: 'List of general spaces or areas.',
42112
42187
  items: {
@@ -42164,6 +42239,10 @@ export default {
42164
42239
  'Your display name for this location resource.',
42165
42240
  type: 'string',
42166
42241
  },
42242
+ parent_site_key: {
42243
+ description: 'Your unique identifier for the site.',
42244
+ type: 'string',
42245
+ },
42167
42246
  unit_key: {
42168
42247
  description: 'Your unique identifier for the unit.',
42169
42248
  type: 'string',
@@ -51641,6 +51720,13 @@ export default {
51641
51720
  required: ['property_listing_key'],
51642
51721
  type: 'object',
51643
51722
  },
51723
+ {
51724
+ properties: {
51725
+ site_key: { type: 'string' },
51726
+ },
51727
+ required: ['site_key'],
51728
+ type: 'object',
51729
+ },
51644
51730
  ],
51645
51731
  },
51646
51732
  {
@@ -51846,6 +51932,13 @@ export default {
51846
51932
  required: ['property_listing_key'],
51847
51933
  type: 'object',
51848
51934
  },
51935
+ {
51936
+ properties: {
51937
+ site_key: { type: 'string' },
51938
+ },
51939
+ required: ['site_key'],
51940
+ type: 'object',
51941
+ },
51849
51942
  ],
51850
51943
  },
51851
51944
  {
@@ -53139,6 +53232,7 @@ export default {
53139
53232
  is_draft: { type: 'boolean' },
53140
53233
  name: { type: 'string' },
53141
53234
  needs_review: { type: 'boolean' },
53235
+ parent_partner_resource_key: { type: 'string' },
53142
53236
  partner_resource_key: { type: 'string' },
53143
53237
  },
53144
53238
  required: [
@@ -53239,6 +53333,7 @@ export default {
53239
53333
  is_draft: { type: 'boolean' },
53240
53334
  name: { type: 'string' },
53241
53335
  needs_review: { type: 'boolean' },
53336
+ parent_partner_resource_key: { type: 'string' },
53242
53337
  partner_resource_key: { type: 'string' },
53243
53338
  },
53244
53339
  required: [
@@ -36243,7 +36243,7 @@ export type Routes = {
36243
36243
  connected_account_id: string
36244
36244
  /** Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices). */
36245
36245
  automatically_manage_new_devices?: boolean | undefined
36246
- /** Custom metadata that you want to associate with the connected account. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter connected accounts by the desired metadata](https://docs.seam.co/latest/core-concepts/connected-accounts/filtering-connected-accounts-by-custom-metadata). */
36246
+ /** Custom metadata that you want to associate with the connected account. Entirely replaces the existing custom metadata object. If a new Connect Webview contains custom metadata and is used to reconnect a connected account, the custom metadata from the Connect Webview will entirely replace the entire custom metadata object on the connected account. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter connected accounts by the desired metadata](https://docs.seam.co/latest/core-concepts/connected-accounts/filtering-connected-accounts-by-custom-metadata). */
36247
36247
  custom_metadata?:
36248
36248
  | {
36249
36249
  [x: string]: string | boolean | null
@@ -36253,6 +36253,8 @@ export type Routes = {
36253
36253
  accepted_capabilities?:
36254
36254
  | ('lock' | 'thermostat' | 'noise_sensor' | 'access_control')[]
36255
36255
  | undefined
36256
+ /** The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. */
36257
+ customer_key?: string | undefined
36256
36258
  }
36257
36259
  commonParams: {}
36258
36260
  formData: {}
@@ -36471,6 +36473,9 @@ export type Routes = {
36471
36473
  | {
36472
36474
  property_listing_key: string
36473
36475
  }
36476
+ | {
36477
+ site_key: string
36478
+ }
36474
36479
  )
36475
36480
  | (
36476
36481
  | {
@@ -36501,6 +36506,15 @@ export type Routes = {
36501
36506
  space_key: string
36502
36507
  }[]
36503
36508
  | undefined
36509
+ /** List of general sites or areas. */
36510
+ sites?:
36511
+ | {
36512
+ /** Your display name for this location resource. */
36513
+ name: string
36514
+ /** Your unique identifier for the site. */
36515
+ site_key: string
36516
+ }[]
36517
+ | undefined
36504
36518
  /** List of short-term rental properties. */
36505
36519
  properties?:
36506
36520
  | {
@@ -36517,6 +36531,8 @@ export type Routes = {
36517
36531
  name: string
36518
36532
  /** Your unique identifier for the room. */
36519
36533
  room_key: string
36534
+ /** Your unique identifier for the site. */
36535
+ parent_site_key?: string | undefined
36520
36536
  }[]
36521
36537
  | undefined
36522
36538
  /** List of shared common areas. */
@@ -36526,6 +36542,8 @@ export type Routes = {
36526
36542
  name: string
36527
36543
  /** Your unique identifier for the common area. */
36528
36544
  common_area_key: string
36545
+ /** Your unique identifier for the site. */
36546
+ parent_site_key?: string | undefined
36529
36547
  }[]
36530
36548
  | undefined
36531
36549
  /** List of multi-family residential units. */
@@ -36535,6 +36553,8 @@ export type Routes = {
36535
36553
  name: string
36536
36554
  /** Your unique identifier for the unit. */
36537
36555
  unit_key: string
36556
+ /** Your unique identifier for the site. */
36557
+ parent_site_key?: string | undefined
36538
36558
  }[]
36539
36559
  | undefined
36540
36560
  /** List of gym or fitness facilities. */
@@ -36848,6 +36868,15 @@ export type Routes = {
36848
36868
  space_key: string
36849
36869
  }[]
36850
36870
  | undefined
36871
+ /** List of general sites or areas. */
36872
+ sites?:
36873
+ | {
36874
+ /** Your display name for this location resource. */
36875
+ name: string
36876
+ /** Your unique identifier for the site. */
36877
+ site_key: string
36878
+ }[]
36879
+ | undefined
36851
36880
  /** List of short-term rental properties. */
36852
36881
  properties?:
36853
36882
  | {
@@ -36864,6 +36893,8 @@ export type Routes = {
36864
36893
  name: string
36865
36894
  /** Your unique identifier for the room. */
36866
36895
  room_key: string
36896
+ /** Your unique identifier for the site. */
36897
+ parent_site_key?: string | undefined
36867
36898
  }[]
36868
36899
  | undefined
36869
36900
  /** List of shared common areas. */
@@ -36873,6 +36904,8 @@ export type Routes = {
36873
36904
  name: string
36874
36905
  /** Your unique identifier for the common area. */
36875
36906
  common_area_key: string
36907
+ /** Your unique identifier for the site. */
36908
+ parent_site_key?: string | undefined
36876
36909
  }[]
36877
36910
  | undefined
36878
36911
  /** List of multi-family residential units. */
@@ -36882,6 +36915,8 @@ export type Routes = {
36882
36915
  name: string
36883
36916
  /** Your unique identifier for the unit. */
36884
36917
  unit_key: string
36918
+ /** Your unique identifier for the site. */
36919
+ parent_site_key?: string | undefined
36885
36920
  }[]
36886
36921
  | undefined
36887
36922
  /** List of gym or fitness facilities. */
@@ -69647,6 +69682,9 @@ export type Routes = {
69647
69682
  | {
69648
69683
  property_listing_key: string
69649
69684
  }
69685
+ | {
69686
+ site_key: string
69687
+ }
69650
69688
  )
69651
69689
  | (
69652
69690
  | {
@@ -70485,6 +70523,7 @@ export type Routes = {
70485
70523
  spaces: {
70486
70524
  name: string
70487
70525
  partner_resource_key: string
70526
+ parent_partner_resource_key?: string | undefined
70488
70527
  devices: {
70489
70528
  device_id: string
70490
70529
  device_type: 'lock' | 'thermostat' | 'sensor'