@@ -68,18 +68,26 @@ const ignoredEndpointPaths = [
68
68
'/health/service/[service_name]' ,
69
69
'/noise_sensors/simulate/trigger_noise_threshold' ,
70
70
'/phones/simulate/create_sandbox_phone' ,
71
+ '/workspaces/reset_sandbox' ,
71
72
] as const
72
73
73
- const endpointResources : Partial < Record < keyof typeof openapi . paths , null > > = {
74
+ const endpointResources : Partial <
75
+ Record <
76
+ keyof typeof openapi . paths ,
77
+ null | 'action_attempt' | 'noise_threshold'
78
+ >
79
+ > = {
80
+ // Set all ignored endpoints null to simplify code generation.
81
+ ...ignoredEndpointPaths . reduce ( ( acc , cur ) => ( { ...acc , [ cur ] : null } ) , { } ) ,
82
+
83
+ // These endpoints return a deprecated action attempt or resource.
74
84
'/access_codes/delete' : null ,
75
85
'/access_codes/unmanaged/delete' : null ,
76
86
'/access_codes/update' : null ,
77
- '/connect_webviews/view' : null ,
78
- '/noise_sensors/noise_thresholds/create' : null ,
87
+ '/noise_sensors/noise_thresholds/create' : 'noise_threshold' ,
79
88
'/noise_sensors/noise_thresholds/delete' : null ,
80
89
'/noise_sensors/noise_thresholds/update' : null ,
81
90
'/thermostats/climate_setting_schedules/update' : null ,
82
- '/workspaces/reset_sandbox' : null ,
83
91
} as const
84
92
85
93
interface Route {
0 commit comments