Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update API Types #49

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
150 changes: 150 additions & 0 deletions src/types/api.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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: {
/**
Expand Down Expand Up @@ -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: {
/**
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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: {
/**
Expand Down Expand Up @@ -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;
Expand Down
Loading