@seamapi/types 1.414.0 → 1.414.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.
@@ -7318,6 +7318,146 @@ export default {
7318
7318
  ],
7319
7319
  'x-route-path': '/action_attempts',
7320
7320
  },
7321
+ bridge_client_session: {
7322
+ properties: {
7323
+ bridge_client_machine_identifier_key: { type: 'string' },
7324
+ bridge_client_name: { type: 'string' },
7325
+ bridge_client_session_id: { format: 'uuid', type: 'string' },
7326
+ bridge_client_session_token: { type: 'string' },
7327
+ bridge_client_time_zone: { type: 'string' },
7328
+ created_at: { format: 'date-time', type: 'string' },
7329
+ errors: {
7330
+ items: {
7331
+ description: 'Error associated with the `bridge_client_session`.',
7332
+ discriminator: { propertyName: 'error_code' },
7333
+ oneOf: [
7334
+ {
7335
+ description: "Seam cannot reach the bridge's LAN",
7336
+ properties: {
7337
+ can_tailscale_proxy_reach_bridge: {
7338
+ description: 'Tailscale proxy cannot reach the bridge',
7339
+ nullable: true,
7340
+ type: 'boolean',
7341
+ },
7342
+ can_tailscale_proxy_reach_tailscale_network: {
7343
+ description:
7344
+ 'Tailscale proxy cannot reach the Tailscale network',
7345
+ nullable: true,
7346
+ type: 'boolean',
7347
+ },
7348
+ created_at: { format: 'date-time', type: 'string' },
7349
+ error_code: {
7350
+ description:
7351
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
7352
+ enum: ['bridge_lan_unreachable'],
7353
+ type: 'string',
7354
+ },
7355
+ is_bridge_socks_server_healthy: {
7356
+ description: "Bridge's SOCKS server is unhealthy",
7357
+ nullable: true,
7358
+ type: 'boolean',
7359
+ },
7360
+ is_tailscale_proxy_reachable: {
7361
+ description: 'Seam cannot reach the tailscale proxy',
7362
+ nullable: true,
7363
+ type: 'boolean',
7364
+ },
7365
+ is_tailscale_proxy_socks_server_healthy: {
7366
+ description:
7367
+ "Tailscale proxy's SOCKS server is unhealthy",
7368
+ nullable: true,
7369
+ type: 'boolean',
7370
+ },
7371
+ message: { type: 'string' },
7372
+ },
7373
+ required: [
7374
+ 'message',
7375
+ 'created_at',
7376
+ 'error_code',
7377
+ 'is_tailscale_proxy_reachable',
7378
+ 'is_tailscale_proxy_socks_server_healthy',
7379
+ 'can_tailscale_proxy_reach_tailscale_network',
7380
+ 'can_tailscale_proxy_reach_bridge',
7381
+ 'is_bridge_socks_server_healthy',
7382
+ ],
7383
+ type: 'object',
7384
+ },
7385
+ {
7386
+ description: 'Bridge has stopped communicating with Seam',
7387
+ properties: {
7388
+ created_at: { format: 'date-time', type: 'string' },
7389
+ error_code: {
7390
+ description:
7391
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
7392
+ enum: ['no_communication_from_bridge'],
7393
+ type: 'string',
7394
+ },
7395
+ message: { type: 'string' },
7396
+ },
7397
+ required: ['message', 'created_at', 'error_code'],
7398
+ type: 'object',
7399
+ },
7400
+ ],
7401
+ },
7402
+ type: 'array',
7403
+ },
7404
+ pairing_code: { maxLength: 6, minLength: 6, type: 'string' },
7405
+ pairing_code_expires_at: { format: 'date-time', type: 'string' },
7406
+ tailscale_auth_key: { nullable: true, type: 'string' },
7407
+ tailscale_hostname: { type: 'string' },
7408
+ telemetry_token: { nullable: true, type: 'string' },
7409
+ telemetry_token_expires_at: {
7410
+ format: 'date-time',
7411
+ nullable: true,
7412
+ type: 'string',
7413
+ },
7414
+ telemetry_url: { nullable: true, type: 'string' },
7415
+ },
7416
+ required: [
7417
+ 'created_at',
7418
+ 'bridge_client_session_id',
7419
+ 'bridge_client_session_token',
7420
+ 'pairing_code',
7421
+ 'pairing_code_expires_at',
7422
+ 'tailscale_hostname',
7423
+ 'tailscale_auth_key',
7424
+ 'bridge_client_name',
7425
+ 'bridge_client_time_zone',
7426
+ 'bridge_client_machine_identifier_key',
7427
+ 'errors',
7428
+ 'telemetry_token',
7429
+ 'telemetry_token_expires_at',
7430
+ 'telemetry_url',
7431
+ ],
7432
+ type: 'object',
7433
+ 'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
7434
+ 'x-undocumented': 'Seam Bridge Client only.',
7435
+ },
7436
+ bridge_connected_systems: {
7437
+ properties: {
7438
+ acs_system_display_name: { type: 'string' },
7439
+ acs_system_id: { format: 'uuid', type: 'string' },
7440
+ bridge_created_at: { format: 'date-time', type: 'string' },
7441
+ bridge_id: { format: 'uuid', type: 'string' },
7442
+ connected_account_created_at: { format: 'date-time', type: 'string' },
7443
+ connected_account_id: { format: 'uuid', type: 'string' },
7444
+ workspace_display_name: { type: 'string' },
7445
+ workspace_id: { format: 'uuid', type: 'string' },
7446
+ },
7447
+ required: [
7448
+ 'bridge_id',
7449
+ 'bridge_created_at',
7450
+ 'connected_account_id',
7451
+ 'connected_account_created_at',
7452
+ 'acs_system_id',
7453
+ 'acs_system_display_name',
7454
+ 'workspace_id',
7455
+ 'workspace_display_name',
7456
+ ],
7457
+ type: 'object',
7458
+ 'x-route-path': '/seam/bridge/v1/bridge_connected_systems',
7459
+ 'x-undocumented': 'Seam Bridge Client only.',
7460
+ },
7321
7461
  client_session: {
7322
7462
  description:
7323
7463
  "Represents a [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens). If you want to restrict your users' access to their own devices, use client sessions.\n\nYou create each client session with a custom `user_identifier_key`. Normally, the `user_identifier_key` is a user ID that your application provides.\n\nWhen calling the Seam API from your backend using an API key, you can pass the `user_identifier_key` as a parameter to limit results to the associated client session. For example, `/devices/list?user_identifier_key=123` only returns devices associated with the client session created with the `user_identifier_key` `123`.\n\nA client session has a token that you can use with the Seam JavaScript SDK to make requests from the client (browser) directly to the Seam API. The token restricts the user's access to only the devices that they own.\n\nSee also [Get Started with React](https://docs.seam.co/latest/ui-components/overview/getting-started-with-seam-components/get-started-with-react-components-and-client-session-tokens).",
@@ -10700,8 +10840,7 @@ export default {
10700
10840
  'created_at',
10701
10841
  ],
10702
10842
  type: 'object',
10703
- 'x-route-path':
10704
- '/thermostats/thermostat_daily_programs',
10843
+ 'x-route-path': '/thermostats/daily_programs',
10705
10844
  },
10706
10845
  type: 'array',
10707
10846
  'x-property-group-key': 'thermostats',
@@ -16167,6 +16306,55 @@ export default {
16167
16306
  'x-route-path': '/user_identities',
16168
16307
  'x-undocumented': 'Unreleased.',
16169
16308
  },
16309
+ location: {
16310
+ properties: {
16311
+ created_at: {
16312
+ description:
16313
+ 'Date and time at which the location object was created.',
16314
+ format: 'date-time',
16315
+ type: 'string',
16316
+ },
16317
+ display_name: {
16318
+ description: 'Display name of the location.',
16319
+ type: 'string',
16320
+ },
16321
+ geolocation: {
16322
+ description: 'Geographical location of the location.',
16323
+ properties: {
16324
+ latitude: { format: 'float', type: 'number' },
16325
+ longitude: { format: 'float', type: 'number' },
16326
+ },
16327
+ required: ['latitude', 'longitude'],
16328
+ type: 'object',
16329
+ },
16330
+ location_id: {
16331
+ description: 'Unique identifier for the location.',
16332
+ format: 'uuid',
16333
+ type: 'string',
16334
+ },
16335
+ name: { description: 'Name of the location.', type: 'string' },
16336
+ time_zone: {
16337
+ description: 'Time zone of the location.',
16338
+ type: 'string',
16339
+ },
16340
+ workspace_id: {
16341
+ description:
16342
+ 'Unique identifier for the Seam workspace associated with the location.',
16343
+ format: 'uuid',
16344
+ type: 'string',
16345
+ },
16346
+ },
16347
+ required: [
16348
+ 'location_id',
16349
+ 'workspace_id',
16350
+ 'name',
16351
+ 'display_name',
16352
+ 'created_at',
16353
+ ],
16354
+ type: 'object',
16355
+ 'x-route-path': '/unstable_locations',
16356
+ 'x-undocumented': 'Will be removed.',
16357
+ },
16170
16358
  magic_link: {
16171
16359
  properties: {
16172
16360
  building_block_type: {
@@ -16269,6 +16457,33 @@ export default {
16269
16457
  required: ['next_page_cursor', 'has_next_page', 'next_page_url'],
16270
16458
  type: 'object',
16271
16459
  },
16460
+ partner_resource: {
16461
+ properties: {
16462
+ custom_metadata: {
16463
+ additionalProperties: { type: 'string' },
16464
+ type: 'object',
16465
+ },
16466
+ customer_key: { type: 'string' },
16467
+ description: { type: 'string' },
16468
+ email_address: { type: 'string' },
16469
+ ends_at: { type: 'string' },
16470
+ location_keys: { items: { type: 'string' }, type: 'array' },
16471
+ name: { type: 'string' },
16472
+ partner_resource_key: { type: 'string' },
16473
+ partner_resource_type: { type: 'string' },
16474
+ phone_number: { type: 'string' },
16475
+ starts_at: { type: 'string' },
16476
+ user_identity_key: { type: 'string' },
16477
+ },
16478
+ required: [
16479
+ 'partner_resource_type',
16480
+ 'partner_resource_key',
16481
+ 'customer_key',
16482
+ ],
16483
+ type: 'object',
16484
+ 'x-route-path': '/unstable_partner/resources',
16485
+ 'x-undocumented': 'Unreleased.',
16486
+ },
16272
16487
  phone: {
16273
16488
  description: "Represents an app user's mobile phone.",
16274
16489
  properties: {
@@ -16434,7 +16649,7 @@ export default {
16434
16649
  enum: ['code', 'card', 'mobile_key'],
16435
16650
  type: 'string',
16436
16651
  },
16437
- acs_credential_id: { type: 'string' },
16652
+ acs_credential_id: { nullable: true, type: 'string' },
16438
16653
  acs_credential_pool_id: {
16439
16654
  format: 'uuid',
16440
16655
  type: 'string',
@@ -16991,6 +17206,7 @@ export default {
16991
17206
  'errors',
16992
17207
  'warnings',
16993
17208
  'is_managed',
17209
+ 'acs_credential_id',
16994
17210
  'acs_entrances',
16995
17211
  ],
16996
17212
  type: 'object',
@@ -17061,6 +17277,74 @@ export default {
17061
17277
  'x-draft': 'Early access.',
17062
17278
  'x-route-path': '/spaces',
17063
17279
  },
17280
+ thermostat_daily_program: {
17281
+ description:
17282
+ 'Represents a thermostat daily program, consisting of a set of periods, each of which has a starting time and the key that identifies the climate preset to apply at the starting time.',
17283
+ properties: {
17284
+ created_at: {
17285
+ description:
17286
+ 'Date and time at which the thermostat daily program was created.',
17287
+ format: 'date-time',
17288
+ type: 'string',
17289
+ },
17290
+ device_id: {
17291
+ description:
17292
+ 'ID of the thermostat device on which the thermostat daily program is configured.',
17293
+ format: 'uuid',
17294
+ type: 'string',
17295
+ },
17296
+ name: {
17297
+ description:
17298
+ 'User-friendly name to identify the thermostat daily program.',
17299
+ nullable: true,
17300
+ type: 'string',
17301
+ },
17302
+ periods: {
17303
+ description: 'Array of thermostat daily program periods.',
17304
+ items: {
17305
+ description:
17306
+ 'Period for a thermostat daily program. Consists of a starts at time and the key that identifies the configured climate preset to apply at the starting time.',
17307
+ properties: {
17308
+ climate_preset_key: {
17309
+ description:
17310
+ 'Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to activate at the `starts_at_time`.',
17311
+ type: 'string',
17312
+ },
17313
+ starts_at_time: {
17314
+ description:
17315
+ 'Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
17316
+ pattern: '^([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)$',
17317
+ type: 'string',
17318
+ },
17319
+ },
17320
+ required: ['starts_at_time', 'climate_preset_key'],
17321
+ type: 'object',
17322
+ },
17323
+ type: 'array',
17324
+ },
17325
+ thermostat_daily_program_id: {
17326
+ description: 'ID of the thermostat daily program.',
17327
+ format: 'uuid',
17328
+ type: 'string',
17329
+ },
17330
+ workspace_id: {
17331
+ description:
17332
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat daily program.',
17333
+ format: 'uuid',
17334
+ type: 'string',
17335
+ },
17336
+ },
17337
+ required: [
17338
+ 'thermostat_daily_program_id',
17339
+ 'device_id',
17340
+ 'name',
17341
+ 'periods',
17342
+ 'workspace_id',
17343
+ 'created_at',
17344
+ ],
17345
+ type: 'object',
17346
+ 'x-route-path': '/thermostats/daily_programs',
17347
+ },
17064
17348
  thermostat_schedule: {
17065
17349
  description:
17066
17350
  'Represents a [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) that activates a configured [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) on a [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) at a specified starting time and deactivates the climate preset at a specified ending time.',
@@ -32959,147 +33243,7 @@ export default {
32959
33243
  schema: {
32960
33244
  properties: {
32961
33245
  bridge_client_session: {
32962
- properties: {
32963
- bridge_client_machine_identifier_key: {
32964
- type: 'string',
32965
- },
32966
- bridge_client_name: { type: 'string' },
32967
- bridge_client_session_id: {
32968
- format: 'uuid',
32969
- type: 'string',
32970
- },
32971
- bridge_client_session_token: { type: 'string' },
32972
- bridge_client_time_zone: { type: 'string' },
32973
- created_at: { format: 'date-time', type: 'string' },
32974
- errors: {
32975
- items: {
32976
- description:
32977
- 'Error associated with the `bridge_client_session`.',
32978
- discriminator: { propertyName: 'error_code' },
32979
- oneOf: [
32980
- {
32981
- description:
32982
- "Seam cannot reach the bridge's LAN",
32983
- properties: {
32984
- can_tailscale_proxy_reach_bridge: {
32985
- description:
32986
- 'Tailscale proxy cannot reach the bridge',
32987
- nullable: true,
32988
- type: 'boolean',
32989
- },
32990
- can_tailscale_proxy_reach_tailscale_network: {
32991
- description:
32992
- 'Tailscale proxy cannot reach the Tailscale network',
32993
- nullable: true,
32994
- type: 'boolean',
32995
- },
32996
- created_at: {
32997
- format: 'date-time',
32998
- type: 'string',
32999
- },
33000
- error_code: {
33001
- description:
33002
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
33003
- enum: ['bridge_lan_unreachable'],
33004
- type: 'string',
33005
- },
33006
- is_bridge_socks_server_healthy: {
33007
- description:
33008
- "Bridge's SOCKS server is unhealthy",
33009
- nullable: true,
33010
- type: 'boolean',
33011
- },
33012
- is_tailscale_proxy_reachable: {
33013
- description:
33014
- 'Seam cannot reach the tailscale proxy',
33015
- nullable: true,
33016
- type: 'boolean',
33017
- },
33018
- is_tailscale_proxy_socks_server_healthy: {
33019
- description:
33020
- "Tailscale proxy's SOCKS server is unhealthy",
33021
- nullable: true,
33022
- type: 'boolean',
33023
- },
33024
- message: { type: 'string' },
33025
- },
33026
- required: [
33027
- 'message',
33028
- 'created_at',
33029
- 'error_code',
33030
- 'is_tailscale_proxy_reachable',
33031
- 'is_tailscale_proxy_socks_server_healthy',
33032
- 'can_tailscale_proxy_reach_tailscale_network',
33033
- 'can_tailscale_proxy_reach_bridge',
33034
- 'is_bridge_socks_server_healthy',
33035
- ],
33036
- type: 'object',
33037
- },
33038
- {
33039
- description:
33040
- 'Bridge has stopped communicating with Seam',
33041
- properties: {
33042
- created_at: {
33043
- format: 'date-time',
33044
- type: 'string',
33045
- },
33046
- error_code: {
33047
- description:
33048
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
33049
- enum: ['no_communication_from_bridge'],
33050
- type: 'string',
33051
- },
33052
- message: { type: 'string' },
33053
- },
33054
- required: [
33055
- 'message',
33056
- 'created_at',
33057
- 'error_code',
33058
- ],
33059
- type: 'object',
33060
- },
33061
- ],
33062
- },
33063
- type: 'array',
33064
- },
33065
- pairing_code: {
33066
- maxLength: 6,
33067
- minLength: 6,
33068
- type: 'string',
33069
- },
33070
- pairing_code_expires_at: {
33071
- format: 'date-time',
33072
- type: 'string',
33073
- },
33074
- tailscale_auth_key: { nullable: true, type: 'string' },
33075
- tailscale_hostname: { type: 'string' },
33076
- telemetry_token: { nullable: true, type: 'string' },
33077
- telemetry_token_expires_at: {
33078
- format: 'date-time',
33079
- nullable: true,
33080
- type: 'string',
33081
- },
33082
- telemetry_url: { nullable: true, type: 'string' },
33083
- },
33084
- required: [
33085
- 'created_at',
33086
- 'bridge_client_session_id',
33087
- 'bridge_client_session_token',
33088
- 'pairing_code',
33089
- 'pairing_code_expires_at',
33090
- 'tailscale_hostname',
33091
- 'tailscale_auth_key',
33092
- 'bridge_client_name',
33093
- 'bridge_client_time_zone',
33094
- 'bridge_client_machine_identifier_key',
33095
- 'errors',
33096
- 'telemetry_token',
33097
- 'telemetry_token_expires_at',
33098
- 'telemetry_url',
33099
- ],
33100
- type: 'object',
33101
- 'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
33102
- 'x-undocumented': 'Seam Bridge Client only.',
33246
+ $ref: '#/components/schemas/bridge_client_session',
33103
33247
  },
33104
33248
  ok: { type: 'boolean' },
33105
33249
  },
@@ -33141,147 +33285,7 @@ export default {
33141
33285
  schema: {
33142
33286
  properties: {
33143
33287
  bridge_client_session: {
33144
- properties: {
33145
- bridge_client_machine_identifier_key: {
33146
- type: 'string',
33147
- },
33148
- bridge_client_name: { type: 'string' },
33149
- bridge_client_session_id: {
33150
- format: 'uuid',
33151
- type: 'string',
33152
- },
33153
- bridge_client_session_token: { type: 'string' },
33154
- bridge_client_time_zone: { type: 'string' },
33155
- created_at: { format: 'date-time', type: 'string' },
33156
- errors: {
33157
- items: {
33158
- description:
33159
- 'Error associated with the `bridge_client_session`.',
33160
- discriminator: { propertyName: 'error_code' },
33161
- oneOf: [
33162
- {
33163
- description:
33164
- "Seam cannot reach the bridge's LAN",
33165
- properties: {
33166
- can_tailscale_proxy_reach_bridge: {
33167
- description:
33168
- 'Tailscale proxy cannot reach the bridge',
33169
- nullable: true,
33170
- type: 'boolean',
33171
- },
33172
- can_tailscale_proxy_reach_tailscale_network: {
33173
- description:
33174
- 'Tailscale proxy cannot reach the Tailscale network',
33175
- nullable: true,
33176
- type: 'boolean',
33177
- },
33178
- created_at: {
33179
- format: 'date-time',
33180
- type: 'string',
33181
- },
33182
- error_code: {
33183
- description:
33184
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
33185
- enum: ['bridge_lan_unreachable'],
33186
- type: 'string',
33187
- },
33188
- is_bridge_socks_server_healthy: {
33189
- description:
33190
- "Bridge's SOCKS server is unhealthy",
33191
- nullable: true,
33192
- type: 'boolean',
33193
- },
33194
- is_tailscale_proxy_reachable: {
33195
- description:
33196
- 'Seam cannot reach the tailscale proxy',
33197
- nullable: true,
33198
- type: 'boolean',
33199
- },
33200
- is_tailscale_proxy_socks_server_healthy: {
33201
- description:
33202
- "Tailscale proxy's SOCKS server is unhealthy",
33203
- nullable: true,
33204
- type: 'boolean',
33205
- },
33206
- message: { type: 'string' },
33207
- },
33208
- required: [
33209
- 'message',
33210
- 'created_at',
33211
- 'error_code',
33212
- 'is_tailscale_proxy_reachable',
33213
- 'is_tailscale_proxy_socks_server_healthy',
33214
- 'can_tailscale_proxy_reach_tailscale_network',
33215
- 'can_tailscale_proxy_reach_bridge',
33216
- 'is_bridge_socks_server_healthy',
33217
- ],
33218
- type: 'object',
33219
- },
33220
- {
33221
- description:
33222
- 'Bridge has stopped communicating with Seam',
33223
- properties: {
33224
- created_at: {
33225
- format: 'date-time',
33226
- type: 'string',
33227
- },
33228
- error_code: {
33229
- description:
33230
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
33231
- enum: ['no_communication_from_bridge'],
33232
- type: 'string',
33233
- },
33234
- message: { type: 'string' },
33235
- },
33236
- required: [
33237
- 'message',
33238
- 'created_at',
33239
- 'error_code',
33240
- ],
33241
- type: 'object',
33242
- },
33243
- ],
33244
- },
33245
- type: 'array',
33246
- },
33247
- pairing_code: {
33248
- maxLength: 6,
33249
- minLength: 6,
33250
- type: 'string',
33251
- },
33252
- pairing_code_expires_at: {
33253
- format: 'date-time',
33254
- type: 'string',
33255
- },
33256
- tailscale_auth_key: { nullable: true, type: 'string' },
33257
- tailscale_hostname: { type: 'string' },
33258
- telemetry_token: { nullable: true, type: 'string' },
33259
- telemetry_token_expires_at: {
33260
- format: 'date-time',
33261
- nullable: true,
33262
- type: 'string',
33263
- },
33264
- telemetry_url: { nullable: true, type: 'string' },
33265
- },
33266
- required: [
33267
- 'created_at',
33268
- 'bridge_client_session_id',
33269
- 'bridge_client_session_token',
33270
- 'pairing_code',
33271
- 'pairing_code_expires_at',
33272
- 'tailscale_hostname',
33273
- 'tailscale_auth_key',
33274
- 'bridge_client_name',
33275
- 'bridge_client_time_zone',
33276
- 'bridge_client_machine_identifier_key',
33277
- 'errors',
33278
- 'telemetry_token',
33279
- 'telemetry_token_expires_at',
33280
- 'telemetry_url',
33281
- ],
33282
- type: 'object',
33283
- 'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
33284
- 'x-undocumented': 'Seam Bridge Client only.',
33288
+ $ref: '#/components/schemas/bridge_client_session',
33285
33289
  },
33286
33290
  ok: { type: 'boolean' },
33287
33291
  },
@@ -33314,147 +33318,7 @@ export default {
33314
33318
  schema: {
33315
33319
  properties: {
33316
33320
  bridge_client_session: {
33317
- properties: {
33318
- bridge_client_machine_identifier_key: {
33319
- type: 'string',
33320
- },
33321
- bridge_client_name: { type: 'string' },
33322
- bridge_client_session_id: {
33323
- format: 'uuid',
33324
- type: 'string',
33325
- },
33326
- bridge_client_session_token: { type: 'string' },
33327
- bridge_client_time_zone: { type: 'string' },
33328
- created_at: { format: 'date-time', type: 'string' },
33329
- errors: {
33330
- items: {
33331
- description:
33332
- 'Error associated with the `bridge_client_session`.',
33333
- discriminator: { propertyName: 'error_code' },
33334
- oneOf: [
33335
- {
33336
- description:
33337
- "Seam cannot reach the bridge's LAN",
33338
- properties: {
33339
- can_tailscale_proxy_reach_bridge: {
33340
- description:
33341
- 'Tailscale proxy cannot reach the bridge',
33342
- nullable: true,
33343
- type: 'boolean',
33344
- },
33345
- can_tailscale_proxy_reach_tailscale_network: {
33346
- description:
33347
- 'Tailscale proxy cannot reach the Tailscale network',
33348
- nullable: true,
33349
- type: 'boolean',
33350
- },
33351
- created_at: {
33352
- format: 'date-time',
33353
- type: 'string',
33354
- },
33355
- error_code: {
33356
- description:
33357
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
33358
- enum: ['bridge_lan_unreachable'],
33359
- type: 'string',
33360
- },
33361
- is_bridge_socks_server_healthy: {
33362
- description:
33363
- "Bridge's SOCKS server is unhealthy",
33364
- nullable: true,
33365
- type: 'boolean',
33366
- },
33367
- is_tailscale_proxy_reachable: {
33368
- description:
33369
- 'Seam cannot reach the tailscale proxy',
33370
- nullable: true,
33371
- type: 'boolean',
33372
- },
33373
- is_tailscale_proxy_socks_server_healthy: {
33374
- description:
33375
- "Tailscale proxy's SOCKS server is unhealthy",
33376
- nullable: true,
33377
- type: 'boolean',
33378
- },
33379
- message: { type: 'string' },
33380
- },
33381
- required: [
33382
- 'message',
33383
- 'created_at',
33384
- 'error_code',
33385
- 'is_tailscale_proxy_reachable',
33386
- 'is_tailscale_proxy_socks_server_healthy',
33387
- 'can_tailscale_proxy_reach_tailscale_network',
33388
- 'can_tailscale_proxy_reach_bridge',
33389
- 'is_bridge_socks_server_healthy',
33390
- ],
33391
- type: 'object',
33392
- },
33393
- {
33394
- description:
33395
- 'Bridge has stopped communicating with Seam',
33396
- properties: {
33397
- created_at: {
33398
- format: 'date-time',
33399
- type: 'string',
33400
- },
33401
- error_code: {
33402
- description:
33403
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
33404
- enum: ['no_communication_from_bridge'],
33405
- type: 'string',
33406
- },
33407
- message: { type: 'string' },
33408
- },
33409
- required: [
33410
- 'message',
33411
- 'created_at',
33412
- 'error_code',
33413
- ],
33414
- type: 'object',
33415
- },
33416
- ],
33417
- },
33418
- type: 'array',
33419
- },
33420
- pairing_code: {
33421
- maxLength: 6,
33422
- minLength: 6,
33423
- type: 'string',
33424
- },
33425
- pairing_code_expires_at: {
33426
- format: 'date-time',
33427
- type: 'string',
33428
- },
33429
- tailscale_auth_key: { nullable: true, type: 'string' },
33430
- tailscale_hostname: { type: 'string' },
33431
- telemetry_token: { nullable: true, type: 'string' },
33432
- telemetry_token_expires_at: {
33433
- format: 'date-time',
33434
- nullable: true,
33435
- type: 'string',
33436
- },
33437
- telemetry_url: { nullable: true, type: 'string' },
33438
- },
33439
- required: [
33440
- 'created_at',
33441
- 'bridge_client_session_id',
33442
- 'bridge_client_session_token',
33443
- 'pairing_code',
33444
- 'pairing_code_expires_at',
33445
- 'tailscale_hostname',
33446
- 'tailscale_auth_key',
33447
- 'bridge_client_name',
33448
- 'bridge_client_time_zone',
33449
- 'bridge_client_machine_identifier_key',
33450
- 'errors',
33451
- 'telemetry_token',
33452
- 'telemetry_token_expires_at',
33453
- 'telemetry_url',
33454
- ],
33455
- type: 'object',
33456
- 'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
33457
- 'x-undocumented': 'Seam Bridge Client only.',
33321
+ $ref: '#/components/schemas/bridge_client_session',
33458
33322
  },
33459
33323
  ok: { type: 'boolean' },
33460
33324
  },
@@ -33497,147 +33361,7 @@ export default {
33497
33361
  schema: {
33498
33362
  properties: {
33499
33363
  bridge_client_session: {
33500
- properties: {
33501
- bridge_client_machine_identifier_key: {
33502
- type: 'string',
33503
- },
33504
- bridge_client_name: { type: 'string' },
33505
- bridge_client_session_id: {
33506
- format: 'uuid',
33507
- type: 'string',
33508
- },
33509
- bridge_client_session_token: { type: 'string' },
33510
- bridge_client_time_zone: { type: 'string' },
33511
- created_at: { format: 'date-time', type: 'string' },
33512
- errors: {
33513
- items: {
33514
- description:
33515
- 'Error associated with the `bridge_client_session`.',
33516
- discriminator: { propertyName: 'error_code' },
33517
- oneOf: [
33518
- {
33519
- description:
33520
- "Seam cannot reach the bridge's LAN",
33521
- properties: {
33522
- can_tailscale_proxy_reach_bridge: {
33523
- description:
33524
- 'Tailscale proxy cannot reach the bridge',
33525
- nullable: true,
33526
- type: 'boolean',
33527
- },
33528
- can_tailscale_proxy_reach_tailscale_network: {
33529
- description:
33530
- 'Tailscale proxy cannot reach the Tailscale network',
33531
- nullable: true,
33532
- type: 'boolean',
33533
- },
33534
- created_at: {
33535
- format: 'date-time',
33536
- type: 'string',
33537
- },
33538
- error_code: {
33539
- description:
33540
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
33541
- enum: ['bridge_lan_unreachable'],
33542
- type: 'string',
33543
- },
33544
- is_bridge_socks_server_healthy: {
33545
- description:
33546
- "Bridge's SOCKS server is unhealthy",
33547
- nullable: true,
33548
- type: 'boolean',
33549
- },
33550
- is_tailscale_proxy_reachable: {
33551
- description:
33552
- 'Seam cannot reach the tailscale proxy',
33553
- nullable: true,
33554
- type: 'boolean',
33555
- },
33556
- is_tailscale_proxy_socks_server_healthy: {
33557
- description:
33558
- "Tailscale proxy's SOCKS server is unhealthy",
33559
- nullable: true,
33560
- type: 'boolean',
33561
- },
33562
- message: { type: 'string' },
33563
- },
33564
- required: [
33565
- 'message',
33566
- 'created_at',
33567
- 'error_code',
33568
- 'is_tailscale_proxy_reachable',
33569
- 'is_tailscale_proxy_socks_server_healthy',
33570
- 'can_tailscale_proxy_reach_tailscale_network',
33571
- 'can_tailscale_proxy_reach_bridge',
33572
- 'is_bridge_socks_server_healthy',
33573
- ],
33574
- type: 'object',
33575
- },
33576
- {
33577
- description:
33578
- 'Bridge has stopped communicating with Seam',
33579
- properties: {
33580
- created_at: {
33581
- format: 'date-time',
33582
- type: 'string',
33583
- },
33584
- error_code: {
33585
- description:
33586
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
33587
- enum: ['no_communication_from_bridge'],
33588
- type: 'string',
33589
- },
33590
- message: { type: 'string' },
33591
- },
33592
- required: [
33593
- 'message',
33594
- 'created_at',
33595
- 'error_code',
33596
- ],
33597
- type: 'object',
33598
- },
33599
- ],
33600
- },
33601
- type: 'array',
33602
- },
33603
- pairing_code: {
33604
- maxLength: 6,
33605
- minLength: 6,
33606
- type: 'string',
33607
- },
33608
- pairing_code_expires_at: {
33609
- format: 'date-time',
33610
- type: 'string',
33611
- },
33612
- tailscale_auth_key: { nullable: true, type: 'string' },
33613
- tailscale_hostname: { type: 'string' },
33614
- telemetry_token: { nullable: true, type: 'string' },
33615
- telemetry_token_expires_at: {
33616
- format: 'date-time',
33617
- nullable: true,
33618
- type: 'string',
33619
- },
33620
- telemetry_url: { nullable: true, type: 'string' },
33621
- },
33622
- required: [
33623
- 'created_at',
33624
- 'bridge_client_session_id',
33625
- 'bridge_client_session_token',
33626
- 'pairing_code',
33627
- 'pairing_code_expires_at',
33628
- 'tailscale_hostname',
33629
- 'tailscale_auth_key',
33630
- 'bridge_client_name',
33631
- 'bridge_client_time_zone',
33632
- 'bridge_client_machine_identifier_key',
33633
- 'errors',
33634
- 'telemetry_token',
33635
- 'telemetry_token_expires_at',
33636
- 'telemetry_url',
33637
- ],
33638
- type: 'object',
33639
- 'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
33640
- 'x-undocumented': 'Seam Bridge Client only.',
33364
+ $ref: '#/components/schemas/bridge_client_session',
33641
33365
  },
33642
33366
  ok: { type: 'boolean' },
33643
33367
  },
@@ -33682,147 +33406,7 @@ export default {
33682
33406
  schema: {
33683
33407
  properties: {
33684
33408
  bridge_client_session: {
33685
- properties: {
33686
- bridge_client_machine_identifier_key: {
33687
- type: 'string',
33688
- },
33689
- bridge_client_name: { type: 'string' },
33690
- bridge_client_session_id: {
33691
- format: 'uuid',
33692
- type: 'string',
33693
- },
33694
- bridge_client_session_token: { type: 'string' },
33695
- bridge_client_time_zone: { type: 'string' },
33696
- created_at: { format: 'date-time', type: 'string' },
33697
- errors: {
33698
- items: {
33699
- description:
33700
- 'Error associated with the `bridge_client_session`.',
33701
- discriminator: { propertyName: 'error_code' },
33702
- oneOf: [
33703
- {
33704
- description:
33705
- "Seam cannot reach the bridge's LAN",
33706
- properties: {
33707
- can_tailscale_proxy_reach_bridge: {
33708
- description:
33709
- 'Tailscale proxy cannot reach the bridge',
33710
- nullable: true,
33711
- type: 'boolean',
33712
- },
33713
- can_tailscale_proxy_reach_tailscale_network: {
33714
- description:
33715
- 'Tailscale proxy cannot reach the Tailscale network',
33716
- nullable: true,
33717
- type: 'boolean',
33718
- },
33719
- created_at: {
33720
- format: 'date-time',
33721
- type: 'string',
33722
- },
33723
- error_code: {
33724
- description:
33725
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
33726
- enum: ['bridge_lan_unreachable'],
33727
- type: 'string',
33728
- },
33729
- is_bridge_socks_server_healthy: {
33730
- description:
33731
- "Bridge's SOCKS server is unhealthy",
33732
- nullable: true,
33733
- type: 'boolean',
33734
- },
33735
- is_tailscale_proxy_reachable: {
33736
- description:
33737
- 'Seam cannot reach the tailscale proxy',
33738
- nullable: true,
33739
- type: 'boolean',
33740
- },
33741
- is_tailscale_proxy_socks_server_healthy: {
33742
- description:
33743
- "Tailscale proxy's SOCKS server is unhealthy",
33744
- nullable: true,
33745
- type: 'boolean',
33746
- },
33747
- message: { type: 'string' },
33748
- },
33749
- required: [
33750
- 'message',
33751
- 'created_at',
33752
- 'error_code',
33753
- 'is_tailscale_proxy_reachable',
33754
- 'is_tailscale_proxy_socks_server_healthy',
33755
- 'can_tailscale_proxy_reach_tailscale_network',
33756
- 'can_tailscale_proxy_reach_bridge',
33757
- 'is_bridge_socks_server_healthy',
33758
- ],
33759
- type: 'object',
33760
- },
33761
- {
33762
- description:
33763
- 'Bridge has stopped communicating with Seam',
33764
- properties: {
33765
- created_at: {
33766
- format: 'date-time',
33767
- type: 'string',
33768
- },
33769
- error_code: {
33770
- description:
33771
- 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
33772
- enum: ['no_communication_from_bridge'],
33773
- type: 'string',
33774
- },
33775
- message: { type: 'string' },
33776
- },
33777
- required: [
33778
- 'message',
33779
- 'created_at',
33780
- 'error_code',
33781
- ],
33782
- type: 'object',
33783
- },
33784
- ],
33785
- },
33786
- type: 'array',
33787
- },
33788
- pairing_code: {
33789
- maxLength: 6,
33790
- minLength: 6,
33791
- type: 'string',
33792
- },
33793
- pairing_code_expires_at: {
33794
- format: 'date-time',
33795
- type: 'string',
33796
- },
33797
- tailscale_auth_key: { nullable: true, type: 'string' },
33798
- tailscale_hostname: { type: 'string' },
33799
- telemetry_token: { nullable: true, type: 'string' },
33800
- telemetry_token_expires_at: {
33801
- format: 'date-time',
33802
- nullable: true,
33803
- type: 'string',
33804
- },
33805
- telemetry_url: { nullable: true, type: 'string' },
33806
- },
33807
- required: [
33808
- 'created_at',
33809
- 'bridge_client_session_id',
33810
- 'bridge_client_session_token',
33811
- 'pairing_code',
33812
- 'pairing_code_expires_at',
33813
- 'tailscale_hostname',
33814
- 'tailscale_auth_key',
33815
- 'bridge_client_name',
33816
- 'bridge_client_time_zone',
33817
- 'bridge_client_machine_identifier_key',
33818
- 'errors',
33819
- 'telemetry_token',
33820
- 'telemetry_token_expires_at',
33821
- 'telemetry_url',
33822
- ],
33823
- type: 'object',
33824
- 'x-route-path': '/seam/bridge/v1/bridge_client_sessions',
33825
- 'x-undocumented': 'Seam Bridge Client only.',
33409
+ $ref: '#/components/schemas/bridge_client_session',
33826
33410
  },
33827
33411
  ok: { type: 'boolean' },
33828
33412
  },
@@ -33924,39 +33508,7 @@ export default {
33924
33508
  properties: {
33925
33509
  bridge_connected_systems: {
33926
33510
  items: {
33927
- properties: {
33928
- acs_system_display_name: { type: 'string' },
33929
- acs_system_id: { format: 'uuid', type: 'string' },
33930
- bridge_created_at: {
33931
- format: 'date-time',
33932
- type: 'string',
33933
- },
33934
- bridge_id: { format: 'uuid', type: 'string' },
33935
- connected_account_created_at: {
33936
- format: 'date-time',
33937
- type: 'string',
33938
- },
33939
- connected_account_id: {
33940
- format: 'uuid',
33941
- type: 'string',
33942
- },
33943
- workspace_display_name: { type: 'string' },
33944
- workspace_id: { format: 'uuid', type: 'string' },
33945
- },
33946
- required: [
33947
- 'bridge_id',
33948
- 'bridge_created_at',
33949
- 'connected_account_id',
33950
- 'connected_account_created_at',
33951
- 'acs_system_id',
33952
- 'acs_system_display_name',
33953
- 'workspace_id',
33954
- 'workspace_display_name',
33955
- ],
33956
- type: 'object',
33957
- 'x-route-path':
33958
- '/seam/bridge/v1/bridge_connected_systems',
33959
- 'x-undocumented': 'Seam Bridge Client only.',
33511
+ $ref: '#/components/schemas/bridge_connected_systems',
33960
33512
  },
33961
33513
  type: 'array',
33962
33514
  },
@@ -33992,39 +33544,7 @@ export default {
33992
33544
  properties: {
33993
33545
  bridge_connected_systems: {
33994
33546
  items: {
33995
- properties: {
33996
- acs_system_display_name: { type: 'string' },
33997
- acs_system_id: { format: 'uuid', type: 'string' },
33998
- bridge_created_at: {
33999
- format: 'date-time',
34000
- type: 'string',
34001
- },
34002
- bridge_id: { format: 'uuid', type: 'string' },
34003
- connected_account_created_at: {
34004
- format: 'date-time',
34005
- type: 'string',
34006
- },
34007
- connected_account_id: {
34008
- format: 'uuid',
34009
- type: 'string',
34010
- },
34011
- workspace_display_name: { type: 'string' },
34012
- workspace_id: { format: 'uuid', type: 'string' },
34013
- },
34014
- required: [
34015
- 'bridge_id',
34016
- 'bridge_created_at',
34017
- 'connected_account_id',
34018
- 'connected_account_created_at',
34019
- 'acs_system_id',
34020
- 'acs_system_display_name',
34021
- 'workspace_id',
34022
- 'workspace_display_name',
34023
- ],
34024
- type: 'object',
34025
- 'x-route-path':
34026
- '/seam/bridge/v1/bridge_connected_systems',
34027
- 'x-undocumented': 'Seam Bridge Client only.',
33547
+ $ref: '#/components/schemas/bridge_connected_systems',
34028
33548
  },
34029
33549
  type: 'array',
34030
33550
  },
@@ -34360,36 +33880,7 @@ export default {
34360
33880
  properties: {
34361
33881
  ok: { type: 'boolean' },
34362
33882
  partner_resources: {
34363
- items: {
34364
- properties: {
34365
- custom_metadata: {
34366
- additionalProperties: { type: 'string' },
34367
- type: 'object',
34368
- },
34369
- customer_key: { type: 'string' },
34370
- description: { type: 'string' },
34371
- email_address: { type: 'string' },
34372
- ends_at: { type: 'string' },
34373
- location_keys: {
34374
- items: { type: 'string' },
34375
- type: 'array',
34376
- },
34377
- name: { type: 'string' },
34378
- partner_resource_key: { type: 'string' },
34379
- partner_resource_type: { type: 'string' },
34380
- phone_number: { type: 'string' },
34381
- starts_at: { type: 'string' },
34382
- user_identity_key: { type: 'string' },
34383
- },
34384
- required: [
34385
- 'partner_resource_type',
34386
- 'partner_resource_key',
34387
- 'customer_key',
34388
- ],
34389
- type: 'object',
34390
- 'x-route-path': '/unstable_partner/resources',
34391
- 'x-undocumented': 'Unreleased.',
34392
- },
33883
+ items: { $ref: '#/components/schemas/partner_resource' },
34393
33884
  type: 'array',
34394
33885
  },
34395
33886
  },
@@ -35389,115 +34880,48 @@ export default {
35389
34880
  type: 'string',
35390
34881
  },
35391
34882
  name: {
35392
- description: 'Name of the thermostat daily program.',
35393
- type: 'string',
35394
- },
35395
- periods: {
35396
- description: 'Array of thermostat daily program periods.',
35397
- items: {
35398
- description:
35399
- 'Period for a thermostat daily program. Consists of a starts at time and the key that identifies the configured climate preset to apply at the starting time.',
35400
- properties: {
35401
- climate_preset_key: {
35402
- description:
35403
- 'Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to activate at the `starts_at_time`.',
35404
- type: 'string',
35405
- },
35406
- starts_at_time: {
35407
- description:
35408
- 'Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
35409
- pattern: '^([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)$',
35410
- type: 'string',
35411
- },
35412
- },
35413
- required: ['starts_at_time', 'climate_preset_key'],
35414
- type: 'object',
35415
- },
35416
- type: 'array',
35417
- },
35418
- },
35419
- required: ['device_id', 'name', 'periods'],
35420
- type: 'object',
35421
- },
35422
- },
35423
- },
35424
- },
35425
- responses: {
35426
- 200: {
35427
- content: {
35428
- 'application/json': {
35429
- schema: {
35430
- properties: {
35431
- ok: { type: 'boolean' },
35432
- thermostat_daily_program: {
35433
- description:
35434
- 'Represents a thermostat daily program, consisting of a set of periods, each of which has a starting time and the key that identifies the climate preset to apply at the starting time.',
35435
- properties: {
35436
- created_at: {
35437
- description:
35438
- 'Date and time at which the thermostat daily program was created.',
35439
- format: 'date-time',
35440
- type: 'string',
35441
- },
35442
- device_id: {
35443
- description:
35444
- 'ID of the thermostat device on which the thermostat daily program is configured.',
35445
- format: 'uuid',
35446
- type: 'string',
35447
- },
35448
- name: {
35449
- description:
35450
- 'User-friendly name to identify the thermostat daily program.',
35451
- nullable: true,
35452
- type: 'string',
35453
- },
35454
- periods: {
35455
- description:
35456
- 'Array of thermostat daily program periods.',
35457
- items: {
35458
- description:
35459
- 'Period for a thermostat daily program. Consists of a starts at time and the key that identifies the configured climate preset to apply at the starting time.',
35460
- properties: {
35461
- climate_preset_key: {
35462
- description:
35463
- 'Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to activate at the `starts_at_time`.',
35464
- type: 'string',
35465
- },
35466
- starts_at_time: {
35467
- description:
35468
- 'Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
35469
- pattern:
35470
- '^([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)$',
35471
- type: 'string',
35472
- },
35473
- },
35474
- required: ['starts_at_time', 'climate_preset_key'],
35475
- type: 'object',
35476
- },
35477
- type: 'array',
35478
- },
35479
- thermostat_daily_program_id: {
35480
- description: 'ID of the thermostat daily program.',
35481
- format: 'uuid',
34883
+ description: 'Name of the thermostat daily program.',
34884
+ type: 'string',
34885
+ },
34886
+ periods: {
34887
+ description: 'Array of thermostat daily program periods.',
34888
+ items: {
34889
+ description:
34890
+ 'Period for a thermostat daily program. Consists of a starts at time and the key that identifies the configured climate preset to apply at the starting time.',
34891
+ properties: {
34892
+ climate_preset_key: {
34893
+ description:
34894
+ 'Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to activate at the `starts_at_time`.',
35482
34895
  type: 'string',
35483
34896
  },
35484
- workspace_id: {
34897
+ starts_at_time: {
35485
34898
  description:
35486
- 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the thermostat daily program.',
35487
- format: 'uuid',
34899
+ 'Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.',
34900
+ pattern: '^([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)$',
35488
34901
  type: 'string',
35489
34902
  },
35490
34903
  },
35491
- required: [
35492
- 'thermostat_daily_program_id',
35493
- 'device_id',
35494
- 'name',
35495
- 'periods',
35496
- 'workspace_id',
35497
- 'created_at',
35498
- ],
34904
+ required: ['starts_at_time', 'climate_preset_key'],
35499
34905
  type: 'object',
35500
- 'x-route-path': '/thermostats/thermostat_daily_programs',
34906
+ },
34907
+ type: 'array',
34908
+ },
34909
+ },
34910
+ required: ['device_id', 'name', 'periods'],
34911
+ type: 'object',
34912
+ },
34913
+ },
34914
+ },
34915
+ },
34916
+ responses: {
34917
+ 200: {
34918
+ content: {
34919
+ 'application/json': {
34920
+ schema: {
34921
+ properties: {
34922
+ ok: { type: 'boolean' },
34923
+ thermostat_daily_program: {
34924
+ $ref: '#/components/schemas/thermostat_daily_program',
35501
34925
  },
35502
34926
  },
35503
34927
  required: ['thermostat_daily_program', 'ok'],
@@ -38586,56 +38010,7 @@ export default {
38586
38010
  'application/json': {
38587
38011
  schema: {
38588
38012
  properties: {
38589
- location: {
38590
- properties: {
38591
- created_at: {
38592
- description:
38593
- 'Date and time at which the location object was created.',
38594
- format: 'date-time',
38595
- type: 'string',
38596
- },
38597
- display_name: {
38598
- description: 'Display name of the location.',
38599
- type: 'string',
38600
- },
38601
- geolocation: {
38602
- description: 'Geographical location of the location.',
38603
- properties: {
38604
- latitude: { format: 'float', type: 'number' },
38605
- longitude: { format: 'float', type: 'number' },
38606
- },
38607
- required: ['latitude', 'longitude'],
38608
- type: 'object',
38609
- },
38610
- location_id: {
38611
- description: 'Unique identifier for the location.',
38612
- format: 'uuid',
38613
- type: 'string',
38614
- },
38615
- name: {
38616
- description: 'Name of the location.',
38617
- type: 'string',
38618
- },
38619
- time_zone: {
38620
- description: 'Time zone of the location.',
38621
- type: 'string',
38622
- },
38623
- workspace_id: {
38624
- description:
38625
- 'Unique identifier for the Seam workspace associated with the location.',
38626
- format: 'uuid',
38627
- type: 'string',
38628
- },
38629
- },
38630
- required: [
38631
- 'location_id',
38632
- 'workspace_id',
38633
- 'name',
38634
- 'display_name',
38635
- 'created_at',
38636
- ],
38637
- type: 'object',
38638
- },
38013
+ location: { $ref: '#/components/schemas/location' },
38639
38014
  ok: { type: 'boolean' },
38640
38015
  },
38641
38016
  required: ['location', 'ok'],
@@ -38741,56 +38116,7 @@ export default {
38741
38116
  'application/json': {
38742
38117
  schema: {
38743
38118
  properties: {
38744
- location: {
38745
- properties: {
38746
- created_at: {
38747
- description:
38748
- 'Date and time at which the location object was created.',
38749
- format: 'date-time',
38750
- type: 'string',
38751
- },
38752
- display_name: {
38753
- description: 'Display name of the location.',
38754
- type: 'string',
38755
- },
38756
- geolocation: {
38757
- description: 'Geographical location of the location.',
38758
- properties: {
38759
- latitude: { format: 'float', type: 'number' },
38760
- longitude: { format: 'float', type: 'number' },
38761
- },
38762
- required: ['latitude', 'longitude'],
38763
- type: 'object',
38764
- },
38765
- location_id: {
38766
- description: 'Unique identifier for the location.',
38767
- format: 'uuid',
38768
- type: 'string',
38769
- },
38770
- name: {
38771
- description: 'Name of the location.',
38772
- type: 'string',
38773
- },
38774
- time_zone: {
38775
- description: 'Time zone of the location.',
38776
- type: 'string',
38777
- },
38778
- workspace_id: {
38779
- description:
38780
- 'Unique identifier for the Seam workspace associated with the location.',
38781
- format: 'uuid',
38782
- type: 'string',
38783
- },
38784
- },
38785
- required: [
38786
- 'location_id',
38787
- 'workspace_id',
38788
- 'name',
38789
- 'display_name',
38790
- 'created_at',
38791
- ],
38792
- type: 'object',
38793
- },
38119
+ location: { $ref: '#/components/schemas/location' },
38794
38120
  ok: { type: 'boolean' },
38795
38121
  },
38796
38122
  required: ['location', 'ok'],
@@ -38829,57 +38155,7 @@ export default {
38829
38155
  schema: {
38830
38156
  properties: {
38831
38157
  locations: {
38832
- items: {
38833
- properties: {
38834
- created_at: {
38835
- description:
38836
- 'Date and time at which the location object was created.',
38837
- format: 'date-time',
38838
- type: 'string',
38839
- },
38840
- display_name: {
38841
- description: 'Display name of the location.',
38842
- type: 'string',
38843
- },
38844
- geolocation: {
38845
- description:
38846
- 'Geographical location of the location.',
38847
- properties: {
38848
- latitude: { format: 'float', type: 'number' },
38849
- longitude: { format: 'float', type: 'number' },
38850
- },
38851
- required: ['latitude', 'longitude'],
38852
- type: 'object',
38853
- },
38854
- location_id: {
38855
- description: 'Unique identifier for the location.',
38856
- format: 'uuid',
38857
- type: 'string',
38858
- },
38859
- name: {
38860
- description: 'Name of the location.',
38861
- type: 'string',
38862
- },
38863
- time_zone: {
38864
- description: 'Time zone of the location.',
38865
- type: 'string',
38866
- },
38867
- workspace_id: {
38868
- description:
38869
- 'Unique identifier for the Seam workspace associated with the location.',
38870
- format: 'uuid',
38871
- type: 'string',
38872
- },
38873
- },
38874
- required: [
38875
- 'location_id',
38876
- 'workspace_id',
38877
- 'name',
38878
- 'display_name',
38879
- 'created_at',
38880
- ],
38881
- type: 'object',
38882
- },
38158
+ items: { $ref: '#/components/schemas/location' },
38883
38159
  type: 'array',
38884
38160
  },
38885
38161
  ok: { type: 'boolean' },
@@ -38916,57 +38192,7 @@ export default {
38916
38192
  schema: {
38917
38193
  properties: {
38918
38194
  locations: {
38919
- items: {
38920
- properties: {
38921
- created_at: {
38922
- description:
38923
- 'Date and time at which the location object was created.',
38924
- format: 'date-time',
38925
- type: 'string',
38926
- },
38927
- display_name: {
38928
- description: 'Display name of the location.',
38929
- type: 'string',
38930
- },
38931
- geolocation: {
38932
- description:
38933
- 'Geographical location of the location.',
38934
- properties: {
38935
- latitude: { format: 'float', type: 'number' },
38936
- longitude: { format: 'float', type: 'number' },
38937
- },
38938
- required: ['latitude', 'longitude'],
38939
- type: 'object',
38940
- },
38941
- location_id: {
38942
- description: 'Unique identifier for the location.',
38943
- format: 'uuid',
38944
- type: 'string',
38945
- },
38946
- name: {
38947
- description: 'Name of the location.',
38948
- type: 'string',
38949
- },
38950
- time_zone: {
38951
- description: 'Time zone of the location.',
38952
- type: 'string',
38953
- },
38954
- workspace_id: {
38955
- description:
38956
- 'Unique identifier for the Seam workspace associated with the location.',
38957
- format: 'uuid',
38958
- type: 'string',
38959
- },
38960
- },
38961
- required: [
38962
- 'location_id',
38963
- 'workspace_id',
38964
- 'name',
38965
- 'display_name',
38966
- 'created_at',
38967
- ],
38968
- type: 'object',
38969
- },
38195
+ items: { $ref: '#/components/schemas/location' },
38970
38196
  type: 'array',
38971
38197
  },
38972
38198
  ok: { type: 'boolean' },
@@ -39156,56 +38382,7 @@ export default {
39156
38382
  'application/json': {
39157
38383
  schema: {
39158
38384
  properties: {
39159
- location: {
39160
- properties: {
39161
- created_at: {
39162
- description:
39163
- 'Date and time at which the location object was created.',
39164
- format: 'date-time',
39165
- type: 'string',
39166
- },
39167
- display_name: {
39168
- description: 'Display name of the location.',
39169
- type: 'string',
39170
- },
39171
- geolocation: {
39172
- description: 'Geographical location of the location.',
39173
- properties: {
39174
- latitude: { format: 'float', type: 'number' },
39175
- longitude: { format: 'float', type: 'number' },
39176
- },
39177
- required: ['latitude', 'longitude'],
39178
- type: 'object',
39179
- },
39180
- location_id: {
39181
- description: 'Unique identifier for the location.',
39182
- format: 'uuid',
39183
- type: 'string',
39184
- },
39185
- name: {
39186
- description: 'Name of the location.',
39187
- type: 'string',
39188
- },
39189
- time_zone: {
39190
- description: 'Time zone of the location.',
39191
- type: 'string',
39192
- },
39193
- workspace_id: {
39194
- description:
39195
- 'Unique identifier for the Seam workspace associated with the location.',
39196
- format: 'uuid',
39197
- type: 'string',
39198
- },
39199
- },
39200
- required: [
39201
- 'location_id',
39202
- 'workspace_id',
39203
- 'name',
39204
- 'display_name',
39205
- 'created_at',
39206
- ],
39207
- type: 'object',
39208
- },
38385
+ location: { $ref: '#/components/schemas/location' },
39209
38386
  ok: { type: 'boolean' },
39210
38387
  },
39211
38388
  required: ['location', 'ok'],
@@ -39273,56 +38450,7 @@ export default {
39273
38450
  'application/json': {
39274
38451
  schema: {
39275
38452
  properties: {
39276
- location: {
39277
- properties: {
39278
- created_at: {
39279
- description:
39280
- 'Date and time at which the location object was created.',
39281
- format: 'date-time',
39282
- type: 'string',
39283
- },
39284
- display_name: {
39285
- description: 'Display name of the location.',
39286
- type: 'string',
39287
- },
39288
- geolocation: {
39289
- description: 'Geographical location of the location.',
39290
- properties: {
39291
- latitude: { format: 'float', type: 'number' },
39292
- longitude: { format: 'float', type: 'number' },
39293
- },
39294
- required: ['latitude', 'longitude'],
39295
- type: 'object',
39296
- },
39297
- location_id: {
39298
- description: 'Unique identifier for the location.',
39299
- format: 'uuid',
39300
- type: 'string',
39301
- },
39302
- name: {
39303
- description: 'Name of the location.',
39304
- type: 'string',
39305
- },
39306
- time_zone: {
39307
- description: 'Time zone of the location.',
39308
- type: 'string',
39309
- },
39310
- workspace_id: {
39311
- description:
39312
- 'Unique identifier for the Seam workspace associated with the location.',
39313
- format: 'uuid',
39314
- type: 'string',
39315
- },
39316
- },
39317
- required: [
39318
- 'location_id',
39319
- 'workspace_id',
39320
- 'name',
39321
- 'display_name',
39322
- 'created_at',
39323
- ],
39324
- type: 'object',
39325
- },
38453
+ location: { $ref: '#/components/schemas/location' },
39326
38454
  ok: { type: 'boolean' },
39327
38455
  },
39328
38456
  required: ['location', 'ok'],
@@ -40160,32 +39288,7 @@ export default {
40160
39288
  schema: {
40161
39289
  properties: {
40162
39290
  enrollment_automation: {
40163
- properties: {
40164
- acs_credential_provisioning_automation_id: {
40165
- format: 'uuid',
40166
- type: 'string',
40167
- },
40168
- created_at: { format: 'date-time', type: 'string' },
40169
- credential_manager_acs_system_id: {
40170
- format: 'uuid',
40171
- type: 'string',
40172
- },
40173
- enrollment_automation_id: {
40174
- format: 'uuid',
40175
- type: 'string',
40176
- },
40177
- user_identity_id: { format: 'uuid', type: 'string' },
40178
- workspace_id: { format: 'uuid', type: 'string' },
40179
- },
40180
- required: [
40181
- 'acs_credential_provisioning_automation_id',
40182
- 'credential_manager_acs_system_id',
40183
- 'user_identity_id',
40184
- 'created_at',
40185
- 'workspace_id',
40186
- 'enrollment_automation_id',
40187
- ],
40188
- type: 'object',
39291
+ $ref: '#/components/schemas/enrollment_automation',
40189
39292
  },
40190
39293
  ok: { type: 'boolean' },
40191
39294
  },