@seamapi/types 1.406.7 → 1.406.9

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.
Files changed (33) hide show
  1. package/dist/connect.cjs +597 -79
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +695 -16
  4. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  5. package/lib/seam/connect/internal/schemas.js +1 -1
  6. package/lib/seam/connect/internal/schemas.js.map +1 -1
  7. package/lib/seam/connect/models/acs/acs-access-group.d.ts +6 -0
  8. package/lib/seam/connect/models/acs/acs-access-group.js +5 -1
  9. package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
  10. package/lib/seam/connect/models/acs/acs-encoder.d.ts +3 -0
  11. package/lib/seam/connect/models/acs/acs-encoder.js +4 -0
  12. package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
  13. package/lib/seam/connect/models/noise-sensors/noise-threshold.js +23 -7
  14. package/lib/seam/connect/models/noise-sensors/noise-threshold.js.map +1 -1
  15. package/lib/seam/connect/models/partner/magic-link.d.ts +5 -6
  16. package/lib/seam/connect/models/partner/magic-link.js +6 -2
  17. package/lib/seam/connect/models/partner/magic-link.js.map +1 -1
  18. package/lib/seam/connect/models/partner/resources.d.ts +16 -0
  19. package/lib/seam/connect/models/partner/resources.js +11 -0
  20. package/lib/seam/connect/models/partner/resources.js.map +1 -1
  21. package/lib/seam/connect/openapi.d.ts +521 -8
  22. package/lib/seam/connect/openapi.js +566 -61
  23. package/lib/seam/connect/openapi.js.map +1 -1
  24. package/lib/seam/connect/route-types.d.ts +165 -8
  25. package/package.json +1 -1
  26. package/src/lib/seam/connect/internal/schemas.ts +2 -0
  27. package/src/lib/seam/connect/models/acs/acs-access-group.ts +7 -1
  28. package/src/lib/seam/connect/models/acs/acs-encoder.ts +6 -0
  29. package/src/lib/seam/connect/models/noise-sensors/noise-threshold.ts +29 -7
  30. package/src/lib/seam/connect/models/partner/magic-link.ts +9 -2
  31. package/src/lib/seam/connect/models/partner/resources.ts +13 -0
  32. package/src/lib/seam/connect/openapi.ts +622 -61
  33. package/src/lib/seam/connect/route-types.ts +180 -8
@@ -4265,6 +4265,7 @@ export interface Routes {
4265
4265
  queryParams: {}
4266
4266
  jsonBody: {}
4267
4267
  commonParams: {
4268
+ customer_ids?: string[] | undefined
4268
4269
  /** ID of the device for which you want to list access codes. Specify either `device_id` or `access_code_ids`. */
4269
4270
  device_id?: string | undefined
4270
4271
  /** IDs of the access codes that you want to retrieve. Specify either `device_id` or `access_code_ids`. */
@@ -10147,6 +10148,8 @@ export interface Routes {
10147
10148
  acs_system_id: string
10148
10149
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the access group. */
10149
10150
  workspace_id: string
10151
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) that contains the access group. */
10152
+ connected_account_id: string
10150
10153
  /** Name of the access group. */
10151
10154
  name: string
10152
10155
  /**
@@ -10209,6 +10212,8 @@ export interface Routes {
10209
10212
  acs_system_id: string
10210
10213
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the access group. */
10211
10214
  workspace_id: string
10215
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) that contains the access group. */
10216
+ connected_account_id: string
10212
10217
  /** Name of the access group. */
10213
10218
  name: string
10214
10219
  /**
@@ -10614,6 +10619,8 @@ export interface Routes {
10614
10619
  acs_system_id: string
10615
10620
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the access group. */
10616
10621
  workspace_id: string
10622
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) that contains the access group. */
10623
+ connected_account_id: string
10617
10624
  /** Name of the access group. */
10618
10625
  name: string
10619
10626
  /**
@@ -10674,6 +10681,8 @@ export interface Routes {
10674
10681
  acs_system_id: string
10675
10682
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the access group. */
10676
10683
  workspace_id: string
10684
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) that contains the access group. */
10685
+ connected_account_id: string
10677
10686
  /** Name of the access group. */
10678
10687
  name: string
10679
10688
  /**
@@ -15031,6 +15040,8 @@ export interface Routes {
15031
15040
  acs_encoder_id: string
15032
15041
  /** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
15033
15042
  acs_system_id: string
15043
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) that contains the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
15044
+ connected_account_id: string
15034
15045
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
15035
15046
  workspace_id: string
15036
15047
  /** Errors associated with the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
@@ -15080,6 +15091,8 @@ export interface Routes {
15080
15091
  acs_encoder_id: string
15081
15092
  /** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
15082
15093
  acs_system_id: string
15094
+ /** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) that contains the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
15095
+ connected_account_id: string
15083
15096
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
15084
15097
  workspace_id: string
15085
15098
  /** Errors associated with the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
@@ -41143,13 +41156,13 @@ export interface Routes {
41143
41156
  connected_account_ids?: string[] | undefined
41144
41157
  /** ID of the Connect Webview for which you want to list devices. */
41145
41158
  connect_webview_id?: string | undefined
41146
- /** Device type by which to filter devices. */
41159
+ /** Device type of the noise sensors that you want to list. */
41147
41160
  device_type?: ('noiseaware_activity_zone' | 'minut_sensor') | undefined
41148
- /** Array of device types by which to filter devices. */
41161
+ /** Device types of the noise sensors that you want to list. */
41149
41162
  device_types?:
41150
41163
  | Array<'noiseaware_activity_zone' | 'minut_sensor'>
41151
41164
  | undefined
41152
- /** Manufacturer by which to filter devices. */
41165
+ /** Manufacturers of the noise sensors that you want to list. */
41153
41166
  manufacturer?: ('minut' | 'noiseaware') | undefined
41154
41167
  /** Array of device IDs for which you want to list devices. */
41155
41168
  device_ids?: string[] | undefined
@@ -44083,12 +44096,19 @@ export interface Routes {
44083
44096
  method: 'POST'
44084
44097
  queryParams: {}
44085
44098
  jsonBody: {
44099
+ /** ID of the device for which you want to create a noise threshold. */
44086
44100
  device_id: string
44101
+ /** */
44087
44102
  sync?: boolean
44103
+ /** Name of the new noise threshold. */
44088
44104
  name?: string | undefined
44105
+ /** Time at which the new noise threshold should become active daily. */
44089
44106
  starts_daily_at: string
44107
+ /** Time at which the new noise threshold should become inactive daily. */
44090
44108
  ends_daily_at: string
44109
+ /** Noise level in decibels for the new noise threshold. */
44091
44110
  noise_threshold_decibels?: number | undefined
44111
+ /** Noise level in Noiseaware Noise Risk Score (NRS) for the new noise threshold. This parameter is only relevant for [Noiseaware sensors](https://docs.seam.co/latest/device-and-system-integration-guides/noiseaware-sensors). */
44092
44112
  noise_threshold_nrs?: number | undefined
44093
44113
  }
44094
44114
  commonParams: {}
@@ -45386,14 +45406,21 @@ export interface Routes {
45386
45406
  message: string
45387
45407
  }
45388
45408
  }
45389
- /** */
45409
+ /** Represents a [noise threshold](https://docs.seam.co/latest/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://docs.seam.co/latest/capability-guides/noise-sensors). Thresholds represent the limits of noise tolerated at a property, which can be customized for each hour of the day. Each device has its own default thresholds, but you can use the Seam API to modify them. */
45390
45410
  noise_threshold: {
45411
+ /** Unique identifier for the noise threshold. */
45391
45412
  noise_threshold_id: string
45413
+ /** Unique identifier for the device that contains the noise threshold. */
45392
45414
  device_id: string
45415
+ /** Name of the noise threshold. */
45393
45416
  name: string
45417
+ /** Noise level in Noiseaware Noise Risk Score (NRS) for the noise threshold. This parameter is only relevant for [Noiseaware sensors](https://docs.seam.co/latest/device-and-system-integration-guides/noiseaware-sensors). */
45394
45418
  noise_threshold_nrs?: number | undefined
45419
+ /** Time at which the noise threshold should become active daily. */
45395
45420
  starts_daily_at: string
45421
+ /** Time at which the noise threshold should become inactive daily. */
45396
45422
  ends_daily_at: string
45423
+ /** Noise level in decibels for the noise threshold. */
45397
45424
  noise_threshold_decibels: number
45398
45425
  }
45399
45426
  }
@@ -45403,8 +45430,11 @@ export interface Routes {
45403
45430
  method: 'DELETE' | 'POST'
45404
45431
  queryParams: {}
45405
45432
  jsonBody: {
45433
+ /** ID of the noise threshold that you want to delete. */
45406
45434
  noise_threshold_id: string
45435
+ /** ID of the device that contains the noise threshold that you want to delete. */
45407
45436
  device_id: string
45437
+ /** */
45408
45438
  sync?: boolean
45409
45439
  }
45410
45440
  commonParams: {}
@@ -46710,18 +46740,26 @@ export interface Routes {
46710
46740
  queryParams: {}
46711
46741
  jsonBody: {}
46712
46742
  commonParams: {
46743
+ /** ID of the noise threshold that you want to get. */
46713
46744
  noise_threshold_id: string
46714
46745
  }
46715
46746
  formData: {}
46716
46747
  jsonResponse: {
46717
- /** */
46748
+ /** Represents a [noise threshold](https://docs.seam.co/latest/capability-guides/noise-sensors/configure-noise-threshold-settings) for a [noise sensor](https://docs.seam.co/latest/capability-guides/noise-sensors). Thresholds represent the limits of noise tolerated at a property, which can be customized for each hour of the day. Each device has its own default thresholds, but you can use the Seam API to modify them. */
46718
46749
  noise_threshold: {
46750
+ /** Unique identifier for the noise threshold. */
46719
46751
  noise_threshold_id: string
46752
+ /** Unique identifier for the device that contains the noise threshold. */
46720
46753
  device_id: string
46754
+ /** Name of the noise threshold. */
46721
46755
  name: string
46756
+ /** Noise level in Noiseaware Noise Risk Score (NRS) for the noise threshold. This parameter is only relevant for [Noiseaware sensors](https://docs.seam.co/latest/device-and-system-integration-guides/noiseaware-sensors). */
46722
46757
  noise_threshold_nrs?: number | undefined
46758
+ /** Time at which the noise threshold should become active daily. */
46723
46759
  starts_daily_at: string
46760
+ /** Time at which the noise threshold should become inactive daily. */
46724
46761
  ends_daily_at: string
46762
+ /** Noise level in decibels for the noise threshold. */
46725
46763
  noise_threshold_decibels: number
46726
46764
  }
46727
46765
  }
@@ -46732,18 +46770,27 @@ export interface Routes {
46732
46770
  queryParams: {}
46733
46771
  jsonBody: {}
46734
46772
  commonParams: {
46773
+ /** ID of the device for which you want to list noise thresholds. */
46735
46774
  device_id: string
46775
+ /** Enables you to limit the returned noise thresholds by whether they are programmed on the noise sensor. To list only noise thresholds that are programmed on the noise sensor, set this parameter to `true`. To list only noise thresholds that are not programmed on the noise sensor, se this parameter to `false`. */
46736
46776
  is_programmed?: boolean | undefined
46737
46777
  }
46738
46778
  formData: {}
46739
46779
  jsonResponse: {
46740
46780
  noise_thresholds: Array<{
46781
+ /** Unique identifier for the noise threshold. */
46741
46782
  noise_threshold_id: string
46783
+ /** Unique identifier for the device that contains the noise threshold. */
46742
46784
  device_id: string
46785
+ /** Name of the noise threshold. */
46743
46786
  name: string
46787
+ /** Noise level in Noiseaware Noise Risk Score (NRS) for the noise threshold. This parameter is only relevant for [Noiseaware sensors](https://docs.seam.co/latest/device-and-system-integration-guides/noiseaware-sensors). */
46744
46788
  noise_threshold_nrs?: number | undefined
46789
+ /** Time at which the noise threshold should become active daily. */
46745
46790
  starts_daily_at: string
46791
+ /** Time at which the noise threshold should become inactive daily. */
46746
46792
  ends_daily_at: string
46793
+ /** Noise level in decibels for the noise threshold. */
46747
46794
  noise_threshold_decibels: number
46748
46795
  }>
46749
46796
  }
@@ -46753,13 +46800,21 @@ export interface Routes {
46753
46800
  method: 'PATCH' | 'POST' | 'PUT'
46754
46801
  queryParams: {}
46755
46802
  jsonBody: {
46803
+ /** ID of the noise threshold that you want to update. */
46756
46804
  noise_threshold_id: string
46805
+ /** ID of the device that contains the noise threshold that you want to update. */
46757
46806
  device_id: string
46807
+ /** */
46758
46808
  sync?: boolean
46809
+ /** Name of the noise threshold that you want to update. */
46759
46810
  name?: string | undefined
46811
+ /** Time at which the noise threshold should become active daily. */
46760
46812
  starts_daily_at?: string | undefined
46813
+ /** Time at which the noise threshold should become inactive daily. */
46761
46814
  ends_daily_at?: string | undefined
46815
+ /** Noise level in decibels for the noise threshold. */
46762
46816
  noise_threshold_decibels?: number | undefined
46817
+ /** Noise level in Noiseaware Noise Risk Score (NRS) for the noise threshold. This parameter is only relevant for [Noiseaware sensors](https://docs.seam.co/latest/device-and-system-integration-guides/noiseaware-sensors). */
46763
46818
  noise_threshold_nrs?: number | undefined
46764
46819
  }
46765
46820
  commonParams: {}
@@ -48064,6 +48119,7 @@ export interface Routes {
48064
48119
  method: 'POST'
48065
48120
  queryParams: {}
48066
48121
  jsonBody: {
48122
+ /** ID of the device for which you want to simulate the triggering of a noise threshold. */
48067
48123
  device_id: string
48068
48124
  }
48069
48125
  commonParams: {}
@@ -49009,6 +49065,32 @@ export interface Routes {
49009
49065
  }
49010
49066
  }
49011
49067
  }
49068
+ '/seam/partner/v1/building_blocks/spaces/auto_map': {
49069
+ route: '/seam/partner/v1/building_blocks/spaces/auto_map'
49070
+ method: 'GET' | 'POST'
49071
+ queryParams: {}
49072
+ jsonBody: {}
49073
+ commonParams: {
49074
+ collection_key: string
49075
+ }
49076
+ formData: {}
49077
+ jsonResponse: {
49078
+ spaces: Array<{
49079
+ name: string
49080
+ partner_resource_key: string
49081
+ devices: Array<{
49082
+ device_id: string
49083
+ device_type: 'lock' | 'thermostat' | 'sensor'
49084
+ name: string
49085
+ }>
49086
+ acs_entrances: Array<{
49087
+ acs_entrance_id: string
49088
+ name: string
49089
+ }>
49090
+ needs_review?: boolean | undefined
49091
+ }>
49092
+ }
49093
+ }
49012
49094
  '/seam/partner/v1/resources/list': {
49013
49095
  route: '/seam/partner/v1/resources/list'
49014
49096
  method: 'GET' | 'POST'
@@ -66159,22 +66241,112 @@ export interface Routes {
66159
66241
  }
66160
66242
  }
66161
66243
  }
66244
+ '/unstable_partner/building_blocks/connect_accounts': {
66245
+ route: '/unstable_partner/building_blocks/connect_accounts'
66246
+ method: 'POST'
66247
+ queryParams: {}
66248
+ jsonBody: {}
66249
+ commonParams: {
66250
+ customer_key: string
66251
+ }
66252
+ formData: {}
66253
+ jsonResponse: {
66254
+ /** */
66255
+ magic_link: {
66256
+ url: string
66257
+ building_block_type:
66258
+ | 'connect_accounts'
66259
+ | 'manage_devices'
66260
+ | 'organize_spaces'
66261
+ customer_key: string
66262
+ expires_at: string
66263
+ workspace_id: string
66264
+ created_at: string
66265
+ }
66266
+ }
66267
+ }
66162
66268
  '/unstable_partner/building_blocks/generate_magic_link': {
66163
66269
  route: '/unstable_partner/building_blocks/generate_magic_link'
66164
66270
  method: 'POST' | 'GET'
66165
66271
  queryParams: {}
66166
66272
  jsonBody: {}
66273
+ commonParams:
66274
+ | {
66275
+ building_block_type: 'connect_accounts'
66276
+ customer_key: string
66277
+ }
66278
+ | {
66279
+ building_block_type: 'manage_devices'
66280
+ customer_key: string
66281
+ }
66282
+ | {
66283
+ building_block_type: 'organize_spaces'
66284
+ customer_key: string
66285
+ collection_key: string
66286
+ }
66287
+ formData: {}
66288
+ jsonResponse: {
66289
+ /** */
66290
+ magic_link: {
66291
+ url: string
66292
+ building_block_type:
66293
+ | 'connect_accounts'
66294
+ | 'manage_devices'
66295
+ | 'organize_spaces'
66296
+ customer_key: string
66297
+ expires_at: string
66298
+ workspace_id: string
66299
+ created_at: string
66300
+ }
66301
+ }
66302
+ }
66303
+ '/unstable_partner/building_blocks/manage_devices': {
66304
+ route: '/unstable_partner/building_blocks/manage_devices'
66305
+ method: 'POST'
66306
+ queryParams: {}
66307
+ jsonBody: {}
66308
+ commonParams: {
66309
+ customer_key: string
66310
+ }
66311
+ formData: {}
66312
+ jsonResponse: {
66313
+ /** */
66314
+ magic_link: {
66315
+ url: string
66316
+ building_block_type:
66317
+ | 'connect_accounts'
66318
+ | 'manage_devices'
66319
+ | 'organize_spaces'
66320
+ customer_key: string
66321
+ expires_at: string
66322
+ workspace_id: string
66323
+ created_at: string
66324
+ }
66325
+ }
66326
+ }
66327
+ '/unstable_partner/building_blocks/organize_spaces': {
66328
+ route: '/unstable_partner/building_blocks/organize_spaces'
66329
+ method: 'POST'
66330
+ queryParams: {}
66331
+ jsonBody: {}
66167
66332
  commonParams: {
66168
- building_block_type: 'connect_account' | 'manage_devices'
66169
66333
  customer_key: string
66334
+ partner_resources: Array<{
66335
+ partner_resource_key: string
66336
+ name: string
66337
+ description?: string | undefined
66338
+ custom_metadata?: Record<string, string> | undefined
66339
+ }>
66170
66340
  }
66171
66341
  formData: {}
66172
66342
  jsonResponse: {
66173
66343
  /** */
66174
66344
  magic_link: {
66175
66345
  url: string
66176
- building_block_type: 'connect_account' | 'manage_devices'
66177
- customer_id: string
66346
+ building_block_type:
66347
+ | 'connect_accounts'
66348
+ | 'manage_devices'
66349
+ | 'organize_spaces'
66178
66350
  customer_key: string
66179
66351
  expires_at: string
66180
66352
  workspace_id: string