@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.
@@ -5447,7 +5447,11 @@ export default {
5447
5447
  ],
5448
5448
  type: 'string',
5449
5449
  },
5450
- { enum: ['ios_phone', 'android_phone'], type: 'string' },
5450
+ {
5451
+ description: 'Type of phone.',
5452
+ enum: ['ios_phone', 'android_phone'],
5453
+ type: 'string',
5454
+ },
5451
5455
  ],
5452
5456
  },
5453
5457
  display_name: {
@@ -5902,6 +5906,7 @@ export default {
5902
5906
  type: 'object',
5903
5907
  },
5904
5908
  {
5909
+ description: 'Properties of the phone.',
5905
5910
  properties: {
5906
5911
  assa_abloy_credential_service_metadata: {
5907
5912
  description:
@@ -11686,737 +11691,240 @@ export default {
11686
11691
  description: 'ID of the event.',
11687
11692
  format: 'uuid',
11688
11693
  type: 'string',
11689
- },
11690
- event_type: {
11691
- enum: ['enrollment_automation.deleted'],
11692
- type: 'string',
11693
- },
11694
- occurred_at: {
11695
- description: 'Date and time at which the event occurred.',
11696
- format: 'date-time',
11697
- type: 'string',
11698
- },
11699
- workspace_id: {
11700
- description:
11701
- 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).',
11702
- format: 'uuid',
11703
- type: 'string',
11704
- },
11705
- },
11706
- required: [
11707
- 'event_id',
11708
- 'workspace_id',
11709
- 'created_at',
11710
- 'occurred_at',
11711
- 'enrollment_automation_id',
11712
- 'event_type',
11713
- ],
11714
- type: 'object',
11715
- 'x-route-path': '/user_identities/enrollment_automations',
11716
- },
11717
- {
11718
- description: 'A phone device was deactivated.',
11719
- properties: {
11720
- created_at: {
11721
- description: 'Date and time at which the event was created.',
11722
- format: 'date-time',
11723
- type: 'string',
11724
- },
11725
- device_id: {
11726
- description:
11727
- 'ID of the [device](https://docs.seam.co/latest/core-concepts/devices).',
11728
- format: 'uuid',
11729
- type: 'string',
11730
- },
11731
- event_id: {
11732
- description: 'ID of the event.',
11733
- format: 'uuid',
11734
- type: 'string',
11735
- },
11736
- event_type: { enum: ['phone.deactivated'], type: 'string' },
11737
- occurred_at: {
11738
- description: 'Date and time at which the event occurred.',
11739
- format: 'date-time',
11740
- type: 'string',
11741
- },
11742
- workspace_id: {
11743
- description:
11744
- 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).',
11745
- format: 'uuid',
11746
- type: 'string',
11747
- },
11748
- },
11749
- required: [
11750
- 'event_id',
11751
- 'workspace_id',
11752
- 'created_at',
11753
- 'occurred_at',
11754
- 'device_id',
11755
- 'event_type',
11756
- ],
11757
- type: 'object',
11758
- 'x-route-path': '/phones',
11759
- },
11760
- ],
11761
- 'x-route-path': '/events',
11762
- },
11763
- network: {
11764
- properties: {
11765
- created_at: { format: 'date-time', type: 'string' },
11766
- display_name: { type: 'string' },
11767
- network_id: { format: 'uuid', type: 'string' },
11768
- workspace_id: { format: 'uuid', type: 'string' },
11769
- },
11770
- required: ['network_id', 'workspace_id', 'display_name', 'created_at'],
11771
- type: 'object',
11772
- 'x-route-path': '/networks',
11773
- },
11774
- noise_threshold: {
11775
- properties: {
11776
- device_id: { format: 'uuid', type: 'string' },
11777
- ends_daily_at: { type: 'string' },
11778
- name: { type: 'string' },
11779
- noise_threshold_decibels: { format: 'float', type: 'number' },
11780
- noise_threshold_id: { format: 'uuid', type: 'string' },
11781
- noise_threshold_nrs: { format: 'float', type: 'number' },
11782
- starts_daily_at: { type: 'string' },
11783
- },
11784
- required: [
11785
- 'noise_threshold_id',
11786
- 'device_id',
11787
- 'name',
11788
- 'starts_daily_at',
11789
- 'ends_daily_at',
11790
- 'noise_threshold_decibels',
11791
- ],
11792
- type: 'object',
11793
- 'x-route-path': '/noise_sensors/noise_thresholds',
11794
- },
11795
- phone: {
11796
- description: 'Properties of the phone.',
11797
- properties: {
11798
- can_hvac_cool: { type: 'boolean' },
11799
- can_hvac_heat: { type: 'boolean' },
11800
- can_hvac_heat_cool: { type: 'boolean' },
11801
- can_program_offline_access_codes: { type: 'boolean' },
11802
- can_program_online_access_codes: { type: 'boolean' },
11803
- can_remotely_lock: { type: 'boolean' },
11804
- can_remotely_unlock: { type: 'boolean' },
11805
- can_simulate_connection: { type: 'boolean' },
11806
- can_simulate_disconnection: { type: 'boolean' },
11807
- can_simulate_removal: { type: 'boolean' },
11808
- can_turn_off_hvac: { type: 'boolean' },
11809
- capabilities_supported: {
11810
- description:
11811
- '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.',
11812
- items: {
11813
- enum: [
11814
- 'access_code',
11815
- 'lock',
11816
- 'noise_detection',
11817
- 'thermostat',
11818
- 'battery',
11819
- 'phone',
11820
- ],
11821
- type: 'string',
11822
- },
11823
- type: 'array',
11824
- },
11825
- created_at: {
11826
- description:
11827
- 'Date and time at which the device object was created.',
11828
- format: 'date-time',
11829
- type: 'string',
11830
- },
11831
- custom_metadata: {
11832
- additionalProperties: {
11833
- oneOf: [{ type: 'string' }, { type: 'boolean' }],
11834
- },
11835
- type: 'object',
11836
- },
11837
- device_id: {
11838
- description: 'Unique identifier for the device.',
11839
- format: 'uuid',
11840
- type: 'string',
11841
- },
11842
- device_type: {
11843
- description: 'Type of phone.',
11844
- enum: ['android_phone', 'ios_phone'],
11845
- type: 'string',
11846
- },
11847
- display_name: {
11848
- description:
11849
- '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.',
11850
- type: 'string',
11851
- },
11852
- errors: {
11853
- description:
11854
- '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.',
11855
- items: {
11856
- discriminator: { propertyName: 'error_code' },
11857
- oneOf: [
11858
- {
11859
- description: 'Device is offline',
11860
- properties: {
11861
- error_code: {
11862
- description:
11863
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
11864
- enum: ['device_offline'],
11865
- type: 'string',
11866
- },
11867
- is_device_error: { enum: [true], type: 'boolean' },
11868
- message: { type: 'string' },
11869
- },
11870
- required: ['message', 'is_device_error', 'error_code'],
11871
- type: 'object',
11872
- },
11873
- {
11874
- description: 'Device has been removed',
11875
- properties: {
11876
- error_code: {
11877
- description:
11878
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
11879
- enum: ['device_removed'],
11880
- type: 'string',
11881
- },
11882
- is_device_error: { enum: [true], type: 'boolean' },
11883
- message: { type: 'string' },
11884
- },
11885
- required: ['message', 'is_device_error', 'error_code'],
11886
- type: 'object',
11887
- },
11888
- {
11889
- description: 'Hub is disconnected',
11890
- properties: {
11891
- error_code: {
11892
- description:
11893
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
11894
- enum: ['hub_disconnected'],
11895
- type: 'string',
11896
- },
11897
- is_device_error: { enum: [true], type: 'boolean' },
11898
- message: { type: 'string' },
11899
- },
11900
- required: ['message', 'is_device_error', 'error_code'],
11901
- type: 'object',
11902
- },
11903
- {
11904
- description: 'Device is disconnected',
11905
- properties: {
11906
- error_code: {
11907
- description:
11908
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
11909
- enum: ['device_disconnected'],
11910
- type: 'string',
11911
- },
11912
- is_device_error: { enum: [true], type: 'boolean' },
11913
- message: { type: 'string' },
11914
- },
11915
- required: ['message', 'is_device_error', 'error_code'],
11916
- type: 'object',
11917
- },
11918
- {
11919
- description: 'The backup access code pool is empty.',
11920
- properties: {
11921
- error_code: {
11922
- description:
11923
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
11924
- enum: ['empty_backup_access_code_pool'],
11925
- type: 'string',
11926
- },
11927
- is_device_error: { enum: [true], type: 'boolean' },
11928
- message: { type: 'string' },
11929
- },
11930
- required: ['message', 'is_device_error', 'error_code'],
11931
- type: 'object',
11932
- },
11933
- {
11934
- description: 'User is not authorized to use the August Lock.',
11935
- properties: {
11936
- error_code: {
11937
- description:
11938
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
11939
- enum: ['august_lock_not_authorized'],
11940
- type: 'string',
11941
- },
11942
- is_device_error: { enum: [true], type: 'boolean' },
11943
- message: { type: 'string' },
11944
- },
11945
- required: ['message', 'is_device_error', 'error_code'],
11946
- type: 'object',
11947
- },
11948
- {
11949
- description: 'Lock is not connected to the Seam Bridge.',
11950
- properties: {
11951
- error_code: {
11952
- description:
11953
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
11954
- enum: ['august_lock_missing_bridge'],
11955
- type: 'string',
11956
- },
11957
- is_device_error: { enum: [true], type: 'boolean' },
11958
- message: { type: 'string' },
11959
- },
11960
- required: ['message', 'is_device_error', 'error_code'],
11961
- type: 'object',
11962
- },
11963
- {
11964
- description: 'Salto site user limit reached.',
11965
- properties: {
11966
- error_code: {
11967
- description:
11968
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
11969
- enum: ['salto_site_user_limit_reached'],
11970
- type: 'string',
11971
- },
11972
- is_device_error: { enum: [true], type: 'boolean' },
11973
- message: { type: 'string' },
11974
- },
11975
- required: ['message', 'is_device_error', 'error_code'],
11976
- type: 'object',
11977
- },
11978
- {
11979
- description: 'Lock is not paired with a Gateway.',
11980
- properties: {
11981
- error_code: {
11982
- description:
11983
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
11984
- enum: ['ttlock_lock_not_paired_to_gateway'],
11985
- type: 'string',
11986
- },
11987
- is_device_error: { enum: [true], type: 'boolean' },
11988
- message: { type: 'string' },
11989
- },
11990
- required: ['message', 'is_device_error', 'error_code'],
11991
- type: 'object',
11992
- },
11993
- {
11994
- description: 'Missing device credentials.',
11995
- properties: {
11996
- error_code: {
11997
- description:
11998
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
11999
- enum: ['missing_device_credentials'],
12000
- type: 'string',
12001
- },
12002
- is_device_error: { enum: [true], type: 'boolean' },
12003
- message: { type: 'string' },
12004
- },
12005
- required: ['message', 'is_device_error', 'error_code'],
12006
- type: 'object',
12007
- },
12008
- {
12009
- description: 'The auxiliary heat is running.',
12010
- properties: {
12011
- error_code: {
12012
- description:
12013
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
12014
- enum: ['auxiliary_heat_running'],
12015
- type: 'string',
12016
- },
12017
- is_device_error: { enum: [true], type: 'boolean' },
12018
- message: { type: 'string' },
12019
- },
12020
- required: ['message', 'is_device_error', 'error_code'],
12021
- type: 'object',
12022
- },
12023
- {
12024
- description: 'Subscription required to connect.',
12025
- properties: {
12026
- error_code: {
12027
- description:
12028
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
12029
- enum: ['subscription_required'],
12030
- type: 'string',
12031
- },
12032
- is_device_error: { enum: [true], type: 'boolean' },
12033
- message: { type: 'string' },
12034
- },
12035
- required: ['message', 'is_device_error', 'error_code'],
12036
- type: 'object',
12037
- },
12038
- {
12039
- description: 'Account is disconnected.',
12040
- properties: {
12041
- error_code: {
12042
- description:
12043
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
12044
- enum: ['account_disconnected'],
12045
- type: 'string',
12046
- },
12047
- is_connected_account_error: {
12048
- enum: [true],
12049
- type: 'boolean',
12050
- },
12051
- message: { type: 'string' },
12052
- },
12053
- required: [
12054
- 'message',
12055
- 'is_connected_account_error',
12056
- 'error_code',
12057
- ],
12058
- type: 'object',
12059
- },
12060
- {
12061
- description: 'Credentials provided were invalid.',
12062
- properties: {
12063
- error_code: {
12064
- description:
12065
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
12066
- enum: ['invalid_credentials'],
12067
- type: 'string',
12068
- },
12069
- is_connected_account_error: {
12070
- enum: [true],
12071
- type: 'boolean',
12072
- },
12073
- message: { type: 'string' },
12074
- },
12075
- required: [
12076
- 'message',
12077
- 'is_connected_account_error',
12078
- 'error_code',
12079
- ],
12080
- type: 'object',
12081
- },
12082
- ],
12083
- },
12084
- type: 'array',
12085
- },
12086
- is_managed: {
12087
- description: 'Indicates whether Seam manages the device.',
12088
- enum: [true],
12089
- type: 'boolean',
12090
- },
12091
- location: {
12092
- description: 'Location information for the device.',
12093
- nullable: true,
12094
- properties: {
12095
- location_name: {
12096
- description: 'Name of the device location.',
12097
- type: 'string',
12098
- },
12099
- timezone: {
12100
- description: 'Time zone of the device location.',
12101
- type: 'string',
12102
- },
12103
- },
12104
- type: 'object',
12105
- },
12106
- nickname: {
12107
- description:
12108
- 'Optional nickname to describe the device, settable through Seam',
12109
- type: 'string',
12110
- },
12111
- properties: {
12112
- properties: {
12113
- assa_abloy_credential_service_metadata: {
12114
- description:
12115
- 'ASSA ABLOY Credential Service metadata for the phone.',
12116
- properties: {
12117
- endpoints: {
12118
- description: 'Endpoints associated with the phone.',
12119
- items: {
12120
- properties: {
12121
- endpoint_id: {
12122
- description: 'ID of the associated endpoint.',
12123
- type: 'string',
12124
- },
12125
- is_active: {
12126
- description:
12127
- 'Indicated whether the endpoint is active.',
12128
- type: 'boolean',
12129
- },
12130
- },
12131
- required: ['endpoint_id', 'is_active'],
12132
- type: 'object',
12133
- },
12134
- type: 'array',
12135
- },
12136
- has_active_endpoint: {
12137
- description:
12138
- 'Indicates whether the credential service has active endpoints associated with the phone.',
12139
- type: 'boolean',
12140
- },
12141
- },
12142
- required: ['has_active_endpoint', 'endpoints'],
12143
- type: 'object',
12144
- },
12145
- salto_space_credential_service_metadata: {
12146
- description:
12147
- 'Salto Space credential service metadata for the phone.',
12148
- properties: {
12149
- has_active_phone: {
12150
- description:
12151
- 'Indicates whether the credential service has an active associated phone.',
12152
- type: 'boolean',
12153
- },
12154
- },
12155
- required: ['has_active_phone'],
12156
- type: 'object',
12157
- },
12158
- },
12159
- type: 'object',
12160
- },
12161
- warnings: {
12162
- description:
12163
- '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.',
12164
- items: {
12165
- discriminator: { propertyName: 'warning_code' },
12166
- oneOf: [
12167
- {
12168
- description: 'Backup access code unhealthy.',
12169
- properties: {
12170
- message: { type: 'string' },
12171
- warning_code: {
12172
- description:
12173
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12174
- enum: ['partial_backup_access_code_pool'],
12175
- type: 'string',
12176
- },
12177
- },
12178
- required: ['message', 'warning_code'],
12179
- type: 'object',
12180
- },
12181
- {
12182
- description: 'Too many backup codes.',
12183
- properties: {
12184
- message: { type: 'string' },
12185
- warning_code: {
12186
- description:
12187
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12188
- enum: ['many_active_backup_codes'],
12189
- type: 'string',
12190
- },
12191
- },
12192
- required: ['message', 'warning_code'],
12193
- type: 'object',
12194
- },
12195
- {
12196
- description:
12197
- 'A Salto Lock displaying an unknown device type.',
12198
- properties: {
12199
- message: { type: 'string' },
12200
- warning_code: {
12201
- description:
12202
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12203
- enum: ['salto_unknown_device_type'],
12204
- type: 'string',
12205
- },
12206
- },
12207
- required: ['message', 'warning_code'],
12208
- type: 'object',
12209
- },
12210
- {
12211
- description: 'Wyze Lock is not connected to a gateway.',
12212
- properties: {
12213
- message: { type: 'string' },
12214
- warning_code: {
12215
- description:
12216
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12217
- enum: ['wyze_device_missing_gateway'],
12218
- type: 'string',
12219
- },
12220
- },
12221
- required: ['message', 'warning_code'],
12222
- type: 'object',
12223
- },
12224
- {
12225
- description:
12226
- 'Device is offline, but has some functionality available.',
12227
- properties: {
12228
- message: { type: 'string' },
12229
- warning_code: {
12230
- description:
12231
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12232
- enum: ['functional_offline_device'],
12233
- type: 'string',
12234
- },
12235
- },
12236
- required: ['message', 'warning_code'],
12237
- type: 'object',
12238
- },
12239
- {
12240
- description: 'Third-party integration detected.',
12241
- properties: {
12242
- message: { type: 'string' },
12243
- warning_code: {
12244
- description:
12245
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12246
- enum: ['third_party_integration_detected'],
12247
- type: 'string',
12248
- },
12249
- },
12250
- required: ['message', 'warning_code'],
12251
- type: 'object',
12252
- },
12253
- {
12254
- description: 'Nest thermostat in manual eco mode.',
12255
- properties: {
12256
- message: { type: 'string' },
12257
- warning_code: {
12258
- description:
12259
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12260
- enum: ['nest_thermostat_in_manual_eco_mode'],
12261
- type: 'string',
12262
- },
12263
- },
12264
- required: ['message', 'warning_code'],
12265
- type: 'object',
12266
- },
12267
- {
12268
- description: 'Remote Unlock feature not enabled in settings.',
12269
- properties: {
12270
- message: { type: 'string' },
12271
- warning_code: {
12272
- description:
12273
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12274
- enum: ['ttlock_lock_gateway_unlocking_not_enabled'],
12275
- type: 'string',
12276
- },
12277
- },
12278
- required: ['message', 'warning_code'],
12279
- type: 'object',
12280
- },
12281
- {
12282
- description: 'Gateway signal is weak.',
12283
- properties: {
12284
- message: { type: 'string' },
12285
- warning_code: {
12286
- description:
12287
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12288
- enum: ['ttlock_weak_gateway_signal'],
12289
- type: 'string',
12290
- },
12291
- },
12292
- required: ['message', 'warning_code'],
12293
- type: 'object',
12294
- },
12295
- {
12296
- description: 'Temperature threshold exceeded.',
12297
- properties: {
12298
- message: { type: 'string' },
12299
- warning_code: {
12300
- description:
12301
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12302
- enum: ['temperature_threshold_exceeded'],
12303
- type: 'string',
12304
- },
12305
- },
12306
- required: ['message', 'warning_code'],
12307
- type: 'object',
12308
- },
12309
- {
12310
- description: 'Device appears to be unresponsive.',
12311
- properties: {
12312
- message: { type: 'string' },
12313
- warning_code: {
12314
- description:
12315
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12316
- enum: ['device_communication_degraded'],
12317
- type: 'string',
12318
- },
12319
- },
12320
- required: ['message', 'warning_code'],
12321
- type: 'object',
12322
- },
12323
- {
12324
- description: 'Scheduled maintenance window detected.',
12325
- properties: {
12326
- message: { type: 'string' },
12327
- warning_code: {
12328
- description:
12329
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12330
- enum: ['scheduled_maintenance_window'],
12331
- type: 'string',
12332
- },
12333
- },
12334
- required: ['message', 'warning_code'],
12335
- type: 'object',
12336
- },
12337
- {
12338
- description: 'Device has flaky connection.',
12339
- properties: {
12340
- message: { type: 'string' },
12341
- warning_code: {
12342
- description:
12343
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12344
- enum: ['device_has_flaky_connection'],
12345
- type: 'string',
12346
- },
12347
- },
12348
- required: ['message', 'warning_code'],
12349
- type: 'object',
12350
- },
12351
- {
12352
- description:
12353
- 'Lock is in Office Mode. Access Codes will not unlock doors.',
12354
- properties: {
12355
- message: { type: 'string' },
12356
- warning_code: {
12357
- description:
12358
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12359
- enum: ['salto_office_mode'],
12360
- type: 'string',
11694
+ },
11695
+ event_type: {
11696
+ enum: ['enrollment_automation.deleted'],
11697
+ type: 'string',
11698
+ },
11699
+ occurred_at: {
11700
+ description: 'Date and time at which the event occurred.',
11701
+ format: 'date-time',
11702
+ type: 'string',
11703
+ },
11704
+ workspace_id: {
11705
+ description:
11706
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).',
11707
+ format: 'uuid',
11708
+ type: 'string',
11709
+ },
11710
+ },
11711
+ required: [
11712
+ 'event_id',
11713
+ 'workspace_id',
11714
+ 'created_at',
11715
+ 'occurred_at',
11716
+ 'enrollment_automation_id',
11717
+ 'event_type',
11718
+ ],
11719
+ type: 'object',
11720
+ 'x-route-path': '/user_identities/enrollment_automations',
11721
+ },
11722
+ {
11723
+ description: 'A phone device was deactivated.',
11724
+ properties: {
11725
+ created_at: {
11726
+ description: 'Date and time at which the event was created.',
11727
+ format: 'date-time',
11728
+ type: 'string',
11729
+ },
11730
+ device_id: {
11731
+ description:
11732
+ 'ID of the [device](https://docs.seam.co/latest/core-concepts/devices).',
11733
+ format: 'uuid',
11734
+ type: 'string',
11735
+ },
11736
+ event_id: {
11737
+ description: 'ID of the event.',
11738
+ format: 'uuid',
11739
+ type: 'string',
11740
+ },
11741
+ event_type: { enum: ['phone.deactivated'], type: 'string' },
11742
+ occurred_at: {
11743
+ description: 'Date and time at which the event occurred.',
11744
+ format: 'date-time',
11745
+ type: 'string',
11746
+ },
11747
+ workspace_id: {
11748
+ description:
11749
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).',
11750
+ format: 'uuid',
11751
+ type: 'string',
11752
+ },
11753
+ },
11754
+ required: [
11755
+ 'event_id',
11756
+ 'workspace_id',
11757
+ 'created_at',
11758
+ 'occurred_at',
11759
+ 'device_id',
11760
+ 'event_type',
11761
+ ],
11762
+ type: 'object',
11763
+ 'x-route-path': '/phones',
11764
+ },
11765
+ ],
11766
+ 'x-route-path': '/events',
11767
+ },
11768
+ network: {
11769
+ properties: {
11770
+ created_at: { format: 'date-time', type: 'string' },
11771
+ display_name: { type: 'string' },
11772
+ network_id: { format: 'uuid', type: 'string' },
11773
+ workspace_id: { format: 'uuid', type: 'string' },
11774
+ },
11775
+ required: ['network_id', 'workspace_id', 'display_name', 'created_at'],
11776
+ type: 'object',
11777
+ 'x-route-path': '/networks',
11778
+ },
11779
+ noise_threshold: {
11780
+ properties: {
11781
+ device_id: { format: 'uuid', type: 'string' },
11782
+ ends_daily_at: { type: 'string' },
11783
+ name: { type: 'string' },
11784
+ noise_threshold_decibels: { format: 'float', type: 'number' },
11785
+ noise_threshold_id: { format: 'uuid', type: 'string' },
11786
+ noise_threshold_nrs: { format: 'float', type: 'number' },
11787
+ starts_daily_at: { type: 'string' },
11788
+ },
11789
+ required: [
11790
+ 'noise_threshold_id',
11791
+ 'device_id',
11792
+ 'name',
11793
+ 'starts_daily_at',
11794
+ 'ends_daily_at',
11795
+ 'noise_threshold_decibels',
11796
+ ],
11797
+ type: 'object',
11798
+ 'x-route-path': '/noise_sensors/noise_thresholds',
11799
+ },
11800
+ phone: {
11801
+ description: "Represents an app user's mobile phone.",
11802
+ properties: {
11803
+ created_at: {
11804
+ description: 'Date and time at which the `phone` was created.',
11805
+ format: 'date-time',
11806
+ type: 'string',
11807
+ },
11808
+ custom_metadata: {
11809
+ additionalProperties: {
11810
+ oneOf: [{ type: 'string' }, { type: 'boolean' }],
11811
+ },
11812
+ description:
11813
+ 'Optional [custom metadata](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device) for the phone.',
11814
+ type: 'object',
11815
+ },
11816
+ device_id: {
11817
+ description: 'ID of the `phone`.',
11818
+ format: 'uuid',
11819
+ type: 'string',
11820
+ },
11821
+ device_type: {
11822
+ description: 'Type of phone.',
11823
+ enum: ['ios_phone', 'android_phone'],
11824
+ type: 'string',
11825
+ },
11826
+ display_name: {
11827
+ description:
11828
+ '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.',
11829
+ type: 'string',
11830
+ },
11831
+ errors: {
11832
+ description: 'Errors associated with the `phone`.',
11833
+ items: {
11834
+ properties: {
11835
+ error_code: { type: 'string' },
11836
+ message: { type: 'string' },
11837
+ },
11838
+ required: ['error_code', 'message'],
11839
+ type: 'object',
11840
+ },
11841
+ type: 'array',
11842
+ },
11843
+ nickname: {
11844
+ description:
11845
+ 'Optional nickname to describe the phone, settable through Seam.',
11846
+ type: 'string',
11847
+ },
11848
+ properties: {
11849
+ description: 'Properties of the phone.',
11850
+ properties: {
11851
+ assa_abloy_credential_service_metadata: {
11852
+ description:
11853
+ 'ASSA ABLOY Credential Service metadata for the phone.',
11854
+ properties: {
11855
+ endpoints: {
11856
+ description: 'Endpoints associated with the phone.',
11857
+ items: {
11858
+ properties: {
11859
+ endpoint_id: {
11860
+ description: 'ID of the associated endpoint.',
11861
+ type: 'string',
11862
+ },
11863
+ is_active: {
11864
+ description:
11865
+ 'Indicated whether the endpoint is active.',
11866
+ type: 'boolean',
11867
+ },
11868
+ },
11869
+ required: ['endpoint_id', 'is_active'],
11870
+ type: 'object',
12361
11871
  },
11872
+ type: 'array',
12362
11873
  },
12363
- required: ['message', 'warning_code'],
12364
- type: 'object',
12365
- },
12366
- {
12367
- description:
12368
- 'Lock is in Privacy Mode. Access Codes will not unlock doors.',
12369
- properties: {
12370
- message: { type: 'string' },
12371
- warning_code: {
12372
- description:
12373
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12374
- enum: ['salto_privacy_mode'],
12375
- type: 'string',
12376
- },
11874
+ has_active_endpoint: {
11875
+ description:
11876
+ 'Indicates whether the credential service has active endpoints associated with the phone.',
11877
+ type: 'boolean',
12377
11878
  },
12378
- required: ['message', 'warning_code'],
12379
- type: 'object',
12380
11879
  },
12381
- {
12382
- description:
12383
- 'An unknown issue occurred while syncing the state of this phone with the provider. This issue may affect the proper functioning of this phone.',
12384
- properties: {
12385
- message: { type: 'string' },
12386
- warning_code: {
12387
- description:
12388
- 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
12389
- enum: ['unknown_issue_with_phone'],
12390
- type: 'string',
12391
- },
11880
+ required: ['has_active_endpoint', 'endpoints'],
11881
+ type: 'object',
11882
+ },
11883
+ salto_space_credential_service_metadata: {
11884
+ description:
11885
+ 'Salto Space credential service metadata for the phone.',
11886
+ properties: {
11887
+ has_active_phone: {
11888
+ description:
11889
+ 'Indicates whether the credential service has an active associated phone.',
11890
+ type: 'boolean',
12392
11891
  },
12393
- required: ['message', 'warning_code'],
12394
- type: 'object',
12395
11892
  },
12396
- ],
11893
+ required: ['has_active_phone'],
11894
+ type: 'object',
11895
+ },
11896
+ },
11897
+ type: 'object',
11898
+ },
11899
+ warnings: {
11900
+ description: 'Warnings associated with the `phone`.',
11901
+ items: {
11902
+ properties: {
11903
+ message: { type: 'string' },
11904
+ warning_code: { type: 'string' },
11905
+ },
11906
+ required: ['warning_code', 'message'],
11907
+ type: 'object',
12397
11908
  },
12398
11909
  type: 'array',
12399
11910
  },
12400
11911
  workspace_id: {
12401
11912
  description:
12402
- 'Unique identifier for the Seam workspace associated with the device.',
11913
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `phone`.',
12403
11914
  format: 'uuid',
12404
11915
  type: 'string',
12405
11916
  },
12406
11917
  },
12407
11918
  required: [
12408
11919
  'device_id',
12409
- 'device_type',
12410
11920
  'display_name',
12411
- 'capabilities_supported',
12412
- 'properties',
12413
- 'location',
12414
11921
  'workspace_id',
12415
- 'errors',
12416
- 'warnings',
12417
11922
  'created_at',
12418
- 'is_managed',
12419
11923
  'custom_metadata',
11924
+ 'errors',
11925
+ 'warnings',
11926
+ 'device_type',
11927
+ 'properties',
12420
11928
  ],
12421
11929
  type: 'object',
12422
11930
  'x-route-path': '/phones',
@@ -14126,7 +13634,11 @@ export default {
14126
13634
  ],
14127
13635
  type: 'string',
14128
13636
  },
14129
- { enum: ['ios_phone', 'android_phone'], type: 'string' },
13637
+ {
13638
+ description: 'Type of phone.',
13639
+ enum: ['ios_phone', 'android_phone'],
13640
+ type: 'string',
13641
+ },
14130
13642
  ],
14131
13643
  },
14132
13644
  errors: {
@@ -21094,7 +20606,11 @@ export default {
21094
20606
  ],
21095
20607
  type: 'string',
21096
20608
  },
21097
- { enum: ['ios_phone', 'android_phone'], type: 'string' },
20609
+ {
20610
+ description: 'Type of phone.',
20611
+ enum: ['ios_phone', 'android_phone'],
20612
+ type: 'string',
20613
+ },
21098
20614
  ],
21099
20615
  },
21100
20616
  device_types: {
@@ -21148,6 +20664,7 @@ export default {
21148
20664
  type: 'string',
21149
20665
  },
21150
20666
  {
20667
+ description: 'Type of phone.',
21151
20668
  enum: ['ios_phone', 'android_phone'],
21152
20669
  type: 'string',
21153
20670
  },
@@ -21621,7 +21138,11 @@ export default {
21621
21138
  ],
21622
21139
  type: 'string',
21623
21140
  },
21624
- { enum: ['ios_phone', 'android_phone'], type: 'string' },
21141
+ {
21142
+ description: 'Type of phone.',
21143
+ enum: ['ios_phone', 'android_phone'],
21144
+ type: 'string',
21145
+ },
21625
21146
  ],
21626
21147
  },
21627
21148
  device_types: {
@@ -21675,6 +21196,7 @@ export default {
21675
21196
  type: 'string',
21676
21197
  },
21677
21198
  {
21199
+ description: 'Type of phone.',
21678
21200
  enum: ['ios_phone', 'android_phone'],
21679
21201
  type: 'string',
21680
21202
  },
@@ -22463,7 +21985,11 @@ export default {
22463
21985
  ],
22464
21986
  type: 'string',
22465
21987
  },
22466
- { enum: ['ios_phone', 'android_phone'], type: 'string' },
21988
+ {
21989
+ description: 'Type of phone.',
21990
+ enum: ['ios_phone', 'android_phone'],
21991
+ type: 'string',
21992
+ },
22467
21993
  ],
22468
21994
  },
22469
21995
  device_types: {
@@ -22517,6 +22043,7 @@ export default {
22517
22043
  type: 'string',
22518
22044
  },
22519
22045
  {
22046
+ description: 'Type of phone.',
22520
22047
  enum: ['ios_phone', 'android_phone'],
22521
22048
  type: 'string',
22522
22049
  },
@@ -22953,7 +22480,11 @@ export default {
22953
22480
  ],
22954
22481
  type: 'string',
22955
22482
  },
22956
- { enum: ['ios_phone', 'android_phone'], type: 'string' },
22483
+ {
22484
+ description: 'Type of phone.',
22485
+ enum: ['ios_phone', 'android_phone'],
22486
+ type: 'string',
22487
+ },
22957
22488
  ],
22958
22489
  },
22959
22490
  device_types: {
@@ -23007,6 +22538,7 @@ export default {
23007
22538
  type: 'string',
23008
22539
  },
23009
22540
  {
22541
+ description: 'Type of phone.',
23010
22542
  enum: ['ios_phone', 'android_phone'],
23011
22543
  type: 'string',
23012
22544
  },
@@ -24454,7 +23986,11 @@ export default {
24454
23986
  ],
24455
23987
  type: 'string',
24456
23988
  },
24457
- { enum: ['ios_phone', 'android_phone'], type: 'string' },
23989
+ {
23990
+ description: 'Type of phone.',
23991
+ enum: ['ios_phone', 'android_phone'],
23992
+ type: 'string',
23993
+ },
24458
23994
  ],
24459
23995
  },
24460
23996
  device_types: {
@@ -24508,6 +24044,7 @@ export default {
24508
24044
  type: 'string',
24509
24045
  },
24510
24046
  {
24047
+ description: 'Type of phone.',
24511
24048
  enum: ['ios_phone', 'android_phone'],
24512
24049
  type: 'string',
24513
24050
  },