@seamapi/types 1.423.2 → 1.423.4

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.
@@ -22533,6 +22533,8 @@ export interface Routes {
22533
22533
  exclude?: boolean;
22534
22534
  };
22535
22535
  };
22536
+ /** Whether the portal is embedded in another application. */
22537
+ is_embedded?: boolean;
22536
22538
  } & {
22537
22539
  customer_data?: {
22538
22540
  /** Your unique identifier for the customer. */
@@ -22593,6 +22595,13 @@ export interface Routes {
22593
22595
  /** Your unique identifier for the listing. */
22594
22596
  listing_key: string;
22595
22597
  }> | undefined;
22598
+ /** List of property listings. */
22599
+ property_listings?: Array<{
22600
+ /** Your display name for this location resource. */
22601
+ name: string;
22602
+ /** Your unique identifier for the property listing. */
22603
+ property_listing_key: string;
22604
+ }> | undefined;
22596
22605
  /** List of guests. */
22597
22606
  guests?: Array<{
22598
22607
  /** Your display name for this user identity resource. */
@@ -22846,6 +22855,13 @@ export interface Routes {
22846
22855
  /** Your unique identifier for the listing. */
22847
22856
  listing_key: string;
22848
22857
  }> | undefined;
22858
+ /** List of property listings. */
22859
+ property_listings?: Array<{
22860
+ /** Your display name for this location resource. */
22861
+ name: string;
22862
+ /** Your unique identifier for the property listing. */
22863
+ property_listing_key: string;
22864
+ }> | undefined;
22849
22865
  /** List of guests. */
22850
22866
  guests?: Array<{
22851
22867
  /** Your display name for this user identity resource. */
@@ -27696,7 +27712,7 @@ export interface Routes {
27696
27712
  event_types?: Array<'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'access_method.reissued' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated'> | undefined;
27697
27713
  /** ID of the connected account for which you want to list events. */
27698
27714
  connected_account_id?: string | undefined;
27699
- /** IDs of the connected accounts for which you want to list events. */
27715
+ /** ID of the Connect Webview for which you want to list events. */
27700
27716
  connect_webview_id?: string | undefined;
27701
27717
  /** Numerical limit on the number of events to return. */
27702
27718
  limit?: number;
@@ -45798,6 +45814,7 @@ export interface Routes {
45798
45814
  exclude?: boolean | undefined;
45799
45815
  } | undefined;
45800
45816
  } | undefined;
45817
+ is_embedded?: boolean | undefined;
45801
45818
  /** Business vertical of the customer portal. */
45802
45819
  business_vertical?: ('short_term_rental' | 'hospitality' | 'multi_family' | 'gym_management' | 'property_tours') | undefined;
45803
45820
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.423.2",
3
+ "version": "1.423.4",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -11,6 +11,7 @@ import {
11
11
  facility_resource,
12
12
  listing_resource,
13
13
  neutral_resource,
14
+ property_listing_resource,
14
15
  property_resource,
15
16
  room_resource,
16
17
  unit_resource,
@@ -59,6 +60,10 @@ export const customer_data = z.object({
59
60
  .array(listing_resource)
60
61
  .optional()
61
62
  .describe('List of property listings.'),
63
+ property_listings: z
64
+ .array(property_listing_resource)
65
+ .optional()
66
+ .describe('List of property listings.'),
62
67
 
63
68
  // User identity resources
64
69
  guests: z.array(guest_resource).optional().describe('List of guests.'),
@@ -26,6 +26,10 @@ const base_features = z.object({
26
26
  export const portal_configuration = z
27
27
  .object({
28
28
  features: base_features.default({}),
29
+ is_embedded: z
30
+ .boolean()
31
+ .default(false)
32
+ .describe('Whether the portal is embedded in another application.'),
29
33
  })
30
34
  .default({
31
35
  features: {
@@ -33,6 +37,7 @@ export const portal_configuration = z
33
37
  organize: { exclude: false },
34
38
  manage_devices: { exclude: false },
35
39
  },
40
+ is_embedded: false,
36
41
  })
37
42
  .describe(`Configuration for a customer portal`)
38
43
 
@@ -40,6 +40,12 @@ export const listing_resource = base_location_resource.extend({
40
40
  listing_key: z.string().describe('Your unique identifier for the listing.'),
41
41
  })
42
42
 
43
+ export const property_listing_resource = base_location_resource.extend({
44
+ property_listing_key: z
45
+ .string()
46
+ .describe('Your unique identifier for the property listing.'),
47
+ })
48
+
43
49
  // Union of all location resource types
44
50
  export const location_resource = z.union([
45
51
  neutral_resource,
@@ -50,6 +56,7 @@ export const location_resource = z.union([
50
56
  facility_resource,
51
57
  building_resource,
52
58
  listing_resource,
59
+ property_listing_resource,
53
60
  ])
54
61
 
55
62
  // All location key aliases for use in references
@@ -62,6 +69,7 @@ export const location_key_aliases = z.union([
62
69
  z.object({ facility_key: z.string() }),
63
70
  z.object({ building_key: z.string() }),
64
71
  z.object({ listing_key: z.string() }),
72
+ z.object({ property_listing_key: z.string() }),
65
73
  ])
66
74
 
67
75
  // Export types
@@ -73,5 +81,6 @@ export type UnitResource = z.infer<typeof unit_resource>
73
81
  export type FacilityResource = z.infer<typeof facility_resource>
74
82
  export type BuildingResource = z.infer<typeof building_resource>
75
83
  export type ListingResource = z.infer<typeof listing_resource>
84
+ export type PropertyListingResource = z.infer<typeof property_listing_resource>
76
85
  export type LocationResource = z.infer<typeof location_resource>
77
86
  export type LocationKeyAliases = z.infer<typeof location_key_aliases>
@@ -35893,6 +35893,7 @@ export default {
35893
35893
  manage_devices: { exclude: false },
35894
35894
  organize: { exclude: false },
35895
35895
  },
35896
+ is_embedded: false,
35896
35897
  },
35897
35898
  description: 'Configuration for a customer portal',
35898
35899
  properties: {
@@ -35944,6 +35945,12 @@ export default {
35944
35945
  },
35945
35946
  type: 'object',
35946
35947
  },
35948
+ is_embedded: {
35949
+ default: false,
35950
+ description:
35951
+ 'Whether the portal is embedded in another application.',
35952
+ type: 'boolean',
35953
+ },
35947
35954
  },
35948
35955
  type: 'object',
35949
35956
  },
@@ -36293,6 +36300,26 @@ export default {
36293
36300
  },
36294
36301
  type: 'array',
36295
36302
  },
36303
+ property_listings: {
36304
+ description: 'List of property listings.',
36305
+ items: {
36306
+ properties: {
36307
+ name: {
36308
+ description:
36309
+ 'Your display name for this location resource.',
36310
+ type: 'string',
36311
+ },
36312
+ property_listing_key: {
36313
+ description:
36314
+ 'Your unique identifier for the property listing.',
36315
+ type: 'string',
36316
+ },
36317
+ },
36318
+ required: ['name', 'property_listing_key'],
36319
+ type: 'object',
36320
+ },
36321
+ type: 'array',
36322
+ },
36296
36323
  reservations: {
36297
36324
  description: 'List of reservations.',
36298
36325
  items: {
@@ -36971,6 +36998,26 @@ export default {
36971
36998
  },
36972
36999
  type: 'array',
36973
37000
  },
37001
+ property_listings: {
37002
+ description: 'List of property listings.',
37003
+ items: {
37004
+ properties: {
37005
+ name: {
37006
+ description:
37007
+ 'Your display name for this location resource.',
37008
+ type: 'string',
37009
+ },
37010
+ property_listing_key: {
37011
+ description:
37012
+ 'Your unique identifier for the property listing.',
37013
+ type: 'string',
37014
+ },
37015
+ },
37016
+ required: ['name', 'property_listing_key'],
37017
+ type: 'object',
37018
+ },
37019
+ type: 'array',
37020
+ },
36974
37021
  reservations: {
36975
37022
  description: 'List of reservations.',
36976
37023
  items: {
@@ -40111,7 +40158,7 @@ export default {
40111
40158
  name: 'connect_webview_id',
40112
40159
  schema: {
40113
40160
  description:
40114
- 'IDs of the connected accounts for which you want to list events.',
40161
+ 'ID of the Connect Webview for which you want to list events.',
40115
40162
  format: 'uuid',
40116
40163
  type: 'string',
40117
40164
  },
@@ -40231,7 +40278,7 @@ export default {
40231
40278
  },
40232
40279
  connect_webview_id: {
40233
40280
  description:
40234
- 'IDs of the connected accounts for which you want to list events.',
40281
+ 'ID of the Connect Webview for which you want to list events.',
40235
40282
  format: 'uuid',
40236
40283
  type: 'string',
40237
40284
  },
@@ -43890,6 +43937,7 @@ export default {
43890
43937
  },
43891
43938
  type: 'object',
43892
43939
  },
43940
+ is_embedded: { type: 'boolean' },
43893
43941
  },
43894
43942
  type: 'object',
43895
43943
  },
@@ -43972,6 +44020,7 @@ export default {
43972
44020
  },
43973
44021
  type: 'object',
43974
44022
  },
44023
+ is_embedded: { type: 'boolean' },
43975
44024
  },
43976
44025
  type: 'object',
43977
44026
  },
@@ -25630,6 +25630,8 @@ export interface Routes {
25630
25630
  exclude?: boolean
25631
25631
  }
25632
25632
  }
25633
+ /** Whether the portal is embedded in another application. */
25634
+ is_embedded?: boolean
25633
25635
  } & {
25634
25636
  customer_data?:
25635
25637
  | {
@@ -25707,6 +25709,15 @@ export interface Routes {
25707
25709
  listing_key: string
25708
25710
  }>
25709
25711
  | undefined
25712
+ /** List of property listings. */
25713
+ property_listings?:
25714
+ | Array<{
25715
+ /** Your display name for this location resource. */
25716
+ name: string
25717
+ /** Your unique identifier for the property listing. */
25718
+ property_listing_key: string
25719
+ }>
25720
+ | undefined
25710
25721
  /** List of guests. */
25711
25722
  guests?:
25712
25723
  | Array<{
@@ -25993,6 +26004,15 @@ export interface Routes {
25993
26004
  listing_key: string
25994
26005
  }>
25995
26006
  | undefined
26007
+ /** List of property listings. */
26008
+ property_listings?:
26009
+ | Array<{
26010
+ /** Your display name for this location resource. */
26011
+ name: string
26012
+ /** Your unique identifier for the property listing. */
26013
+ property_listing_key: string
26014
+ }>
26015
+ | undefined
25996
26016
  /** List of guests. */
25997
26017
  guests?:
25998
26018
  | Array<{
@@ -32179,7 +32199,7 @@ export interface Routes {
32179
32199
  | undefined
32180
32200
  /** ID of the connected account for which you want to list events. */
32181
32201
  connected_account_id?: string | undefined
32182
- /** IDs of the connected accounts for which you want to list events. */
32202
+ /** ID of the Connect Webview for which you want to list events. */
32183
32203
  connect_webview_id?: string | undefined
32184
32204
  /** Numerical limit on the number of events to return. */
32185
32205
  limit?: number
@@ -53308,6 +53328,7 @@ export interface Routes {
53308
53328
  | undefined
53309
53329
  }
53310
53330
  | undefined
53331
+ is_embedded?: boolean | undefined
53311
53332
  /** Business vertical of the customer portal. */
53312
53333
  business_vertical?:
53313
53334
  | (