@seamapi/types 1.345.1 → 1.345.2

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.
@@ -32222,23 +32222,31 @@ export interface Routes {
32222
32222
  formData: {}
32223
32223
  jsonResponse: {
32224
32224
  phones: Array<{
32225
- /** Unique identifier for the device. */
32225
+ /** ID of the `phone`. */
32226
32226
  device_id: string
32227
- /** Type of phone. */
32228
- device_type: 'android_phone' | 'ios_phone'
32229
- /** Optional nickname to describe the device, settable through Seam */
32227
+ /** Optional nickname to describe the phone, settable through Seam. */
32230
32228
  nickname?: string | undefined
32231
- /** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
32229
+ /** Display name of the phone. Defaults to `nickname` (if it is set) or `properties.appearance.name` otherwise. Enables administrators and users to identify the phone easily, especially when there are numerous phones. */
32232
32230
  display_name: string
32233
- /** Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */
32234
- capabilities_supported: Array<
32235
- | 'access_code'
32236
- | 'lock'
32237
- | 'noise_detection'
32238
- | 'thermostat'
32239
- | 'battery'
32240
- | 'phone'
32241
- >
32231
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `phone`. */
32232
+ workspace_id: string
32233
+ /** Date and time at which the `phone` was created. */
32234
+ created_at: string
32235
+ /** Optional [custom metadata](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device) for the phone. */
32236
+ custom_metadata: Record<string, string | boolean>
32237
+ /** Errors associated with the `phone`. */
32238
+ errors: Array<{
32239
+ error_code: string
32240
+ message: string
32241
+ }>
32242
+ /** Warnings associated with the `phone`. */
32243
+ warnings: Array<{
32244
+ warning_code: string
32245
+ message: string
32246
+ }>
32247
+ /** Type of phone. */
32248
+ device_type: 'ios_phone' | 'android_phone'
32249
+ /** Properties of the phone. */
32242
32250
  properties: {
32243
32251
  /** ASSA ABLOY Credential Service metadata for the phone. */
32244
32252
  assa_abloy_credential_service_metadata?:
@@ -32262,201 +32270,6 @@ export interface Routes {
32262
32270
  }
32263
32271
  | undefined
32264
32272
  }
32265
- /** Location information for the device. */
32266
- location: {
32267
- /** Name of the device location. */
32268
- location_name?: string | undefined
32269
- /** Time zone of the device location. */
32270
- timezone?: string | undefined
32271
- } | null
32272
- /** Unique identifier for the Seam workspace associated with the device. */
32273
- workspace_id: string
32274
- /** Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
32275
- errors: Array<
32276
- | {
32277
- message: string
32278
- is_device_error: true
32279
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32280
- error_code: 'device_offline'
32281
- }
32282
- | {
32283
- message: string
32284
- is_device_error: true
32285
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32286
- error_code: 'device_removed'
32287
- }
32288
- | {
32289
- message: string
32290
- is_device_error: true
32291
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32292
- error_code: 'hub_disconnected'
32293
- }
32294
- | {
32295
- message: string
32296
- is_device_error: true
32297
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32298
- error_code: 'device_disconnected'
32299
- }
32300
- | {
32301
- message: string
32302
- is_device_error: true
32303
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32304
- error_code: 'empty_backup_access_code_pool'
32305
- }
32306
- | {
32307
- message: string
32308
- is_device_error: true
32309
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32310
- error_code: 'august_lock_not_authorized'
32311
- }
32312
- | {
32313
- message: string
32314
- is_device_error: true
32315
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32316
- error_code: 'august_lock_missing_bridge'
32317
- }
32318
- | {
32319
- message: string
32320
- is_device_error: true
32321
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32322
- error_code: 'salto_site_user_limit_reached'
32323
- }
32324
- | {
32325
- message: string
32326
- is_device_error: true
32327
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32328
- error_code: 'ttlock_lock_not_paired_to_gateway'
32329
- }
32330
- | {
32331
- message: string
32332
- is_device_error: true
32333
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32334
- error_code: 'missing_device_credentials'
32335
- }
32336
- | {
32337
- message: string
32338
- is_device_error: true
32339
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32340
- error_code: 'auxiliary_heat_running'
32341
- }
32342
- | {
32343
- message: string
32344
- is_device_error: true
32345
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32346
- error_code: 'subscription_required'
32347
- }
32348
- | {
32349
- message: string
32350
- is_connected_account_error: true
32351
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32352
- error_code: 'account_disconnected'
32353
- }
32354
- | {
32355
- message: string
32356
- is_connected_account_error: true
32357
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32358
- error_code: 'invalid_credentials'
32359
- }
32360
- >
32361
- /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
32362
- warnings: Array<
32363
- | {
32364
- message: string
32365
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32366
- warning_code: 'partial_backup_access_code_pool'
32367
- }
32368
- | {
32369
- message: string
32370
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32371
- warning_code: 'many_active_backup_codes'
32372
- }
32373
- | {
32374
- message: string
32375
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32376
- warning_code: 'salto_unknown_device_type'
32377
- }
32378
- | {
32379
- message: string
32380
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32381
- warning_code: 'wyze_device_missing_gateway'
32382
- }
32383
- | {
32384
- message: string
32385
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32386
- warning_code: 'functional_offline_device'
32387
- }
32388
- | {
32389
- message: string
32390
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32391
- warning_code: 'third_party_integration_detected'
32392
- }
32393
- | {
32394
- message: string
32395
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32396
- warning_code: 'nest_thermostat_in_manual_eco_mode'
32397
- }
32398
- | {
32399
- message: string
32400
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32401
- warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'
32402
- }
32403
- | {
32404
- message: string
32405
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32406
- warning_code: 'ttlock_weak_gateway_signal'
32407
- }
32408
- | {
32409
- message: string
32410
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32411
- warning_code: 'temperature_threshold_exceeded'
32412
- }
32413
- | {
32414
- message: string
32415
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32416
- warning_code: 'device_communication_degraded'
32417
- }
32418
- | {
32419
- message: string
32420
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32421
- warning_code: 'scheduled_maintenance_window'
32422
- }
32423
- | {
32424
- message: string
32425
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32426
- warning_code: 'device_has_flaky_connection'
32427
- }
32428
- | {
32429
- message: string
32430
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32431
- warning_code: 'salto_office_mode'
32432
- }
32433
- | {
32434
- message: string
32435
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32436
- warning_code: 'salto_privacy_mode'
32437
- }
32438
- | {
32439
- message: string
32440
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32441
- warning_code: 'unknown_issue_with_phone'
32442
- }
32443
- >
32444
- /** Date and time at which the device object was created. */
32445
- created_at: string
32446
- /** Indicates whether Seam manages the device. */
32447
- is_managed: true
32448
- custom_metadata: Record<string, string | boolean>
32449
- can_remotely_unlock?: boolean | undefined
32450
- can_remotely_lock?: boolean | undefined
32451
- can_program_offline_access_codes?: boolean | undefined
32452
- can_program_online_access_codes?: boolean | undefined
32453
- can_hvac_heat?: boolean | undefined
32454
- can_hvac_cool?: boolean | undefined
32455
- can_hvac_heat_cool?: boolean | undefined
32456
- can_turn_off_hvac?: boolean | undefined
32457
- can_simulate_removal?: boolean | undefined
32458
- can_simulate_connection?: boolean | undefined
32459
- can_simulate_disconnection?: boolean | undefined
32460
32273
  }>
32461
32274
  }
32462
32275
  }
@@ -32499,25 +32312,33 @@ export interface Routes {
32499
32312
  commonParams: {}
32500
32313
  formData: {}
32501
32314
  jsonResponse: {
32502
- /** Properties of the phone. */
32315
+ /** Represents an app user's mobile phone. */
32503
32316
  phone: {
32504
- /** Unique identifier for the device. */
32317
+ /** ID of the `phone`. */
32505
32318
  device_id: string
32506
- /** Type of phone. */
32507
- device_type: 'android_phone' | 'ios_phone'
32508
- /** Optional nickname to describe the device, settable through Seam */
32319
+ /** Optional nickname to describe the phone, settable through Seam. */
32509
32320
  nickname?: string | undefined
32510
- /** Display name of the device, defaults to nickname (if it is set) or properties.appearance.name otherwise. Enables administrators and users to identify the device easily, especially when there are numerous devices. */
32321
+ /** Display name of the phone. Defaults to `nickname` (if it is set) or `properties.appearance.name` otherwise. Enables administrators and users to identify the phone easily, especially when there are numerous phones. */
32511
32322
  display_name: string
32512
- /** Collection of capabilities that the device supports when connected to Seam. Values are "access_code," which indicates that the device can manage and utilize digital PIN codes for secure access; "lock," which indicates that the device controls a door locking mechanism, enabling the remote opening and closing of doors and other entry points; "noise_detection," which indicates that the device supports monitoring and responding to ambient noise levels; "thermostat," which indicates that the device can regulate and adjust indoor temperatures; and "battery," which indicates that the device can manage battery life and health. */
32513
- capabilities_supported: Array<
32514
- | 'access_code'
32515
- | 'lock'
32516
- | 'noise_detection'
32517
- | 'thermostat'
32518
- | 'battery'
32519
- | 'phone'
32520
- >
32323
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `phone`. */
32324
+ workspace_id: string
32325
+ /** Date and time at which the `phone` was created. */
32326
+ created_at: string
32327
+ /** Optional [custom metadata](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device) for the phone. */
32328
+ custom_metadata: Record<string, string | boolean>
32329
+ /** Errors associated with the `phone`. */
32330
+ errors: Array<{
32331
+ error_code: string
32332
+ message: string
32333
+ }>
32334
+ /** Warnings associated with the `phone`. */
32335
+ warnings: Array<{
32336
+ warning_code: string
32337
+ message: string
32338
+ }>
32339
+ /** Type of phone. */
32340
+ device_type: 'ios_phone' | 'android_phone'
32341
+ /** Properties of the phone. */
32521
32342
  properties: {
32522
32343
  /** ASSA ABLOY Credential Service metadata for the phone. */
32523
32344
  assa_abloy_credential_service_metadata?:
@@ -32541,201 +32362,6 @@ export interface Routes {
32541
32362
  }
32542
32363
  | undefined
32543
32364
  }
32544
- /** Location information for the device. */
32545
- location: {
32546
- /** Name of the device location. */
32547
- location_name?: string | undefined
32548
- /** Time zone of the device location. */
32549
- timezone?: string | undefined
32550
- } | null
32551
- /** Unique identifier for the Seam workspace associated with the device. */
32552
- workspace_id: string
32553
- /** Array of errors associated with the device. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
32554
- errors: Array<
32555
- | {
32556
- message: string
32557
- is_device_error: true
32558
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32559
- error_code: 'device_offline'
32560
- }
32561
- | {
32562
- message: string
32563
- is_device_error: true
32564
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32565
- error_code: 'device_removed'
32566
- }
32567
- | {
32568
- message: string
32569
- is_device_error: true
32570
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32571
- error_code: 'hub_disconnected'
32572
- }
32573
- | {
32574
- message: string
32575
- is_device_error: true
32576
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32577
- error_code: 'device_disconnected'
32578
- }
32579
- | {
32580
- message: string
32581
- is_device_error: true
32582
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32583
- error_code: 'empty_backup_access_code_pool'
32584
- }
32585
- | {
32586
- message: string
32587
- is_device_error: true
32588
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32589
- error_code: 'august_lock_not_authorized'
32590
- }
32591
- | {
32592
- message: string
32593
- is_device_error: true
32594
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32595
- error_code: 'august_lock_missing_bridge'
32596
- }
32597
- | {
32598
- message: string
32599
- is_device_error: true
32600
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32601
- error_code: 'salto_site_user_limit_reached'
32602
- }
32603
- | {
32604
- message: string
32605
- is_device_error: true
32606
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32607
- error_code: 'ttlock_lock_not_paired_to_gateway'
32608
- }
32609
- | {
32610
- message: string
32611
- is_device_error: true
32612
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32613
- error_code: 'missing_device_credentials'
32614
- }
32615
- | {
32616
- message: string
32617
- is_device_error: true
32618
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32619
- error_code: 'auxiliary_heat_running'
32620
- }
32621
- | {
32622
- message: string
32623
- is_device_error: true
32624
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32625
- error_code: 'subscription_required'
32626
- }
32627
- | {
32628
- message: string
32629
- is_connected_account_error: true
32630
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32631
- error_code: 'account_disconnected'
32632
- }
32633
- | {
32634
- message: string
32635
- is_connected_account_error: true
32636
- /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
32637
- error_code: 'invalid_credentials'
32638
- }
32639
- >
32640
- /** Array of warnings associated with the device. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
32641
- warnings: Array<
32642
- | {
32643
- message: string
32644
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32645
- warning_code: 'partial_backup_access_code_pool'
32646
- }
32647
- | {
32648
- message: string
32649
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32650
- warning_code: 'many_active_backup_codes'
32651
- }
32652
- | {
32653
- message: string
32654
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32655
- warning_code: 'salto_unknown_device_type'
32656
- }
32657
- | {
32658
- message: string
32659
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32660
- warning_code: 'wyze_device_missing_gateway'
32661
- }
32662
- | {
32663
- message: string
32664
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32665
- warning_code: 'functional_offline_device'
32666
- }
32667
- | {
32668
- message: string
32669
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32670
- warning_code: 'third_party_integration_detected'
32671
- }
32672
- | {
32673
- message: string
32674
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32675
- warning_code: 'nest_thermostat_in_manual_eco_mode'
32676
- }
32677
- | {
32678
- message: string
32679
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32680
- warning_code: 'ttlock_lock_gateway_unlocking_not_enabled'
32681
- }
32682
- | {
32683
- message: string
32684
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32685
- warning_code: 'ttlock_weak_gateway_signal'
32686
- }
32687
- | {
32688
- message: string
32689
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32690
- warning_code: 'temperature_threshold_exceeded'
32691
- }
32692
- | {
32693
- message: string
32694
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32695
- warning_code: 'device_communication_degraded'
32696
- }
32697
- | {
32698
- message: string
32699
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32700
- warning_code: 'scheduled_maintenance_window'
32701
- }
32702
- | {
32703
- message: string
32704
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32705
- warning_code: 'device_has_flaky_connection'
32706
- }
32707
- | {
32708
- message: string
32709
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32710
- warning_code: 'salto_office_mode'
32711
- }
32712
- | {
32713
- message: string
32714
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32715
- warning_code: 'salto_privacy_mode'
32716
- }
32717
- | {
32718
- message: string
32719
- /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
32720
- warning_code: 'unknown_issue_with_phone'
32721
- }
32722
- >
32723
- /** Date and time at which the device object was created. */
32724
- created_at: string
32725
- /** Indicates whether Seam manages the device. */
32726
- is_managed: true
32727
- custom_metadata: Record<string, string | boolean>
32728
- can_remotely_unlock?: boolean | undefined
32729
- can_remotely_lock?: boolean | undefined
32730
- can_program_offline_access_codes?: boolean | undefined
32731
- can_program_online_access_codes?: boolean | undefined
32732
- can_hvac_heat?: boolean | undefined
32733
- can_hvac_cool?: boolean | undefined
32734
- can_hvac_heat_cool?: boolean | undefined
32735
- can_turn_off_hvac?: boolean | undefined
32736
- can_simulate_removal?: boolean | undefined
32737
- can_simulate_connection?: boolean | undefined
32738
- can_simulate_disconnection?: boolean | undefined
32739
32365
  }
32740
32366
  }
32741
32367
  }