From 3450968ad0cd906589431b50362196ab72b3a3d7 Mon Sep 17 00:00:00 2001 From: galileo-automation Date: Fri, 27 Dec 2024 13:14:19 +0000 Subject: [PATCH] Update API Types --- src/types/api.types.ts | 150 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 150 insertions(+) diff --git a/src/types/api.types.ts b/src/types/api.types.ts index 8d8006e..9200813 100644 --- a/src/types/api.types.ts +++ b/src/types/api.types.ts @@ -116,6 +116,23 @@ export interface paths { patch: operations['update_dataset_datasets__dataset_id__patch']; trace?: never; }; + '/datasets/query': { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Query Datasets */ + post: operations['query_datasets_datasets_query_post']; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; '/projects/{project_id}/prompt_datasets/{dataset_id}': { parameters: { query?: never; @@ -359,6 +376,25 @@ export interface components { /** Rows */ rows?: components['schemas']['DatasetRow'][]; }; + /** DatasetCreatedAtSort */ + DatasetCreatedAtSort: { + /** + * @description discriminator enum property added by openapi-typescript + * @enum {string} + */ + name: 'created_at'; + /** + * Ascending + * @default true + */ + ascending?: boolean; + /** + * Sort Type + * @default column + * @constant + */ + sort_type?: 'column'; + }; /** DatasetDB */ DatasetDB: { /** @@ -415,6 +451,45 @@ export interface components { * @enum {string} */ DatasetFormat: 'csv' | 'feather' | 'jsonl'; + /** DatasetNameFilter */ + DatasetNameFilter: { + /** + * @description discriminator enum property added by openapi-typescript + * @enum {string} + */ + name: 'name'; + /** Value */ + value: string; + /** + * Operator + * @enum {string} + */ + operator: 'eq' | 'ne' | 'contains'; + }; + /** DatasetProjectLastUsedAtSort */ + DatasetProjectLastUsedAtSort: { + /** + * @description discriminator enum property added by openapi-typescript + * @enum {string} + */ + name: 'project_last_used_at'; + /** + * Ascending + * @default true + */ + ascending?: boolean; + /** + * Sort Type + * @default custom_uuid + * @constant + */ + sort_type?: 'custom_uuid'; + /** + * Value + * Format: uuid4 + */ + value: string; + }; /** DatasetRenameColumn */ DatasetRenameColumn: { /** @@ -448,6 +523,25 @@ export interface components { [key: string]: string | number | null; }; }; + /** DatasetUpdatedAtSort */ + DatasetUpdatedAtSort: { + /** + * @description discriminator enum property added by openapi-typescript + * @enum {string} + */ + name: 'updated_at'; + /** + * Ascending + * @default true + */ + ascending?: boolean; + /** + * Sort Type + * @default column + * @constant + */ + sort_type?: 'column'; + }; /** * GeneratedScorerAction * @enum {string} @@ -477,6 +571,26 @@ export interface components { /** Version */ version: string; }; + /** ListDatasetParams */ + ListDatasetParams: { + /** Filters */ + filters?: components['schemas']['DatasetNameFilter'][]; + /** + * Sort + * @default { + * "name": "created_at", + * "ascending": false, + * "sort_type": "column" + * } + */ + sort?: + | ( + | components['schemas']['DatasetCreatedAtSort'] + | components['schemas']['DatasetUpdatedAtSort'] + | components['schemas']['DatasetProjectLastUsedAtSort'] + ) + | null; + }; /** ListDatasetResponse */ ListDatasetResponse: { /** @@ -1026,6 +1140,42 @@ export interface operations { }; }; }; + query_datasets_datasets_query_post: { + parameters: { + query?: { + starting_token?: number; + limit?: number; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: { + content: { + 'application/json': components['schemas']['ListDatasetParams']; + }; + }; + responses: { + /** @description Successful Response */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + 'application/json': components['schemas']['ListDatasetResponse']; + }; + }; + /** @description Validation Error */ + 422: { + headers: { + [name: string]: unknown; + }; + content: { + 'application/json': components['schemas']['HTTPValidationError']; + }; + }; + }; + }; download_prompt_dataset_projects__project_id__prompt_datasets__dataset_id__get: { parameters: { query?: never;