Skip to content

Commit

Permalink
bump types (#88)
Browse files Browse the repository at this point in the history
Bump to new atlas_cloud types.
<!-- ELLIPSIS_HIDDEN -->

----

> [!IMPORTANT]
> Update TypeScript types for Atlas SDK by removing deprecated endpoints and adding new fields to existing types.
> 
>   - **Endpoints**:
>     - Remove `/v1/stripe/set_organization_limits` endpoint.
>     - Remove `/v1/project/update_indices` and `/v1/dataset/update_indices` endpoints.
>   - **Types**:
>     - Remove `SetOrganizationLimitsRequest` and `SetOrganizationLimitsResponse`.
>     - Remove `UpdateProjectIndicesRequest` and `UpdateProjectIndicesResponse`.
>     - Add `ConnectorDatasetDetails` with `id` and `creation_params`.
>     - Add `connector_name` and `connector_details` to `Project`.
>     - Add `enable_free_trial` to `StripeSubscriptionCreateRequest`.
>   - **Enums**:
>     - Update `DatasetRole` to include `EXTERNAL`.
> 
> <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 ab802be. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
bmschmidt authored Dec 10, 2024
1 parent d4ab6f3 commit 2f61142
Showing 1 changed file with 65 additions and 135 deletions.
200 changes: 65 additions & 135 deletions src/type-gen/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -825,17 +825,10 @@ export interface paths {
*/
post: operations['stripe_subscription_v1_stripe_subscribe_post'];
};
'/v1/stripe/set_organization_limits': {
/**
* Set Organization Billing Limits
* @description Sets the organization billing limits
*/
post: operations['set_organization_billing_limits_v1_stripe_set_organization_limits_post'];
};
'/v1/stripe/cancel': {
/**
* Cancel Stripe Subscription
* @description Create stripe subscription checkout session url and send it to front end
* @description Cancels a stripe subscription. Used internally for unit tests.
*/
post: operations['cancel_stripe_subscription_v1_stripe_cancel_post'];
};
Expand Down Expand Up @@ -1407,6 +1400,16 @@ export interface components {
creation_params: Record<string, unknown>;
create_dataset_params: components['schemas']['CreateProjectRequest'];
};
/** ConnectorDatasetDetails */
ConnectorDatasetDetails: {
/**
* Id
* Format: uuid
*/
id: string;
/** Creation Params */
creation_params: Record<string, unknown>;
};
/** ConnectorDatasetResponse */
ConnectorDatasetResponse: {
created_dataset: components['schemas']['ProjectCreatedResponse'];
Expand Down Expand Up @@ -1735,7 +1738,7 @@ export interface components {
* @description An enumeration.
* @enum {string}
*/
DatasetRole: 'ADMIN' | 'EDITOR' | 'VIEWER' | 'NONE';
DatasetRole: 'ADMIN' | 'EDITOR' | 'VIEWER' | 'EXTERNAL' | 'NONE';
/** DatasetSearchResult */
DatasetSearchResult: {
/**
Expand Down Expand Up @@ -2761,6 +2764,11 @@ export interface components {
* @description The total number of projects of this organization
*/
project_count: number;
/**
* Connectors
* @description The connectors this organization has enabled
*/
connectors: components['schemas']['ConnectorResponse'][];
};
/** OrganizationAccessRequestApproveRequest */
OrganizationAccessRequestApproveRequest: {
Expand Down Expand Up @@ -3212,6 +3220,28 @@ 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'];
/**
* Organization Slug
* @description The organization url-safe slug
*/
organization_slug: string;
/**
* Organization Name
* @description The organization nickname
*/
organization_name: string;
/**
* Creator Nickname
* @description The creator nickname
*/
creator_nickname: string;
/**
* Creator Picture
* @description The creator picture
*/
creator_picture: string;
/**
* Og Image
* @description The datasets opengraph image
Expand Down Expand Up @@ -3242,25 +3272,10 @@ export interface components {
*/
schema?: string;
/**
* Organization Slug
* @description The organization url-safe slug
* Connector Details
* @description The connector details for this project
*/
organization_slug: string;
/**
* Organization Name
* @description The organization nickname
*/
organization_name: string;
/**
* Creator Nickname
* @description The creator nickname
*/
creator_nickname: string;
/**
* Creator Picture
* @description The creator picture
*/
creator_picture: string;
connector_details?: components['schemas']['ConnectorDatasetDetails'];
};
/** ProjectCreatedResponse */
ProjectCreatedResponse: {
Expand Down Expand Up @@ -3402,12 +3417,12 @@ export interface components {
description: string;
/**
* Is Public
* @description Is the project viewable without being in the organization?
* @description Is the project viewable without being in the organzation?
*/
is_public: boolean;
/**
* Is Public To Org
* @description Is the project public to the organization?
* @description Is the project viewable to the organization?
*/
is_public_to_org: boolean;
/**
Expand Down Expand Up @@ -3436,21 +3451,13 @@ export interface components {
* @description The timestamp this project was created.
*/
created_timestamp: string;
/**
* Nickname
* @description The nickname who created this project.
*/
nickname: string;
/**
* Thumbnail
* @description The project display thumbnail.
*/
thumbnail: string;
/**
* Slug
* @description The project url-safe slug
*/
slug: string;
/** @description The connector name used to create this project */
connector_name?: components['schemas']['ConnectorName'];
/**
* Organization Slug
* @description The organization url-safe slug
Expand All @@ -3471,6 +3478,16 @@ export interface components {
* @description The creator picture
*/
creator_picture: string;
/**
* Nickname
* @description The nickname who created this project.
*/
nickname: string;
/**
* Thumbnail
* @description The project display thumbnail.
*/
thumbnail: string;
};
/** ProjectNameSearchRequest */
ProjectNameSearchRequest: {
Expand Down Expand Up @@ -3903,29 +3920,6 @@ export interface components {
*/
users: components['schemas']['SearchUserModel'][];
};
/** SetOrganizationLimitsRequest */
SetOrganizationLimitsRequest: {
/**
* Max Datums
* @description The datapoint usage limit to set for the organization
*/
max_datums: number;
/**
* Organization Id
* Format: uuid
* @description Organization id
* @example 33adcf85-84ed-4e3a-9519-17c72682f905
*/
organization_id: string;
};
/** SetOrganizationLimitsResponse */
SetOrganizationLimitsResponse: {
/**
* Max Datums
* @description The new datapoint usage limit
*/
max_datums: number;
};
/** StripeSubscriptionCancelRequest */
StripeSubscriptionCancelRequest: {
/**
Expand Down Expand Up @@ -3955,6 +3949,12 @@ export interface components {
* @description Promotion code
*/
promo_code?: string;
/**
* Enable Free Trial
* @description Should a free trial period be enabled for the plan.
* @default false
*/
enable_free_trial?: boolean;
};
/** StripeSubscriptionCreateResponse */
StripeSubscriptionCreateResponse: {
Expand Down Expand Up @@ -4237,29 +4237,6 @@ export interface components {
*/
new_organization_website?: string;
};
/** UpdateProjectIndicesRequest */
UpdateProjectIndicesRequest: {
/**
* Project Id
* Format: uuid
* @description The id of the project to update
*/
project_id: string;
/**
* Rebuild Topic Models
* @description Whether or not to rebuild topic models
* @default false
*/
rebuild_topic_models?: boolean;
};
/** UpdateProjectIndicesResponse */
UpdateProjectIndicesResponse: {
/**
* Job Ids
* @description The job ids cerated for each index update operation
*/
job_ids: string[];
};
/** UpdateTagDefinitionRequest */
UpdateTagDefinitionRequest: {
/**
Expand Down Expand Up @@ -5356,22 +5333,11 @@ export interface operations {
* @description Updates the indices in a project that has unindexed progressively added data
*/
update_project_indices_v1_project_update_indices_post: {
requestBody: {
content: {
'application/json': components['schemas']['UpdateProjectIndicesRequest'];
};
};
responses: {
/** @description Successful Response */
200: {
content: {
'application/json': components['schemas']['UpdateProjectIndicesResponse'];
};
};
/** @description Validation Error */
422: {
content: {
'application/json': components['schemas']['HTTPValidationError'];
'application/json': unknown;
};
};
};
Expand Down Expand Up @@ -6679,22 +6645,11 @@ export interface operations {
* @description Updates the indices in a project that has unindexed progressively added data
*/
update_project_indices_v1_dataset_update_indices_post: {
requestBody: {
content: {
'application/json': components['schemas']['UpdateProjectIndicesRequest'];
};
};
responses: {
/** @description Successful Response */
200: {
content: {
'application/json': components['schemas']['UpdateProjectIndicesResponse'];
};
};
/** @description Validation Error */
422: {
content: {
'application/json': components['schemas']['HTTPValidationError'];
'application/json': unknown;
};
};
};
Expand Down Expand Up @@ -7718,34 +7673,9 @@ export interface operations {
};
};
};
/**
* Set Organization Billing Limits
* @description Sets the organization billing limits
*/
set_organization_billing_limits_v1_stripe_set_organization_limits_post: {
requestBody: {
content: {
'application/json': components['schemas']['SetOrganizationLimitsRequest'];
};
};
responses: {
/** @description Successful Response */
200: {
content: {
'application/json': components['schemas']['SetOrganizationLimitsResponse'];
};
};
/** @description Validation Error */
422: {
content: {
'application/json': components['schemas']['HTTPValidationError'];
};
};
};
};
/**
* Cancel Stripe Subscription
* @description Create stripe subscription checkout session url and send it to front end
* @description Cancels a stripe subscription. Used internally for unit tests.
*/
cancel_stripe_subscription_v1_stripe_cancel_post: {
requestBody: {
Expand Down

0 comments on commit 2f61142

Please sign in to comment.