diff --git a/generator/konfig-docs/redirects.json b/generator/konfig-docs/redirects.json index b2e2aef948..3f6b4451e5 100644 --- a/generator/konfig-docs/redirects.json +++ b/generator/konfig-docs/redirects.json @@ -5,6 +5,8 @@ "/sdk/ably/platform/": "/sdk/ably/platform/typescript/", "/sdk/flickr": "/sdk/flickr/typescript/", "/sdk/flickr/": "/sdk/flickr/typescript/", + "/sdk/baseten": "/sdk/baseten/typescript/", + "/sdk/baseten/": "/sdk/baseten/typescript/", "/sdk/dev": "/sdk/dev/typescript/", "/sdk/dev/": "/sdk/dev/typescript/", "/sdk/digital-ocean": "/sdk/digital-ocean/typescript/", diff --git a/generator/konfig-docs/src/pages/sdk/baseten/typescript/_description.mdx b/generator/konfig-docs/src/pages/sdk/baseten/typescript/_description.mdx new file mode 100644 index 0000000000..87729019f5 --- /dev/null +++ b/generator/konfig-docs/src/pages/sdk/baseten/typescript/_description.mdx @@ -0,0 +1 @@ +REST API for management of Baseten resources \ No newline at end of file diff --git a/generator/konfig-docs/src/pages/sdk/baseten/typescript/_getting-started.mdx b/generator/konfig-docs/src/pages/sdk/baseten/typescript/_getting-started.mdx new file mode 100644 index 0000000000..6577a14672 --- /dev/null +++ b/generator/konfig-docs/src/pages/sdk/baseten/typescript/_getting-started.mdx @@ -0,0 +1,7 @@ +```typescript index.ts +import { Baseten } from 'baseten-typescript-sdk'; + +const baseten = new Baseten({ + // You must use the specify the scheme 'Api-Key' in the Authorization header. For example, `Authorization: Api-Key ` + apiKeyAuth: "AUTHORIZATION", +}) \ No newline at end of file diff --git a/generator/konfig-docs/src/pages/sdk/baseten/typescript/index.tsx b/generator/konfig-docs/src/pages/sdk/baseten/typescript/index.tsx new file mode 100644 index 0000000000..728c4abf85 --- /dev/null +++ b/generator/konfig-docs/src/pages/sdk/baseten/typescript/index.tsx @@ -0,0 +1,130 @@ +import React from "react"; +import { HttpMethodsEnum } from "konfig-lib/dist/forEachOperation"; +// @ts-ignore +import Description from "./_description.mdx"; +// @ts-ignore +import GettingStarted from "./_getting-started.mdx"; +import { Sdk } from "@site/src/components/Sdk"; + +export default function BasetenTypeScriptSdk() { + return ( + + ); +} + \ No newline at end of file diff --git a/generator/konfig-docs/src/pages/sdk/sdk-links.json b/generator/konfig-docs/src/pages/sdk/sdk-links.json index 21b96fb154..1707e86413 100644 --- a/generator/konfig-docs/src/pages/sdk/sdk-links.json +++ b/generator/konfig-docs/src/pages/sdk/sdk-links.json @@ -22,6 +22,36 @@ "favicon": "https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/flickr/favicon.png", "apiVersion": "1.0.0" }, + { + "index": "baseten/typescript", + "link": "/sdk/baseten/typescript/", + "homepage": "baseten.co", + "categories": [ + "developer_tools", + "automation", + "collaboration", + "media", + "cloud", + "open_source", + "machine_learning", + "deployment", + "scalability", + "cost_efficiency", + "llm", + "stable_diffusion", + "tts", + "text_to_audio", + "text_to_speech", + "text_to_image", + "image_to_video", + "image_classification", + "text_embeddings", + "audio_to_text", + "image_to_text" + ], + "favicon": "https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/baseten/favicon.png", + "apiVersion": "1.0.0" + }, { "index": "dev/typescript", "link": "/sdk/dev/typescript/", diff --git a/sdks/db/custom-request-last-fetched.json b/sdks/db/custom-request-last-fetched.json index 16c0844703..b99a345ae6 100644 --- a/sdks/db/custom-request-last-fetched.json +++ b/sdks/db/custom-request-last-fetched.json @@ -32,6 +32,7 @@ "spotify.com_1.0.0": "2024-03-10T03:00:30.735Z", "elevenlabs.com": "2024-03-10T03:00:30.735Z", "digitalocean.com": "2024-03-10T03:00:30.735Z", - "dev.to": "2024-03-10T03:00:30.735Z" + "dev.to": "2024-03-10T03:00:30.735Z", + "baseten.co": "2024-03-10T03:37:50.389Z" } } \ No newline at end of file diff --git a/sdks/db/custom-request-specs/baseten.co.yaml b/sdks/db/custom-request-specs/baseten.co.yaml new file mode 100644 index 0000000000..a739801e70 --- /dev/null +++ b/sdks/db/custom-request-specs/baseten.co.yaml @@ -0,0 +1,247 @@ +info: + description: REST API for management of Baseten resources + title: Baseten management API + version: 1.0.0 +servers: + - url: https://api.baseten.co +security: + - ApiKeyAuth: [] +paths: + /v1/secrets: + get: + summary: Gets all secrets + responses: + '200': + description: A list of Baseten secrets. + content: + application/json: + schema: + $ref: '#/components/schemas/SecretsV1' + post: + summary: Upserts a secret + description: >- + Creates a new secret or updates an existing secret if one with the + provided name already exists. The name and creation date of the created + or updated secret is returned. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpsertSecretRequestV1' + required: true + responses: + '200': + description: >- + A Baseten secret. Note that we do not support retrieving secret + values. + content: + application/json: + schema: + $ref: '#/components/schemas/SecretV1' + /v1/models/{model_id}/deployments/development: + get: + summary: Gets a model's development deployment + description: >- + Gets a model's development deployment and returns the deployment's + details. + responses: + '200': + description: A deployment of a model. + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentV1' + parameters: + - $ref: '#/components/parameters/model_id' + /v1/models/{model_id}/deployments/production: + get: + summary: Gets a model's production deployment + description: >- + Gets a model's production deployment and returns the deployment's + details. + responses: + '200': + description: A deployment of a model. + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentV1' + parameters: + - $ref: '#/components/parameters/model_id' + /v1/models/{model_id}/deployments/{deployment_id}: + get: + summary: Gets a model's deployment by id + description: Gets a model's deployment by id and returns the deployment's details. + responses: + '200': + description: A deployment of a model. + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentV1' + parameters: + - $ref: '#/components/parameters/model_id' + - $ref: '#/components/parameters/deployment_id' +openapi: 3.0.2 +components: + schemas: + SecretV1: + description: A Baseten secret. Note that we do not support retrieving secret values. + properties: + created: + format: date-time + title: Created + type: string + name: + title: Name + type: string + required: + - created + - name + title: SecretV1 + type: object + SecretsV1: + description: A list of Baseten secrets. + properties: + secrets: + items: + $ref: '#/components/schemas/SecretV1' + title: Secrets + type: array + required: + - secrets + title: SecretsV1 + type: object + UpsertSecretRequestV1: + description: A request to create or update a Baseten secret by name. + properties: + name: + title: Name + type: string + value: + title: Value + type: string + required: + - name + - value + title: UpsertSecretRequestV1 + type: object + AutoscalingSettingsV1: + description: >- + Autoscaling settings for a deployment. All fields are optional, and we + only update ones passed in. + properties: + min_replica: + anyOf: + - type: integer + - type: 'null' + default: null + title: Min Replica + max_replica: + anyOf: + - type: integer + - type: 'null' + default: null + title: Max Replica + autoscaling_window: + anyOf: + - type: integer + - type: 'null' + default: null + title: Autoscaling Window + scale_down_delay: + anyOf: + - type: integer + - type: 'null' + default: null + title: Scale Down Delay + concurrency_target: + anyOf: + - type: integer + - type: 'null' + default: null + title: Concurrency Target + title: AutoscalingSettingsV1 + type: object + DeploymentStatusV1: + description: The status of a deployment. + enum: + - BUILDING + - DEPLOYING + - DEPLOY_FAILED + - LOADING + - READY + - UNHEALTHY + - BUILD_FAILED + - BUILD_STOPPED + - DEACTIVATING + - DEACTIVATED + - DOES_NOT_EXIST + - UPDATING + - MIGRATING + - SCALED_TO_ZERO + - WAKING_UP + title: DeploymentStatusV1 + type: string + DeploymentV1: + description: A deployment of a model. + properties: + id: + title: Id + type: string + created_at: + format: date-time + title: Created At + type: string + name: + title: Name + type: string + model_id: + title: Model Id + type: string + is_production: + title: Is Production + type: boolean + is_development: + title: Is Development + type: boolean + status: + $ref: '#/components/schemas/DeploymentStatusV1' + active_replicas: + title: Active Replicas + type: integer + autoscaling_settings: + $ref: '#/components/schemas/AutoscalingSettingsV1' + required: + - id + - created_at + - name + - model_id + - is_production + - is_development + - status + - active_replicas + - autoscaling_settings + title: DeploymentV1 + type: object + parameters: + model_id: + schema: + type: string + name: model_id + in: path + required: true + deployment_id: + schema: + type: string + name: deployment_id + in: path + required: true + securitySchemes: + ApiKeyAuth: + type: apiKey + in: header + name: Authorization + description: >- + You must use the specify the scheme 'Api-Key' in the Authorization + header. For example, `Authorization: Api-Key ` diff --git a/sdks/db/fixed-specs/baseten-fixed-spec.yaml b/sdks/db/fixed-specs/baseten-fixed-spec.yaml new file mode 100644 index 0000000000..90a2344ee9 --- /dev/null +++ b/sdks/db/fixed-specs/baseten-fixed-spec.yaml @@ -0,0 +1,260 @@ +openapi: 3.0.2 +info: + title: Baseten management API + description: REST API for management of Baseten resources + version: 1.0.0 +servers: + - url: https://api.baseten.co +tags: + - name: Deployment + - name: Secret +paths: + /v1/secrets: + get: + tags: + - Secret + summary: Gets all secrets + operationId: Secret_getAllSecrets + responses: + '200': + description: A list of Baseten secrets. + content: + application/json: + schema: + $ref: '#/components/schemas/SecretsV1' + post: + tags: + - Secret + summary: Upserts a secret + operationId: Secret_upsertNewSecret + description: >- + Creates a new secret or updates an existing secret if one with the + provided name already exists. The name and creation date of the created + or updated secret is returned. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpsertSecretRequestV1' + required: true + responses: + '200': + description: >- + A Baseten secret. Note that we do not support retrieving secret + values. + content: + application/json: + schema: + $ref: '#/components/schemas/SecretV1' + /v1/models/{model_id}/deployments/development: + parameters: + - $ref: '#/components/parameters/model_id' + get: + tags: + - Deployment + summary: Gets a model's development deployment + operationId: Deployment_getDevelopmentDetails + description: >- + Gets a model's development deployment and returns the deployment's + details. + responses: + '200': + description: A deployment of a model. + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentV1' + /v1/models/{model_id}/deployments/production: + parameters: + - $ref: '#/components/parameters/model_id' + get: + tags: + - Deployment + summary: Gets a model's production deployment + operationId: Deployment_getProductionDetails + description: >- + Gets a model's production deployment and returns the deployment's + details. + responses: + '200': + description: A deployment of a model. + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentV1' + /v1/models/{model_id}/deployments/{deployment_id}: + parameters: + - $ref: '#/components/parameters/model_id' + - $ref: '#/components/parameters/deployment_id' + get: + tags: + - Deployment + summary: Gets a model's deployment by id + operationId: Deployment_detailsGet + description: Gets a model's deployment by id and returns the deployment's details. + responses: + '200': + description: A deployment of a model. + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentV1' +components: + parameters: + model_id: + schema: + type: string + name: model_id + in: path + required: true + deployment_id: + schema: + type: string + name: deployment_id + in: path + required: true + schemas: + SecretV1: + title: SecretV1 + description: A Baseten secret. Note that we do not support retrieving secret values. + properties: + created: + title: Created + format: date-time + type: string + name: + title: Name + type: string + required: + - created + - name + type: object + SecretsV1: + title: SecretsV1 + description: A list of Baseten secrets. + properties: + secrets: + title: Secrets + items: + $ref: '#/components/schemas/SecretV1' + type: array + required: + - secrets + type: object + UpsertSecretRequestV1: + title: UpsertSecretRequestV1 + description: A request to create or update a Baseten secret by name. + properties: + name: + title: Name + type: string + value: + title: Value + type: string + required: + - name + - value + type: object + AutoscalingSettingsV1: + title: AutoscalingSettingsV1 + description: >- + Autoscaling settings for a deployment. All fields are optional, and we + only update ones passed in. + properties: + min_replica: + title: Min Replica + default: null + type: integer + nullable: true + max_replica: + title: Max Replica + default: null + type: integer + nullable: true + autoscaling_window: + title: Autoscaling Window + default: null + type: integer + nullable: true + scale_down_delay: + title: Scale Down Delay + default: null + type: integer + nullable: true + concurrency_target: + title: Concurrency Target + default: null + type: integer + nullable: true + type: object + DeploymentStatusV1: + title: DeploymentStatusV1 + description: The status of a deployment. + enum: + - BUILDING + - DEPLOYING + - DEPLOY_FAILED + - LOADING + - READY + - UNHEALTHY + - BUILD_FAILED + - BUILD_STOPPED + - DEACTIVATING + - DEACTIVATED + - DOES_NOT_EXIST + - UPDATING + - MIGRATING + - SCALED_TO_ZERO + - WAKING_UP + type: string + DeploymentV1: + title: DeploymentV1 + description: A deployment of a model. + properties: + id: + title: Id + type: string + created_at: + title: Created At + format: date-time + type: string + name: + title: Name + type: string + model_id: + title: Model Id + type: string + is_production: + title: Is Production + type: boolean + is_development: + title: Is Development + type: boolean + status: + $ref: '#/components/schemas/DeploymentStatusV1' + active_replicas: + title: Active Replicas + type: integer + autoscaling_settings: + $ref: '#/components/schemas/AutoscalingSettingsV1' + required: + - id + - created_at + - name + - model_id + - is_production + - is_development + - status + - active_replicas + - autoscaling_settings + type: object + securitySchemes: + ApiKeyAuth: + description: >- + You must use the specify the scheme 'Api-Key' in the Authorization + header. For example, `Authorization: Api-Key ` + type: apiKey + in: header + name: Authorization +security: + - ApiKeyAuth: [] diff --git a/sdks/db/intermediate-fixed-specs/baseten/openapi.yaml b/sdks/db/intermediate-fixed-specs/baseten/openapi.yaml new file mode 100644 index 0000000000..a739801e70 --- /dev/null +++ b/sdks/db/intermediate-fixed-specs/baseten/openapi.yaml @@ -0,0 +1,247 @@ +info: + description: REST API for management of Baseten resources + title: Baseten management API + version: 1.0.0 +servers: + - url: https://api.baseten.co +security: + - ApiKeyAuth: [] +paths: + /v1/secrets: + get: + summary: Gets all secrets + responses: + '200': + description: A list of Baseten secrets. + content: + application/json: + schema: + $ref: '#/components/schemas/SecretsV1' + post: + summary: Upserts a secret + description: >- + Creates a new secret or updates an existing secret if one with the + provided name already exists. The name and creation date of the created + or updated secret is returned. + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpsertSecretRequestV1' + required: true + responses: + '200': + description: >- + A Baseten secret. Note that we do not support retrieving secret + values. + content: + application/json: + schema: + $ref: '#/components/schemas/SecretV1' + /v1/models/{model_id}/deployments/development: + get: + summary: Gets a model's development deployment + description: >- + Gets a model's development deployment and returns the deployment's + details. + responses: + '200': + description: A deployment of a model. + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentV1' + parameters: + - $ref: '#/components/parameters/model_id' + /v1/models/{model_id}/deployments/production: + get: + summary: Gets a model's production deployment + description: >- + Gets a model's production deployment and returns the deployment's + details. + responses: + '200': + description: A deployment of a model. + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentV1' + parameters: + - $ref: '#/components/parameters/model_id' + /v1/models/{model_id}/deployments/{deployment_id}: + get: + summary: Gets a model's deployment by id + description: Gets a model's deployment by id and returns the deployment's details. + responses: + '200': + description: A deployment of a model. + content: + application/json: + schema: + $ref: '#/components/schemas/DeploymentV1' + parameters: + - $ref: '#/components/parameters/model_id' + - $ref: '#/components/parameters/deployment_id' +openapi: 3.0.2 +components: + schemas: + SecretV1: + description: A Baseten secret. Note that we do not support retrieving secret values. + properties: + created: + format: date-time + title: Created + type: string + name: + title: Name + type: string + required: + - created + - name + title: SecretV1 + type: object + SecretsV1: + description: A list of Baseten secrets. + properties: + secrets: + items: + $ref: '#/components/schemas/SecretV1' + title: Secrets + type: array + required: + - secrets + title: SecretsV1 + type: object + UpsertSecretRequestV1: + description: A request to create or update a Baseten secret by name. + properties: + name: + title: Name + type: string + value: + title: Value + type: string + required: + - name + - value + title: UpsertSecretRequestV1 + type: object + AutoscalingSettingsV1: + description: >- + Autoscaling settings for a deployment. All fields are optional, and we + only update ones passed in. + properties: + min_replica: + anyOf: + - type: integer + - type: 'null' + default: null + title: Min Replica + max_replica: + anyOf: + - type: integer + - type: 'null' + default: null + title: Max Replica + autoscaling_window: + anyOf: + - type: integer + - type: 'null' + default: null + title: Autoscaling Window + scale_down_delay: + anyOf: + - type: integer + - type: 'null' + default: null + title: Scale Down Delay + concurrency_target: + anyOf: + - type: integer + - type: 'null' + default: null + title: Concurrency Target + title: AutoscalingSettingsV1 + type: object + DeploymentStatusV1: + description: The status of a deployment. + enum: + - BUILDING + - DEPLOYING + - DEPLOY_FAILED + - LOADING + - READY + - UNHEALTHY + - BUILD_FAILED + - BUILD_STOPPED + - DEACTIVATING + - DEACTIVATED + - DOES_NOT_EXIST + - UPDATING + - MIGRATING + - SCALED_TO_ZERO + - WAKING_UP + title: DeploymentStatusV1 + type: string + DeploymentV1: + description: A deployment of a model. + properties: + id: + title: Id + type: string + created_at: + format: date-time + title: Created At + type: string + name: + title: Name + type: string + model_id: + title: Model Id + type: string + is_production: + title: Is Production + type: boolean + is_development: + title: Is Development + type: boolean + status: + $ref: '#/components/schemas/DeploymentStatusV1' + active_replicas: + title: Active Replicas + type: integer + autoscaling_settings: + $ref: '#/components/schemas/AutoscalingSettingsV1' + required: + - id + - created_at + - name + - model_id + - is_production + - is_development + - status + - active_replicas + - autoscaling_settings + title: DeploymentV1 + type: object + parameters: + model_id: + schema: + type: string + name: model_id + in: path + required: true + deployment_id: + schema: + type: string + name: deployment_id + in: path + required: true + securitySchemes: + ApiKeyAuth: + type: apiKey + in: header + name: Authorization + description: >- + You must use the specify the scheme 'Api-Key' in the Authorization + header. For example, `Authorization: Api-Key ` diff --git a/sdks/db/progress/baseten-progress.yaml b/sdks/db/progress/baseten-progress.yaml new file mode 100644 index 0000000000..03fca0d325 --- /dev/null +++ b/sdks/db/progress/baseten-progress.yaml @@ -0,0 +1,29 @@ +examples: {} +examples_2: {} +examples_3: {} +operationIds: + /v1/models/{model_id}/deployments/development: + get: Deployment_getDevelopmentDetails + /v1/models/{model_id}/deployments/production: + get: Deployment_getProductionDetails + /v1/models/{model_id}/deployments/{deployment_id}: + get: Deployment_detailsGet + /v1/secrets: + get: Secret_getAllSecrets + post: Secret_upsertNewSecret +operationTags: + /v1/models/{model_id}/deployments/development: + get: Deployment + /v1/models/{model_id}/deployments/production: + get: Deployment + /v1/models/{model_id}/deployments/{deployment_id}: + get: Deployment + /v1/secrets: + get: Secret + post: Secret +renameTags: {} +requestSchemaNames: {} +responseDescriptions: {} +responseSchemaNames: {} +securityParameters: {} +validServerUrls: {} diff --git a/sdks/db/published/from-custom-request_baseten.co.json b/sdks/db/published/from-custom-request_baseten.co.json new file mode 100644 index 0000000000..18e9eeb229 --- /dev/null +++ b/sdks/db/published/from-custom-request_baseten.co.json @@ -0,0 +1,153 @@ +{ + "securitySchemes": { + "ApiKeyAuth": { + "type": "apiKey", + "in": "header", + "name": "Authorization", + "description": "You must use the specify the scheme 'Api-Key' in the Authorization header. For example, `Authorization: Api-Key `" + } + }, + "apiBaseUrl": "https://api.baseten.co", + "apiVersion": "1.0.0", + "apiDescription": "REST API for management of Baseten resources", + "apiTitle": "Baseten management API", + "endpoints": 4, + "sdkMethods": 8, + "schemas": 6, + "parameters": 2, + "originalCustomRequest": { + "type": "GET", + "url": "https://api.baseten.co/v1/spec" + }, + "customRequestSpecFilename": "baseten.co.yaml", + "difficultyScore": 11.5, + "difficulty": "Very Easy", + "company": "Baseten", + "sdkName": "baseten-{language}-sdk", + "clientName": "Baseten", + "metaDescription": "At Baseten we provide all the infrastructure you need to deploy and serve ML models performantly, scalably, and cost-efficiently.Get started in minutes, and avoid getting tangled in complex deployment processes. You can deploy best-in-class open-source models and take advantage of optimized serving for your own models.We also utilize horizontally scalable services that take you from prototype to production, with light-speed inference on infra that autoscales with your traffic.Best in class doesn't mean breaking the bank. Run your models on the best infrastructure without running up costs by taking advantage of our scaled-to-zero feature.", + "apiStatusUrls": "inherit", + "homepage": "baseten.co", + "developerDocumentation": "docs.baseten.co/welcome", + "categories": [ + "developer_tools", + "automation", + "collaboration", + "media", + "cloud", + "open_source", + "machine_learning", + "deployment", + "scalability", + "cost_efficiency", + "llm", + "stable_diffusion", + "tts", + "text_to_audio", + "text_to_speech", + "text_to_image", + "image_to_video", + "image_classification", + "text_embeddings", + "audio_to_text", + "image_to_text" + ], + "methods": [ + { + "url": "/v1/secrets", + "method": "getAllSecrets", + "httpMethod": "get", + "tag": "Secret", + "typeScriptTag": "secret", + "description": "Gets all secrets", + "parameters": [], + "responses": [ + { + "statusCode": "200", + "description": "A list of Baseten secrets." + } + ] + }, + { + "url": "/v1/secrets", + "method": "upsertNewSecret", + "httpMethod": "post", + "tag": "Secret", + "typeScriptTag": "secret", + "description": "Upserts a secret", + "parameters": [ + { + "name": "name", + "schema": "string", + "required": true, + "description": "" + }, + { + "name": "value", + "schema": "string", + "required": true, + "description": "" + } + ], + "responses": [ + { + "statusCode": "200", + "description": "A Baseten secret. Note that we do not support retrieving secret values." + } + ] + }, + { + "url": "/v1/models/{model_id}/deployments/development", + "method": "getDevelopmentDetails", + "httpMethod": "get", + "tag": "Deployment", + "typeScriptTag": "deployment", + "description": "Gets a model's development deployment", + "parameters": [], + "responses": [ + { + "statusCode": "200", + "description": "A deployment of a model." + } + ] + }, + { + "url": "/v1/models/{model_id}/deployments/production", + "method": "getProductionDetails", + "httpMethod": "get", + "tag": "Deployment", + "typeScriptTag": "deployment", + "description": "Gets a model's production deployment", + "parameters": [], + "responses": [ + { + "statusCode": "200", + "description": "A deployment of a model." + } + ] + }, + { + "url": "/v1/models/{model_id}/deployments/{deployment_id}", + "method": "detailsGet", + "httpMethod": "get", + "tag": "Deployment", + "typeScriptTag": "deployment", + "description": "Gets a model's deployment by id", + "parameters": [], + "responses": [ + { + "statusCode": "200", + "description": "A deployment of a model." + } + ] + } + ], + "logo": "https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/baseten/logo.png", + "openApiRaw": "https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/baseten/openapi.yaml", + "previewLinkImage": "https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/baseten/imagePreview.png", + "faviconUrl": "https://raw.githubusercontent.com/konfig-sdks/openapi-examples/HEAD/baseten/favicon.png", + "clientNameCamelCase": "baseten", + "lastUpdated": "2024-03-10T03:44:41.210Z", + "typescriptSdkUsageCode": "import { Baseten } from 'baseten-typescript-sdk';\n\nconst baseten = new Baseten({\n // You must use the specify the scheme 'Api-Key' in the Authorization header. For example, `Authorization: Api-Key `\n apiKeyAuth: \"AUTHORIZATION\",\n})", + "fixedSpecFileName": "baseten-fixed-spec.yaml" +} \ No newline at end of file diff --git a/sdks/db/spec-data/bclaws.ca_bclaws_1.0.0.json b/sdks/db/spec-data/bclaws.ca_bclaws_1.0.0.json index 23b2b93e13..e8576da5dd 100644 --- a/sdks/db/spec-data/bclaws.ca_bclaws_1.0.0.json +++ b/sdks/db/spec-data/bclaws.ca_bclaws_1.0.0.json @@ -17,5 +17,5 @@ "schemas": 0, "parameters": 23, "difficultyScore": 12.75, - "difficulty": "Very Easy" + "difficulty": "Easy" } \ No newline at end of file diff --git a/sdks/db/spec-data/from-custom-request_baseten.co.json b/sdks/db/spec-data/from-custom-request_baseten.co.json new file mode 100644 index 0000000000..b925816bcc --- /dev/null +++ b/sdks/db/spec-data/from-custom-request_baseten.co.json @@ -0,0 +1,25 @@ +{ + "securitySchemes": { + "ApiKeyAuth": { + "type": "apiKey", + "in": "header", + "name": "Authorization", + "description": "You must use the specify the scheme 'Api-Key' in the Authorization header. For example, `Authorization: Api-Key `" + } + }, + "apiBaseUrl": "https://api.baseten.co", + "apiVersion": "1.0.0", + "apiDescription": "REST API for management of Baseten resources", + "apiTitle": "Baseten management API", + "endpoints": 4, + "sdkMethods": 8, + "schemas": 6, + "parameters": 2, + "originalCustomRequest": { + "type": "GET", + "url": "https://api.baseten.co/v1/spec" + }, + "customRequestSpecFilename": "baseten.co.yaml", + "difficultyScore": 11.5, + "difficulty": "Very Easy" +} \ No newline at end of file diff --git a/sdks/db/spec-data/nativeads.com_1.0.0.json b/sdks/db/spec-data/nativeads.com_1.0.0.json index 05d1f5279e..cc49ecaaf3 100644 --- a/sdks/db/spec-data/nativeads.com_1.0.0.json +++ b/sdks/db/spec-data/nativeads.com_1.0.0.json @@ -16,5 +16,5 @@ "schemas": 9, "parameters": 17, "difficultyScore": 12.75, - "difficulty": "Very Easy" + "difficulty": "Easy" } \ No newline at end of file diff --git a/sdks/db/spec-data/transitfeeds.com_1.0.0.json b/sdks/db/spec-data/transitfeeds.com_1.0.0.json index a8ef5b296b..b13c99386a 100644 --- a/sdks/db/spec-data/transitfeeds.com_1.0.0.json +++ b/sdks/db/spec-data/transitfeeds.com_1.0.0.json @@ -18,5 +18,5 @@ "contactUrl": "https://transitfeeds.com/issues", "contactEmail": "support@transitfeeds.com", "difficultyScore": 12.75, - "difficulty": "Very Easy" + "difficulty": "Easy" } \ No newline at end of file diff --git a/sdks/db/spec-data/vonage.com_user_1.11.8.json b/sdks/db/spec-data/vonage.com_user_1.11.8.json index a3889836dd..b6b506dbf8 100644 --- a/sdks/db/spec-data/vonage.com_user_1.11.8.json +++ b/sdks/db/spec-data/vonage.com_user_1.11.8.json @@ -21,5 +21,5 @@ "parameters": 9, "contactUrl": "https://businesssupport.vonage.com/contactus", "difficultyScore": 12.75, - "difficulty": "Very Easy" + "difficulty": "Easy" } \ No newline at end of file diff --git a/sdks/publish.json b/sdks/publish.json index b12a6c8f3c..5395b1e6ac 100644 --- a/sdks/publish.json +++ b/sdks/publish.json @@ -747,6 +747,39 @@ "serviceName": false, "sdkName": "dev-{language}-sdk", "clientName": "Dev" + }, + "from-custom-request_baseten.co": { + "company": "Baseten", + "homepage": "baseten.co", + "developerDocumentation": "docs.baseten.co/welcome", + "apiStatusUrls": "inherit", + "metaDescription": "At Baseten we provide all the infrastructure you need to deploy and serve ML models performantly, scalably, and cost-efficiently.Get started in minutes, and avoid getting tangled in complex deployment processes. You can deploy best-in-class open-source models and take advantage of optimized serving for your own models.We also utilize horizontally scalable services that take you from prototype to production, with light-speed inference on infra that autoscales with your traffic.Best in class doesn't mean breaking the bank. Run your models on the best infrastructure without running up costs by taking advantage of our scaled-to-zero feature.", + "categories": [ + "developer_tools", + "automation", + "collaboration", + "media", + "cloud", + "open_source", + "machine_learning", + "deployment", + "scalability", + "cost_efficiency", + "llm", + "stable_diffusion", + "tts", + "text_to_audio", + "text_to_speech", + "text_to_image", + "image_to_video", + "image_classification", + "text_embeddings", + "audio_to_text", + "image_to_text" + ], + "serviceName": false, + "sdkName": "baseten-{language}-sdk", + "clientName": "Baseten" } } } \ No newline at end of file diff --git a/sdks/src/collect-from-custom-requests.ts b/sdks/src/collect-from-custom-requests.ts index 25e95a8413..9b134b462a 100644 --- a/sdks/src/collect-from-custom-requests.ts +++ b/sdks/src/collect-from-custom-requests.ts @@ -126,6 +126,10 @@ async function executeCustomRequest( } const customRequests: Record = { + "baseten.co": { + type: "GET", + url: "https://api.baseten.co/v1/spec", + }, "dev.to": { type: "GET", url: "https://raw.githubusercontent.com/forem/forem/main/swagger/v1/api_v1.json",