Skip to content

Commit 649b2b3

Browse files
authored
fix: device_name property in device.name_changed event (#1566)
1 parent 4ee17e4 commit 649b2b3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/lib/seam/connect/models/events/devices.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ export type TemperatureChangedEvent = z.infer<typeof temperature_changed_event>
653653

654654
export const device_name_changed_event = device_event.extend({
655655
event_type: z.literal('device.name_changed'),
656-
new_name: z.string().describe('The new name of the device.'),
656+
device_name: z.string().describe('The new name of the device.'),
657657
}).describe(`
658658
---
659659
route_path: /devices

src/lib/seam/connect/openapi.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -12259,16 +12259,16 @@ export default {
1225912259
format: 'uuid',
1226012260
type: 'string',
1226112261
},
12262+
device_name: {
12263+
description: 'The new name of the device.',
12264+
type: 'string',
12265+
},
1226212266
event_id: {
1226312267
description: 'ID of the event.',
1226412268
format: 'uuid',
1226512269
type: 'string',
1226612270
},
1226712271
event_type: { enum: ['device.name_changed'], type: 'string' },
12268-
new_name: {
12269-
description: 'The new name of the device.',
12270-
type: 'string',
12271-
},
1227212272
occurred_at: {
1227312273
description: 'Date and time at which the event occurred.',
1227412274
format: 'date-time',
@@ -12289,7 +12289,7 @@ export default {
1228912289
'device_id',
1229012290
'connected_account_id',
1229112291
'event_type',
12292-
'new_name',
12292+
'device_name',
1229312293
],
1229412294
type: 'object',
1229512295
'x-route-path': '/devices',

src/lib/seam/connect/route-types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -20622,7 +20622,7 @@ export interface Routes {
2062220622
connected_account_id: string
2062320623
event_type: 'device.name_changed'
2062420624
/** The new name of the device. */
20625-
new_name: string
20625+
device_name: string
2062620626
}
2062720627
| {
2062820628
/** ID of the event. */
@@ -22096,7 +22096,7 @@ export interface Routes {
2209622096
connected_account_id: string
2209722097
event_type: 'device.name_changed'
2209822098
/** The new name of the device. */
22099-
new_name: string
22099+
device_name: string
2210022100
}
2210122101
| {
2210222102
/** ID of the event. */

0 commit comments

Comments
 (0)