Skip to content

Commit

Permalink
type-bump (#93)
Browse files Browse the repository at this point in the history
Apply new types from staging.
<!-- ELLIPSIS_HIDDEN -->

----

> [!IMPORTANT]
> Update `openapi.ts` with new API paths and components for resource listing, topic model info retrieval, and map registration, along with new response and request components.
> 
>   - **API Paths**:
>     - Added `/v1/project/{project_id}/resources`, `/v1/dataset/{project_id}/resources`, and `/sketch/resource/{dataset_id}/list` for listing resources.
>     - Added `/sketch/resource/{dataset_id}/topic_model/{topic_model_id}` for retrieving topic model info.
>     - Added `/sketch/map/{map_id}/register_as_projection` for registering maps as projections (deprecated).
>   - **Components**:
>     - Added `AddArrowSuccessResponse` for handling arrow addition responses.
>     - Added `EmbeddingDerived2dCoordinateSetCreateArgs`, `KeyWordsTopicLabelCreateArgs`, and `LLMTopicLabelCreateArgs` for resource creation.
>     - Added `MapInfo` to represent map metadata.
>   - **Operations**:
>     - Updated operations to use `AddArrowSuccessResponse` instead of `SuccessResponse` for arrow addition.
> 
> <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 f177335. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
bmschmidt authored Jan 29, 2025
1 parent 49ec846 commit c03497b
Showing 1 changed file with 151 additions and 22 deletions.
173 changes: 151 additions & 22 deletions src/type-gen/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ export interface paths {
/** Logout */
get: operations['logout_v1_user_logout_get'];
};
'/v1/user/profile': {
/** Get User Profile */
get: operations['get_user_profile_v1_user_profile_get'];
/** Post User Profile */
post: operations['post_user_profile_v1_user_profile_post'];
};
'/v1/project/tags/{project_id}': {
/** Get Tags For Project */
get: operations['get_tags_for_project_v1_project_tags__project_id__get'];
Expand Down Expand Up @@ -1080,6 +1086,13 @@ export interface paths {
/** Retrieves the quadtree schema */
get: operations['fetch_map_schema_sketch_map__map_id__schema_get'];
};
'/sketch/map/{map_id}/register_as_projection': {
/**
* Registers the map as a projection. For short term testing only.
* @deprecated
*/
post: operations['register_map_as_projection_sketch_map__map_id__register_as_projection_post'];
};
'/sketch/map/{quadtree_id}/{quadtree_key}': {
/**
* Fetch Quadtree Tile
Expand Down Expand Up @@ -1191,6 +1204,16 @@ export interface components {
| 'EXTERNAL'
| 'GUEST'
| 'NONE';
/** AddArrowSuccessResponse */
AddArrowSuccessResponse: {
/**
* Result
* @default ok
*/
result?: string;
/** Checkpoint */
checkpoint?: number;
};
/** AddBlobResponse */
AddBlobResponse: {
/**
Expand Down Expand Up @@ -1608,6 +1631,17 @@ export interface components {
* @default false
*/
build_from_versioned_dataset?: boolean;
/**
* Build Map Using Resources
* @description Build map using resources
* @default false
*/
build_map_using_resources?: boolean;
/**
* Upload Checkpoint
* @description checkpoint indentifier, resolves to the earliest version that has ingested data up to specified point
*/
upload_checkpoint?: number;
};
/** CreateAtlasIndexResponse */
CreateAtlasIndexResponse: {
Expand Down Expand Up @@ -2155,6 +2189,43 @@ export interface components {
*/
embedding_target?: string;
};
/** EmbeddingSetInferredCreateArgs */
EmbeddingSetInferredCreateArgs: {
/**
* Resource Type
* @enum {string}
*/
resource_type: 'EMBEDDING_SET_INFERRED';
/** Identifiers for all resources this resource depends on. */
dependencies: {
[key: string]: string | components['schemas']['DatasetResourceParams'];
};
/** Dataset Id */
dataset_id: string;
/**
* Dataset Version
* @description Dataset version to read (required to read Lance datasets)
*/
dataset_version?: number;
/**
* Upload Checkpoint
* @description checkpoint indentifier, resolves to the earliest version that has ingested data up to specified point
*/
upload_checkpoint?: number;
/**
* Source Column
* @description The text column to generate embeddings from
*/
source_column: string;
/**
* Embedding Model
* @description Which text embedding model to use
*/
embedding_model:
| 'nomic-embed-text-v1.5'
| 'nomic-embed-text-v1'
| 'gte-multilingual-base';
};
/** EmbeddingTopicRequest */
EmbeddingTopicRequest: {
/**
Expand Down Expand Up @@ -2728,6 +2799,21 @@ export interface components {
* @default 50
*/
n_epochs?: number;
/**
* Spread of the embedding
* @default 1
*/
spread?: number;
/**
* Minimum distance between points
* @default 0.4
*/
min_dist?: number;
/**
* Number of epochs for initialization
* @default 20
*/
n_init_epochs?: number;
};
/** NomicProjectV2CoordinateSetCreateArgs */
NomicProjectV2CoordinateSetCreateArgs: {
Expand All @@ -2749,6 +2835,21 @@ export interface components {
* @default 50
*/
n_epochs?: number;
/**
* Spread of the embedding
* @default 1
*/
spread?: number;
/**
* Minimum distance between points
* @default 0.4
*/
min_dist?: number;
/**
* Number of epochs for initialization
* @default 20
*/
n_init_epochs?: number;
/**
* Controls local structure optimizing step for `nomic-project-v2`. Min value: `0`; max value: `1`
* @default 0.6
Expand Down Expand Up @@ -3824,11 +3925,6 @@ export interface components {
* @description The embedding model used to create the embeddings, if they were generated inside the Atlas system
*/
embedding_model?: string;
/**
* Embedding Hyperparameters
* @description Hyperparameters passed to the embedding model
*/
embedding_hyperparameters?: Record<string, unknown>;
};
/** ProjectsResponse */
ProjectsResponse: {
Expand Down Expand Up @@ -4005,6 +4101,7 @@ export interface components {
/** Resource */
resource:
| components['schemas']['EmbeddingSetCreateArgs']
| components['schemas']['EmbeddingSetInferredCreateArgs']
| components['schemas']['HNSWIndexCreateArgs']
| components['schemas']['RandomCoordinateSetCreateArgs']
| components['schemas']['EmbeddingDerived2dCoordinateSetCreateArgs']
Expand Down Expand Up @@ -4455,21 +4552,6 @@ export interface components {
* @description list of topic model metadata
*/
topic_model_metadatas: Record<string, unknown>[];
/**
* Embedding Field
* @description The data field from which the 2d embeddings were derived
*/
embedding_field?: string;
/**
* Embedding Model
* @description The embedding model used to create the embeddings, if they were generated inside the Atlas system
*/
embedding_model?: string;
/**
* Embedding Hyperparameters
* @description Hyperparameters passed to the embedding model
*/
embedding_hyperparameters?: Record<string, unknown>;
};
/** UMAPCoordinateSetCreateArgs */
UMAPCoordinateSetCreateArgs: {
Expand Down Expand Up @@ -5388,6 +5470,28 @@ export interface operations {
};
};
};
/** Get User Profile */
get_user_profile_v1_user_profile_get: {
responses: {
/** @description Successful Response */
200: {
content: {
'application/json': unknown;
};
};
};
};
/** Post User Profile */
post_user_profile_v1_user_profile_post: {
responses: {
/** @description Successful Response */
200: {
content: {
'application/json': unknown;
};
};
};
};
/** Get Tags For Project */
get_tags_for_project_v1_project_tags__project_id__get: {
parameters: {
Expand Down Expand Up @@ -5839,7 +5943,7 @@ export interface operations {
/** @description Successful Response */
200: {
content: {
'application/json': components['schemas']['SuccessResponse'];
'application/json': components['schemas']['AddArrowSuccessResponse'];
};
};
};
Expand Down Expand Up @@ -7173,7 +7277,7 @@ export interface operations {
/** @description Successful Response */
200: {
content: {
'application/json': components['schemas']['SuccessResponse'];
'application/json': components['schemas']['AddArrowSuccessResponse'];
};
};
};
Expand Down Expand Up @@ -8824,6 +8928,31 @@ export interface operations {
};
};
};
/**
* Registers the map as a projection. For short term testing only.
* @deprecated
*/
register_map_as_projection_sketch_map__map_id__register_as_projection_post: {
parameters: {
path: {
map_id: string;
};
};
responses: {
/** @description Successful Response */
201: {
content: {
'application/json': unknown;
};
};
/** @description Validation Error */
422: {
content: {
'application/json': components['schemas']['HTTPValidationError'];
};
};
};
};
/**
* Fetch Quadtree Tile
* @description Fetches a quadtree tile to the front-end.
Expand Down

0 comments on commit c03497b

Please sign in to comment.