Skip to content

Commit

Permalink
bump openapi types (#90)
Browse files Browse the repository at this point in the history
<!-- ELLIPSIS_HIDDEN -->



> [!IMPORTANT]
> Add `put` operation for updating connectors and update related models in `openapi.ts`.
> 
>   - **Behavior**:
>     - Adds `put` operation to `/v1/connector/{connector_id}` in `openapi.ts` for updating connectors.
>   - **Models**:
>     - Adds `ConnectorUpdateRequest` model to `components` in `openapi.ts`.
>     - Removes `ConnectorName` enumeration and replaces its usage with `string` in `ConnectorCreateRequest`, `ConnectorDatasetCreateRequest`, `ConnectorResponse`, and `Project` models.
>   - **Misc**:
>     - Adds new properties to `TSNECoordinateSetCreateArgs` and `UMAPCoordinateSetCreateArgs` in `components` in `openapi.ts`.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=nomic-ai%2Fts-nomic&utm_source=github&utm_medium=referral)<sup> for 66c58aa. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
RLesser authored Jan 7, 2025
1 parent 74cd672 commit 176c147
Showing 1 changed file with 86 additions and 20 deletions.
106 changes: 86 additions & 20 deletions src/type-gen/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,11 @@ export interface paths {
* @description Get a specific connector by ID.
*/
get: operations['get_connector_handler_v1_connector__connector_id__get'];
/**
* Update Connector Handler
* @description Update a specific connector.
*/
put: operations['update_connector_handler_v1_connector__connector_id__put'];
/**
* Delete Connector Handler
* @description Delete a specific connector.
Expand Down Expand Up @@ -1419,23 +1424,22 @@ export interface components {
};
/** ConnectorCreateRequest */
ConnectorCreateRequest: {
connector_name: components['schemas']['ConnectorName'];
/** Connector Name */
connector_name: string;
/**
* Organization Id
* Format: uuid
*/
organization_id: string;
/** Creation Params */
creation_params: Record<string, unknown>;
/**
* Secrets
* Format: binary
*/
/** Secrets */
secrets?: string;
};
/** ConnectorDatasetCreateRequest */
ConnectorDatasetCreateRequest: {
connector_name: components['schemas']['ConnectorName'];
/** Connector Name */
connector_name: string;
/** Creation Params */
creation_params: Record<string, unknown>;
create_dataset_params: components['schemas']['CreateProjectRequest'];
Expand All @@ -1456,24 +1460,21 @@ export interface components {
/** Creation Params */
creation_params: Record<string, unknown>;
};
/**
* ConnectorName
* @description An enumeration.
* @enum {string}
*/
ConnectorName: 'huggingface' | 'gong' | 'zendesk';
/** ConnectorResponse */
ConnectorResponse: {
/**
* Id
* Format: uuid
*/
id: string;
connector_name: components['schemas']['ConnectorName'];
/** Connector Name */
connector_name: string;
/** Metadata */
metadata?: Record<string, unknown>;
/** Creation Params */
creation_params: Record<string, unknown>;
/** Secrets */
secrets?: string;
/** Created Timestamp */
created_timestamp: string;
datasets: components['schemas']['ConnectorResponseDatasetList'];
Expand All @@ -1483,6 +1484,13 @@ export interface components {
/** Data */
data: string[];
};
/** ConnectorUpdateRequest */
ConnectorUpdateRequest: {
/** Creation Params */
creation_params?: Record<string, unknown>;
/** Secrets */
secrets?: string;
};
/** CreateAtlasIndexRequest */
CreateAtlasIndexRequest: {
/**
Expand Down Expand Up @@ -3284,8 +3292,11 @@ export interface components {
* @description The project url-safe slug
*/
slug: string;
/** @description The connector name used to create this project */
connector_name?: components['schemas']['ConnectorName'];
/**
* Connector Name
* @description The connector name used to create this project
*/
connector_name?: string;
/**
* Organization Slug
* @description The organization url-safe slug
Expand Down Expand Up @@ -3520,8 +3531,11 @@ export interface components {
* @description The project url-safe slug
*/
slug: string;
/** @description The connector name used to create this project */
connector_name?: components['schemas']['ConnectorName'];
/**
* Connector Name
* @description The connector name used to create this project
*/
connector_name?: string;
/**
* Organization Slug
* @description The organization url-safe slug
Expand Down Expand Up @@ -4087,10 +4101,27 @@ export interface components {
/** Dataset Id */
dataset_id: string;
/**
* TSNE's perplexity
* Affects the tradeoff between global and local relationship presentation
* @default 30
*/
perplexity?: number;
/**
* Affects the spacing between clusters and their cohesion.
* @default auto
*/
early_exaggeration?: number | string;
/**
* Number of iterations with early exaggeration
* @default 250
*/
early_exaggeration_iter?: number;
/**
* Number of iterations
* @default 500
*/
n_iter?: number;
/** Affects the spacing between clusters in the final layout. */
exaggeration?: number;
};
/** TagDuplicatesCreateArgs */
TagDuplicatesCreateArgs: {
Expand Down Expand Up @@ -4296,15 +4327,20 @@ export interface components {
/** Dataset Id */
dataset_id: string;
/**
* UMAP's min_dist
* How tightly UMAP should pack points together.
* @default 0.4
*/
min_dist?: number;
/**
* UMAP's n_neighbors
* How many neighbors to consider for each point.
* @default 15
*/
n_neighbors?: number;
/**
* The metric to use for distance computation.
* @default euclidean
*/
metric?: string;
};
/** UpdateOrganizationRequest */
UpdateOrganizationRequest: {
Expand Down Expand Up @@ -8348,6 +8384,36 @@ export interface operations {
};
};
};
/**
* Update Connector Handler
* @description Update a specific connector.
*/
update_connector_handler_v1_connector__connector_id__put: {
parameters: {
path: {
connector_id: string;
};
};
requestBody: {
content: {
'application/json': components['schemas']['ConnectorUpdateRequest'];
};
};
responses: {
/** @description Successful Response */
200: {
content: {
'application/json': components['schemas']['SuccessResponse'];
};
};
/** @description Validation Error */
422: {
content: {
'application/json': components['schemas']['HTTPValidationError'];
};
};
};
};
/**
* Delete Connector Handler
* @description Delete a specific connector.
Expand Down

0 comments on commit 176c147

Please sign in to comment.