Skip to content

Commit

Permalink
fix: Remove health endpoints from openapi spec (#752)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Sosenko <evan@getseam.com>
  • Loading branch information
seambot and razor-x authored Apr 9, 2024
1 parent 63e7bbd commit 5e7f9f6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 343 deletions.
257 changes: 0 additions & 257 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6618,34 +6618,6 @@ export default {
'x-fern-sdk-return-value': 'connect_webviews',
},
},
'/connect_webviews/view': {
get: {
operationId: 'connectWebviewsViewGet',
parameters: [
{
in: 'query',
name: 'connect_webview_id',
required: true,
schema: { format: 'uuid', type: 'string' },
},
{
in: 'query',
name: 'auth_token',
required: true,
schema: { type: 'string' },
},
],
responses: {
200: { description: 'OK' },
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
summary: '/connect_webviews/view',
tags: ['/connect_webviews'],
'x-fern-sdk-group-name': ['connect_webviews'],
'x-fern-sdk-method-name': 'view',
},
},
'/connected_accounts/delete': {
post: {
operationId: 'connectedAccountsDeletePost',
Expand Down Expand Up @@ -8022,235 +7994,6 @@ export default {
'x-fern-sdk-return-value': 'events',
},
},
'/health': {
get: {
operationId: 'healthGet',
responses: {
200: {
content: {
'application/json': {
schema: {
properties: {
last_service_evaluation_at: { type: 'string' },
msg: {
enum: ['I’m one with the Force. The Force is with me.'],
type: 'string',
},
ok: { type: 'boolean' },
service_health_statuses: {
items: { $ref: '#/components/schemas/service_health' },
type: 'array',
},
},
required: ['ok', 'msg', 'service_health_statuses'],
type: 'object',
},
},
},
description: 'OK',
},
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
summary: '/health',
tags: ['/health'],
'x-fern-ignore': true,
},
post: {
operationId: 'healthPost',
responses: {
200: {
content: {
'application/json': {
schema: {
properties: {
last_service_evaluation_at: { type: 'string' },
msg: {
enum: ['I’m one with the Force. The Force is with me.'],
type: 'string',
},
ok: { type: 'boolean' },
service_health_statuses: {
items: { $ref: '#/components/schemas/service_health' },
type: 'array',
},
},
required: ['ok', 'msg', 'service_health_statuses'],
type: 'object',
},
},
},
description: 'OK',
},
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
summary: '/health',
tags: ['/health'],
'x-fern-ignore': true,
},
},
'/health/get_health': {
get: {
operationId: 'healthGetHealthGet',
responses: {
200: {
content: {
'application/json': {
schema: {
properties: {
last_service_evaluation_at: { type: 'string' },
msg: {
enum: ['I’m one with the Force. The Force is with me.'],
type: 'string',
},
ok: { type: 'boolean' },
service_health_statuses: {
items: { $ref: '#/components/schemas/service_health' },
type: 'array',
},
},
required: ['ok', 'msg', 'service_health_statuses'],
type: 'object',
},
},
},
description: 'OK',
},
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
summary: '/health/get_health',
tags: ['/health'],
'x-fern-ignore': true,
},
post: {
operationId: 'healthGetHealthPost',
responses: {
200: {
content: {
'application/json': {
schema: {
properties: {
last_service_evaluation_at: { type: 'string' },
msg: {
enum: ['I’m one with the Force. The Force is with me.'],
type: 'string',
},
ok: { type: 'boolean' },
service_health_statuses: {
items: { $ref: '#/components/schemas/service_health' },
type: 'array',
},
},
required: ['ok', 'msg', 'service_health_statuses'],
type: 'object',
},
},
},
description: 'OK',
},
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
summary: '/health/get_health',
tags: ['/health'],
'x-fern-sdk-group-name': ['health'],
'x-fern-sdk-method-name': 'get_health',
},
},
'/health/get_service_health': {
post: {
operationId: 'healthGetServiceHealthPost',
requestBody: {
content: {
'application/json': {
schema: {
properties: { service: { type: 'string' } },
required: ['service'],
type: 'object',
},
},
},
},
responses: {
200: {
content: {
'application/json': {
schema: {
properties: {
last_service_evaluation_at: { type: 'string' },
ok: { type: 'boolean' },
service_health: {
$ref: '#/components/schemas/service_health',
},
},
required: [
'ok',
'last_service_evaluation_at',
'service_health',
],
type: 'object',
},
},
},
description: 'OK',
},
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
summary: '/health/get_service_health',
tags: ['/health'],
'x-fern-sdk-group-name': ['health'],
'x-fern-sdk-method-name': 'get_service_health',
},
},
'/health/service/[service_name]': {
post: {
operationId: 'healthServiceByServiceNamePost',
requestBody: {
content: {
'application/json': {
schema: {
properties: { service_name: { type: 'string' } },
required: ['service_name'],
type: 'object',
},
},
},
},
responses: {
200: {
content: {
'application/json': {
schema: {
properties: {
last_service_evaluation_at: { type: 'string' },
ok: { type: 'boolean' },
service_health: {
$ref: '#/components/schemas/service_health',
},
},
required: [
'ok',
'last_service_evaluation_at',
'service_health',
],
type: 'object',
},
},
},
description: 'OK',
},
400: { description: 'Bad Request' },
401: { description: 'Unauthorized' },
},
summary: '/health/service/[service_name]',
tags: ['/health'],
'x-fern-sdk-group-name': ['health', 'service'],
'x-fern-sdk-method-name': 'by_service_name',
},
},
'/locks/get': {
post: {
operationId: 'locksGetPost',
Expand Down
86 changes: 0 additions & 86 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2183,18 +2183,6 @@ export interface Routes {
}>
}
}
'/connect_webviews/view': {
route: '/connect_webviews/view'
method: 'GET'
queryParams: {
connect_webview_id: string
auth_token: string
}
jsonBody: {}
commonParams: {}
formData: {}
jsonResponse: {}
}
'/connected_accounts/delete': {
route: '/connected_accounts/delete'
method: 'DELETE' | 'POST'
Expand Down Expand Up @@ -4637,80 +4625,6 @@ export interface Routes {
}>
}
}
'/health': {
route: '/health'
method: 'GET' | 'POST'
queryParams: {}
jsonBody: {}
commonParams: {}
formData: {}
jsonResponse: {
ok: boolean
msg: 'I\u2019m one with the Force. The Force is with me.'
last_service_evaluation_at?: string | undefined
service_health_statuses: Array<{
service: string
status: 'healthy' | 'degraded' | 'down'
description: string
}>
}
}
'/health/get_health': {
route: '/health/get_health'
method: 'GET' | 'POST'
queryParams: {}
jsonBody: {}
commonParams: {}
formData: {}
jsonResponse: {
ok: boolean
msg: 'I\u2019m one with the Force. The Force is with me.'
last_service_evaluation_at?: string | undefined
service_health_statuses: Array<{
service: string
status: 'healthy' | 'degraded' | 'down'
description: string
}>
}
}
'/health/get_service_health': {
route: '/health/get_service_health'
method: 'GET' | 'POST'
queryParams: {}
jsonBody: {}
commonParams: {
service: string
}
formData: {}
jsonResponse: {
ok: true
last_service_evaluation_at: string
service_health: {
service: string
status: 'healthy' | 'degraded' | 'down'
description: string
}
}
}
'/health/service/[service_name]': {
route: '/health/service/[service_name]'
method: 'GET' | 'POST'
queryParams: {}
jsonBody: {}
commonParams: {
service_name: string
}
formData: {}
jsonResponse: {
ok: true
last_service_evaluation_at: string
service_health: {
service: string
status: 'healthy' | 'degraded' | 'down'
description: string
}
}
}
'/locks/get': {
route: '/locks/get'
method: 'GET' | 'POST'
Expand Down

0 comments on commit 5e7f9f6

Please sign in to comment.