Skip to content

Commit 061d633

Browse files
committed
docs: Added swagger based docs for the HQL API
1 parent 80ebad6 commit 061d633

File tree

10 files changed

+693
-192
lines changed

10 files changed

+693
-192
lines changed

bifrost/lib/clients/jawnTypes/public.ts

Lines changed: 111 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,10 @@ export interface paths {
414414
post: operations["GetCostsOverTime"];
415415
};
416416
"/v1/public/model-registry/models": {
417+
/**
418+
* Returns a comprehensive list of all AI models with their configurations, pricing, and capabilities
419+
* @description Get all available models from the registry
420+
*/
417421
get: operations["GetModelRegistry"];
418422
};
419423
"/v1/public/compare/models": {
@@ -443,27 +447,62 @@ export interface paths {
443447
get: operations["GetSlackChannels"];
444448
};
445449
"/v1/helicone-sql/schema": {
446-
/** @description Get ClickHouse schema (tables and columns) */
450+
/**
451+
* Get database schema
452+
* @description Get ClickHouse schema (tables and columns)
453+
*/
447454
get: operations["GetClickHouseSchema"];
448455
};
449456
"/v1/helicone-sql/execute": {
457+
/**
458+
* Execute SQL query
459+
* @description Execute a SQL query against ClickHouse
460+
*/
450461
post: operations["ExecuteSql"];
451462
};
452463
"/v1/helicone-sql/download": {
464+
/**
465+
* Download query results as CSV
466+
* @description Execute a SQL query and download results as CSV
467+
*/
453468
post: operations["DownloadCsv"];
454469
};
455470
"/v1/helicone-sql/saved-queries": {
471+
/**
472+
* List saved queries
473+
* @description Get all saved queries for the organization
474+
*/
456475
get: operations["GetSavedQueries"];
457476
};
458477
"/v1/helicone-sql/saved-query/{queryId}": {
478+
/**
479+
* Get saved query
480+
* @description Get a specific saved query by ID
481+
*/
459482
get: operations["GetSavedQuery"];
483+
/**
484+
* Update saved query
485+
* @description Update an existing saved query
486+
*/
487+
put: operations["UpdateSavedQuery"];
488+
/**
489+
* Delete saved query
490+
* @description Delete a saved query by ID
491+
*/
460492
delete: operations["DeleteSavedQuery"];
461493
};
462494
"/v1/helicone-sql/saved-queries/bulk-delete": {
495+
/**
496+
* Bulk delete saved queries
497+
* @description Delete multiple saved queries at once
498+
*/
463499
post: operations["BulkDeleteSavedQueries"];
464500
};
465501
"/v1/helicone-sql/saved-query": {
466-
put: operations["UpdateSavedQuery"];
502+
/**
503+
* Create saved query
504+
* @description Create a new saved query
505+
*/
467506
post: operations["CreateSavedQuery"];
468507
};
469508
"/v1/experiment/new-empty": {
@@ -3084,11 +3123,6 @@ Json: JsonObject;
30843123
error: null;
30853124
};
30863125
"Result_HqlSavedQuery.string_": components["schemas"]["ResultSuccess_HqlSavedQuery_"] | components["schemas"]["ResultError_string_"];
3087-
UpdateSavedQueryRequest: {
3088-
name: string;
3089-
sql: string;
3090-
id: string;
3091-
};
30923126
"ResultSuccess__tableId-string--experimentId-string__": {
30933127
data: {
30943128
experimentId: string;
@@ -6348,9 +6382,13 @@ export interface operations {
63486382
};
63496383
};
63506384
};
6385+
/**
6386+
* Returns a comprehensive list of all AI models with their configurations, pricing, and capabilities
6387+
* @description Get all available models from the registry
6388+
*/
63516389
GetModelRegistry: {
63526390
responses: {
6353-
/** @description Ok */
6391+
/** @description Complete model registry with models and filter options */
63546392
200: {
63556393
content: {
63566394
"application/json": components["schemas"]["Result_ModelRegistryResponse.string_"];
@@ -6496,91 +6534,129 @@ export interface operations {
64966534
};
64976535
};
64986536
};
6499-
/** @description Get ClickHouse schema (tables and columns) */
6537+
/**
6538+
* Get database schema
6539+
* @description Get ClickHouse schema (tables and columns)
6540+
*/
65006541
GetClickHouseSchema: {
65016542
responses: {
6502-
/** @description Ok */
6543+
/** @description Array of table schemas with columns */
65036544
200: {
65046545
content: {
65056546
"application/json": components["schemas"]["Result_ClickHouseTableSchema-Array.string_"];
65066547
};
65076548
};
65086549
};
65096550
};
6551+
/**
6552+
* Execute SQL query
6553+
* @description Execute a SQL query against ClickHouse
6554+
*/
65106555
ExecuteSql: {
6556+
/** @description The SQL query to execute */
65116557
requestBody: {
65126558
content: {
65136559
"application/json": components["schemas"]["ExecuteSqlRequest"];
65146560
};
65156561
};
65166562
responses: {
6517-
/** @description Ok */
6563+
/** @description Query results with rows and metadata */
65186564
200: {
65196565
content: {
65206566
"application/json": components["schemas"]["Result_ExecuteSqlResponse.string_"];
65216567
};
65226568
};
65236569
};
65246570
};
6571+
/**
6572+
* Download query results as CSV
6573+
* @description Execute a SQL query and download results as CSV
6574+
*/
65256575
DownloadCsv: {
6576+
/** @description The SQL query to execute */
65266577
requestBody: {
65276578
content: {
65286579
"application/json": components["schemas"]["ExecuteSqlRequest"];
65296580
};
65306581
};
65316582
responses: {
6532-
/** @description Ok */
6583+
/** @description URL to download the CSV file */
65336584
200: {
65346585
content: {
65356586
"application/json": components["schemas"]["Result_string.string_"];
65366587
};
65376588
};
65386589
};
65396590
};
6591+
/**
6592+
* List saved queries
6593+
* @description Get all saved queries for the organization
6594+
*/
65406595
GetSavedQueries: {
65416596
responses: {
6542-
/** @description Ok */
6597+
/** @description Array of saved queries */
65436598
200: {
65446599
content: {
65456600
"application/json": components["schemas"]["Result_Array_HqlSavedQuery_.string_"];
65466601
};
65476602
};
65486603
};
65496604
};
6605+
/**
6606+
* Get saved query
6607+
* @description Get a specific saved query by ID
6608+
*/
65506609
GetSavedQuery: {
65516610
parameters: {
65526611
path: {
6612+
/** @description The ID of the saved query */
65536613
queryId: string;
65546614
};
65556615
};
65566616
responses: {
6557-
/** @description Ok */
6617+
/** @description The saved query details */
65586618
200: {
65596619
content: {
65606620
"application/json": components["schemas"]["Result_HqlSavedQuery-or-null.string_"];
65616621
};
65626622
};
65636623
};
65646624
};
6565-
DeleteSavedQuery: {
6625+
/**
6626+
* Update saved query
6627+
* @description Update an existing saved query
6628+
*/
6629+
UpdateSavedQuery: {
65666630
parameters: {
65676631
path: {
6632+
/** @description The ID of the saved query to update */
65686633
queryId: string;
65696634
};
65706635
};
6636+
/** @description The updated query details */
6637+
requestBody: {
6638+
content: {
6639+
"application/json": components["schemas"]["CreateSavedQueryRequest"];
6640+
};
6641+
};
65716642
responses: {
6572-
/** @description Ok */
6643+
/** @description The updated saved query */
65736644
200: {
65746645
content: {
6575-
"application/json": components["schemas"]["Result_void.string_"];
6646+
"application/json": components["schemas"]["Result_HqlSavedQuery.string_"];
65766647
};
65776648
};
65786649
};
65796650
};
6580-
BulkDeleteSavedQueries: {
6581-
requestBody: {
6582-
content: {
6583-
"application/json": components["schemas"]["BulkDeleteSavedQueriesRequest"];
6651+
/**
6652+
* Delete saved query
6653+
* @description Delete a saved query by ID
6654+
*/
6655+
DeleteSavedQuery: {
6656+
parameters: {
6657+
path: {
6658+
/** @description The ID of the saved query to delete */
6659+
queryId: string;
65846660
};
65856661
};
65866662
responses: {
@@ -6592,29 +6668,39 @@ export interface operations {
65926668
};
65936669
};
65946670
};
6595-
UpdateSavedQuery: {
6671+
/**
6672+
* Bulk delete saved queries
6673+
* @description Delete multiple saved queries at once
6674+
*/
6675+
BulkDeleteSavedQueries: {
6676+
/** @description Array of query IDs to delete */
65966677
requestBody: {
65976678
content: {
6598-
"application/json": components["schemas"]["UpdateSavedQueryRequest"];
6679+
"application/json": components["schemas"]["BulkDeleteSavedQueriesRequest"];
65996680
};
66006681
};
66016682
responses: {
66026683
/** @description Ok */
66036684
200: {
66046685
content: {
6605-
"application/json": components["schemas"]["Result_HqlSavedQuery.string_"];
6686+
"application/json": components["schemas"]["Result_void.string_"];
66066687
};
66076688
};
66086689
};
66096690
};
6691+
/**
6692+
* Create saved query
6693+
* @description Create a new saved query
6694+
*/
66106695
CreateSavedQuery: {
6696+
/** @description The saved query details */
66116697
requestBody: {
66126698
content: {
66136699
"application/json": components["schemas"]["CreateSavedQueryRequest"];
66146700
};
66156701
};
66166702
responses: {
6617-
/** @description Ok */
6703+
/** @description Array containing the created saved query */
66186704
200: {
66196705
content: {
66206706
"application/json": components["schemas"]["Result_HqlSavedQuery-Array.string_"];

0 commit comments

Comments
 (0)