Skip to content

Commit

Permalink
chore: fix type gen command (#74)
Browse files Browse the repository at this point in the history
fix type gen command
  • Loading branch information
RLesser authored Sep 11, 2024
1 parent 494c4df commit a33c4b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test": "env-cmd --file .env uvu tests -r esbuild-register",
"test:file": "env-cmd --file .env uvu -r esbuild-register tests",
"test:embeddings": "npm run test:file -- embedding.test.js",
"build-types": "openapi-typescript https://staging-api-atlas.nomic.ai/v1/api-reference/openapi.json -o ./src/type-gen/openapi.ts | prettier ./src/type-gen/openapi.ts --write",
"build-types": "openapi-typescript https://staging-api-atlas.nomic.ai/v1/api-reference/openapi.json -o ./src/type-gen/openapi.ts --empty-objects-unknown | npx prettier ./src/type-gen/openapi.ts --write",
"build": "tsc",
"build:watch": "tsc -w",
"insert-version": "node -e \"const fs = require('fs'); const pkg = require('./package.json'); fs.writeFileSync('./src/version.ts', 'export const version = \\'' + pkg.version + '\\';');\"",
Expand Down
20 changes: 10 additions & 10 deletions src/type-gen/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1155,10 +1155,10 @@ export interface components {
* Atoms
* @description The data for each atom, keyed by its atom_id
*/
atoms: Record<string, never>;
atoms: Record<string, unknown>;
};
/** BaseModel */
BaseModel: Record<string, never>;
BaseModel: Record<string, unknown>;
/** Body_add_blob_v1_dataset_data_add_blobs_post */
Body_add_blob_v1_dataset_data_add_blobs_post: {
/**
Expand Down Expand Up @@ -1751,7 +1751,7 @@ export interface components {
* Hyperparameters
* @description The hyperparameters this model was trained with.
*/
hyperparameters: Record<string, never>;
hyperparameters: Record<string, unknown>;
};
/** EmbeddingModelInferenceUsage */
EmbeddingModelInferenceUsage: {
Expand Down Expand Up @@ -1900,7 +1900,7 @@ export interface components {
| components['schemas']['MultiPolygon']
| components['schemas']['GeometryCollection'];
/** Properties */
properties?: Record<string, never> | components['schemas']['BaseModel'];
properties?: Record<string, unknown> | components['schemas']['BaseModel'];
/** Id */
id?: string;
/** Bbox */
Expand Down Expand Up @@ -1975,7 +1975,7 @@ export interface components {
* Datums
* @description The returned datums without json deserialization.
*/
datums: Record<string, never>[];
datums: Record<string, unknown>[];
};
/** GetProjectionAliasRequest */
GetProjectionAliasRequest: {
Expand Down Expand Up @@ -2393,7 +2393,7 @@ export interface components {
* Hyperparameters
* @description The hyperparameters of this index.
*/
hyperparameters: Record<string, never>;
hyperparameters: Record<string, unknown>;
/**
* Atom Strategies
* @description The phrase strategies of the phrases this embedder is embedding.
Expand Down Expand Up @@ -3139,7 +3139,7 @@ export interface components {
* Datums
* @description The datums to update
*/
datums: Record<string, never>[];
datums: Record<string, unknown>[];
/**
* Project Id
* Format: uuid
Expand Down Expand Up @@ -3347,7 +3347,7 @@ export interface components {
* Hyperparameters
* @description The hyperparameters of this projection.
*/
hyperparameters: Record<string, never>;
hyperparameters: Record<string, unknown>;
/**
* Atom Strategies
* @description The phrase strategies of the phrases this embedder is embedding.
Expand Down Expand Up @@ -3406,7 +3406,7 @@ export interface components {
* Topic Model Metadatas
* @description list of topic model metadata
*/
topic_model_metadatas: Record<string, never>[];
topic_model_metadatas: Record<string, unknown>[];
};
/** ProjectsResponse */
ProjectsResponse: {
Expand Down Expand Up @@ -3848,7 +3848,7 @@ export interface components {
* Results
* @description A list of topic metadata, including movement information
*/
results: Record<string, never>[];
results: Record<string, unknown>[];
};
/** UpdateInviteRequest */
UpdateInviteRequest: {
Expand Down

0 comments on commit a33c4b0

Please sign in to comment.