Skip to content

Commit 4c97cb4

Browse files
authored
chore: bump atlas-next types (#107)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > This PR updates `openapi.ts` by removing an endpoint, adding Snowflake data handling endpoints, and updating schemas with new fields and options. > > - **Endpoints**: > - Removed `/v1/organization/search` endpoint from `openapi.ts`. > - Added `/v1/connector/snowflake/preview` and `/v1/connector/snowflake/ingest-and-build` endpoints for Snowflake data handling. > - **Schemas**: > - Added `SnowflakeIngestDataRequest` and `SnowflakeMapBuildRequest` schemas for Snowflake data operations. > - Added `CHECKPOINT_DESCRIPTION_REQUEST` to resource request list. > - Updated `MapInfo` schema with `primary_projection_algorithm` and `total_data_points` fields. > - Added `nomic-embed-text-v2` to `NomicTextEmbeddingModel` enum. > - Updated `UMAP_COORDINATE_SET_REQUEST` with `n_epochs` and `cluster_unique_points` fields. > - Updated `MAP_CHECKPOINT_REQUEST` with `email_type` field. > > <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 9ef503b. You can [customize](https://app.ellipsis.dev/nomic-ai/settings/summaries) this summary. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
1 parent 7af2ede commit 4c97cb4

File tree

2 files changed

+185
-58
lines changed

2 files changed

+185
-58
lines changed

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/type-gen/openapi.ts

Lines changed: 184 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,6 @@ export interface paths {
6868
*/
6969
post: operations['create_organization_v1_organization_create_post'];
7070
};
71-
'/v1/organization/search': {
72-
/**
73-
* Search User
74-
* @description Search user by nickname who is not already in organization
75-
*/
76-
post: operations['search_user_v1_organization_search_post'];
77-
};
7871
'/v1/organization/members/add': {
7972
/** Add Organization Member */
8073
post: operations['add_organization_member_v1_organization_members_add_post'];
@@ -1030,6 +1023,20 @@ export interface paths {
10301023
*/
10311024
put: operations['update_connector_dataset_handler_v1_connector__connector_id__dataset__dataset_id__put'];
10321025
};
1026+
'/v1/connector/snowflake/preview': {
1027+
/**
1028+
* Get Snowflake Preview Handler
1029+
* @description Get a preview of the data in a snowflake table.
1030+
*/
1031+
post: operations['get_snowflake_preview_handler_v1_connector_snowflake_preview_post'];
1032+
};
1033+
'/v1/connector/snowflake/ingest-and-build': {
1034+
/**
1035+
* Ingest Snowflake Data Handler
1036+
* @description Ingest data from a snowflake table.
1037+
*/
1038+
post: operations['ingest_snowflake_data_handler_v1_connector_snowflake_ingest_and_build_post'];
1039+
};
10331040
'/v1/recurring_jobs/dataset/{dataset_id}': {
10341041
/**
10351042
* Get Dataset Recurring Jobs
@@ -2538,6 +2545,16 @@ export interface components {
25382545
* @description The error message if the map is permanently errored.
25392546
*/
25402547
error?: string;
2548+
/**
2549+
* Primary Projection Algorithm
2550+
* @description The primary projection algorithm used for this map.
2551+
*/
2552+
primary_projection_algorithm: string;
2553+
/**
2554+
* Total Data Points
2555+
* @description The total number of data points in this map.
2556+
*/
2557+
total_data_points: number;
25412558
};
25422559
/**
25432560
* MapbBuildKickOffStatus
@@ -2678,6 +2695,7 @@ export interface components {
26782695
| 'all-MiniLM-L6-v2'
26792696
| 'nomic-embed-text-v1'
26802697
| 'nomic-embed-text-v1.5'
2698+
| 'nomic-embed-text-v2'
26812699
| 'nomic-embed-code'
26822700
| 'gte-multilingual-base';
26832701
/**
@@ -2814,7 +2832,7 @@ export interface components {
28142832
};
28152833
/**
28162834
* OrganizationPlan
2817-
* @description The list of available plans for organizations.
2835+
* @description The master list of available plans for organizations.
28182836
* @enum {unknown}
28192837
*/
28202838
OrganizationPlan:
@@ -3871,41 +3889,66 @@ export interface components {
38713889
*/
38723890
results?: components['schemas']['DatasetSearchResult'][];
38733891
};
3874-
/** SearchUserModel */
3875-
SearchUserModel: {
3892+
/** SnowflakeIngestDataRequest */
3893+
SnowflakeIngestDataRequest: {
38763894
/**
3877-
* Nickname
3878-
* @description Nickname of user
3895+
* Org Id
3896+
* @description The id of the organization.
38793897
*/
3880-
nickname: string;
3898+
org_id: string;
38813899
/**
3882-
* Id
3883-
* @description User id
3900+
* Snowflake Database
3901+
* @description The name of the snowflake database.
38843902
*/
3885-
id: string;
3886-
};
3887-
/** SearchUserRequest */
3888-
SearchUserRequest: {
3903+
snowflake_database: string;
38893904
/**
3890-
* Search Word
3891-
* @description Search word to find user
3905+
* Snowflake Schema
3906+
* @description The name of the snowflake schema.
38923907
*/
3893-
search_word: string;
3908+
snowflake_schema: string;
38943909
/**
3895-
* Organization Id
3896-
* Format: uuid
3897-
* @description Inviter organization id
3898-
* @example 33adcf85-84ed-4e3a-9519-17c72682f905
3910+
* Snowflake Table
3911+
* @description The name of the snowflake table.
38993912
*/
3900-
organization_id: string;
3913+
snowflake_table: string;
39013914
};
3902-
/** SearchUserResponse */
3903-
SearchUserResponse: {
3915+
/** SnowflakeMapBuildRequest */
3916+
SnowflakeMapBuildRequest: {
3917+
/**
3918+
* Org Id
3919+
* @description The id of the organization.
3920+
*/
3921+
org_id: string;
3922+
/**
3923+
* Snowflake Database
3924+
* @description The name of the snowflake database.
3925+
*/
3926+
snowflake_database: string;
39043927
/**
3905-
* Users
3906-
* @description Users list
3928+
* Snowflake Schema
3929+
* @description The name of the snowflake schema.
3930+
*/
3931+
snowflake_schema: string;
3932+
/**
3933+
* Snowflake Table
3934+
* @description The name of the snowflake table.
3935+
*/
3936+
snowflake_table: string;
3937+
/**
3938+
* Dataset Id
3939+
* @description The id of the dataset to ingest data into and build map on.
3940+
*/
3941+
dataset_id: string;
3942+
/**
3943+
* Embedding Field
3944+
* @description The name of the field to use for the embedding.
39073945
*/
3908-
users: components['schemas']['SearchUserModel'][];
3946+
embedding_field: string;
3947+
/**
3948+
* @description Whether to use multilingual embeddings.
3949+
* @default false
3950+
*/
3951+
embedding_model?: components['schemas']['NomicTextEmbeddingModel'];
39093952
};
39103953
/** StripeSubscriptionCancelRequest */
39113954
StripeSubscriptionCancelRequest: {
@@ -4400,7 +4443,8 @@ export interface components {
44004443
| 'nomic-embed-text-v1'
44014444
| 'gte-multilingual-base'
44024445
| 'nomic-embed-vision-v1.5'
4403-
| 'nomic-embed-vision-v1';
4446+
| 'nomic-embed-vision-v1'
4447+
| 'nomic-embed-text-v2';
44044448
/**
44054449
* Ref
44064450
* @description An identifier to use for this resource in the context of building a set of jobs. This id WILL NOT BE used in the database or system.
@@ -4590,6 +4634,13 @@ export interface components {
45904634
* @default 5
45914635
*/
45924636
negative_sample_rate?: number;
4637+
/** Number of training epochs to use for UMAP. */
4638+
n_epochs?: number;
4639+
/**
4640+
* Whether to cluster unique points.
4641+
* @default true
4642+
*/
4643+
cluster_unique_points?: boolean;
45934644
/**
45944645
* Ref
45954646
* @description An identifier to use for this resource in the context of building a set of jobs. This id WILL NOT BE used in the database or system.
@@ -4934,6 +4985,47 @@ export interface components {
49344985
*/
49354986
ref: string;
49364987
};
4988+
/**
4989+
* CHECKPOINT_DESCRIPTION_REQUEST
4990+
* @description This is the type that is passed in through the public API.
4991+
*/
4992+
CHECKPOINT_DESCRIPTION_REQUEST: {
4993+
/**
4994+
* Resource Type
4995+
* @description The type of resource to create. e.g. 'EMBEDDING_SET'
4996+
*/
4997+
resource_type: string;
4998+
/**
4999+
* Dependencies
5000+
* @description
5001+
* A mapping of resource types to the ids of the resources
5002+
* that must be created before this one. We will look in two different
5003+
* places for the string values here:
5004+
*
5005+
* First, in the refs field of the passed list of resources.
5006+
* Finally, this will be treated as the UUID of a resource in the database.
5007+
*/
5008+
dependencies?: {
5009+
[key: string]: string | string[];
5010+
};
5011+
/**
5012+
* Dataset Id
5013+
* @description The id of the dataset to use for this resource.
5014+
*/
5015+
dataset_id: string;
5016+
/** Optionally, a list of uploaded columns to use for summarizing the dataset */
5017+
fields?: string[];
5018+
/**
5019+
* The maximum number of characters to use for the description
5020+
* @default 10000
5021+
*/
5022+
maximum_characters?: number;
5023+
/**
5024+
* Ref
5025+
* @description An identifier to use for this resource in the context of building a set of jobs. This id WILL NOT BE used in the database or system.
5026+
*/
5027+
ref: string;
5028+
};
49375029
/**
49385030
* QUADTREE_REQUEST
49395031
* @description This is the type that is passed in through the public API.
@@ -5152,6 +5244,12 @@ export interface components {
51525244
dataset_id: string;
51535245
/** ID of the associated map. If not provided, a new map will be created. */
51545246
map_id?: string;
5247+
/**
5248+
* Type of email to send when the map is ready
5249+
* @default Dataset ready
5250+
* @enum {string}
5251+
*/
5252+
email_type?: 'Dataset ready' | 'None';
51555253
/**
51565254
* Ref
51575255
* @description An identifier to use for this resource in the context of building a set of jobs. This id WILL NOT BE used in the database or system.
@@ -5354,6 +5452,7 @@ export interface components {
53545452
| components['schemas']['NPV2_COORDINATE_SET_REQUEST']
53555453
| components['schemas']['CLUSTER_ASSIGNMENT_REQUEST']
53565454
| components['schemas']['HDBSCAN_CLUSTER_ASSIGNMENT_REQUEST']
5455+
| components['schemas']['CHECKPOINT_DESCRIPTION_REQUEST']
53575456
| components['schemas']['QUADTREE_REQUEST']
53585457
| components['schemas']['DUPLICATES_REQUEST']
53595458
| components['schemas']['KEYWORDS_TOPIC_LABEL_REQUEST']
@@ -5617,31 +5716,6 @@ export interface operations {
56175716
};
56185717
};
56195718
};
5620-
/**
5621-
* Search User
5622-
* @description Search user by nickname who is not already in organization
5623-
*/
5624-
search_user_v1_organization_search_post: {
5625-
requestBody: {
5626-
content: {
5627-
'application/json': components['schemas']['SearchUserRequest'];
5628-
};
5629-
};
5630-
responses: {
5631-
/** @description Successful Response */
5632-
200: {
5633-
content: {
5634-
'application/json': components['schemas']['SearchUserResponse'];
5635-
};
5636-
};
5637-
/** @description Validation Error */
5638-
422: {
5639-
content: {
5640-
'application/json': components['schemas']['HTTPValidationError'];
5641-
};
5642-
};
5643-
};
5644-
};
56455719
/** Add Organization Member */
56465720
add_organization_member_v1_organization_members_add_post: {
56475721
requestBody: {
@@ -6085,6 +6159,7 @@ export interface operations {
60856159
| components['schemas']['NPV2_COORDINATE_SET_REQUEST']
60866160
| components['schemas']['CLUSTER_ASSIGNMENT_REQUEST']
60876161
| components['schemas']['HDBSCAN_CLUSTER_ASSIGNMENT_REQUEST']
6162+
| components['schemas']['CHECKPOINT_DESCRIPTION_REQUEST']
60886163
| components['schemas']['QUADTREE_REQUEST']
60896164
| components['schemas']['DUPLICATES_REQUEST']
60906165
| components['schemas']['KEYWORDS_TOPIC_LABEL_REQUEST']
@@ -7445,6 +7520,7 @@ export interface operations {
74457520
| components['schemas']['NPV2_COORDINATE_SET_REQUEST']
74467521
| components['schemas']['CLUSTER_ASSIGNMENT_REQUEST']
74477522
| components['schemas']['HDBSCAN_CLUSTER_ASSIGNMENT_REQUEST']
7523+
| components['schemas']['CHECKPOINT_DESCRIPTION_REQUEST']
74487524
| components['schemas']['QUADTREE_REQUEST']
74497525
| components['schemas']['DUPLICATES_REQUEST']
74507526
| components['schemas']['KEYWORDS_TOPIC_LABEL_REQUEST']
@@ -9312,6 +9388,56 @@ export interface operations {
93129388
};
93139389
};
93149390
};
9391+
/**
9392+
* Get Snowflake Preview Handler
9393+
* @description Get a preview of the data in a snowflake table.
9394+
*/
9395+
get_snowflake_preview_handler_v1_connector_snowflake_preview_post: {
9396+
requestBody: {
9397+
content: {
9398+
'application/json': components['schemas']['SnowflakeIngestDataRequest'];
9399+
};
9400+
};
9401+
responses: {
9402+
/** @description Successful Response */
9403+
200: {
9404+
content: {
9405+
'application/json': unknown;
9406+
};
9407+
};
9408+
/** @description Validation Error */
9409+
422: {
9410+
content: {
9411+
'application/json': components['schemas']['HTTPValidationError'];
9412+
};
9413+
};
9414+
};
9415+
};
9416+
/**
9417+
* Ingest Snowflake Data Handler
9418+
* @description Ingest data from a snowflake table.
9419+
*/
9420+
ingest_snowflake_data_handler_v1_connector_snowflake_ingest_and_build_post: {
9421+
requestBody: {
9422+
content: {
9423+
'application/json': components['schemas']['SnowflakeMapBuildRequest'];
9424+
};
9425+
};
9426+
responses: {
9427+
/** @description Successful Response */
9428+
200: {
9429+
content: {
9430+
'application/json': components['schemas']['SuccessResponse'];
9431+
};
9432+
};
9433+
/** @description Validation Error */
9434+
422: {
9435+
content: {
9436+
'application/json': components['schemas']['HTTPValidationError'];
9437+
};
9438+
};
9439+
};
9440+
};
93159441
/**
93169442
* Get Dataset Recurring Jobs
93179443
* @description Get all recurring jobs for a dataset.

0 commit comments

Comments
 (0)