@basetenlabs/client - v0.5.0
    Preparing search index...

    Type Alias components

    This file was auto-generated by openapi-typescript. Do not make direct changes to the file.

    type components = {
        headers: never;
        parameters: {
            api_key_prefix: string;
            chain_deployment_id: string;
            chain_id: string;
            chainlet_id: string;
            checkpoint_id: string;
            classifier_id: string;
            connection_id: string;
            Cursor: string;
            deployment_id: string;
            endpoint_id: string;
            env_name: string;
            group_id: string;
            Limit: number;
            machine_user_id: string;
            model_api_name: string;
            model_id: string;
            PreviewName: string;
            PreviewTokenName: string;
            replica_id: string;
            route_classifier_id: string;
            route_id: string;
            run_id: string;
            sampler_id: string;
            SandboxImageName: string;
            SandboxMetricEnd: number;
            SandboxMetricMode: components["schemas"]["SandboxMetricMode"];
            SandboxMetricNames: components["schemas"]["SandboxMetricName"][];
            SandboxMetricStart: number;
            SandboxName: string;
            secret_name: string;
            session_id: string;
            TagName: string;
            team_id: string;
            TeamId: string;
            TeamIdHeader: string;
            training_job_id: string;
            training_project_id: string;
            user_defined_listing_id: string;
            user_id: string;
            version_tag: string;
            volume_name: string;
            volume_namespace: string;
            volume_sync_id: string;
            volume_tag: string;
            volume_version: string;
            VolumeName: string;
        };
        pathItems: never;
        requestBodies: never;
        responses: {
            SandboxError400: {
                content: { "application/json": unknown };
                headers: { [name: string]: unknown };
            };
            SandboxError401: {
                content: { "application/json": unknown };
                headers: { [name: string]: unknown };
            };
            SandboxError403: {
                content: { "application/json": unknown };
                headers: { [name: string]: unknown };
            };
            SandboxError404: {
                content: { "application/json": unknown };
                headers: { [name: string]: unknown };
            };
            SandboxError409: {
                content: { "application/json": unknown };
                headers: { [name: string]: unknown };
            };
            SandboxError429: {
                content: { "application/json": unknown };
                headers: { [name: string]: unknown };
            };
            SandboxError500: {
                content: { "application/json": unknown };
                headers: { [name: string]: unknown };
            };
        };
        schemas: {
            ActivateResponse: { no_op: boolean; success: boolean };
            ActiveJobAtSubmit: {
                instance_type_name: string;
                status_at_submit: string;
                status_set_at: string;
                total_gpus: number;
                training_job_id: string;
                training_job_name: string | null;
                workload_plane_name: string;
            };
            APIKey: { api_key: string };
            APIKeyCategory:
                | "PERSONAL"
                | "GRID"
                | "WORKSPACE_MANAGE_ALL"
                | "WORKSPACE_EXPORT_METRICS"
                | "WORKSPACE_INVOKE"
                | "WORKSPACE_MANAGE_API_KEYS";
            APIKeyInfo: {
                created_at: string;
                expires_at: string
                | null;
                last_used_at: string | null;
                model_ids: string[] | null;
                name: string | null;
                owner: components["schemas"]["APIKeyOwner"] | null;
                prefix: string;
                team_name: string | null;
                type: components["schemas"]["APIKeyCategory"];
            };
            APIKeyOwner: {
                email: string
                | null;
                name: string | null;
                user_id: string;
            };
            APIKeys: { keys: components["schemas"]["APIKeyInfo"][] };
            APIKeyTombstone: { prefix: string };
            AuditLogActor: {
                api_key_name: string | null;
                api_key_prefix: string | null;
                email: string | null;
                type: components["schemas"]["AuditLogActorType"];
            };
            AuditLogActorType: | "USER"
            | "API_KEY"
            | "BASETEN_USER"
            | "BASETEN_SYSTEM"
            | "TOMBSTONE_USER";
            AuditLogApiKeyRevocationReason: "INACTIVITY";
            AuditLogApiKeyType: | "PERSONAL"
            | "CREATOR_SERVICE_ACCOUNT"
            | "MANAGE_API_KEYS_SERVICE_ACCOUNT"
            | "INVOKE_ALL_MODELS_SERVICE_ACCOUNT"
            | "INVOKE_ALLOWED_MODELS_SERVICE_ACCOUNT"
            | "INVOKE_SCOPED_ENVS_AND_MODELS_SERVICE_ACCOUNT"
            | "EXPORT_METRICS_ALL_MODELS_SERVICE_ACCOUNT"
            | "EXPORT_METRICS_ALLOWED_MODELS_SERVICE_ACCOUNT"
            | "INVOKE_ALL_SHARED_ENDPOINTS_SERVICE_ACCOUNT"
            | "INVOKE_ALLOWED_SHARED_ENDPOINTS_SERVICE_ACCOUNT"
            | "INVOKE_ALL_ROUTES";
            AuditLogEntry: {
                actor: components["schemas"]["AuditLogActor"];
                client_name: string
                | null;
                client_session_id: string | null;
                client_version: string | null;
                created: string;
                event_data:
                    | components["schemas"]["AuditLogEventModelDeployed"]
                    | components["schemas"]["AuditLogEventModelDeploymentActivated"]
                    | components["schemas"]["AuditLogEventModelDeploymentDeactivated"]
                    | components["schemas"]["AuditLogEventModelDeploymentRetried"]
                    | components["schemas"]["AuditLogEventModelDeploymentPromoted"]
                    | components["schemas"]["AuditLogEventModelDeploymentAutoscalingSettingsChanged"]
                    | components["schemas"]["AuditLogEventModelDeploymentRequestBackpressureSettingsChanged"]
                    | components["schemas"]["AuditLogEventModelDeploymentInstanceTypeChanged"]
                    | components["schemas"]["AuditLogEventModelDeploymentDeleted"]
                    | components["schemas"]["AuditLogEventModelDeleted"]
                    | components["schemas"]["AuditLogEventModelRenamed"]
                    | components["schemas"]["AuditLogEventChainDeployed"]
                    | components["schemas"]["AuditLogEventChainDeploymentActivated"]
                    | components["schemas"]["AuditLogEventChainDeploymentDeactivated"]
                    | components["schemas"]["AuditLogEventChainDeploymentPromoted"]
                    | components["schemas"]["AuditLogEventChainletAutoscalingSettingsChanged"]
                    | components["schemas"]["AuditLogEventChainletInstanceTypeChanged"]
                    | components["schemas"]["AuditLogEventChainDeploymentDeleted"]
                    | components["schemas"]["AuditLogEventChainDeleted"]
                    | components["schemas"]["AuditLogEventChainEnvironmentCreated"]
                    | components["schemas"]["AuditLogEventChainEnvironmentUpdated"]
                    | components["schemas"]["AuditLogEventSecretUpdated"]
                    | components["schemas"]["AuditLogEventSecretDeleted"]
                    | components["schemas"]["AuditLogEventApiKeyCreated"]
                    | components["schemas"]["AuditLogEventApiKeyDeleted"]
                    | components["schemas"]["AuditLogEventApiKeyLifetimeLimitsUpdated"]
                    | components["schemas"]["AuditLogEventGatewayEndpointCreated"]
                    | components["schemas"]["AuditLogEventGatewayEndpointUpdated"]
                    | components["schemas"]["AuditLogEventGatewayEndpointDeleted"]
                    | components["schemas"]["AuditLogEventProviderConnectionCreated"]
                    | components["schemas"]["AuditLogEventProviderConnectionUpdated"]
                    | components["schemas"]["AuditLogEventProviderConnectionDeleted"]
                    | components["schemas"]["AuditLogEventGridMachineUserCreated"]
                    | components["schemas"]["AuditLogEventGridMachineUserUpdated"]
                    | components["schemas"]["AuditLogEventGridMachineUserDeleted"]
                    | components["schemas"]["AuditLogEventUserInvited"]
                    | components["schemas"]["AuditLogEventUserJoinedOrganization"]
                    | components["schemas"]["AuditLogEventWebhookSigningSecretCreated"]
                    | components["schemas"]["AuditLogEventWebhookSigningSecretRotated"]
                    | components["schemas"]["AuditLogEventWebhookSigningSecretDeleted"]
                    | components["schemas"]["AuditLogEventUserRoleUpdated"]
                    | components["schemas"]["AuditLogEventUserTeamRoleUpdated"]
                    | components["schemas"]["AuditLogEventUserRemoved"]
                    | components["schemas"]["AuditLogEventDirectoryGroupRoleUpdated"]
                    | components["schemas"]["AuditLogEventRequireGroupBasedAdminsEnabled"]
                    | components["schemas"]["AuditLogEventEnvironmentCreated"]
                    | components["schemas"]["AuditLogEventEnvironmentUpdated"]
                    | components["schemas"]["AuditLogEventEnvironmentDeleted"]
                    | components["schemas"]["AuditLogEventReplicaTerminated"]
                    | components["schemas"]["AuditLogEventModelPromotionControlAction"]
                    | components["schemas"]["AuditLogEventSshCertificateSigned"]
                    | components["schemas"]["AuditLogEventVolumeDeleted"]
                    | components["schemas"]["AuditLogEventVolumeVersionDeleted"]
                    | components["schemas"]["AuditLogEventVolumeVersionRestored"]
                    | components["schemas"]["AuditLogEventVolumeTagSet"]
                    | components["schemas"]["AuditLogEventVolumeTagDeleted"]
                    | components["schemas"]["AuditLogEventVolumeUpdated"]
                    | components["schemas"]["AuditLogEventTelemetryExportCreated"]
                    | components["schemas"]["AuditLogEventTelemetryExportUpdated"]
                    | components["schemas"]["AuditLogEventTelemetryExportDeleted"];
                event_type: components["schemas"]["AuditLogEventType"];
                id: string;
                source: components["schemas"]["AuditLogSource"]
                | null;
            };
            AuditLogEventApiKeyCreated: {
                api_key_id: string;
                api_key_type: components["schemas"]["AuditLogApiKeyType"];
                event_type: "API_KEY_CREATED";
                prefix: string;
            };
            AuditLogEventApiKeyDeleted: {
                api_key_id: string;
                api_key_type: components["schemas"]["AuditLogApiKeyType"];
                event_type: "API_KEY_DELETED";
                prefix: string;
                revocation_reason: | components["schemas"]["AuditLogApiKeyRevocationReason"]
                | null;
            };
            AuditLogEventApiKeyLifetimeLimitsUpdated: {
                event_type: "API_KEY_LIFETIME_LIMITS_UPDATED";
                new_personal_limit_days: number
                | null;
                new_team_limit_days: number | null;
                organization_id: string;
                previous_personal_limit_days: number | null;
                previous_team_limit_days: number | null;
            };
            AuditLogEventAutoscalingScheduleAction: | "CREATED"
            | "UPDATED"
            | "DELETED"
            | "UNCHANGED";
            AuditLogEventAutoscalingScheduleChange: {
                action: components["schemas"]["AuditLogEventAutoscalingScheduleAction"];
                current: | components["schemas"]["AuditLogEventAutoscalingScheduleSettings"]
                | null;
                previous: | components["schemas"]["AuditLogEventAutoscalingScheduleSettings"]
                | null;
                schedule_id: string;
            };
            AuditLogEventAutoscalingScheduleOperations: {
                delete_schedule_ids: string[];
                schedules: components["schemas"]["AuditLogEventAutoscalingScheduleUpsert"][];
                timezone: string
                | null;
            };
            AuditLogEventAutoscalingScheduleSettings: {
                autoscaling_window: number
                | null;
                cadence: string;
                concurrency_target: number | null;
                enabled: boolean;
                end_at: string | null;
                end_hour: number | null;
                end_minute: number | null;
                max_replica: number;
                max_scale_down_rate: number | null;
                min_replica: number;
                scale_down_delay: number | null;
                schedule_name: string;
                start_at: string | null;
                start_hour: number | null;
                start_minute: number | null;
                target_in_flight_tokens: number | null;
                target_utilization_percentage: number | null;
                timezone: string;
                weekdays: string[] | null;
            };
            AuditLogEventAutoscalingScheduleUpsert: {
                autoscaling_window: number
                | null;
                cadence: string;
                concurrency_target: number | null;
                enabled: boolean;
                end_at: string | null;
                end_hour: number | null;
                end_minute: number | null;
                max_replica: number;
                max_scale_down_rate: number | null;
                min_replica: number;
                scale_down_delay: number | null;
                schedule_id: string | null;
                schedule_name: string;
                start_at: string | null;
                start_hour: number | null;
                start_minute: number | null;
                target_in_flight_tokens: number | null;
                target_utilization_percentage: number | null;
                timezone: string | null;
                weekdays: string[] | null;
            };
            AuditLogEventAutoscalingSettings: {
                autoscaling_window: number
                | null;
                concurrency_target: number;
                max_replica: number;
                max_scale_down_rate: number | null;
                min_replica: number;
                scale_down_delay: number | null;
                target_in_flight_tokens: number | null;
                target_utilization_percentage: number | null;
            };
            AuditLogEventAutoscalingSettingsUpdate: {
                autoscaling_window: number
                | null;
                concurrency_target: number | null;
                max_replica: number | null;
                max_scale_down_rate: number | null;
                min_replica: number | null;
                scale_down_delay: number | null;
                target_in_flight_tokens: number | null;
                target_utilization_percentage: number | null;
            };
            AuditLogEventChainDeleted: {
                chain_deployment_name: string
                | null;
                chain_id: string;
                chain_name: string;
                event_type: "CHAIN_DELETED";
            };
            AuditLogEventChainDeployed: {
                chain_deployment_id: string;
                chain_deployment_name: string
                | null;
                chain_id: string;
                chain_name: string;
                event_type: "CHAIN_DEPLOYED";
                is_primary: boolean;
                publish: boolean;
            };
            AuditLogEventChainDeploymentActivated: {
                chain_deployment_id: string;
                chain_deployment_name: string
                | null;
                chain_id: string;
                chain_name: string;
                event_type: "CHAIN_DEPLOYMENT_ACTIVATED";
            };
            AuditLogEventChainDeploymentDeactivated: {
                chain_deployment_id: string;
                chain_deployment_name: string
                | null;
                chain_id: string;
                chain_name: string;
                event_type: "CHAIN_DEPLOYMENT_DEACTIVATED";
            };
            AuditLogEventChainDeploymentDeleted: {
                chain_deployment_id: string;
                chain_id: string;
                chain_name: string;
                deployment_name: string
                | null;
                event_type: "CHAIN_DEPLOYMENT_DELETED";
            };
            AuditLogEventChainDeploymentPromoted: {
                chain_deployment_id: string;
                chain_deployment_name: string
                | null;
                chain_id: string;
                chain_name: string;
                environment_id: string | null;
                environment_name: string | null;
                event_type: "CHAIN_DEPLOYMENT_PROMOTED";
            };
            AuditLogEventChainEnvironmentCreated: {
                chain_id: string;
                chain_name: string;
                environment_name: string;
                event_type: "CHAIN_ENVIRONMENT_CREATED";
                ramp_up_duration_seconds: number
                | null;
                ramp_up_while_promoting: boolean | null;
                redeploy_on_promotion: boolean | null;
            };
            AuditLogEventChainEnvironmentUpdated: {
                chain_id: string;
                chain_name: string;
                environment_name: string;
                event_type: "CHAIN_ENVIRONMENT_UPDATED";
                ramp_up_duration_seconds: number
                | null;
                ramp_up_while_promoting: boolean | null;
                redeploy_on_promotion: boolean | null;
            };
            AuditLogEventChainletAutoscalingSettingsChanged: {
                autoscaling_window: number
                | null;
                chain_deployment_id: string;
                chain_deployment_name: string | null;
                chain_id: string;
                chain_name: string;
                chainlet_id: string;
                chainlet_name: string;
                concurrency_target: number;
                event_type: "CHAINLET_AUTOSCALING_SETTINGS_CHANGED";
                max_replica: number;
                max_scale_down_rate: number | null;
                min_replica: number;
                previous_settings:
                    | components["schemas"]["AuditLogEventAutoscalingSettings"]
                    | null;
                scale_down_delay: number
                | null;
                target_in_flight_tokens: number | null;
                target_utilization_percentage: number | null;
            };
            AuditLogEventChainletInstanceTypeChanged: {
                chain_deployment_id: string;
                chain_deployment_name: string
                | null;
                chain_id: string;
                chain_name: string;
                chainlet_id: string;
                chainlet_name: string;
                event_type: "CHAINLET_INSTANCE_TYPE_CHANGED";
                instance_type_name: string;
            };
            AuditLogEventDirectoryGroupRoleUpdated: {
                directory_group_id: string;
                directory_group_name: string;
                event_type: "DIRECTORY_GROUP_ROLE_UPDATED";
                new_role_name: string;
                team_id: string
                | null;
                team_name: string | null;
            };
            AuditLogEventEnvironmentCreated: {
                autoscaling_window: number
                | null;
                concurrency_target: number;
                deployment_type: string | null;
                environment_name: string;
                event_type: "ENVIRONMENT_CREATED";
                max_replica: number;
                max_scale_down_rate: number | null;
                max_surge_percent: number | null;
                max_unavailable_percent: number | null;
                min_replica: number;
                model_id: string;
                model_name: string;
                promotion_cleanup_strategy: string | null;
                ramp_up_duration_seconds: number | null;
                ramp_up_step_size: number | null;
                ramp_up_while_promoting: boolean | null;
                redeploy_on_promotion: boolean | null;
                replica_overhead_percent: number | null;
                request_backpressure_policy: string | null;
                rolling_deploy: boolean | null;
                rolling_deploy_strategy: string | null;
                scale_down_delay: number | null;
                stabilization_time_seconds: number | null;
                target_in_flight_tokens: number | null;
                target_utilization_percentage: number | null;
            };
            AuditLogEventEnvironmentDeleted: {
                environment_name: string;
                event_type: "ENVIRONMENT_DELETED";
                model_id: string;
                model_name: string;
            };
            AuditLogEventEnvironmentSettings: {
                autoscaling_window: number
                | null;
                concurrency_target: number;
                max_replica: number;
                max_scale_down_rate: number | null;
                max_surge_percent: number | null;
                max_unavailable_percent: number | null;
                min_replica: number;
                promotion_cleanup_strategy: string | null;
                ramp_up_duration_seconds: number | null;
                ramp_up_step_size: number | null;
                ramp_up_while_promoting: boolean | null;
                redeploy_on_promotion: boolean | null;
                replica_overhead_percent: number | null;
                request_backpressure_policy: string | null;
                rolling_deploy: boolean | null;
                rolling_deploy_strategy: string | null;
                scale_down_delay: number | null;
                stabilization_time_seconds: number | null;
                target_in_flight_tokens: number | null;
                target_utilization_percentage: number | null;
            };
            AuditLogEventEnvironmentUpdated: {
                autoscaling_window: number
                | null;
                concurrency_target: number;
                deployment_type: string | null;
                environment_name: string;
                event_type: "ENVIRONMENT_UPDATED";
                max_replica: number;
                max_scale_down_rate: number | null;
                max_surge_percent: number | null;
                max_unavailable_percent: number | null;
                min_replica: number;
                model_id: string;
                model_name: string;
                previous_settings:
                    | components["schemas"]["AuditLogEventEnvironmentSettings"]
                    | null;
                promotion_cleanup_strategy: string
                | null;
                ramp_up_duration_seconds: number | null;
                ramp_up_step_size: number | null;
                ramp_up_while_promoting: boolean | null;
                redeploy_on_promotion: boolean | null;
                replica_overhead_percent: number | null;
                request_backpressure_policy: string | null;
                rolling_deploy: boolean | null;
                rolling_deploy_strategy: string | null;
                scale_down_delay: number | null;
                schedules:
                    | components["schemas"]["AuditLogEventAutoscalingScheduleChange"][]
                    | null;
                stabilization_time_seconds: number
                | null;
                target_in_flight_tokens: number | null;
                target_utilization_percentage: number | null;
            };
            AuditLogEventGatewayEndpointCreated: {
                event_type: "GATEWAY_ENDPOINT_CREATED";
                gateway_endpoint_id: string;
                slug: string;
            };
            AuditLogEventGatewayEndpointDeleted: {
                event_type: "GATEWAY_ENDPOINT_DELETED";
                gateway_endpoint_id: string;
                slug: string;
            };
            AuditLogEventGatewayEndpointUpdated: {
                event_type: "GATEWAY_ENDPOINT_UPDATED";
                gateway_endpoint_id: string;
                previous_slug: string
                | null;
                slug: string;
            };
            AuditLogEventGridMachineUserCreated: {
                event_type: "GRID_MACHINE_USER_CREATED";
                machine_user_id: string;
                machine_user_name: string;
                team_id: string;
                team_name: string;
            };
            AuditLogEventGridMachineUserDeleted: {
                event_type: "GRID_MACHINE_USER_DELETED";
                machine_user_id: string;
                machine_user_name: string;
                team_id: string;
                team_name: string;
            };
            AuditLogEventGridMachineUserUpdated: {
                event_type: "GRID_MACHINE_USER_UPDATED";
                machine_user_id: string;
                machine_user_name: string;
                previous_machine_user_name: string;
                team_id: string;
                team_name: string;
            };
            AuditLogEventModelDeleted: {
                event_type: "MODEL_DELETED";
                model_id: string;
                model_name: string;
            };
            AuditLogEventModelDeployed: {
                autoscaling_schedule_settings_update: | components["schemas"]["AuditLogEventAutoscalingScheduleOperations"]
                | null;
                autoscaling_settings_update: | components["schemas"]["AuditLogEventAutoscalingSettingsUpdate"]
                | null;
                deployment_id: string;
                deployment_name: string;
                environment_name: string
                | null;
                event_type: "MODEL_DEPLOYED";
                instance_type_id_update: string | null;
                model_id: string;
                model_name: string;
                promotion_settings_override:
                    | components["schemas"]["AuditLogEventPromotionSettingsOverride"]
                    | null;
                publish: boolean;
                region_update: string
                | null;
                request_backpressure_settings_update:
                    | components["schemas"]["AuditLogEventRequestBackpressureSettingsUpdate"]
                    | null;
                scale_previous_to_zero: boolean;
                trusted: boolean;
            };
            AuditLogEventModelDeploymentActivated: {
                deployment_id: string;
                deployment_name: string;
                event_type: "MODEL_DEPLOYMENT_ACTIVATED";
                model_id: string;
                model_name: string;
            };
            AuditLogEventModelDeploymentAutoscalingSettingsChanged: {
                autoscaling_window: number
                | null;
                concurrency_target: number;
                deployment_id: string;
                deployment_name: string;
                deployment_type: string | null;
                event_type: "MODEL_DEPLOYMENT_AUTOSCALING_SETTINGS_CHANGED";
                max_replica: number;
                max_scale_down_rate: number | null;
                min_replica: number;
                model_id: string;
                model_name: string;
                previous_settings:
                    | components["schemas"]["AuditLogEventAutoscalingSettings"]
                    | null;
                scale_down_delay: number
                | null;
                schedules:
                    | components["schemas"]["AuditLogEventAutoscalingScheduleChange"][]
                    | null;
                target_in_flight_tokens: number
                | null;
                target_utilization_percentage: number | null;
            };
            AuditLogEventModelDeploymentDeactivated: {
                deployment_id: string;
                deployment_name: string;
                event_type: "MODEL_DEPLOYMENT_DEACTIVATED";
                model_id: string;
                model_name: string;
            };
            AuditLogEventModelDeploymentDeleted: {
                deployment_id: string;
                deployment_name: string;
                event_type: "MODEL_DEPLOYMENT_DELETED";
                model_id: string;
                model_name: string;
            };
            AuditLogEventModelDeploymentInstanceTypeChanged: {
                deployment_id: string;
                deployment_name: string;
                event_type: "MODEL_DEPLOYMENT_INSTANCE_TYPE_CHANGED";
                instance_type_name: string;
                model_id: string;
                model_name: string;
            };
            AuditLogEventModelDeploymentPromoted: {
                autoscaling_schedule_settings_update: | components["schemas"]["AuditLogEventAutoscalingScheduleOperations"]
                | null;
                autoscaling_settings_update: | components["schemas"]["AuditLogEventAutoscalingSettingsUpdate"]
                | null;
                deployment_id: string;
                deployment_name: string;
                environment_id: string
                | null;
                environment_name: string | null;
                event_type: "MODEL_DEPLOYMENT_PROMOTED";
                instance_type_id_update: string | null;
                model_id: string;
                model_name: string;
                promotion_settings_override:
                    | components["schemas"]["AuditLogEventPromotionSettingsOverride"]
                    | null;
                region_update: string
                | null;
                request_backpressure_settings_update:
                    | components["schemas"]["AuditLogEventRequestBackpressureSettingsUpdate"]
                    | null;
            };
            AuditLogEventModelDeploymentRequestBackpressureSettingsChanged: {
                deployment_id: string;
                deployment_name: string;
                event_type: "MODEL_DEPLOYMENT_REQUEST_BACKPRESSURE_SETTINGS_CHANGED";
                model_id: string;
                model_name: string;
                policy: string
                | null;
                previous_policy: string | null;
            };
            AuditLogEventModelDeploymentRetried: {
                deployment_id: string;
                deployment_name: string;
                event_type: "MODEL_DEPLOYMENT_RETRIED";
                model_id: string;
                model_name: string;
                retried: boolean;
            };
            AuditLogEventModelPromotionControlAction: {
                action: components["schemas"]["AuditLogPromotionControlAction"];
                deployment_id: string;
                deployment_name: string;
                environment_id: string
                | null;
                environment_name: string;
                event_type: "MODEL_PROMOTION_CONTROL_ACTION";
                model_id: string;
                model_name: string;
            };
            AuditLogEventModelRenamed: {
                event_type: "MODEL_RENAMED";
                model_id: string;
                model_name: string;
                previous_name: string
                | null;
            };
            AuditLogEventPromotionSettingsOverride: {
                max_surge_percent: number
                | null;
                max_unavailable_percent: number | null;
                promotion_cleanup_strategy: string | null;
                redeploy_on_promotion: boolean | null;
                replica_overhead_percent: number | null;
                rolling_deploy: boolean | null;
                rolling_deploy_strategy: string | null;
                stabilization_time_seconds: number | null;
            };
            AuditLogEventProviderConnectionCreated: {
                event_type: "PROVIDER_CONNECTION_CREATED";
                provider: string;
                provider_connection_id: string;
                secret_name: string;
            };
            AuditLogEventProviderConnectionDeleted: {
                event_type: "PROVIDER_CONNECTION_DELETED";
                provider: string;
                provider_connection_id: string;
                secret_name: string;
            };
            AuditLogEventProviderConnectionUpdated: {
                event_type: "PROVIDER_CONNECTION_UPDATED";
                provider: string;
                provider_connection_id: string;
                secret_name: string;
            };
            AuditLogEventReplicaTerminated: {
                deployment_id: string;
                deployment_name: string;
                event_type: "REPLICA_TERMINATED";
                model_id: string;
                model_name: string;
                replica_id: string;
            };
            AuditLogEventRequestBackpressureSettingsUpdate: { policy: string
            | null };
            AuditLogEventRequireGroupBasedAdminsEnabled: {
                event_type: "REQUIRE_GROUP_BASED_ADMINS_ENABLED";
                organization_id: string;
            };
            AuditLogEventSecretDeleted: {
                event_type: "SECRET_DELETED";
                secret_id: string;
                secret_name: string;
            };
            AuditLogEventSecretUpdated: {
                event_type: "SECRET_UPDATED";
                secret_id: string;
                secret_name: string;
            };
            AuditLogEventSshCertificateSigned: {
                event_type: "SSH_CERTIFICATE_SIGNED";
                expires_at: string;
                project_id: string;
                proxy_address: string;
                replica_id: string;
                workload_id: string;
                workload_type: string;
            };
            AuditLogEventTelemetryExportCreated: {
                event_type: "TELEMETRY_EXPORT_CREATED";
                telemetry_export_configuration_id: string;
            };
            AuditLogEventTelemetryExportDeleted: {
                event_type: "TELEMETRY_EXPORT_DELETED";
                telemetry_export_configuration_id: string;
            };
            AuditLogEventTelemetryExportUpdated: {
                credential_rotated: boolean;
                enabled: boolean
                | null;
                event_type: "TELEMETRY_EXPORT_UPDATED";
                telemetry_export_configuration_id: string;
            };
            AuditLogEventType: | "MODEL_DEPLOYED"
            | "MODEL_DEPLOYMENT_ACTIVATED"
            | "MODEL_DEPLOYMENT_DEACTIVATED"
            | "MODEL_DEPLOYMENT_RETRIED"
            | "MODEL_DEPLOYMENT_PROMOTED"
            | "MODEL_DEPLOYMENT_AUTOSCALING_SETTINGS_CHANGED"
            | "MODEL_DEPLOYMENT_REQUEST_BACKPRESSURE_SETTINGS_CHANGED"
            | "MODEL_DEPLOYMENT_INSTANCE_TYPE_CHANGED"
            | "MODEL_DEPLOYMENT_DELETED"
            | "MODEL_DELETED"
            | "MODEL_RENAMED"
            | "CHAIN_DEPLOYED"
            | "CHAIN_DEPLOYMENT_ACTIVATED"
            | "CHAIN_DEPLOYMENT_DEACTIVATED"
            | "CHAIN_DEPLOYMENT_PROMOTED"
            | "CHAINLET_AUTOSCALING_SETTINGS_CHANGED"
            | "CHAINLET_INSTANCE_TYPE_CHANGED"
            | "CHAIN_DEPLOYMENT_DELETED"
            | "CHAIN_DELETED"
            | "CHAIN_ENVIRONMENT_CREATED"
            | "CHAIN_ENVIRONMENT_UPDATED"
            | "SECRET_UPDATED"
            | "SECRET_DELETED"
            | "API_KEY_CREATED"
            | "API_KEY_DELETED"
            | "API_KEY_LIFETIME_LIMITS_UPDATED"
            | "GATEWAY_ENDPOINT_CREATED"
            | "GATEWAY_ENDPOINT_UPDATED"
            | "GATEWAY_ENDPOINT_DELETED"
            | "PROVIDER_CONNECTION_CREATED"
            | "PROVIDER_CONNECTION_UPDATED"
            | "PROVIDER_CONNECTION_DELETED"
            | "GRID_MACHINE_USER_CREATED"
            | "GRID_MACHINE_USER_UPDATED"
            | "GRID_MACHINE_USER_DELETED"
            | "USER_INVITED"
            | "USER_JOINED_ORGANIZATION"
            | "WEBHOOK_SIGNING_SECRET_CREATED"
            | "WEBHOOK_SIGNING_SECRET_ROTATED"
            | "WEBHOOK_SIGNING_SECRET_DELETED"
            | "USER_ROLE_UPDATED"
            | "USER_TEAM_ROLE_UPDATED"
            | "USER_REMOVED"
            | "DIRECTORY_GROUP_ROLE_UPDATED"
            | "REQUIRE_GROUP_BASED_ADMINS_ENABLED"
            | "ENVIRONMENT_CREATED"
            | "ENVIRONMENT_UPDATED"
            | "ENVIRONMENT_DELETED"
            | "REPLICA_TERMINATED"
            | "MODEL_PROMOTION_CONTROL_ACTION"
            | "SSH_CERTIFICATE_SIGNED"
            | "VOLUME_DELETED"
            | "VOLUME_VERSION_DELETED"
            | "VOLUME_VERSION_RESTORED"
            | "VOLUME_TAG_SET"
            | "VOLUME_TAG_DELETED"
            | "VOLUME_UPDATED"
            | "TELEMETRY_EXPORT_CREATED"
            | "TELEMETRY_EXPORT_UPDATED"
            | "TELEMETRY_EXPORT_DELETED";
            AuditLogEventTypeGroup: | "DEPLOYED"
            | "PROMOTED"
            | "ACTIVATED_DEACTIVATED"
            | "AUTOSCALING_SETTINGS"
            | "REQUEST_BACKPRESSURE_SETTINGS"
            | "INSTANCE_TYPE_CHANGED"
            | "ENVIRONMENT_SETTINGS"
            | "REPLICA_TERMINATED"
            | "DELETED"
            | "METADATA"
            | "SECRETS"
            | "API_KEYS"
            | "GATEWAY"
            | "GRID"
            | "WEBHOOK_SIGNING_SECRETS"
            | "USER_MANAGEMENT"
            | "DIRECTORY_GROUP_MANAGEMENT"
            | "SSH"
            | "TELEMETRY_EXPORT";
            AuditLogEventUserInvited: {
                event_type: "USER_INVITED";
                invited_user_email: string;
                role_name: string;
            };
            AuditLogEventUserJoinedOrganization: {
                event_type: "USER_JOINED_ORGANIZATION";
                new_user_email: string;
                user_id: string;
            };
            AuditLogEventUserRemoved: {
                event_type: "USER_REMOVED";
                removed_user_email: string;
            };
            AuditLogEventUserRoleUpdated: {
                event_type: "USER_ROLE_UPDATED";
                new_role_name: string;
                user_email: string;
                user_id: string;
            };
            AuditLogEventUserTeamRoleUpdated: {
                event_type: "USER_TEAM_ROLE_UPDATED";
                new_role_name: string;
                team_id: string;
                team_name: string;
                user_email: string;
                user_id: string;
            };
            AuditLogEventVolumeDeleted: {
                event_type: "VOLUME_DELETED";
                namespace: string;
                versions_deleted: number;
                volume_name: string;
                volume_ref: string;
            };
            AuditLogEventVolumeTagDeleted: {
                deleted: boolean;
                event_type: "VOLUME_TAG_DELETED";
                tag: string;
                volume_ref: string;
            };
            AuditLogEventVolumeTagSet: {
                digest: string;
                event_type: "VOLUME_TAG_SET";
                tag: string;
                volume_ref: string;
            };
            AuditLogEventVolumeUpdated: {
                event_type: "VOLUME_UPDATED";
                expires_at: string
                | null;
                previous_expires_at: string | null;
                volume_ref: string;
            };
            AuditLogEventVolumeVersionDeleted: {
                digest: string;
                event_type: "VOLUME_VERSION_DELETED";
                namespace: string;
                version: string;
                volume_name: string;
                volume_ref: string;
            };
            AuditLogEventVolumeVersionRestored: {
                digest: string;
                event_type: "VOLUME_VERSION_RESTORED";
                namespace: string;
                version: string;
                volume_name: string;
                volume_ref: string;
            };
            AuditLogEventWebhookSigningSecretCreated: {
                event_type: "WEBHOOK_SIGNING_SECRET_CREATED";
                webhook_signing_secret_id: string;
            };
            AuditLogEventWebhookSigningSecretDeleted: {
                event_type: "WEBHOOK_SIGNING_SECRET_DELETED";
                webhook_signing_secret_id: string;
            };
            AuditLogEventWebhookSigningSecretRotated: {
                event_type: "WEBHOOK_SIGNING_SECRET_ROTATED";
                webhook_signing_secret_id: string;
            };
            AuditLogPromotionControlAction: | "PAUSE"
            | "RESUME"
            | "FORCE_CANCEL"
            | "FORCE_ROLL_FORWARD"
            | "GRACEFUL_CANCEL";
            AuditLogSortDirection: "DESC"
            | "ASC";
            AuditLogSource: "UI" | "API" | "MCP" | "SYSTEM" | "OTHER";
            AuthCode: {
                auth_code: string;
                auth_url: string;
                expires_at: string | null;
                generated_at: string | null;
                replica_id: string;
                session_id: string;
                tunnel_name: string | null;
                working_directory: string | null;
            };
            AuthMethod: | "CUSTOM_SECRET"
            | "AWS_OIDC"
            | "GCP_OIDC"
            | "HUGGING_FACE_OIDC"
            | "AWS_ASSUME_ROLE";
            AutoscalingSchedule: {
                autoscaling_settings: components["schemas"]["AutoscalingScheduleSettings"];
                cadence: "DAILY"
                | "HOURLY";
                enabled: boolean;
                end_hour: number | null;
                end_minute: number;
                id: string;
                name: string;
                start_hour: number | null;
                start_minute: number;
                weekdays: components["schemas"]["AutoscalingScheduleWeekday"][];
            };
            AutoscalingScheduleSettings: {
                autoscaling_window: number
                | null;
                concurrency_target: number | null;
                max_replica: number;
                max_scale_down_rate: number | null;
                min_replica: number;
                scale_down_delay: number | null;
                target_in_flight_tokens: number | null;
                target_utilization_percentage: number | null;
            };
            AutoscalingScheduleSettingsRequest: {
                autoscaling_window: number
                | null;
                concurrency_target: number | null;
                max_replica: number;
                max_scale_down_rate: number | null;
                min_replica: number;
                scale_down_delay: number | null;
                target_in_flight_tokens: number | null;
                target_utilization_percentage: number | null;
            };
            AutoscalingScheduleState: {
                autoscaling_settings: components["schemas"]["AutoscalingSettings"];
                schedule_id: string
                | null;
            };
            AutoscalingScheduleUpsert: {
                autoscaling_settings: components["schemas"]["AutoscalingScheduleSettingsRequest"];
                cadence: "DAILY"
                | "HOURLY";
                enabled: boolean;
                end_hour?: number | null;
                end_minute: number;
                id?: string | null;
                name: string;
                start_hour?: number | null;
                start_minute: number;
                weekdays: components["schemas"]["AutoscalingScheduleWeekday"][];
            };
            AutoscalingScheduleWeekday: | "SUNDAY"
            | "MONDAY"
            | "TUESDAY"
            | "WEDNESDAY"
            | "THURSDAY"
            | "FRIDAY"
            | "SATURDAY";
            AutoscalingSettings: {
                autoscaling_window: number
                | null;
                concurrency_target: number;
                max_replica: number;
                max_scale_down_rate: number | null;
                min_replica: number;
                scale_down_delay: number | null;
                target_in_flight_tokens: number | null;
                target_utilization_percentage: number | null;
            };
            AvailabilityModel: "standard"
            | "spot";
            AwsAssumeRole: { baseten_role_arn: string; external_id: string };
            AwsAssumeRoleDockerAuth: { region: string; role_arn: string };
            AWSCredentials: {
                aws_access_key_id: string;
                aws_secret_access_key: string;
                aws_session_token: string;
            };
            AwsIamDockerAuth: {
                access_key_secret_ref: components["schemas"]["SecretReference"];
                secret_access_key_secret_ref: components["schemas"]["SecretReference"];
            };
            AwsOidcDockerAuth: { region: string; role_arn: string };
            BasetenLatestCheckpointConfig: {
                job_id?: string | null;
                project_name?: string | null;
                typ: "baseten_latest_checkpoint";
            };
            BasetenNamedCheckpointConfig: {
                checkpoint_name: string;
                job_id?: string
                | null;
                project_name?: string | null;
                typ: "baseten_named_checkpoint";
            };
            BenchmarkSnapshot: {
                embedding?: components["schemas"]["EmbeddingBenchmarkMetrics"]
                | null;
                llm?: components["schemas"]["LLMBenchmarkMetrics"] | null;
                measured_at: string;
                profile?: string | null;
                replicas?: number | null;
                run_id: string;
                tts?: components["schemas"]["TTSBenchmarkMetrics"] | null;
            };
            BillableResource: {
                base_model: string
                | null;
                chain_metadata: components["schemas"]["ChainMetadata"] | null;
                environment_name: string | null;
                id: string;
                instance_type: string | null;
                is_deleted: boolean;
                kind: components["schemas"]["ResourceKind"];
                model_id: string | null;
                model_name: string | null;
                name: string | null;
                team_id: string | null;
                team_name: string | null;
            };
            BucketWidth: "1m"
            | "1h"
            | "1d";
            CancelPromotionResponse: {
                message: string;
                status: components["schemas"]["CancelPromotionStatus"];
            };
            CancelPromotionStatus: "CANCELED"
            | "RAMPING_DOWN";
            CapacityAtSubmit: {
                gpu_type: string;
                last_modified: string;
                max_gpus: number;
                min_gpus: number | null;
            };
            Chain: {
                created_at: string;
                deployments_count: number;
                id: string;
                name: string;
                team_name: string;
            };
            ChainDeployment: {
                chain_id: string;
                chainlets: components["schemas"]["Chainlet"][];
                created_at: string;
                environment: string
                | null;
                id: string;
                status: components["schemas"]["DeploymentStatus"];
            };
            ChainDeployments: {
                deployments: components["schemas"]["ChainDeployment"][];
            };
            ChainDeploymentTombstone: {
                chain_id: string;
                deleted: boolean;
                id: string;
            };
            ChainEnvironment: {
                candidate_deployment: components["schemas"]["ChainDeployment"]
                | null;
                chain_id: string;
                chainlet_settings: components["schemas"]["ChainletEnvironmentSettings"][];
                created_at: string;
                current_deployment: components["schemas"]["ChainDeployment"] | null;
                in_progress_promotion:
                    | components["schemas"]["InProgressPromotion"]
                    | null;
                name: string;
                promotion_settings: components["schemas"]["PromotionSettings"];
            };
            Chainlet: {
                active_replica_count: number;
                autoscaling_settings: components["schemas"]["AutoscalingSettings"]
                | null;
                id: string;
                instance_type_name: string;
                name: string;
                status: components["schemas"]["DeploymentStatus"];
            };
            ChainletEnvironmentAutoscalingSettingsUpdate: {
                autoscaling_settings: components["schemas"]["UpdateAutoscalingSettings"];
                chainlet_name: string;
            };
            ChainletEnvironmentInstanceTypeUpdate: {
                chainlet_name: string;
                instance_type_id: string;
            };
            ChainletEnvironmentSettings: {
                autoscaling_settings: | components["schemas"]["AutoscalingSettings"]
                | null;
                chainlet_name: string;
                instance_type: components["schemas"]["InstanceType"];
            };
            ChainletEnvironmentSettingsRequest: {
                autoscaling_settings?: | components["schemas"]["UpdateAutoscalingSettings"]
                | null;
                chainlet_name: string;
                instance_type_id?: string;
            };
            ChainMetadata: {
                chain_deployment_id: string;
                chain_id: string;
                chain_name: string
                | null;
            };
            Chains: { chains: components["schemas"]["Chain"][] };
            ChainTombstone: { deleted: boolean; id: string };
            CheckpointFile: {
                last_modified: string;
                node_rank: number;
                relative_file_name: string;
                size_bytes: number;
                url: string;
            };
            CheckpointSyncStatus: "SYNCING"
            | "COMPLETED";
            CleanupImagesParams: { team_id?: string };
            CleanupSandboxImagesResponse: {
                deleted: number;
                has_more?: boolean;
                message: string;
                remaining?: number;
            };
            CreateApiKeyForGroupRequest: { name?: string
            | null };
            CreateApiKeyForGroupResponse: {
                api_key: string;
                name: string | null;
                prefix: string;
            };
            CreateAPIKeyRequest: {
                expires_at?: string
                | null;
                model_ids?: string[] | null;
                name?: string | null;
                team_id?: string | null;
                type: components["schemas"]["APIKeyCategory"];
            };
            CreateChainEnvironmentRequest: {
                chainlet_settings?: | components["schemas"]["ChainletEnvironmentSettingsRequest"][]
                | null;
                name: string;
                promotion_settings?: | components["schemas"]["UpdatePromotionSettings"]
                | null;
            };
            CreateDeploymentPatchRequest: {
                next_patch_point: components["schemas"]["DeploymentPatchPoint"];
                patch_ops: (
                    | components["schemas"]["DeploymentPatchOpModelCode"]
                    | components["schemas"]["DeploymentPatchOpPackage"]
                    | components["schemas"]["DeploymentPatchOpConfig"]
                    | components["schemas"]["DeploymentPatchOpPythonRequirement"]
                    | components["schemas"]["DeploymentPatchOpEnvVar"]
                    | components["schemas"]["DeploymentPatchOpExternalData"]
                )[];
                prev_patch_hash: string;
            };
            CreateDeploymentPatchResponse: {
                patch_point: components["schemas"]["DeploymentPatchPointWithHash"];
            };
            CreatedGridMachineUser: {
                api_key: string
                | null;
                created_at: string;
                created_by: string | null;
                id: string;
                name: string;
                team_id: string;
                team_name: string;
            };
            CreatedModelDeployment: {
                deployment: components["schemas"]["Deployment"];
                model: components["schemas"]["Model"];
            };
            CreateEndpointRequest: {
                region?: components["schemas"]["SharedEndpointRegion"];
                slug: string;
                targets: components["schemas"]["EndpointTargetRequest"][];
            };
            CreateEnvironmentRequest: {
                autoscaling_settings?: | components["schemas"]["UpdateAutoscalingSettings"]
                | null;
                name: string;
                promotion_settings?: | components["schemas"]["UpdateModelPromotionSettings"]
                | null;
                request_backpressure_settings?: | components["schemas"]["UpdateRequestBackpressureSettings"]
                | null;
            };
            CreateGridConnectionRequest: {
                config: | components["schemas"]["UpsertGridConnectionConfigAnthropic"]
                | components["schemas"]["UpsertGridConnectionConfigOpenAI"]
                | components["schemas"]["UpsertGridConnectionConfigXAI"]
                | components["schemas"]["UpsertGridConnectionConfigVertex"]
                | components["schemas"]["UpsertGridConnectionConfigBedrock"];
                team_id?: string
                | null;
            };
            CreateGridMachineUserAPIKeyRequest: { name?: string
            | null };
            CreateGridMachineUserRequest: {
                api_key?:
                    | components["schemas"]["CreateGridMachineUserAPIKeyRequest"]
                    | null;
                name: string;
                team_id?: string
                | null;
            };
            CreateGridRouteRequest: {
                description?: string
                | null;
                display_name?: string | null;
                target:
                    | components["schemas"]["UpsertGridRouteTargetBasetenModelAPI"]
                    | components["schemas"]["UpsertGridRouteTargetConnection"]
                    | components["schemas"]["UpsertGridRouteTargetClassifier"];
                team_id?: string
                | null;
            };
            CreateGridTokenRequest: { team_id?: string
            | null };
            CreateGroupHierarchy: {
                limit_enforcement?: components["schemas"]["LimitEnforcement"] | null;
                parent_group_id?: string | null;
            };
            CreateGroupRequest: {
                hierarchy: components["schemas"]["CreateGroupHierarchy"];
                metadata: components["schemas"]["GroupMetadata"];
                models: components["schemas"]["ModelConfig"][];
            };
            CreateJobWeightConfig: {
                allow_patterns?: string[]
                | null;
                auth?: components["schemas"]["TrainingWeightAuth"] | null;
                auth_secret_name?: string | null;
                ignore_patterns?: string[] | null;
                mount_location: string;
                source: string;
            };
            CreateLibraryListingRequest: {
                closed_source?: boolean;
                display_name: string;
                is_listed?: boolean;
                is_public?: boolean;
                user_defined_id: string;
            };
            CreateLibraryListingVersionRequest: {
                allow_truss_download?: boolean;
                closed_source?: boolean;
                display_name?: string
                | null;
                is_listed?: boolean;
                is_public?: boolean;
                oracle_version_id: string;
                replace_model?: boolean;
                version_tag: string;
            };
            CreateLLMModelRequest: {
                additional_autoscaling_config?: { [key: string]: unknown }
                | null;
                autoscaling_settings?:
                    | components["schemas"]["UpdateAutoscalingSettings"]
                    | null;
                bdn?: { [key: string]: unknown }
                | null;
                deployment_name?: string | null;
                egress_restrictions?: components["schemas"]["EgressRestrictions"] | null;
                environment_variables?: { [key: string]: unknown };
                llm_config?: { [key: string]: unknown };
                llm_version?: string | null;
                metadata?: { [key: string]: unknown } | null;
                model_metadata?: { [key: string]: unknown } | null;
                name: string;
                region?: string | null;
                resources: { [key: string]: unknown };
                runtime?: components["schemas"]["LLMRuntime"] | null;
                weights?: { [key: string]: unknown }[] | null;
            };
            CreateLLMModelVersionRequest: {
                additional_autoscaling_config?: { [key: string]: unknown }
                | null;
                autoscaling_settings?:
                    | components["schemas"]["UpdateAutoscalingSettings"]
                    | null;
                bdn?: { [key: string]: unknown }
                | null;
                deployment_name?: string | null;
                egress_restrictions?: components["schemas"]["EgressRestrictions"] | null;
                environment_variables?: { [key: string]: unknown };
                llm_config?: { [key: string]: unknown };
                llm_version?: string | null;
                metadata?: { [key: string]: unknown } | null;
                model_metadata?: { [key: string]: unknown } | null;
                region?: string | null;
                resources: { [key: string]: unknown };
                runtime?: components["schemas"]["LLMRuntime"] | null;
                weights?: { [key: string]: unknown }[] | null;
            };
            CreateLoopsRunRequest: {
                availability_model?: components["schemas"]["AvailabilityModel"];
                base_checkpoint?: string
                | null;
                base_model: string;
                lora_rank?: number;
                max_seq_len?: number | null;
                name?: string | null;
                path?: string | null;
                replicas?: number;
                reuse_from_run_id?: string | null;
                reuse_from_session_id?: string | null;
                sampler_num_replicas?: number | null;
                scale_down_delay_seconds?: number;
                seed?: number | null;
                session_id: string;
            };
            CreateLoopsRunResponse: { run: components["schemas"]["LoopsRun"] };
            CreateLoopsSamplerRequest: {
                availability_model?: components["schemas"]["AvailabilityModel"] | null;
                base_model?: string | null;
                max_seq_length?: number | null;
                model_path?: string | null;
                num_replicas?: number | null;
                reuse_from_session_id?: string | null;
                run_id?: string | null;
                scope?: components["schemas"]["LoopsPlacementScope"];
                session_id: string;
            };
            CreateLoopsSamplerResponse: {
                sampler: components["schemas"]["LoopsSampler"];
            };
            CreateLoopsSessionResponse: {
                session: components["schemas"]["LoopsSession"];
            };
            CreateLoopsTrainerRequest: {
                availability_model?: components["schemas"]["AvailabilityModel"];
                base_checkpoint?: string
                | null;
                base_model: string;
                lora_rank?: number;
                max_seq_len?: number | null;
                name?: string | null;
                path?: string | null;
                replicas?: number;
                reuse_from_run_id?: string | null;
                reuse_from_session_id?: string | null;
                scale_down_delay_seconds?: number;
                scope?: components["schemas"]["LoopsPlacementScope"];
                seed?: number | null;
                session_id: string;
            };
            CreateModelDeploymentRequest: {
                source: components["schemas"]["DeploymentArchiveSource"];
            };
            CreateModelRequest: {
                source: | components["schemas"]["LibraryListingSource"]
                | components["schemas"]["ModelArchiveSource"];
            };
            CreateSandboxParams: { team_id?: string };
            CreateSandboxPreviewParams: { team_id?: string };
            CreateSandboxPreviewRequest: components["schemas"]["SandboxPreviewConfiguration"] & {
                create_if_not_exists?: boolean;
                name?: string;
                port: number;
                ttl?: components["schemas"]["SandboxPreviewTtl"];
            };
            CreateSandboxPreviewTokenParams: { team_id?: string };
            CreateSandboxPreviewTokenRequest: {
                create_if_not_exists?: boolean;
                expires_at: string;
            };
            CreateSandboxRequest: {
                cpu?: number;
                create_if_not_exists?: boolean;
                envs?: components["schemas"]["SandboxEnv"][];
                external_id?: string;
                filesystem?: components["schemas"]["SandboxFilesystem"];
                image?: string;
                labels?: components["schemas"]["SandboxMetadataLabels"];
                lifecycle?: components["schemas"]["SandboxLifecycle"];
                memory?: number;
                name?: string;
                ports?: components["schemas"]["SandboxPorts"];
                region?: string;
                volumes?: components["schemas"]["SandboxVolumeAttachment"][];
            };
            CreateSandboxVolumeParams: { team_id?: string };
            CreateSandboxVolumeRequest: {
                labels?: components["schemas"]["SandboxMetadataLabels"];
                name?: string;
                region?: string;
                size: string | number;
            };
            CreateTokenRequest: { scopes: components["schemas"]["TokenScope"][] };
            CreateTrainingJob: {
                compute?: components["schemas"]["CreateTrainingJobCompute"];
                enable_baseten_workdir?: boolean;
                image: components["schemas"]["CreateTrainingJobImage"];
                interactive_session?:
                    | components["schemas"]["InteractiveSessionConfig"]
                    | null;
                name?: string
                | null;
                priority?: number | null;
                runtime?: components["schemas"]["CreateTrainingJobRuntime"];
                truss_user_env?: components["schemas"]["TrussUserEnv"] | null;
                weights?: components["schemas"]["CreateJobWeightConfig"][];
            };
            CreateTrainingJobAccelerator: { accelerator: string; count: number };
            CreateTrainingJobCacheConfig: {
                enable_legacy_hf_mount?: boolean;
                enabled?: boolean;
                mount_base_path?: string;
                persistent_home?: boolean;
                require_cache_affinity?: boolean;
            };
            CreateTrainingJobCheckpointingConfig: {
                checkpoint_path?: string
                | null;
                enabled?: boolean;
                volume_size_gib?: number | null;
            };
            CreateTrainingJobCompute: {
                accelerator?: | components["schemas"]["CreateTrainingJobAccelerator"]
                | null;
                availability_model?: components["schemas"]["AvailabilityModel"];
                cpu_count?: number;
                memory?: string;
                node_count?: number;
            };
            CreateTrainingJobImage: {
                base_image: string;
                docker_auth?: components["schemas"]["DockerAuth"]
                | null;
            };
            CreateTrainingJobRequest: {
                training_job: components["schemas"]["CreateTrainingJob"];
            };
            CreateTrainingJobResponse: {
                training_job: components["schemas"]["TrainingJob"];
            };
            CreateTrainingJobRuntime: {
                artifacts?: components["schemas"]["CreateTrainingJobS3Artifact"][];
                cache_config?: | components["schemas"]["CreateTrainingJobCacheConfig"]
                | null;
                checkpointing_config?: components["schemas"]["CreateTrainingJobCheckpointingConfig"];
                enable_cache?: boolean
                | null;
                environment_variables?: { [key: string]: string | { name: string } };
                load_checkpoint_config?:
                    | components["schemas"]["LoadCheckpointConfig"]
                    | null;
                start_commands?: string[];
            };
            CreateTrainingJobS3Artifact: { s3_bucket: string; s3_key: string };
            CreateVolumeSyncRequest: {
                destination: components["schemas"]["VolumeSyncDestination"];
                source:
                    | components["schemas"]["VolumeSyncSourceHuggingFace"]
                    | components["schemas"]["VolumeSyncSourceS3"]
                    | components["schemas"]["VolumeSyncSourceGCS"]
                    | components["schemas"]["VolumeSyncSourceAzure"]
                    | components["schemas"]["VolumeSyncSourceR2"]
                    | components["schemas"]["VolumeSyncSourceCoreWeave"]
                    | components["schemas"]["VolumeSyncSourceBasetenTraining"];
            };
            CreateVolumeTokenRequest: {
                correlation_id?: string
                | null;
                namespaces: string[];
                scopes: components["schemas"]["VolumeTokenScope"][];
                volumes: string[];
            };
            CreateVolumeTokenResponse: {
                bdn_endpoint: string
                | null;
                expires_at: string;
                namespaces: string[];
                scopes: components["schemas"]["VolumeTokenScope"][];
                token: string;
                volumes: string[];
            };
            DailyDedicatedUsage: {
                compute_cost: number
                | string;
                date: string;
                inference_requests: number;
                minutes: number;
                subtotal: number | string;
                surcharge_cost: number | string;
            };
            DailyLoopsUsage: {
                cached_prefill: components["schemas"]["LoopsMeterUsage"];
                date: string;
                sample: components["schemas"]["LoopsMeterUsage"];
                subtotal: number
                | string;
                train: components["schemas"]["LoopsMeterUsage"];
                uncached_prefill: components["schemas"]["LoopsMeterUsage"];
            };
            DailyModelApiUsage: {
                cached_input_tokens: number;
                date: string;
                input_tokens: number;
                output_tokens: number;
                subtotal: number
                | string;
            };
            DailyTrainingUsage: {
                date: string;
                minutes: number;
                subtotal: number
                | string;
            };
            DeactivateLoopsDeploymentResponse: {
                base_model: string;
                id: string;
                user: components["schemas"]["User"];
            };
            DeactivateLoopsRunResponse: {
                base_model: string;
                id: string;
                user: components["schemas"]["User"];
            };
            DeactivateLoopsSamplerResponse: {
                base_model: string;
                id: string;
                user: components["schemas"]["User"];
            };
            DeactivateResponse: { no_op: boolean; success: boolean };
            DedicatedItem: {
                billable_resource: components["schemas"]["BillableResource"];
                compute_cost: number | string;
                daily?: components["schemas"]["DailyDedicatedUsage"][];
                inference_requests: number;
                minutes: number;
                subtotal: number | string;
                surcharge_cost: number | string;
            };
            DedicatedUsage: {
                breakdown?: components["schemas"]["DedicatedItem"][];
                credits_used: number
                | string;
                minutes: number;
                subtotal: number | string;
                total: number | string;
            };
            DeleteImageParams: { team_id?: string };
            DeleteImageTagParams: { team_id?: string };
            DeleteSandboxParams: { team_id?: string };
            DeleteSandboxPreviewParams: { team_id?: string };
            DeleteSandboxPreviewTokenParams: { team_id?: string };
            DeleteSandboxVolumeParams: { team_id?: string };
            DeleteVolumeRequest: { expected_sequence?: number | null };
            DeleteVolumeResponse: {
                name: string;
                namespace: string;
                versions_deleted: number;
                volume_sequence: number;
            };
            DeleteVolumeTagRequest: { expected_sequence?: number
            | null };
            DeleteVolumeTagResponse: {
                deleted: boolean;
                namespace: string;
                tag: string;
                volume: string;
                volume_sequence: number;
            };
            DeleteVolumeVersionRequest: { expected_sequence?: number
            | null };
            DeleteVolumeVersionResponse: {
                delete_after: string;
                digest: string;
                lifecycle: string;
                namespace: string;
                version_ref: string;
                volume: string;
                volume_sequence: number;
            };
            DeployLoopsCheckpointRequest: {
                checkpoint_ids: string[];
                hf_secret_name: string;
                instance_type_id: string;
                model_name: string;
            };
            DeployLoopsCheckpointResponse: { deployment_id: string; model_id: string };
            Deployment: {
                active_replica_count: number;
                autoscaling_settings: components["schemas"]["AutoscalingSettings"] | null;
                created_at: string;
                environment: string | null;
                id: string;
                instance_type_name: string | null;
                is_development: boolean;
                is_production: boolean;
                labels: { [key: string]: unknown } | null;
                model_id: string;
                name: string;
                region: components["schemas"]["Region"] | null;
                request_backpressure_settings: components["schemas"]["RequestBackpressureSettings"];
                status: components["schemas"]["DeploymentStatus"];
            };
            DeploymentArchivePayload: {
                autoscaling_schedule_settings?: | components["schemas"]["UpdateAutoscalingScheduleSettings"]
                | null;
                autoscaling_settings?: | components["schemas"]["UpdateAutoscalingSettings"]
                | null;
                config: { [key: string]: unknown };
                create_environment_if_missing?: boolean;
                deploy_timeout_minutes?: number | null;
                deployment_name?: string | null;
                environment_name?: string | null;
                instance_type_id?: string | null;
                is_development?: boolean;
                labels?: { [key: string]: unknown } | null;
                preserve_env_instance_type?: boolean;
                promotion_settings_override?:
                    | components["schemas"]["UpdatePromotionSettings"]
                    | null;
                raw_config?: string
                | null;
                region?: string | null;
                request_backpressure_settings?:
                    | components["schemas"]["UpdateRequestBackpressureSettings"]
                    | null;
                user_env?: { [key: string]: unknown }
                | null;
            };
            DeploymentArchiveSource: {
                deployment: components["schemas"]["DeploymentArchivePayload"];
                kind: "model_archive";
                s3_key?: string
                | null;
            };
            DeploymentConfigOutputFormat: "raw"
            | "parsed"
            | "both";
            DeploymentConfigResponse: {
                config: { [key: string]: unknown } | null;
                raw_config: string | null;
            };
            DeploymentPatchAction: "ADD"
            | "UPDATE"
            | "REMOVE";
            DeploymentPatchOpConfig: {
                config: { [key: string]: unknown };
                path?: string;
                type: "config";
            };
            DeploymentPatchOpEnvVar: {
                action: components["schemas"]["DeploymentPatchAction"];
                name: string;
                type: "environment_variable";
                value?: string
                | null;
            };
            DeploymentPatchOpExternalData: {
                action: components["schemas"]["DeploymentPatchAction"];
                item: { [key: string]: string };
                type: "external_data";
            };
            DeploymentPatchOpModelCode: {
                action: components["schemas"]["DeploymentPatchAction"];
                content?: string
                | null;
                content_bytes?: string | null;
                hot_reload?: boolean;
                path: string;
                type: "model_code";
            };
            DeploymentPatchOpPackage: {
                action: components["schemas"]["DeploymentPatchAction"];
                content?: string
                | null;
                content_bytes?: string | null;
                path: string;
                type: "package";
            };
            DeploymentPatchOpPythonRequirement: {
                action: components["schemas"]["DeploymentPatchAction"];
                requirement: string;
                type: "python_requirement";
            };
            DeploymentPatchPoint: {
                config: string;
                content_hashes: { [key: string]: string
                | null };
                requirements?: string[];
            };
            DeploymentPatchPointWithHash: {
                config: string;
                content_hashes: { [key: string]: string
                | null };
                hash: string;
                requirements?: string[];
            };
            Deployments: { deployments: components["schemas"]["Deployment"][] };
            DeploymentStatus:
                | "BUILDING"
                | "DEPLOYING"
                | "DEPLOY_FAILED"
                | "LOADING_MODEL"
                | "ACTIVE"
                | "UNHEALTHY"
                | "BUILD_FAILED"
                | "BUILD_STOPPED"
                | "DEACTIVATING"
                | "INACTIVE"
                | "FAILED"
                | "UPDATING"
                | "SCALED_TO_ZERO"
                | "WAKING_UP";
            DeploymentTombstone: { deleted: boolean; id: string; model_id: string };
            DockerAuth: {
                auth_method: components["schemas"]["DockerAuthType"];
                aws_assume_role_docker_auth?:
                    | components["schemas"]["AwsAssumeRoleDockerAuth"]
                    | null;
                aws_iam_docker_auth?: components["schemas"]["AwsIamDockerAuth"]
                | null;
                aws_oidc_docker_auth?: components["schemas"]["AwsOidcDockerAuth"] | null;
                gcp_oidc_docker_auth?: components["schemas"]["GcpOidcDockerAuth"] | null;
                gcp_service_account_json_docker_auth?:
                    | components["schemas"]["GcpServiceAccountJsonDockerAuth"]
                    | null;
                registry: string;
                registry_secret_docker_auth?: | components["schemas"]["RegistrySecretDockerAuth"]
                | null;
            };
            DockerAuthType: | "GCP_SERVICE_ACCOUNT_JSON"
            | "AWS_IAM"
            | "AWS_OIDC"
            | "GCP_OIDC"
            | "REGISTRY_SECRET"
            | "AWS_ASSUME_ROLE";
            DownloadDeploymentResponse: { download_url: string };
            DownloadTrainingJobResponse: { artifact_presigned_urls: string[] };
            EffectiveModelConfig: {
                rate_limits?: components["schemas"]["EffectiveRateLimit"][];
                slug: string;
                usage_limits?: components["schemas"]["EffectiveUsageLimit"][];
            };
            EffectiveRateLimit: {
                source_group: string;
                threshold: number;
                type: components["schemas"]["LimitType"];
                unit: components["schemas"]["RateLimitUnit"];
            };
            EffectiveUsageLimit: {
                source_group: string;
                threshold: number;
                type: components["schemas"]["LimitType"];
                unit: components["schemas"]["UsageLimitUnit"];
            };
            EgressRestrictions: {
                fqdn_allow_list?: string[]
                | null;
                ip_allow_list?: string[] | null;
            };
            EmbeddingBenchmarkMetrics: {
                e2e_latency_ms_p50?: number
                | null;
                e2e_latency_ms_p99?: number | null;
                input_tokens_per_sec?: number | null;
                requests_per_sec?: number | null;
            };
            EnablementDetails: {
                reason: string;
                reason_detail: string;
                remediation: string;
            };
            Endpoint: {
                created_at: string;
                id: string;
                region: components["schemas"]["SharedEndpointRegion"];
                slug: string;
                targets: components["schemas"]["EndpointTarget"][];
                updated_at: string;
            };
            EndpointsResponse: {
                items: components["schemas"]["Endpoint"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            EndpointTarget: {
                base_url: string
                | null;
                environment_name: string | null;
                model_id: string | null;
                provider: components["schemas"]["GatewayEndpointProvider"];
                secret_id: string | null;
                target_model: string | null;
                vertex_config: components["schemas"]["VertexTargetConfig"] | null;
            };
            EndpointTargetRequest: {
                base_url?: string
                | null;
                environment_name?: string | null;
                model_id?: string | null;
                provider: components["schemas"]["GatewayEndpointProvider"];
                secret_id?: string | null;
                target_model?: string | null;
                vertex_config?: components["schemas"]["VertexTargetConfig"] | null;
            };
            EndpointTombstone: { id: string; slug: string };
            Environment: {
                autoscaling_schedules:
                    | components["schemas"]["EnvironmentAutoscalingSchedules"]
                    | null;
                autoscaling_settings: components["schemas"]["AutoscalingSettings"];
                candidate_deployment: components["schemas"]["Deployment"]
                | null;
                created_at: string;
                current_deployment: components["schemas"]["Deployment"] | null;
                in_progress_promotion:
                    | components["schemas"]["InProgressPromotion"]
                    | null;
                instance_type: components["schemas"]["InstanceType"];
                model_id: string;
                name: string;
                promotion_settings: components["schemas"]["ModelPromotionSettings"];
                request_backpressure_settings: components["schemas"]["RequestBackpressureSettings"];
                traffic_routing: | components["schemas"]["EnvironmentTrafficRouting"]
                | null;
            };
            EnvironmentAutoscalingSchedules: {
                applied_state: | components["schemas"]["AutoscalingScheduleState"]
                | null;
                schedules: (
                    | components["schemas"]["AutoscalingSchedule"]
                    | components["schemas"]["OneTimeAutoscalingSchedule"]
                )[];
                timezone: string
                | null;
            };
            EnvironmentGroup: {
                manage_access: components["schemas"]["EnvironmentGroupManageAccess"];
                name: string;
                team_id: string;
                team_name: string;
            };
            EnvironmentGroupManageAccess: {
                is_restricted: boolean;
                users?: components["schemas"]["EnvironmentGroupUser"][];
            };
            EnvironmentGroups: {
                items: components["schemas"]["EnvironmentGroup"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            EnvironmentGroupUser: {
                email: string
                | null;
                name: string | null;
                user_id: string;
            };
            Environments: { environments: components["schemas"]["Environment"][] };
            EnvironmentTombstone: { deleted: boolean; model_id: string; name: string };
            EnvironmentTrafficRouting: {
                rules: components["schemas"]["TrafficRoutingRule"][];
            };
            ExploreCost: {
                cache_read: number
                | null;
                cache_write: number | null;
                input: number | null;
                long_context: components["schemas"]["ExploreCostValues"] | null;
                output: number | null;
            };
            ExploreCostValues: {
                cache_read: number
                | null;
                cache_write: number | null;
                input: number | null;
                output: number | null;
            };
            ExploreMetadata: {
                context_window: number
                | null;
                cost: components["schemas"]["ExploreCost"] | null;
                display_name: string | null;
                input_modalities: string[];
                max_output_tokens: number | null;
                parallel_tool_calls: boolean | null;
                provider: string | null;
                reasoning_effort_levels: string[] | null;
                release_date: string | null;
                slug: string | null;
                supported_api_formats:
                    | components["schemas"]["ExploreMetadataAPIFormats"]
                    | null;
                tools: boolean
                | null;
            };
            ExploreMetadataAPIFormats: {
                chat_completions: boolean;
                messages: boolean;
                responses: boolean;
            };
            ExploreMetadataResponse: {
                items: components["schemas"]["ExploreMetadata"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            FileSummary: {
                file_type: string;
                modified: string;
                path: string;
                permissions: string;
                size_bytes: number;
            };
            GatewayEndpointProvider: | "ANTHROPIC"
            | "OPENAI"
            | "XAI"
            | "BASETEN"
            | "BASETEN_MODEL_API"
            | "VERTEX"
            | "OPENAI_COMPATIBLE";
            GatewayEvent: {
                apiKeyPrefix: string;
                externalEntityId: string;
                idempotencyKey: string;
                modelSlug: string;
                requestId: string;
                timestamp: string;
                tokens: components["schemas"]["GatewayEventTokens"];
                type: string;
            };
            GatewayEventsResponse: {
                items: components["schemas"]["GatewayEvent"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            GatewayEventTokens: {
                cachedInputTokens: number;
                inputTokens: number;
                outputTokens: number;
            };
            GatewayKeyInfo: { name: string
            | null; prefix: string };
            GcpOidcDockerAuth: {
                service_account: string;
                workload_identity_provider: string;
            };
            GcpServiceAccountJsonDockerAuth: {
                service_account_json_secret_ref: components["schemas"]["SecretReference"];
            };
            GetApiKeysParams: {
                created_by_me?: boolean;
                type?: components["schemas"]["APIKeyCategory"]
                | null;
            };
            GetAuditLogsParams: {
                chain_deployment_ids?: string[];
                cursor?: string
                | null;
                deployment_ids?: string[];
                direction?: components["schemas"]["AuditLogSortDirection"];
                end_epoch_millis?: number | null;
                environment_names?: string[];
                event_type_groups?: components["schemas"]["AuditLogEventTypeGroup"][];
                limit?: number;
                search?: string | null;
                sources?: components["schemas"]["AuditLogSource"][];
                start_epoch_millis?: number | null;
                user_ids?: string[];
            };
            GetAuthCodesResponse: { auth_codes: components["schemas"]["AuthCode"][] };
            GetBillingModelApisParams: {
                api_key_prefixes?: string[];
                cursor?: string | null;
                end_date?: string | null;
                group_by?: components["schemas"]["ModelApiCostDimension"][];
                limit?: number;
                models?: string[];
                service_tiers?: string[];
                start_date?: string | null;
                team_ids?: string[];
                user_ids?: string[];
            };
            GetBillingToolCallUsageParams: {
                end_date?: string
                | null;
                group_by?: components["schemas"]["ToolCallUsageDimension"][];
                start_date: string;
                team_ids?: string[];
            };
            GetBillingUsageSummaryParams: { end_date: string; start_date: string };
            GetBlobCredentialsResponse: {
                creds: components["schemas"]["AWSCredentials"];
                s3_bucket: string;
                s3_key: string;
            };
            GetCacheSummaryResponse: {
                file_summaries: components["schemas"]["FileSummary"][];
                project_id: string;
                timestamp: string;
            };
            GetChainsAuditLogsParams: {
                chain_deployment_ids?: string[];
                cursor?: string
                | null;
                deployment_ids?: string[];
                direction?: components["schemas"]["AuditLogSortDirection"];
                end_epoch_millis?: number | null;
                environment_names?: string[];
                event_type_groups?: components["schemas"]["AuditLogEventTypeGroup"][];
                limit?: number;
                search?: string | null;
                sources?: components["schemas"]["AuditLogSource"][];
                start_epoch_millis?: number | null;
                user_ids?: string[];
            };
            GetChainsDeploymentsChainletsLogsParams: {
                component?: string
                | null;
                direction?: components["schemas"]["SortOrder"] | null;
                end_epoch_millis?: number | null;
                excludes?: string[];
                includes?: string[];
                limit?: number | null;
                min_level?: components["schemas"]["LogLevel"] | null;
                replica?: string | null;
                request_id?: string | null;
                search_pattern?: string | null;
                start_epoch_millis?: number | null;
            };
            GetDeploymentLogsRequest: {
                component?: string
                | null;
                direction?: components["schemas"]["SortOrder"] | null;
                end_epoch_millis?: number | null;
                excludes?: string[];
                includes?: string[];
                limit?: number | null;
                min_level?: components["schemas"]["LogLevel"] | null;
                replica?: string | null;
                request_id?: string | null;
                search_pattern?: string | null;
                start_epoch_millis?: number | null;
            };
            GetDeploymentPatchesStateResponse: {
                pending_patch_point: | components["schemas"]["DeploymentPatchPointWithHash"]
                | null;
                running_patch_point: components["schemas"]["DeploymentPatchPointWithHash"];
            };
            GetExploreMetadataParams: {
                cursor?: string
                | null;
                limit?: number;
                provider?: string | null;
                q?: string | null;
            };
            GetGatewayEventsParams: {
                api_keys?: string[];
                cursor?: string
                | null;
                end_time?: string | null;
                external_entity_ids?: string[];
                limit?: number | null;
                start_time?: string | null;
            };
            GetGridClassifiersParams: { cursor?: string
            | null; limit?: number };
            GetGridConnectionsParams: {
                cursor?: string | null;
                limit?: number;
                team_id?: string | null;
            };
            GetGridMachineUsersParams: {
                cursor?: string
                | null;
                limit?: number;
                team_id?: string | null;
            };
            GetGridRouteClassifiersParams: { cursor?: string
            | null; limit?: number };
            GetGridRoutesParams: {
                cursor?: string | null;
                for_harnesses?: boolean;
                limit?: number;
                name?: string | null;
                team_id?: string | null;
            };
            GetGridRoutesUsageParams: {
                cursor?: string
                | null;
                end_date?: string | null;
                group_by?: components["schemas"]["GridRouteUsageDimension"][];
                harnesses?: components["schemas"]["GridRouteUsageHarness"][];
                limit?: number;
                models?: string[];
                providers?: components["schemas"]["GridProvider"][];
                start_date?: string | null;
                team_id?: string | null;
                user_ids?: string[];
            };
            GetGridTeamSettingsParams: { team_id?: string
            | null };
            GetGridTeamSettingsUsersParams: {
                cursor?: string | null;
                limit?: number;
                team_id?: string | null;
            };
            GetGridTeamSettingsUsersUserIdParams: { team_id?: string
            | null };
            GetImageBuildLogsParams: {
                end_time?: string;
                limit?: number;
                offset?: number;
                start_time?: string;
                team_id?: string;
            };
            GetImageParams: { team_id?: string };
            GetLogsResponse: { logs: components["schemas"]["Log"][] };
            GetLoopsCapabilitiesParams: {
                enabled?: boolean | null;
                max_seq_len?: number | null;
                model?: string | null;
                use_case?: components["schemas"]["LoopsUseCase"];
            };
            GetLoopsCapabilitiesResponse: {
                supported_models: components["schemas"]["SupportedModel"][];
            };
            GetLoopsCheckpointsFilesParams: {
                page_size?: number;
                page_token?: number;
            };
            GetLoopsCheckpointsParams: {
                base_model?: string
                | null;
                checkpoint_path?: string | null;
                run_id?: string | null;
            };
            GetLoopsDeploymentMetricsRequest: {
                end_epoch_millis?: number
                | null;
                start_epoch_millis?: number | null;
                step_seconds?: number | null;
                time_divisor_seconds?: number | null;
            };
            GetLoopsDeploymentMetricsResponse: {
                deployment_id: string;
                metrics: components["schemas"]["LoopsDeploymentMetrics"];
            };
            GetLoopsDeploymentResponse: {
                deployment: components["schemas"]["LoopsDeployment"];
            };
            GetLoopsDeploymentsDebugArchiveFilesParams: {
                page_size?: number;
                page_token?: string
                | null;
            };
            GetLoopsDeploymentsLogsParams: {
                direction?: components["schemas"]["SortOrder"]
                | null;
                end_epoch_millis?: number | null;
                limit?: number | null;
                min_level?: components["schemas"]["LogLevel"] | null;
                start_epoch_millis?: number | null;
            };
            GetLoopsDeploymentsParams: { scope?: string
            | null };
            GetLoopsRunResponse: { run: components["schemas"]["LoopsRun"] };
            GetLoopsRunsParams: {
                base_model?: string | null;
                run_id?: string | null;
                scope?: string | null;
                session_id?: string | null;
            };
            GetLoopsSamplerResponse: {
                sampler: components["schemas"]["LoopsSampler"];
            };
            GetLoopsSamplersParams: {
                scope?: string
                | null;
                session_id?: string | null;
            };
            GetLoopsSessionResponse: {
                session: components["schemas"]["LoopsSession"];
            };
            GetLoopsUserConfigResponse: {
                user_config: components["schemas"]["LoopsUserConfig"];
            };
            GetMetricsResponse: {
                end_epoch_millis: number;
                metric_descriptors: components["schemas"]["MetricDescriptor"][];
                metric_values: components["schemas"]["MetricValueSet"][];
                mode: components["schemas"]["MetricMode"];
                start_epoch_millis: number;
                step_seconds: number
                | null;
            };
            GetModelApisMetricsParams: {
                end_epoch_millis?: number
                | null;
                metrics?: string[];
                mode?: components["schemas"]["MetricMode"];
                start_epoch_millis?: number | null;
            };
            GetModelApisModelApiNameParams: { team_ids?: string[] };
            GetModelApisParams: {
                added_only?: boolean;
                cursor?: string | null;
                limit?: number;
                team_ids?: string[];
            };
            GetModelApisUsageParams: {
                api_keys?: string[];
                bucket_width?: components["schemas"]["BucketWidth"];
                cursor?: string
                | null;
                end_time?: string | null;
                group_by?: components["schemas"]["UsageDimension"][];
                limit?: number | null;
                models?: string[];
                start_time?: string | null;
                team_ids?: string[];
                user_ids?: string[];
            };
            GetModelsAuditLogsParams: {
                chain_deployment_ids?: string[];
                cursor?: string
                | null;
                deployment_ids?: string[];
                direction?: components["schemas"]["AuditLogSortDirection"];
                end_epoch_millis?: number | null;
                environment_names?: string[];
                event_type_groups?: components["schemas"]["AuditLogEventTypeGroup"][];
                limit?: number;
                search?: string | null;
                sources?: components["schemas"]["AuditLogSource"][];
                start_epoch_millis?: number | null;
                user_ids?: string[];
            };
            GetModelsDeploymentsConfigParams: {
                output_format?: components["schemas"]["DeploymentConfigOutputFormat"];
            };
            GetModelsDeploymentsLogsParams: {
                component?: string
                | null;
                direction?: components["schemas"]["SortOrder"] | null;
                end_epoch_millis?: number | null;
                excludes?: string[];
                includes?: string[];
                limit?: number | null;
                min_level?: components["schemas"]["LogLevel"] | null;
                replica?: string | null;
                request_id?: string | null;
                search_pattern?: string | null;
                start_epoch_millis?: number | null;
            };
            GetModelsDeploymentsMetricsParams: {
                end_epoch_millis?: number
                | null;
                metrics?: string[];
                mode?: components["schemas"]["MetricMode"];
                start_epoch_millis?: number | null;
            };
            GetModelsDeploymentsParams: { name?: string
            | null };
            GetModelsDeploymentsStartupsParams: {
                cursor?: string | null;
                direction?: components["schemas"]["SortOrder"] | null;
                end_epoch_millis: number;
                limit?: number;
                min_duration_ms?: number | null;
                outcomes?: components["schemas"]["StartupOutcome"][];
                phase?: components["schemas"]["StartupPhase"] | null;
                search?: string | null;
                sort_by?: components["schemas"]["StartupSortField"] | null;
                start_epoch_millis: number;
            };
            GetModelsDeploymentsStartupsSummaryParams: {
                end_epoch_millis: number;
                min_duration_ms?: number
                | null;
                start_epoch_millis: number;
            };
            GetModelsEnvironmentsLogsParams: {
                component?: string
                | null;
                direction?: components["schemas"]["SortOrder"] | null;
                end_epoch_millis?: number | null;
                excludes?: string[];
                includes?: string[];
                limit?: number | null;
                min_level?: components["schemas"]["LogLevel"] | null;
                replica?: string | null;
                request_id?: string | null;
                search_pattern?: string | null;
                start_epoch_millis?: number | null;
            };
            GetModelsEnvironmentsMetricsParams: {
                end_epoch_millis?: number
                | null;
                metrics?: string[];
                mode?: components["schemas"]["MetricMode"];
                start_epoch_millis?: number | null;
            };
            GetModelsEnvironmentsStartupsParams: {
                cursor?: string
                | null;
                direction?: components["schemas"]["SortOrder"] | null;
                end_epoch_millis: number;
                limit?: number;
                min_duration_ms?: number | null;
                outcomes?: components["schemas"]["StartupOutcome"][];
                phase?: components["schemas"]["StartupPhase"] | null;
                search?: string | null;
                sort_by?: components["schemas"]["StartupSortField"] | null;
                start_epoch_millis: number;
            };
            GetModelsEnvironmentsStartupsSummaryParams: {
                end_epoch_millis: number;
                min_duration_ms?: number
                | null;
                start_epoch_millis: number;
            };
            GetModelsParams: { name?: string
            | null };
            GetSandboxConfigurationResponse: {
                regions: components["schemas"]["SandboxRegion"][];
            };
            GetSandboxLogsParams: {
                cursor?: string;
                end_time: string;
                limit?: number;
                start_time: string;
                team_id?: string;
            };
            GetSandboxMetricsParams: {
                end_epoch_millis?: number;
                metrics?: components["schemas"]["SandboxMetricName"][];
                mode?: components["schemas"]["SandboxMetricMode"];
                start_epoch_millis?: number;
                team_id?: string;
            };
            GetSandboxParams: { show_secrets?: boolean; team_id?: string };
            GetSandboxPreviewParams: { show_secrets?: boolean; team_id?: string };
            GetSandboxVolumeParams: { team_id?: string };
            GetTeamsLoopsRunsParams: {
                base_model?: string | null;
                run_id?: string | null;
                scope?: string | null;
                session_id?: string | null;
            };
            GetTeamsLoopsSamplersParams: {
                scope?: string
                | null;
                session_id?: string | null;
            };
            GetTeamsModelsParams: { name?: string
            | null };
            GetTeamsParams: { name?: string | null };
            GetTrainingGpuCapacityResponse: {
                gpu_capacities: components["schemas"]["TrainingGpuCapacityItem"][];
                team_gpu_capacities?: components["schemas"]["TeamTrainingGpuCapacityItem"][];
            };
            GetTrainingJobCheckpointFilesResponse: {
                next_page_token: number
                | null;
                presigned_urls: components["schemas"]["CheckpointFile"][];
                total_count: number;
            };
            GetTrainingJobCheckpointsResponse: {
                checkpoints: components["schemas"]["TrainingJobCheckpoint"][];
                training_job: components["schemas"]["TrainingJob"];
            };
            GetTrainingJobLogsRequest: {
                direction?: components["schemas"]["SortOrder"]
                | null;
                end_epoch_millis?: number | null;
                limit?: number | null;
                min_level?: components["schemas"]["LogLevel"] | null;
                start_epoch_millis?: number | null;
            };
            GetTrainingJobMetricsRequest: {
                end_epoch_millis?: number
                | null;
                start_epoch_millis?: number | null;
                step_seconds?: number | null;
            };
            GetTrainingJobMetricsResponse: {
                cache: components["schemas"]["StorageMetrics"]
                | null;
                cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][];
                cpu_usage: components["schemas"]["TrainingJobMetric"][];
                ephemeral_storage: components["schemas"]["StorageMetrics"];
                gpu_memory_usage_bytes: {
                    [key: string]: { timestamp: string; value: number }[];
                };
                gpu_utilization: {
                    [key: string]: { timestamp: string; value: number }[];
                };
                per_node_metrics: components["schemas"]["TrainingJobNodeMetrics"][];
                training_job: components["schemas"]["TrainingJob"];
            };
            GetTrainingJobQueueContextResponse: {
                active_at_submit: components["schemas"]["ActiveJobAtSubmit"][];
                events: components["schemas"]["QueueEvent"][];
                events_window_end: string;
                gpu_type: string;
                org_capacity: components["schemas"]["CapacityAtSubmit"]
                | null;
                pending_ahead_at_submit: components["schemas"]["PendingJobAheadAtSubmit"][];
                pending_seconds: number | null;
                released_at: string | null;
                requested_gpus: number;
                submitted_at: string;
                target_job_id: string;
                target_job_name: string | null;
                team_capacity: components["schemas"]["CapacityAtSubmit"] | null;
            };
            GetTrainingJobResponse: {
                training_job: components["schemas"]["TrainingJob"];
                training_project: components["schemas"]["TrainingProject"];
            };
            GetTrainingProjectResponse: {
                training_project: components["schemas"]["TrainingProject"];
            };
            GetTrainingProjectsJobsCheckpointFilesParams: {
                page_size?: number;
                page_token?: number;
            };
            GetTrainingProjectsJobsLogsParams: {
                direction?: components["schemas"]["SortOrder"]
                | null;
                end_epoch_millis?: number | null;
                limit?: number | null;
                min_level?: components["schemas"]["LogLevel"] | null;
                start_epoch_millis?: number | null;
            };
            GetTrainingProjectsJobsMetricsParams: {
                end_epoch_millis?: number
                | null;
                start_epoch_millis?: number | null;
                step_seconds?: number | null;
            };
            GetTrainingProjectsParams: {
                cursor?: string
                | null;
                limit?: number | null;
                name?: string | null;
            };
            GetUsersParams: {
                cursor?: string
                | null;
                email?: string | null;
                limit?: number;
            };
            GetVolumesNamespacesParams: { cursor?: string
            | null; limit?: number };
            GetVolumesParams: {
                cursor?: string | null;
                limit?: number;
                namespace: string;
            };
            GetVolumesSyncsParams: {
                cursor?: string
                | null;
                limit?: number;
                ref?: string | null;
            };
            GetVolumesVersionsParams: { include_tombstoned?: boolean };
            GitInfo: {
                commits_since_tag: number | null;
                has_uncommitted_changes: boolean;
                latest_commit_sha: string;
                latest_tag: string | null;
            };
            GridClassifier: { id: string; name: string };
            GridClassifiersResponse: {
                items: components["schemas"]["GridClassifier"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            GridConnection: {
                config: | components["schemas"]["GridConnectionConfigAnthropic"]
                | components["schemas"]["GridConnectionConfigOpenAI"]
                | components["schemas"]["GridConnectionConfigXAI"]
                | components["schemas"]["GridConnectionConfigVertex"]
                | components["schemas"]["GridConnectionConfigBedrock"];
                created_at: string;
                id: string;
                team_id: string;
                team_name: string;
                updated_at: string;
            };
            GridConnectionBedrockAccessKeysAuth: { method: "access_keys" };
            GridConnectionBedrockApiKeyAuth: { method: "api_key" };
            GridConnectionConfigAnthropic: {
                provider: "ANTHROPIC";
                secret_id: string;
                secret_name: string;
            };
            GridConnectionConfigBedrock: {
                auth: | components["schemas"]["GridConnectionBedrockApiKeyAuth"]
                | components["schemas"]["GridConnectionBedrockAccessKeysAuth"];
                provider: "BEDROCK";
                region: string;
                secret_id: string;
                secret_name: string;
            };
            GridConnectionConfigOpenAI: {
                provider: "OPENAI";
                secret_id: string;
                secret_name: string;
            };
            GridConnectionConfigVertex: {
                location: string;
                project_id: string;
                provider: "VERTEX";
                secret_id: string;
                secret_name: string;
            };
            GridConnectionConfigXAI: {
                provider: "XAI";
                secret_id: string;
                secret_name: string;
            };
            GridConnectionsResponse: {
                items: components["schemas"]["GridConnection"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            GridConnectionTombstone: { id: string };
            GridEffectiveSpendLimit: {
                monthly_limit_usd: string | null;
                source: components["schemas"]["GridSettingSource"] | null;
            };
            GridHarnessDefaults: {
                claude_code: components["schemas"]["GridHarnessModels"];
                codex: components["schemas"]["GridHarnessModels"];
                opencode: components["schemas"]["GridHarnessModels"];
                pi: components["schemas"]["GridHarnessModels"];
            };
            GridHarnessModel: {
                route: components["schemas"]["GridRoute"];
                source: components["schemas"]["GridSettingSource"];
            };
            GridHarnessModels: {
                background: components["schemas"]["GridHarnessModel"]
                | null;
                primary: components["schemas"]["GridHarnessModel"] | null;
            };
            GridMachineUser: {
                created_at: string;
                created_by: string
                | null;
                id: string;
                name: string;
                team_id: string;
                team_name: string;
            };
            GridMachineUsersResponse: {
                items: components["schemas"]["GridMachineUser"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            GridMachineUserTombstone: { id: string };
            GridProvider:
                | "BASETEN_MODEL_API"
                | "OPENAI"
                | "ANTHROPIC"
                | "XAI"
                | "VERTEX"
                | "OPENAI_COMPATIBLE"
                | "BEDROCK";
            GridRoute: {
                created_at: string;
                description: string;
                display_name: string;
                id: string;
                invoke_url: string;
                metadata: components["schemas"]["ExploreMetadata"]
                | null;
                name: string;
                target:
                    | components["schemas"]["GridRouteTargetBasetenModelAPI"]
                    | components["schemas"]["GridRouteTargetConnection"]
                    | components["schemas"]["GridRouteTargetClassifier"]
                    | components["schemas"]["GridRouteTargetIntelligent"];
                team_id: string;
                team_name: string;
            };
            GridRouteClassifier: {
                decidable_models: string[];
                id: string;
                name: string;
                supported_tradeoffs: ("cost" | "balanced" | "intelligence")[];
            };
            GridRouteClassifiersResponse: {
                items: components["schemas"]["GridRouteClassifier"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            GridRouteRef: { id: string; slug: string };
            GridRoutesResponse: {
                items: components["schemas"]["GridRoute"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            GridRouteTargetBasetenModelAPI: {
                model: string;
                type: "BASETEN_MODEL_API";
            };
            GridRouteTargetClassifier: {
                allowed_routes: components["schemas"]["GridRouteRef"][];
                classifier: components["schemas"]["GridClassifier"]
                | null;
                default_route: components["schemas"]["GridRouteRef"];
                type: "CLASSIFIER";
            };
            GridRouteTargetConnection: {
                connection_id: string;
                model: string;
                type: "CONNECTION";
            };
            GridRouteTargetIntelligent: {
                route_classifier: components["schemas"]["GridRouteClassifier"];
                tradeoff: "cost"
                | "balanced"
                | "intelligence";
                type: "INTELLIGENT";
            };
            GridRouteTombstone: { id: string; name: string };
            GridRouteUsageBucket: {
                date: string;
                results: components["schemas"]["GridRouteUsageResult"][];
            };
            GridRouteUsageDimension: | "USER"
            | "TEAM"
            | "MODEL"
            | "PROVIDER"
            | "INTELLIGENT_ROUTE"
            | "HARNESS";
            GridRouteUsageHarness: "CLAUDE_CODE"
            | "OPENCODE"
            | "CODEX"
            | "PI";
            GridRouteUsageResponse: {
                items: components["schemas"]["GridRouteUsageBucket"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            GridRouteUsageResult: {
                cached_input_tokens: number;
                cost_usd: string;
                harness: components["schemas"]["GridRouteUsageHarness"]
                | null;
                input_tokens: number;
                intelligent_route: string | null;
                model: string | null;
                output_tokens: number;
                provider: components["schemas"]["GridProvider"] | null;
                requests: number;
                team_id: string | null;
                team_name: string | null;
                uncached_input_tokens: number;
                user_id: string | null;
            };
            GridSettingSource: "user"
            | "team";
            GridSpendBlockedBy: "member" | "team";
            GridSpendLimitSetting: {
                effective: components["schemas"]["GridEffectiveSpendLimit"];
                month_override_usd: string | null;
                team_default: components["schemas"]["GridSpendLimitTeamDefault"] | null;
                team_wide_monthly_limit_usd: string | null;
                user_monthly_limit_usd: string | null;
            };
            GridSpendLimitTeamDefault: {
                per_member_monthly_limit_usd: string;
                team_id: string;
                team_name: string;
            };
            GridTeamSettings: {
                harness_defaults: components["schemas"]["GridHarnessDefaults"];
                spend_limit: components["schemas"]["GridTeamSpendLimitSetting"];
                team_id: string;
                team_name: string;
            };
            GridTeamSpendLimitSetting: {
                per_member_monthly_limit_usd: string
                | null;
                team_wide_monthly_limit_usd: string | null;
            };
            GridTeamUserSettings: {
                blocked_by: components["schemas"]["GridSpendBlockedBy"]
                | null;
                email: string | null;
                is_blocked: boolean;
                month_spend_usd: string;
                spend_limit: components["schemas"]["GridSpendLimitSetting"];
                team_id: string;
                team_name: string;
                user_id: string;
            };
            GridTeamUserSettingsList: {
                items: components["schemas"]["GridTeamUserSettings"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            GridToken: {
                expires_at: string;
                team_id: string;
                team_name: string;
                token: string;
            };
            Group: {
                created_at: string;
                effective_models?: components["schemas"]["EffectiveModelConfig"][];
                hierarchy: components["schemas"]["GroupHierarchy"];
                id: string;
                metadata: components["schemas"]["GroupMetadata"];
                models?: components["schemas"]["ModelConfig"][];
            };
            GroupHierarchy: {
                limit_enforcement: components["schemas"]["LimitEnforcement"];
                parent_group_id: string
                | null;
            };
            GroupMetadata: { external_entity_id: string; name?: string
            | null };
            GroupsResponse: {
                items: components["schemas"]["Group"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            InferenceVolumeByStatusDatapoint: {
                status_2xx: number;
                status_4xx: number;
                status_5xx: number;
                timestamp: string;
            };
            InProgressPromotion: {
                error_message: string
                | null;
                percent_traffic_to_new_version: number;
                rolling_deploy: boolean | null;
                status: components["schemas"]["InProgressPromotionStatus"];
            };
            InProgressPromotionStatus: | "RELEASING"
            | "RAMPING_UP"
            | "RAMPING_DOWN"
            | "PAUSED"
            | "SUCCEEDED"
            | "FAILED"
            | "CANCELED";
            InstanceType: {
                gpu_count: number;
                gpu_memory_limit_mib: number
                | null;
                gpu_type: string | null;
                id: string;
                memory_limit_mib: number;
                millicpu_limit: number;
                name: string;
            };
            InstanceTypePrices: {
                instance_types: components["schemas"]["InstanceTypeWithPrice"][];
            };
            InstanceTypes: { instance_types: components["schemas"]["InstanceType"][] };
            InstanceTypeWithPrice: {
                instance_type: components["schemas"]["InstanceType"];
                price: number;
            };
            InteractiveSession: {
                auth_code: string
                | null;
                auth_code_generated_at: string | null;
                auth_provider: string;
                auth_url: string | null;
                authenticated_at: string | null;
                expires_at: string | null;
                id: string;
                pod_name: string;
                session_provider: string;
                timeout_minutes: number;
                trigger: string;
                tunnel_name: string | null;
                working_directory: string | null;
            };
            InteractiveSessionConfig: {
                auth_provider?: components["schemas"]["V1InteractiveSessionAuthProvider"];
                session_provider?: components["schemas"]["V1InteractiveSessionProvider"];
                timeout_minutes?: number;
                trigger?: components["schemas"]["V1InteractiveSessionTrigger"];
            };
            KeysForGroupResponse: {
                items: components["schemas"]["GatewayKeyInfo"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            LibraryListing: {
                closed_source: boolean;
                created_at: string;
                display_name: string;
                is_listed: boolean;
                is_public: boolean;
                metadata: components["schemas"]["LibraryListingMetadata"]
                | null;
                modified_at: string;
                trending: boolean | null;
                user_defined_id: string;
            };
            LibraryListingMetadata: {
                base_model?: string
                | null;
                context_length?: number | null;
                description?: string | null;
                input_modalities?: components["schemas"]["LibraryListingModality"][];
                license: string;
                model_api_slug?: string | null;
                model_family?: string | null;
                output_modalities?: components["schemas"]["LibraryListingModality"][];
                parameter_count?: number | null;
                publisher?: string | null;
                release_date?: string | null;
                trending?: boolean;
                variant?: string | null;
            };
            LibraryListingModality: | "text"
            | "image"
            | "audio"
            | "video"
            | "embedding"
            | "rerank"
            | "decision";
            LibraryListings: { listings: components["schemas"]["LibraryListing"][] };
            LibraryListingSource: {
                deployed_model_name?: string | null;
                kind: "library_listing";
                lab_display_name: string;
                user_defined_listing_id: string;
            };
            LibraryListingTombstone: { deleted: boolean; user_defined_id: string };
            LibraryListingVersion: {
                allow_truss_download: boolean;
                benchmark: components["schemas"]["BenchmarkSnapshot"] | null;
                created_at: string;
                is_live: boolean;
                modified_at: string;
                oracle_version_id: string;
                version_tag: string;
            };
            LibraryListingVersions: {
                versions: components["schemas"]["LibraryListingVersion"][];
            };
            LibraryListingVersionTombstone: { deleted: boolean; version_tag: string };
            LimitEnforcement: "CASCADING" | "INDEPENDENT";
            LimitType:
                | "REQUEST"
                | "TOKEN"
                | "CONCURRENT_REQUEST"
                | "UNCACHED_INPUT_TOKEN"
                | "OUTPUT_TOKEN";
            ListAuditLogsResponse: {
                items: components["schemas"]["AuditLogEntry"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            ListImagesParams: {
                cursor?: string;
                limit?: number;
                q?: string;
                sort?: string;
                team_id?: string;
            };
            ListImageTagsParams: {
                cursor?: string;
                limit?: number;
                name?: string;
                q?: string;
                sort?: string;
                team_id?: string;
            };
            ListLoopsCheckpointsResponse: {
                checkpoints: components["schemas"]["LoopsCheckpoint"][];
            };
            ListLoopsDeploymentsResponse: {
                deployments: components["schemas"]["LoopsDeployment"][];
            };
            ListLoopsRunsResponse: { runs: components["schemas"]["LoopsRun"][] };
            ListLoopsSamplersResponse: {
                samplers: components["schemas"]["LoopsSampler"][];
            };
            ListSandboxesParams: {
                cursor?: string;
                external_id?: string;
                limit?: number;
                q?: string;
                status?: string[];
                team_id?: string;
            };
            ListSandboxesResponse: {
                items: components["schemas"]["Sandbox"][];
                pagination: components["schemas"]["SandboxApiPagination"];
            };
            ListSandboxImagesResponse: {
                items: components["schemas"]["SandboxImage"][];
                pagination: components["schemas"]["SandboxApiPagination"];
            };
            ListSandboxImageTagsResponse: {
                items: components["schemas"]["SandboxImageTag"][];
                pagination: components["schemas"]["SandboxApiPagination"];
            };
            ListSandboxLibraryImagesResponse: {
                items: components["schemas"]["SandboxLibraryImage"][];
            };
            ListSandboxPreviewsParams: {
                cursor?: string;
                limit?: number;
                team_id?: string;
            };
            ListSandboxPreviewsResponse: {
                items: components["schemas"]["SandboxPreview"][];
                pagination: components["schemas"]["SandboxApiPagination"];
            };
            ListSandboxPreviewTokensParams: {
                cursor?: string;
                limit?: number;
                team_id?: string;
            };
            ListSandboxPreviewTokensResponse: {
                items: components["schemas"]["SandboxPreviewToken"][];
                pagination: components["schemas"]["SandboxApiPagination"];
            };
            ListSandboxVolumesParams: {
                cursor?: string;
                limit?: number;
                q?: string;
                status?: components["schemas"]["SandboxVolumeStatus"][];
                team_id?: string;
            };
            ListSandboxVolumesResponse: {
                items: components["schemas"]["SandboxVolume"][];
                pagination: components["schemas"]["SandboxApiPagination"];
            };
            ListTrainingJobsResponse: {
                training_jobs: components["schemas"]["TrainingJob"][];
                training_project: components["schemas"]["TrainingProject"];
            };
            ListTrainingProjectsResponse: {
                pagination: components["schemas"]["PaginationResponse"];
                training_projects: components["schemas"]["TrainingProject"][];
            };
            ListVolumeNamespacesResponse: {
                items: string[];
                pagination: components["schemas"]["PaginationResponse"];
            };
            ListVolumesResponse: {
                items: components["schemas"]["Volume"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            ListVolumeVersionsResponse: {
                versions: components["schemas"]["VolumeVersion"][];
                volume_sequence: number;
            };
            LLMBenchmarkMetrics: {
                cost_per_1m_tokens_usd?: number
                | null;
                max_concurrent_users_at_50ms_tpot?: number | null;
                output_tokens_per_sec_per_user_p50?: number | null;
                requests_per_sec_p50?: number | null;
                ttft_ms_p50?: number | null;
            };
            LLMModelHandle: {
                hostname: string;
                instance_type_name: string
                | null;
                model_id: string;
                version_id: string;
            };
            LLMRuntime: { oidc?: components["schemas"]["RuntimeOidc"]
            | null };
            LoadCheckpointConfig: {
                checkpoints?: (
                    | components["schemas"]["BasetenLatestCheckpointConfig"]
                    | components["schemas"]["BasetenNamedCheckpointConfig"]
                    | components["schemas"]["LoopsCheckpointConfig"]
                )[];
                download_folder?: string;
                enabled?: boolean;
            };
            Log: {
                level: components["schemas"]["LogLevel"]
                | null;
                message: string;
                replica: string | null;
                request_id: string | null;
                timestamp: string;
            };
            LogLevel: "DEBUG"
            | "INFO"
            | "WARNING"
            | "ERROR";
            LoopsBaseModelItem: {
                base_model: string;
                breakdown?: components["schemas"]["LoopsResourceItem"][];
                cached_prefill: components["schemas"]["LoopsMeterUsage"];
                daily?: components["schemas"]["DailyLoopsUsage"][];
                sample: components["schemas"]["LoopsMeterUsage"];
                subtotal: number | string;
                train: components["schemas"]["LoopsMeterUsage"];
                uncached_prefill: components["schemas"]["LoopsMeterUsage"];
            };
            LoopsCheckpoint: {
                base_model: string
                | null;
                checkpoint_id: string;
                checkpoint_type: string;
                created_at: string;
                id: string;
                lora_adapter_config: { [key: string]: unknown } | null;
                lora_config: components["schemas"]["LoopsLoRAConfig"] | null;
                run_id: string;
                size_bytes: number;
                sync_status: string | null;
                target: components["schemas"]["TrainerCheckpointTarget"];
            };
            LoopsCheckpointConfig: {
                checkpoint_name: string;
                run_id: string;
                target?: "trainer"
                | "sampler";
                typ: "loops_checkpoint";
            };
            LoopsCheckpointFilesResponse: {
                next_page_token: number
                | null;
                presigned_urls: components["schemas"]["CheckpointFile"][];
                total_count: number;
            };
            LoopsCheckpointS3Source: { kind: "s3" };
            LoopsCheckpointSourceResponse: {
                source:
                    | components["schemas"]["LoopsCheckpointS3Source"]
                    | components["schemas"]["LoopsCheckpointVolumeSource"];
            };
            LoopsCheckpointVolumeSource: {
                kind: "volume";
                path: string;
                volume_ref: string;
            };
            LoopsDebugArchiveFilesResponse: {
                next_page_token: string
                | null;
                presigned_urls: components["schemas"]["CheckpointFile"][];
            };
            LoopsDeployment: {
                active_run_id: string
                | null;
                availability_model: components["schemas"]["AvailabilityModel"];
                base_checkpoint: string | null;
                base_model: string;
                base_url: string;
                created_at: string;
                id: string;
                instance_type: components["schemas"]["InstanceType"];
                latest_run_id: string | null;
                node_count: number;
                sampler: components["schemas"]["LoopsSampler"] | null;
                status: components["schemas"]["LoopsDeploymentStatus"];
                user: components["schemas"]["User"];
            };
            LoopsDeploymentMetrics: {
                concurrent_requests: components["schemas"]["TrainingJobMetric"][];
                cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][];
                cpu_usage: components["schemas"]["TrainingJobMetric"][];
                ephemeral_storage: components["schemas"]["StorageMetrics"];
                gpu_memory_usage_bytes: {
                    [key: string]: { timestamp: string; value: number }[];
                };
                gpu_utilization: {
                    [key: string]: { timestamp: string; value: number }[];
                };
                inference_volume: components["schemas"]["TrainingJobMetric"][];
                inference_volume_by_status: components["schemas"]["InferenceVolumeByStatusDatapoint"][];
                per_node_metrics: components["schemas"]["LoopsDeploymentNodeMetrics"][];
                response_time_stats: components["schemas"]["ResponseTimeDatapoint"][];
            };
            LoopsDeploymentNodeMetrics: {
                cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][];
                cpu_usage: components["schemas"]["TrainingJobMetric"][];
                ephemeral_storage: components["schemas"]["StorageMetrics"];
                gpu_memory_usage_bytes: {
                    [key: string]: { timestamp: string; value: number }[];
                };
                gpu_utilization: {
                    [key: string]: { timestamp: string; value: number }[];
                };
                node_id: string;
            };
            LoopsDeploymentStatus: { name: components["schemas"]["Name"] };
            LoopsLoRAConfig: {
                config_version: string;
                expert_layout: "per_expert" | "shared_outer" | "shared_adapter" | null;
                targets: string[];
            };
            LoopsMeterUsage: { subtotal: number
            | string; tokens: number };
            LoopsPlacementScope: "default" | "serverless" | "dedicated";
            LoopsResourceItem: {
                billable_resource: components["schemas"]["BillableResource"];
                cached_prefill: components["schemas"]["LoopsMeterUsage"];
                daily?: components["schemas"]["DailyLoopsUsage"][];
                sample: components["schemas"]["LoopsMeterUsage"];
                subtotal: number | string;
                train: components["schemas"]["LoopsMeterUsage"];
                uncached_prefill: components["schemas"]["LoopsMeterUsage"];
            };
            LoopsRun: {
                base_checkpoint: string
                | null;
                base_model: string;
                base_url: string;
                created_at: string;
                deployment_id: string | null;
                id: string;
                lora_config_version: string | null;
                name: string;
                sampler: components["schemas"]["LoopsSampler"] | null;
                session_id: string;
                status: components["schemas"]["LoopsRunStatus"];
                user: components["schemas"]["User"];
            };
            LoopsRunStatus: { name: components["schemas"]["LoopsRunStatusName"] };
            LoopsRunStatusName: "ACTIVE" | "INACTIVE";
            LoopsSampler: {
                base_checkpoint: string | null;
                base_model: string;
                base_url: string;
                created_at: string;
                deployment_id: string | null;
                id: string;
                instance_type: components["schemas"]["InstanceType"] | null;
                model_id: string | null;
                node_count: number;
                session_id: string;
                status: components["schemas"]["LoopsSamplerStatus"];
                user: components["schemas"]["User"];
            };
            LoopsSamplerStatus: { name: components["schemas"]["DeploymentStatus"] };
            LoopsSession: { id: string };
            LoopsUsage: {
                breakdown?: components["schemas"]["LoopsBaseModelItem"][];
                credits_used: number | string;
                subtotal: number | string;
                total: number | string;
            };
            LoopsUseCase: "rl"
            | "sft";
            LoopsUserConfig: {
                sampler_accelerator_priority: string[] | null;
                trainer_accelerator_priority: string[] | null;
            };
            MetricDescriptor: {
                kind: components["schemas"]["MetricKind"];
                label_sets: { [key: string]: string }[];
                name: string;
                unit_hint: components["schemas"]["MetricUnitHint"];
            };
            MetricKind: "GAUGE"
            | "COUNTER"
            | "HISTOGRAM";
            MetricMode: "CURRENT" | "SUMMARY" | "SERIES";
            MetricUnitHint:
                | "PER_SECOND"
                | "SECONDS"
                | "BYTES"
                | "MEBIBYTES"
                | "COUNT"
                | "RATIO"
                | "CELSIUS"
                | "WATTS";
            MetricValueSet: {
                start_epoch_millis: number;
                values: (number | null)[][];
            };
            Model: {
                created_at: string;
                deployments_count: number;
                development_deployment_id: string
                | null;
                id: string;
                instance_type_name: string;
                name: string;
                production_deployment_id: string | null;
                team_name: string;
            };
            ModelAPI: {
                context_length: number;
                cost_per_million_cached_input_tokens: number
                | string
                | null;
                cost_per_million_input_tokens: number | string | null;
                cost_per_million_output_tokens: number | string | null;
                description: string;
                display_name: string;
                invoke_url: string;
                model_family: string | null;
                name: string;
                org_details: components["schemas"]["ModelAPIOrgDetails"] | null;
                rate_limits: components["schemas"]["ModelAPIRateLimit"][];
                release_date: string;
                team_details?: components["schemas"]["ModelAPITeamDetails"][];
            };
            ModelApiCostDimension: | "api_key_prefix"
            | "user"
            | "model"
            | "service_tier"
            | "team";
            ModelApiItem: {
                cached_input_tokens: number;
                daily?: components["schemas"]["DailyModelApiUsage"][];
                input_tokens: number;
                model_family: string
                | null;
                model_name: string;
                output_tokens: number;
                subtotal: number | string;
            };
            ModelAPIOrgDetails: { added_at: string; last_used_at: string
            | null };
            ModelAPIRateLimit: {
                baseline_threshold: number;
                is_pooled: boolean;
                service_tier: components["schemas"]["ModelAPIServiceTier"];
                threshold: number;
                type: components["schemas"]["LimitType"];
                unit: components["schemas"]["RateLimitUnit"];
            };
            ModelApisCostBucket: {
                date: string;
                results?: components["schemas"]["ModelApisCostResult"][];
            };
            ModelApisCostResult: {
                api_key_prefixes: string[]
                | null;
                model: string | null;
                service_tier: string | null;
                subtotal: string;
                team_id: string | null;
                user_id: string | null;
            };
            ModelApisCostsResponse: {
                items: components["schemas"]["ModelApisCostBucket"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            ModelAPIServiceTier: "DEFAULT"
            | "FLEX"
            | "PRIORITY";
            ModelAPIsResponse: {
                items: components["schemas"]["ModelAPI"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            ModelApisUsage: {
                breakdown?: components["schemas"]["ModelApiItem"][];
                credits_used: number
                | string;
                subtotal: number | string;
                total: number | string;
            };
            ModelApisUsageBucket: {
                end_time: string;
                results?: components["schemas"]["ModelApisUsageResult"][];
                start_time: string;
            };
            ModelApisUsageResponse: {
                items: components["schemas"]["ModelApisUsageBucket"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            ModelApisUsageResult: {
                api_key_prefix: string
                | null;
                cached_input_tokens: number;
                input_tokens: number;
                model: string | null;
                output_tokens: number;
                request_count: number;
                team_id: string | null;
                uncached_input_tokens: number;
                user_id: string | null;
            };
            ModelAPITeamDetails: {
                added_at: string;
                cost_per_million_input_tokens: number
                | string
                | null;
                cost_per_million_output_tokens: number | string | null;
                id: string;
                last_used_at: string | null;
                rate_limits: components["schemas"]["ModelAPIRateLimit"][];
                team_id: string;
                team_name: string;
            };
            ModelArchiveSource: {
                deployment: components["schemas"]["DeploymentArchivePayload"];
                disable_archive_download?: boolean;
                kind: "model_archive";
                name: string;
                s3_key?: string
                | null;
            };
            ModelConfig: {
                rate_limits?: components["schemas"]["RateLimit"][];
                slug: string;
                usage_limits?: components["schemas"]["UsageLimit"][];
            };
            ModelPromotionSettings: {
                promotion_cleanup_strategy: | components["schemas"]["PromotionCleanupStrategy"]
                | null;
                ramp_up_duration_seconds: number
                | null;
                ramp_up_while_promoting: boolean | null;
                redeploy_on_promotion: boolean | null;
                rolling_deploy: boolean | null;
                rolling_deploy_config:
                    | components["schemas"]["RollingDeployConfig"]
                    | null;
            };
            Models: { models: components["schemas"]["Model"][] };
            ModelTombstone: { deleted: boolean; id: string };
            Name:
                | "CREATED"
                | "DEPLOYING"
                | "RUNNING"
                | "SCALED_TO_ZERO"
                | "FAILED"
                | "STOPPED"
                | "PREEMPTED";
            OneTimeAutoscalingSchedule: {
                autoscaling_settings: components["schemas"]["AutoscalingScheduleSettings"];
                cadence: "ONE_TIME";
                enabled: boolean;
                end_at: string;
                id: string;
                name: string;
                start_at: string;
            };
            OneTimeAutoscalingScheduleUpsert: {
                autoscaling_settings: components["schemas"]["AutoscalingScheduleSettingsRequest"];
                cadence: "ONE_TIME";
                enabled: boolean;
                end_at: string;
                id?: string
                | null;
                name: string;
                start_at: string;
            };
            OrderBy: { field: string; order: string };
            OrganizationInfo: {
                aws_assume_role: components["schemas"]["AwsAssumeRole"] | null;
                created_at: string;
                name: string | null;
                org_id: string;
            };
            PaginationResponse: { cursor: string
            | null; has_more: boolean };
            PatchInteractiveSessionRequest: {
                timeout_minutes?: number | null;
                trigger?: components["schemas"]["V1InteractiveSessionTrigger"] | null;
            };
            PatchInteractiveSessionResponse: {
                interactive_session: components["schemas"]["InteractiveSession"];
                message: string;
            };
            PatchLoopsUserConfigRequest: {
                sampler_accelerator_priority?: string[]
                | null;
                trainer_accelerator_priority?: string[] | null;
            };
            PatchLoopsUserConfigResponse: {
                user_config: components["schemas"]["LoopsUserConfig"];
            };
            PatchTeamTrainingGpuCapacityRequest: {
                gpu_type: string;
                max_gpus: number;
                team_id: string;
            };
            PatchTeamTrainingGpuCapacityResponse: {
                team_gpu_capacity: components["schemas"]["TeamTrainingGpuCapacityItem"];
            };
            PatchVolumeRequest: {
                expected_sequence?: number
                | null;
                expires_at?: string | null;
            };
            PatchVolumeResponse: {
                expires_at: string
                | null;
                namespace: string;
                volume: string;
                volume_sequence: number;
            };
            PendingJobAheadAtSubmit: {
                instance_type_name: string;
                priority: number;
                requested_gpus: number;
                submitted_at: string;
                training_job_id: string;
                training_job_name: string
                | null;
            };
            PrepareModelUploadRequest: {
                deployment: components["schemas"]["DeploymentArchivePayload"];
                dry_run?: boolean;
                model_id?: string
                | null;
                name?: string | null;
                team_id?: string | null;
            };
            PrepareModelUploadResponse: {
                creds: components["schemas"]["AWSCredentials"]
                | null;
                s3_bucket: string | null;
                s3_key: string | null;
                s3_region: string | null;
            };
            PromoteRequest: {
                environment_settings_update?: | components["schemas"]["PromotionEnvironmentSettingsUpdate"]
                | null;
                preserve_env_instance_type?: boolean;
                promotion_settings_override?: | components["schemas"]["UpdatePromotionSettings"]
                | null;
                scale_down_previous_production?: boolean;
            };
            PromoteToChainEnvironmentRequest: {
                deployment_id: string;
                scale_down_previous_deployment?: boolean;
            };
            PromoteToEnvironmentRequest: {
                deployment_id: string;
                environment_settings_update?: | components["schemas"]["PromotionEnvironmentSettingsUpdate"]
                | null;
                preserve_env_instance_type?: boolean;
                promotion_settings_override?: | components["schemas"]["UpdatePromotionSettings"]
                | null;
                scale_down_previous_deployment?: boolean;
            };
            PromotionCleanupStrategy: "KEEP"
            | "SCALE_TO_ZERO"
            | "DEACTIVATE";
            PromotionEnvironmentSettingsUpdate: {
                autoscaling_schedule_settings?:
                    | components["schemas"]["UpdateAutoscalingScheduleSettings"]
                    | null;
                autoscaling_settings?: | components["schemas"]["UpdateAutoscalingSettings"]
                | null;
                instance_type_id?: string
                | null;
                promotion_settings?:
                    | components["schemas"]["UpdatePromotionSettings"]
                    | null;
                region?: string
                | null;
                request_backpressure_settings?:
                    | components["schemas"]["UpdateRequestBackpressureSettings"]
                    | null;
            };
            PromotionSettings: {
                promotion_cleanup_strategy: | components["schemas"]["PromotionCleanupStrategy"]
                | null;
                ramp_up_duration_seconds: number
                | null;
                ramp_up_while_promoting: boolean | null;
                redeploy_on_promotion: boolean | null;
                rolling_deploy: boolean | null;
                rolling_deploy_config:
                    | components["schemas"]["RollingDeployConfig"]
                    | null;
            };
            PushImageParams: { team_id?: string };
            PushSandboxImageRequest: {
                docker_config?: string;
                image?: string;
                memory?: number;
                name: string;
                volume?: number;
            };
            PushSandboxImageResponse: {
                image?: string;
                name: string;
                status: components["schemas"]["SandboxImageStatus"];
                upload_headers?: { [key: string]: string };
                upload_url?: string;
            };
            QueueEvent: {
                created: string;
                event_message: string
                | null;
                exit_code: number | null;
                status: string;
                training_job_id: string;
                training_job_name: string | null;
            };
            RateLimit: {
                threshold: number;
                type: components["schemas"]["LimitType"];
                unit: components["schemas"]["RateLimitUnit"];
            };
            RateLimitUnit: "SECOND"
            | "MINUTE";
            RecreateTrainingJobResponse: {
                training_job: components["schemas"]["TrainingJob"];
            };
            Region: { display_name: string; slug: string };
            Regions: { regions: components["schemas"]["Region"][] };
            RegisterAPIKeyRequest: { key: string; name?: string | null };
            RegisterAPIKeyResponse: { ok: boolean };
            RegistrySecretDockerAuth: {
                secret_ref: components["schemas"]["SecretReference"];
            };
            RequestBackpressurePolicy: "QUEUE_ON_FULL"
            | "REJECT_ON_FULL";
            RequestBackpressureSettings: {
                policy: components["schemas"]["RequestBackpressurePolicy"] | null;
            };
            ResourceKind: | "LOOPS_RUN"
            | "LOOPS_SAMPLER"
            | "LOOPS_TRAINER"
            | "MODEL_DEPLOYMENT"
            | "TRAINING_JOB"
            | "CHAINLET";
            ResponseTimeDatapoint: {
                p50: number
                | null;
                p95: number | null;
                p99: number | null;
                timestamp: string;
            };
            RestoreVolumeVersionRequest: { expected_sequence?: number
            | null };
            RestoreVolumeVersionResponse: {
                digest: string;
                lifecycle: string;
                namespace: string;
                version_ref: string;
                volume: string;
                volume_sequence: number;
            };
            RetryDeploymentResponse: {
                deployment: components["schemas"]["Deployment"];
                reason: string
                | null;
                retried: boolean;
            };
            RollingDeployConfig: {
                max_surge_percent: number;
                max_unavailable_percent: number;
                replica_overhead_percent: number;
                rolling_deploy_strategy: components["schemas"]["RollingDeployStrategy"];
                stabilization_time_seconds: number;
            };
            RollingDeployStrategy: "REPLICA";
            RuntimeOidc: {
                byok?: { [key: string]: unknown }
                | null;
                enabled?: boolean | null;
            };
            Sandbox: components["schemas"]["SandboxConfiguration"] & {
                created_at: string;
                created_by?: string;
                expires_in?: number;
                last_used_at?: string;
                name: string;
                status: components["schemas"]["SandboxStatus"];
                updated_at?: string;
                updated_by?: string;
                url: string;
            };
            SandboxApiPagination: { cursor?: string; has_more: boolean };
            SandboxConfiguration: {
                cpu?: number;
                envs?: components["schemas"]["SandboxEnv"][];
                external_id?: string;
                filesystem?: components["schemas"]["SandboxFilesystem"];
                image?: string;
                labels?: components["schemas"]["SandboxMetadataLabels"];
                lifecycle?: components["schemas"]["SandboxLifecycle"];
                memory?: number;
                ports?: components["schemas"]["SandboxPorts"];
                region?: string;
                volumes?: components["schemas"]["SandboxVolumeAttachment"][];
            };
            SandboxDateExpirationPolicy: {
                action: "DELETE";
                type: "DATE";
                value: string;
            };
            SandboxDuration: string;
            SandboxEnv: { name?: string; secret?: boolean; value?: string };
            SandboxExpirationPolicy:
                | components["schemas"]["SandboxTTLIdleExpirationPolicy"]
                | components["schemas"]["SandboxTTLMaxAgeExpirationPolicy"]
                | components["schemas"]["SandboxDateExpirationPolicy"];
            SandboxFilesystem: { max_memory_usage?: string
            | number };
            SandboxImage: {
                created_at?: string;
                last_deployed_at?: string;
                name: string;
                size?: number;
                status: components["schemas"]["SandboxImageStatus"];
                tag_count?: number;
                updated_at?: string;
            };
            SandboxImageBuildLog: {
                message: string;
                severity: number;
                timestamp: string;
            };
            SandboxImageBuildLogsResponse: {
                logs: components["schemas"]["SandboxImageBuildLog"][];
                total_count: number;
            };
            SandboxImageStatus: "UPLOADING"
            | "BUILDING"
            | "BUILT"
            | "FAILED";
            SandboxImageTag: {
                created_at?: string;
                name: string;
                size?: number;
                updated_at?: string;
            };
            SandboxLibraryImage: {
                categories?: string[];
                coming_soon?: boolean;
                creation_options?: components["schemas"]["SandboxLibraryImageCreationOptions"];
                description?: string;
                display_name?: string;
                enterprise?: boolean;
                hidden?: boolean;
                icon?: string;
                icon_dark?: string;
                icon_light?: string;
                image: string;
                long_description?: string;
                memory?: number;
                name: string;
                ports?: components["schemas"]["SandboxPorts"];
                tags?: string[];
                url?: string;
            };
            SandboxLibraryImageCreationOptions: {
                extra_args?: { [key: string]: string };
                volumes?: components["schemas"]["SandboxLibraryImageVolume"][];
            };
            SandboxLibraryImageVolume: {
                mount_path: string;
                name: string;
                read_only?: boolean;
            };
            SandboxLifecycle: {
                expiration_policies?: components["schemas"]["SandboxExpirationPolicy"][];
                terminated_retention?: components["schemas"]["SandboxDuration"];
            };
            SandboxLogEntry: {
                action?: string;
                message: string;
                severity: number;
                timestamp: string;
                trace_id: string;
            };
            SandboxLogs: {
                end_time: string;
                logs: components["schemas"]["SandboxLogEntry"][];
                next_cursor: string
                | null;
                sandbox_name: string;
                start_time: string;
            };
            SandboxMetadataLabels: { [key: string]: string };
            SandboxMetricDescriptor: {
                kind: "GAUGE" | "COUNTER";
                label_sets: { [key: string]: string }[];
                name: components["schemas"]["SandboxMetricName"];
                unit_hint: "COUNT" | "CORES" | "BYTES";
            };
            SandboxMetricMode: "CURRENT"
            | "SUMMARY"
            | "SERIES";
            SandboxMetricName:
                | "baseten_sandbox_requests_total"
                | "baseten_sandbox_cpu_usage_cores"
                | "baseten_sandbox_memory_bytes";
            SandboxMetrics: {
                end_epoch_millis: number;
                metric_descriptors: components["schemas"]["SandboxMetricDescriptor"][];
                metric_values: components["schemas"]["SandboxMetricValueSet"][];
                mode: components["schemas"]["SandboxMetricMode"];
                start_epoch_millis: number;
                step_seconds: number
                | null;
            };
            SandboxMetricValueSet: {
                start_epoch_millis: number;
                values: (number | null)[][];
            };
            SandboxPort: {
                name?: string;
                protocol?: "HTTP"
                | "TCP"
                | "UDP"
                | "TLS";
                target: number;
            };
            SandboxPorts: components["schemas"]["SandboxPort"][];
            SandboxPreview: components["schemas"]["SandboxPreviewConfiguration"] & {
                created_at?: string;
                created_by?: string;
                name: string;
                port: number;
                region?: string;
                status: components["schemas"]["SandboxPreviewStatus"];
                updated_at?: string;
                updated_by?: string;
                url: string;
            };
            SandboxPreviewConfiguration: {
                expires_at?: string;
                public?: boolean;
                request_headers?: components["schemas"]["SandboxPreviewHeaders"];
                response_headers?: components["schemas"]["SandboxPreviewHeaders"];
            };
            SandboxPreviewHeaders: { [key: string]: string };
            SandboxPreviewStatus:
                | "DEPLOYING"
                | "DEPLOYED"
                | "FAILED"
                | "DELETING"
                | "TERMINATED";
            SandboxPreviewToken: {
                expired: boolean;
                expires_at: string;
                name: string;
                token: string;
            };
            SandboxPreviewTtl: string;
            SandboxRegion: {
                continent: string;
                country: string;
                info_generation: "CARBON";
                location: string;
                name: string;
            };
            SandboxStatus: | "DEPLOYING"
            | "DEPLOYED"
            | "FAILED"
            | "DEACTIVATING"
            | "DEACTIVATED"
            | "DELETING"
            | "TERMINATED"
            | "ARCHIVING"
            | "ARCHIVED"
            | "UNARCHIVING"
            | "BUILDING"
            | "UPLOADING";
            SandboxTTLIdleExpirationPolicy: {
                action: "DELETE";
                type: "TTL_IDLE";
                value: components["schemas"]["SandboxDuration"];
            };
            SandboxTTLMaxAgeExpirationPolicy: {
                action: "DELETE";
                type: "TTL_MAX_AGE";
                value: components["schemas"]["SandboxDuration"];
            };
            SandboxVolume: {
                attached_to?: string;
                created_at?: string;
                created_by?: string;
                labels?: components["schemas"]["SandboxMetadataLabels"];
                name: string;
                region: string;
                size: string
                | number;
                status: components["schemas"]["SandboxVolumeStatus"];
                updated_at?: string;
                updated_by?: string;
            };
            SandboxVolumeAttachment: {
                mount_path: string;
                name: string;
                read_only?: boolean;
            };
            SandboxVolumeStatus: "DEPLOYING"
            | "DEPLOYED"
            | "FAILED"
            | "DELETING";
            SearchTrainingJobsRequest: {
                cursor?: string | null;
                job_id?: string | null;
                limit?: number;
                order_by?: components["schemas"]["OrderBy"][];
                project_id?: string | null;
                statuses?: string[] | null;
            };
            SearchTrainingJobsResponse: {
                pagination: components["schemas"]["PaginationResponse"];
                training_jobs: components["schemas"]["TrainingJob"][];
            };
            Secret: {
                created_at: string;
                id: string;
                name: string;
                team_name: string;
            };
            SecretReference: { name: string };
            Secrets: { secrets: components["schemas"]["Secret"][] };
            SecretTombstone: { name: string };
            SetVolumeTagRequest: {
                expected_sequence?: number | null;
                expires_at?: string | null;
                tag: string;
                version: string;
            };
            SetVolumeTagResponse: {
                digest: string;
                expires_at: string
                | null;
                namespace: string;
                tag: string;
                version_ref: string;
                volume: string;
                volume_sequence: number;
            };
            SharedEndpointRegion: "UNRESTRICTED"
            | "EU";
            SignalPromotionResponse: { success: boolean };
            SignSSHCertificateRequest: {
                public_key: string;
                replica_id?: string | null;
            };
            SignSSHCertificateResponse: {
                jwt: string;
                proxy_address: string;
                ssh_cert_expires_at: string;
                ssh_certificate: string;
            };
            SortOrder: "asc"
            | "desc";
            StartupAttempt: {
                deployment_id: string | null;
                deployment_name: string;
                duration_ms: number;
                environment_name: string | null;
                model_id: string;
                outcome: components["schemas"]["StartupOutcome"];
                phase_summary: components["schemas"]["StartupPhaseSummary"][];
                ready_at_epoch_millis: number | null;
                replica_id: string | null;
                started_at_epoch_millis: number;
            };
            StartupAttempts: {
                items: components["schemas"]["StartupAttempt"][];
                pagination: components["schemas"]["PaginationResponse"];
                total_count: number;
            };
            StartupOutcome: "SUCCESS"
            | "FAILED"
            | "STALLED";
            StartupPercentiles: {
                mean_ms: number | null;
                p50_ms: number | null;
                p90_ms: number | null;
                p95_ms: number | null;
                p99_ms: number | null;
                sample_count: number;
            };
            StartupPhase: | "SCHEDULING"
            | "IMAGE_PULL"
            | "WEIGHT_DOWNLOAD"
            | "CONTAINER_CREATE"
            | "CONTAINER_START"
            | "READINESS";
            StartupPhasePercentiles: {
                duration_ms: components["schemas"]["StartupPercentiles"];
                phase: components["schemas"]["StartupPhase"];
            };
            StartupPhaseStatus: "COMPLETED"
            | "FAILED";
            StartupPhaseSummary: {
                duration_ms: number | null;
                offset_ms: number;
                phase: components["schemas"]["StartupPhase"];
                status: components["schemas"]["StartupPhaseStatus"];
            };
            StartupSortField: "OUTCOME"
            | "STARTED_AT"
            | "READY_AT"
            | "DURATION";
            StartupSummary: {
                end_epoch_millis: number;
                phase_duration_ms: components["schemas"]["StartupPhasePercentiles"][];
                start_epoch_millis: number;
                total_duration_ms: components["schemas"]["StartupPercentiles"];
            };
            StopTrainingJobRequest: Record<string, unknown>;
            StopTrainingJobResponse: {
                training_job: components["schemas"]["TrainingJob"];
            };
            StorageMetrics: {
                usage_bytes: components["schemas"]["TrainingJobMetric"][];
                utilization: components["schemas"]["TrainingJobMetric"][];
            };
            SupportedModel: {
                enabled: boolean;
                enablement_details: components["schemas"]["EnablementDetails"]
                | null;
                max_context_length: number;
                max_enabled_seq_len: number;
                max_seq_len: number;
                model_name: string;
                serverless: boolean | null;
                supports_vision_language: boolean;
            };
            SyncDeploymentPatchesRequest: Record<string, unknown>;
            SyncDeploymentPatchesResponse: { needs_full_deploy_reason: string | null };
            Team: { created_at: string; default: boolean; id: string; name: string };
            Teams: { teams: components["schemas"]["Team"][] };
            TeamTrainingGpuCapacityItem: {
                baseline: number;
                dedicated_usage_count: number;
                gpu_type: string;
                limit: number;
                spot_usage_count: number;
                team_id: string;
                team_name: string;
                usage_count: number;
            };
            TerminateReplicaResponse: { success: boolean };
            Token: { expires_at: string; token: string };
            TokenScope: "sandboxes";
            ToolCallUsageBucket: {
                calls: number;
                date: string;
                model: string;
                provider: string;
                quantity: number;
                sku: string;
                team_id: string | null;
            };
            ToolCallUsageDimension: "TEAM";
            ToolCallUsageResponse: {
                items?: components["schemas"]["ToolCallUsageBucket"][];
            };
            TrafficRoutingRule: {
                expires_at: string;
                id: string;
                percent_traffic: number;
                propagate_client_cancellation: boolean;
                sampling_mode: components["schemas"]["TrafficRoutingRuleShadowSamplingMode"];
                targets: components["schemas"]["TrafficRoutingTarget"][];
                type: "SHADOW";
            };
            TrafficRoutingRuleShadowSamplingMode: "RANDOM"
            | "USER_SESSION";
            TrafficRoutingRuleUpsert: {
                expires_at: string;
                id?: string | null;
                percent_traffic: number;
                propagate_client_cancellation: boolean;
                sampling_mode: components["schemas"]["TrafficRoutingRuleShadowSamplingMode"];
                targets: components["schemas"]["TrafficRoutingTargetUpsert"][];
                type: "SHADOW";
            };
            TrafficRoutingTarget: {
                deployment_id: string
                | null;
                environment: string | null;
                model_id: string;
            };
            TrafficRoutingTargetUpsert: {
                deployment_id?: string
                | null;
                environment?: string | null;
            };
            TrainerCheckpointTarget: "sampler"
            | "trainer";
            TrainingGpuCapacityItem: {
                baseline: number;
                dedicated_usage_count: number;
                gpu_type: string;
                limit: number;
                spot_usage_count: number;
                usage_count: number;
            };
            TrainingItem: {
                billable_resource: components["schemas"]["BillableResource"];
                daily?: components["schemas"]["DailyTrainingUsage"][];
                minutes: number;
                subtotal: number
                | string;
            };
            TrainingJob: {
                availability_model: components["schemas"]["AvailabilityModel"];
                checkpoint_sync_status: | components["schemas"]["CheckpointSyncStatus"]
                | null;
                created_at: string;
                current_status: string;
                error_message: string
                | null;
                id: string;
                instance_type: components["schemas"]["InstanceType"];
                name: string | null;
                node_count: number;
                priority: number;
                training_project: components["schemas"]["TrainingProjectSummary"];
                training_project_id: string;
                updated_at: string;
                user: components["schemas"]["User"] | null;
            };
            TrainingJobCheckpoint: {
                base_model: string
                | null;
                checkpoint_id: string;
                checkpoint_type: string;
                created_at: string;
                lora_adapter_config: { [key: string]: unknown } | null;
                size_bytes: number;
                sync_status: string | null;
                training_job_id: string;
            };
            TrainingJobMetric: { timestamp: string; value: number };
            TrainingJobMetrics: {
                cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][];
                cpu_usage: components["schemas"]["TrainingJobMetric"][];
                ephemeral_storage: components["schemas"]["StorageMetrics"];
                gpu_memory_usage_bytes: {
                    [key: string]: { timestamp: string; value: number }[];
                };
                gpu_utilization: {
                    [key: string]: { timestamp: string; value: number }[];
                };
            };
            TrainingJobNodeMetrics: {
                metrics: components["schemas"]["TrainingJobMetrics"];
                node_id: string;
            };
            TrainingJobTombstone: {
                deleted: boolean;
                id: string;
                training_project_id: string;
            };
            TrainingProject: {
                created_at: string;
                id: string;
                latest_job: components["schemas"]["TrainingJob"]
                | null;
                name: string;
                project_accelerator: string | null;
                team_name: string | null;
                updated_at: string;
            };
            TrainingProjectSummary: { id: string; name: string };
            TrainingProjectTombstone: { deleted: boolean; id: string };
            TrainingUsage: {
                breakdown?: components["schemas"]["TrainingItem"][];
                credits_used: number | string;
                minutes: number;
                subtotal: number | string;
                total: number | string;
            };
            TrainingWeightAuth: {
                auth_method: components["schemas"]["AuthMethod"];
                auth_secret_name?: string
                | null;
                aws_assume_role_arn?: string | null;
                aws_assume_role_region?: string | null;
                aws_oidc_region?: string | null;
                aws_oidc_role_arn?: string | null;
                gcp_oidc_service_account?: string | null;
                gcp_oidc_workload_id_provider?: string | null;
            };
            TrussUserEnv: {
                git_info?: components["schemas"]["GitInfo"]
                | null;
                is_frontend_deployment?: boolean;
                is_library_deployment?: boolean;
                mypy_version?: string | null;
                pydantic_version?: string | null;
                python_version?: string | null;
                truss_client_version?: string | null;
            };
            TTSBenchmarkMetrics: {
                cost_per_audio_minute_usd?: number
                | null;
                max_concurrent_streams_at_rtf1?: number | null;
                ttft_ms_p50?: number | null;
                ttft_ms_p50_at_max_concurrency?: number | null;
            };
            UpdateAutoscalingScheduleSettings: {
                delete_schedules?: string[];
                schedules?: (
                    | components["schemas"]["AutoscalingScheduleUpsert"]
                    | components["schemas"]["OneTimeAutoscalingScheduleUpsert"]
                )[];
                timezone?: string
                | null;
            };
            UpdateAutoscalingSettings: {
                autoscaling_window?: number
                | null;
                concurrency_target?: number | null;
                max_replica?: number | null;
                max_scale_down_rate?: number | null;
                min_replica?: number | null;
                scale_down_delay?: number | null;
                target_in_flight_tokens?: number | null;
                target_utilization_percentage?: number | null;
            };
            UpdateAutoscalingSettingsResponse: {
                message: string;
                status: components["schemas"]["UpdateAutoscalingSettingsStatus"];
            };
            UpdateAutoscalingSettingsStatus: "ACCEPTED"
            | "QUEUED"
            | "UNCHANGED";
            UpdateChainEnvironmentRequest: {
                promotion_settings?:
                    | components["schemas"]["UpdatePromotionSettings"]
                    | null;
            };
            UpdateChainEnvironmentResponse: { ok: boolean };
            UpdateChainletEnvironmentAutoscalingSettingsRequest: {
                updates: components["schemas"]["ChainletEnvironmentAutoscalingSettingsUpdate"][];
            };
            UpdateChainletEnvironmentInstanceTypeRequest: {
                updates: components["schemas"]["ChainletEnvironmentInstanceTypeUpdate"][];
            };
            UpdateChainletEnvironmentInstanceTypeResponse: {
                chain_deployment: components["schemas"]["ChainDeployment"]
                | null;
                chainlet_environment_settings: components["schemas"]["ChainletEnvironmentSettings"][];
                requires_redeployment: boolean;
            };
            UpdateDeploymentRequest: { name?: string
            | null };
            UpdateEndpointRequest: {
                targets?: components["schemas"]["EndpointTargetRequest"][] | null;
            };
            UpdateEnvironmentGroupManageAccess: {
                is_restricted: boolean;
                user_ids?: string[];
            };
            UpdateEnvironmentGroupRequest: {
                manage_access?: | components["schemas"]["UpdateEnvironmentGroupManageAccess"]
                | null;
            };
            UpdateEnvironmentRequest: {
                autoscaling_schedule_settings?: | components["schemas"]["UpdateAutoscalingScheduleSettings"]
                | null;
                autoscaling_settings?: | components["schemas"]["UpdateAutoscalingSettings"]
                | null;
                promotion_settings?: | components["schemas"]["UpdateModelPromotionSettings"]
                | null;
                request_backpressure_settings?: | components["schemas"]["UpdateRequestBackpressureSettings"]
                | null;
                traffic_routing_settings?: | components["schemas"]["UpdateTrafficRoutingSettings"]
                | null;
            };
            UpdateEnvironmentResponse: {
                environment: components["schemas"]["Environment"];
                message: string;
                status: components["schemas"]["UpdateAutoscalingSettingsStatus"];
            };
            UpdateGridConnectionRequest: {
                config: | components["schemas"]["UpsertGridConnectionConfigAnthropic"]
                | components["schemas"]["UpsertGridConnectionConfigOpenAI"]
                | components["schemas"]["UpsertGridConnectionConfigXAI"]
                | components["schemas"]["UpsertGridConnectionConfigVertex"]
                | components["schemas"]["UpsertGridConnectionConfigBedrock"];
            };
            UpdateGridHarnessDefaults: {
                claude_code?: components["schemas"]["UpdateGridHarnessModels"]
                | null;
                codex?: components["schemas"]["UpdateGridHarnessModels"] | null;
                opencode?: components["schemas"]["UpdateGridHarnessModels"] | null;
                pi?: components["schemas"]["UpdateGridHarnessModels"] | null;
            };
            UpdateGridHarnessModels: {
                background?: string
                | null;
                primary?: string | null;
            };
            UpdateGridMachineUserRequest: { name?: string
            | null };
            UpdateGridRouteRequest: {
                description?: string | null;
                display_name?: string | null;
                target?:
                    | | components["schemas"]["UpsertGridRouteTargetBasetenModelAPI"]
                    | components["schemas"]["UpsertGridRouteTargetConnection"]
                    | components["schemas"]["UpsertGridRouteTargetClassifier"]
                    | null;
            };
            UpdateGridSpendLimitSetting: {
                month_override_usd?: string
                | null;
                user_monthly_limit_usd?: string | null;
            };
            UpdateGridTeamSettingsRequest: {
                harness_defaults?: | components["schemas"]["UpdateGridHarnessDefaults"]
                | null;
                spend_limit?: | components["schemas"]["UpdateGridTeamSpendLimitSetting"]
                | null;
                team_id?: string
                | null;
            };
            UpdateGridTeamSpendLimitSetting: {
                per_member_monthly_limit_usd?: string
                | null;
                team_wide_monthly_limit_usd?: string | null;
            };
            UpdateGridUserSettingsRequest: {
                spend_limit?: | components["schemas"]["UpdateGridSpendLimitSetting"]
                | null;
                team_id?: string
                | null;
            };
            UpdateGroupMetadata: { name?: string
            | null };
            UpdateGroupRequest: {
                metadata?: components["schemas"]["UpdateGroupMetadata"] | null;
                models?: components["schemas"]["ModelConfig"][] | null;
            };
            UpdateLibraryListingRequest: {
                display_name?: string
                | null;
                is_listed?: boolean | null;
                is_public?: boolean | null;
                metadata?: components["schemas"]["LibraryListingMetadata"] | null;
                trending?: boolean | null;
            };
            UpdateLibraryListingVersionRequest: {
                allow_truss_download?: boolean
                | null;
                benchmark?: components["schemas"]["BenchmarkSnapshot"] | null;
                is_live?: boolean | null;
            };
            UpdateModelPromotionSettings: {
                promotion_cleanup_strategy?: | components["schemas"]["PromotionCleanupStrategy"]
                | null;
                ramp_up_duration_seconds?: number
                | null;
                ramp_up_while_promoting?: boolean | null;
                redeploy_on_promotion?: boolean | null;
                rolling_deploy?: boolean | null;
                rolling_deploy_config?:
                    | components["schemas"]["UpdateRollingDeployConfig"]
                    | null;
            };
            UpdateModelRequest: { name?: string
            | null };
            UpdatePromotionSettings: {
                promotion_cleanup_strategy?:
                    | components["schemas"]["PromotionCleanupStrategy"]
                    | null;
                ramp_up_duration_seconds?: number
                | null;
                ramp_up_while_promoting?: boolean | null;
                redeploy_on_promotion?: boolean | null;
                rolling_deploy?: boolean | null;
                rolling_deploy_config?:
                    | components["schemas"]["UpdateRollingDeployConfig"]
                    | null;
            };
            UpdateRequestBackpressureSettings: {
                policy?: components["schemas"]["RequestBackpressurePolicy"]
                | null;
            };
            UpdateRollingDeployConfig: {
                max_surge_percent?: number
                | null;
                max_unavailable_percent?: number | null;
                replica_overhead_percent?: number | null;
                rolling_deploy_strategy?:
                    | components["schemas"]["RollingDeployStrategy"]
                    | null;
                stabilization_time_seconds?: number
                | null;
            };
            UpdateSandboxParams: { team_id?: string };
            UpdateSandboxPreviewParams: { team_id?: string };
            UpdateSandboxPreviewRequest: components["schemas"]["SandboxPreviewConfiguration"] & {
                ttl?: components["schemas"]["SandboxPreviewTtl"];
            };
            UpdateSandboxRequest: {
                envs?: components["schemas"]["SandboxEnv"][];
                external_id?: string;
                labels?: components["schemas"]["SandboxMetadataLabels"];
                lifecycle?: components["schemas"]["SandboxLifecycle"];
            };
            UpdateSandboxVolumeParams: { team_id?: string };
            UpdateSandboxVolumeRequest: {
                labels?: components["schemas"]["SandboxMetadataLabels"];
                size?: string | number;
            };
            UpdateTrafficRoutingSettings: {
                delete_rules?: string[];
                rules?: components["schemas"]["TrafficRoutingRuleUpsert"][];
            };
            UpdateTrainingJobRequest: {
                availability_model?: components["schemas"]["AvailabilityModel"]
                | null;
                priority?: number | null;
            };
            UpdateTrainingJobResponse: {
                training_job: components["schemas"]["TrainingJob"];
            };
            UpsertGridConnectionBedrockAccessKeysAuth: { method: "access_keys" };
            UpsertGridConnectionBedrockApiKeyAuth: { method: "api_key" };
            UpsertGridConnectionConfigAnthropic: {
                provider: "ANTHROPIC";
                secret_name: string;
            };
            UpsertGridConnectionConfigBedrock: {
                auth: | components["schemas"]["UpsertGridConnectionBedrockApiKeyAuth"]
                | components["schemas"]["UpsertGridConnectionBedrockAccessKeysAuth"];
                provider: "BEDROCK";
                region: string;
                secret_name: string;
            };
            UpsertGridConnectionConfigOpenAI: {
                provider: "OPENAI";
                secret_name: string;
            };
            UpsertGridConnectionConfigVertex: {
                location: string;
                project_id: string;
                provider: "VERTEX";
                secret_name: string;
            };
            UpsertGridConnectionConfigXAI: { provider: "XAI"; secret_name: string };
            UpsertGridRouteTargetBasetenModelAPI: {
                model: string;
                type: "BASETEN_MODEL_API";
            };
            UpsertGridRouteTargetClassifier: {
                allowed_route_ids: string[];
                classifier_id: string;
                default_route_id: string;
                type: "CLASSIFIER";
            };
            UpsertGridRouteTargetConnection: {
                connection_id: string;
                model: string;
                type: "CONNECTION";
            };
            UpsertSecretRequest: { name: string; value: string };
            UpsertTrainingProject: {
                name: string;
                project_accelerator?: string | null;
            };
            UpsertTrainingProjectRequest: {
                training_project: components["schemas"]["UpsertTrainingProject"];
            };
            UpsertTrainingProjectResponse: {
                training_project: components["schemas"]["TrainingProject"];
            };
            UsageDimension: "api_key"
            | "user"
            | "model"
            | "team";
            UsageLimit: {
                threshold: number;
                type: components["schemas"]["LimitType"];
                unit: components["schemas"]["UsageLimitUnit"];
            };
            UsageLimitUnit: "DAY";
            UsageSummary: {
                dedicated_usage: components["schemas"]["DedicatedUsage"]
                | null;
                loops_usage: components["schemas"]["LoopsUsage"] | null;
                model_apis_usage: components["schemas"]["ModelApisUsage"] | null;
                training_usage: components["schemas"]["TrainingUsage"] | null;
            };
            User: { email: string
            | null };
            UserInfo: {
                email: string | null;
                name: string | null;
                user_id: string;
                workspace_name: string | null;
            };
            UsersResponse: {
                items: components["schemas"]["UserInfo"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            V1InteractiveSessionAuthProvider: "github"
            | "microsoft";
            V1InteractiveSessionProvider: "vs_code" | "cursor" | "ssh";
            V1InteractiveSessionTrigger: "on_startup" | "on_failure" | "on_demand";
            ValidateLoopsCheckpointRequest: {
                checkpoint_path: string;
                run_id?: string | null;
            };
            ValidateLoopsCheckpointResponse: Record<string, unknown>;
            VertexTargetConfig: { location: string; project_id: string };
            Volume: {
                expires_at: string | null;
                head: components["schemas"]["VolumeVersionSummary"] | null;
                name: string;
                namespace: string;
                sequence: number;
                tag_count: number;
                tags: components["schemas"]["VolumeTag"][];
                updated_at: string;
                version_ref: string;
                versions_alive: number;
                versions_earliest_expires_at: string | null;
                versions_expiring: number;
                versions_tombstoned: number;
                versions_untagged: number;
            };
            VolumeSync: {
                completed_at: string
                | null;
                content_digest: string | null;
                created_at: string;
                destination: components["schemas"]["VolumeSyncDestination"];
                error: components["schemas"]["VolumeSyncError"] | null;
                source:
                    | components["schemas"]["VolumeSyncSourceHuggingFace"]
                    | components["schemas"]["VolumeSyncSourceS3"]
                    | components["schemas"]["VolumeSyncSourceGCS"]
                    | components["schemas"]["VolumeSyncSourceAzure"]
                    | components["schemas"]["VolumeSyncSourceR2"]
                    | components["schemas"]["VolumeSyncSourceCoreWeave"]
                    | components["schemas"]["VolumeSyncSourceBasetenTraining"];
                status: components["schemas"]["VolumeSyncStatus"];
                sync_id: string;
                total_size_bytes: number
                | null;
                version_ref: string | null;
                volume_version_id: string | null;
            };
            VolumeSyncAuthenticationAWSAssumeRole: {
                region: string;
                role_arn: string;
            };
            VolumeSyncAuthenticationAWSOIDC: { region: string; role_arn: string };
            VolumeSyncAuthenticationGCPOIDC: {
                service_account: string;
                workload_identity_provider: string;
            };
            VolumeSyncAuthenticationHuggingFaceOIDC: { resource: string };
            VolumeSyncDestination: { ref: string };
            VolumeSyncError: { code: string; message: string };
            VolumeSyncs: {
                items: components["schemas"]["VolumeSync"][];
                pagination: components["schemas"]["PaginationResponse"];
            };
            VolumeSyncSourceAzure: {
                auth_secret_name?: string
                | null;
                exclude?: string[];
                include?: string[];
                type: "AZURE";
                uri: string;
            };
            VolumeSyncSourceBasetenTraining: {
                exclude?: string[];
                include?: string[];
                type: "BASETEN_TRAINING";
                uri: string;
            };
            VolumeSyncSourceCoreWeave: {
                auth_secret_name?: string
                | null;
                exclude?: string[];
                include?: string[];
                type: "COREWEAVE";
                uri: string;
            };
            VolumeSyncSourceGCS: {
                auth_secret_name?: string
                | null;
                exclude?: string[];
                gcp_oidc?:
                    | components["schemas"]["VolumeSyncAuthenticationGCPOIDC"]
                    | null;
                include?: string[];
                type: "GCS";
                uri: string;
            };
            VolumeSyncSourceHuggingFace: {
                auth_secret_name?: string
                | null;
                exclude?: string[];
                hf_oidc?:
                    | components["schemas"]["VolumeSyncAuthenticationHuggingFaceOIDC"]
                    | null;
                include?: string[];
                type: "HUGGING_FACE";
                uri: string;
            };
            VolumeSyncSourceR2: {
                auth_secret_name?: string
                | null;
                exclude?: string[];
                include?: string[];
                type: "R2";
                uri: string;
            };
            VolumeSyncSourceS3: {
                auth_secret_name?: string
                | null;
                aws_assume_role?:
                    | components["schemas"]["VolumeSyncAuthenticationAWSAssumeRole"]
                    | null;
                aws_oidc?: | components["schemas"]["VolumeSyncAuthenticationAWSOIDC"]
                | null;
                exclude?: string[];
                include?: string[];
                type: "S3";
                uri: string;
            };
            VolumeSyncStatus: "PENDING"
            | "SYNCING"
            | "READY"
            | "FAILED"
            | "CANCELED";
            VolumeTag: { digest: string; expires_at: string | null; name: string };
            VolumeTokenScope: "PULL" | "INSPECT" | "PUSH" | "TAG";
            VolumeVersion: {
                created_at: string;
                delete_after: string | null;
                digest: string;
                expires_at: string | null;
                is_head: boolean;
                lifecycle: string;
                namespace: string;
                sequence: number | null;
                tags: string[];
                tombstoned_at: string | null;
                total_size_bytes: number | null;
                version_ref: string;
                volume: string;
            };
            VolumeVersionDetail: {
                created_at: string;
                delete_after: string
                | null;
                digest: string;
                entry_count: number | null;
                expires_at: string | null;
                is_head: boolean;
                lifecycle: string;
                namespace: string;
                sequence: number | null;
                tags: string[];
                tombstoned_at: string | null;
                total_size_bytes: number | null;
                version_ref: string;
                volume: string;
                volume_sequence: number;
            };
            VolumeVersionSummary: {
                created_at: string;
                digest: string;
                total_size_bytes: number;
            };
        };
    }
    Index
    headers: never
    parameters: {
        api_key_prefix: string;
        chain_deployment_id: string;
        chain_id: string;
        chainlet_id: string;
        checkpoint_id: string;
        classifier_id: string;
        connection_id: string;
        Cursor: string;
        deployment_id: string;
        endpoint_id: string;
        env_name: string;
        group_id: string;
        Limit: number;
        machine_user_id: string;
        model_api_name: string;
        model_id: string;
        PreviewName: string;
        PreviewTokenName: string;
        replica_id: string;
        route_classifier_id: string;
        route_id: string;
        run_id: string;
        sampler_id: string;
        SandboxImageName: string;
        SandboxMetricEnd: number;
        SandboxMetricMode: components["schemas"]["SandboxMetricMode"];
        SandboxMetricNames: components["schemas"]["SandboxMetricName"][];
        SandboxMetricStart: number;
        SandboxName: string;
        secret_name: string;
        session_id: string;
        TagName: string;
        team_id: string;
        TeamId: string;
        TeamIdHeader: string;
        training_job_id: string;
        training_project_id: string;
        user_defined_listing_id: string;
        user_id: string;
        version_tag: string;
        volume_name: string;
        volume_namespace: string;
        volume_sync_id: string;
        volume_tag: string;
        volume_version: string;
        VolumeName: string;
    }

    Type Declaration

    • api_key_prefix: string
    • chain_deployment_id: string
    • chain_id: string
    • chainlet_id: string
    • checkpoint_id: string
    • classifier_id: string
    • connection_id: string
    • Cursor: string

      Opaque cursor from the previous page; omit for the first page.

    • deployment_id: string
    • endpoint_id: string
    • env_name: string
    • group_id: string
    • Limit: number

      Maximum number of items to return.

    • machine_user_id: string
    • model_api_name: string
    • model_id: string
    • PreviewName: string

      Preview name returned by creation.

    • PreviewTokenName: string

      Token name returned by creation.

    • replica_id: string
    • route_classifier_id: string
    • route_id: string
    • run_id: string
    • sampler_id: string
    • SandboxImageName: string

      Image repository name.

    • SandboxMetricEnd: number

      Exclusive end in Unix milliseconds, default now. Maximum aligned window is 7 days.

    • SandboxMetricMode: components["schemas"]["SandboxMetricMode"]

      Defaults to CURRENT, which rejects start_epoch_millis and end_epoch_millis. SERIES uses a server-selected step of 30 seconds up to 2 hours, 60 seconds up to 1 day, 600 seconds up to 3 days, and 3600 seconds beyond 3 days.

    • SandboxMetricNames: components["schemas"]["SandboxMetricName"][]

      Metric names in response order. Omit to request all three signals.

    • SandboxMetricStart: number

      Unix milliseconds. Defaults to one hour before end; SERIES snaps outward.

    • SandboxName: string

      Immutable sandbox name returned by creation.

    • secret_name: string
    • session_id: string
    • TagName: string

      Image tag name.

    • team_id: string
    • TeamId: string

      Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • TeamIdHeader: string

      Optional team ID. Must match the team_id query parameter when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • training_job_id: string
    • training_project_id: string
    • user_defined_listing_id: string
    • user_id: string
    • version_tag: string
    • volume_name: string
    • volume_namespace: string
    • volume_sync_id: string
    • volume_tag: string
    • volume_version: string
    • VolumeName: string

      Volume name returned by creation.

    pathItems: never
    requestBodies: never
    responses: {
        SandboxError400: {
            content: { "application/json": unknown };
            headers: { [name: string]: unknown };
        };
        SandboxError401: {
            content: { "application/json": unknown };
            headers: { [name: string]: unknown };
        };
        SandboxError403: {
            content: { "application/json": unknown };
            headers: { [name: string]: unknown };
        };
        SandboxError404: {
            content: { "application/json": unknown };
            headers: { [name: string]: unknown };
        };
        SandboxError409: {
            content: { "application/json": unknown };
            headers: { [name: string]: unknown };
        };
        SandboxError429: {
            content: { "application/json": unknown };
            headers: { [name: string]: unknown };
        };
        SandboxError500: {
            content: { "application/json": unknown };
            headers: { [name: string]: unknown };
        };
    }

    Type Declaration

    • SandboxError400: {
          content: { "application/json": unknown };
          headers: { [name: string]: unknown };
      }

      Invalid request. Returns a JSON error with code, message, and optional details.

      • content: { "application/json": unknown }
        • application/json: unknown
          {
          * "code": "INVALID_REQUEST",
          * "message": "One or more request parameters are invalid.",
          * "details": {
          * "request_id": "a3b7c4d2-91e6-4f08-9b5a-2c6d7e8f1043"
          * }
          * }
      • headers: { [name: string]: unknown }
    • SandboxError401: {
          content: { "application/json": unknown };
          headers: { [name: string]: unknown };
      }

      Missing or invalid authentication. Returns a JSON error with code, message, and optional details.

      • content: { "application/json": unknown }
        • application/json: unknown
          {
          * "code": "UNAUTHORIZED",
          * "message": "Provide a valid authentication token in the Authorization header.",
          * "details": {
          * "header": "Authorization"
          * }
          * }
      • headers: { [name: string]: unknown }
    • SandboxError403: {
          content: { "application/json": unknown };
          headers: { [name: string]: unknown };
      }

      Insufficient permissions. Returns a JSON error with code, message, and optional details.

      • content: { "application/json": unknown }
        • application/json: unknown
          {
          * "code": "FORBIDDEN",
          * "message": "This authentication token does not grant permission to perform this operation.",
          * "details": {
          * "request_id": "a3b7c4d2-91e6-4f08-9b5a-2c6d7e8f1043"
          * }
          * }
      • headers: { [name: string]: unknown }
    • SandboxError404: {
          content: { "application/json": unknown };
          headers: { [name: string]: unknown };
      }

      Resource not found. Returns a JSON error with code, message, and optional details.

      • content: { "application/json": unknown }
        • application/json: unknown
          {
          * "code": "NOT_FOUND",
          * "message": "The requested resource was not found.",
          * "details": {
          * "request_id": "a3b7c4d2-91e6-4f08-9b5a-2c6d7e8f1043"
          * }
          * }
      • headers: { [name: string]: unknown }
    • SandboxError409: {
          content: { "application/json": unknown };
          headers: { [name: string]: unknown };
      }

      Resource is currently in use or conflicts with the requested operation. Returns a JSON error with code, message, and optional details.

      • content: { "application/json": unknown }
        • application/json: unknown
          {
          * "code": "RESOURCE_IN_USE",
          * "message": "The resource is currently in use or conflicts with the requested operation.",
          * "details": {
          * "request_id": "a3b7c4d2-91e6-4f08-9b5a-2c6d7e8f1043"
          * }
          * }
      • headers: { [name: string]: unknown }
    • SandboxError429: {
          content: { "application/json": unknown };
          headers: { [name: string]: unknown };
      }

      Request limit exceeded. Returns a JSON error with code, message, and optional details.

      • content: { "application/json": unknown }
        • application/json: unknown
          {
          * "code": "RATE_LIMITED",
          * "message": "Too many requests. Try again in 30 seconds.",
          * "details": {
          * "retry_after_seconds": 30
          * }
          * }
      • headers: { [name: string]: unknown }
    • SandboxError500: {
          content: { "application/json": unknown };
          headers: { [name: string]: unknown };
      }

      Internal server error. Returns a JSON error with code, message, and optional details.

      • content: { "application/json": unknown }
        • application/json: unknown
          {
          * "code": "INTERNAL_ERROR",
          * "message": "The request could not be completed. Try again later.",
          * "details": {
          * "request_id": "a3b7c4d2-91e6-4f08-9b5a-2c6d7e8f1043"
          * }
          * }
      • headers: { [name: string]: unknown }
    schemas: {
        ActivateResponse: { no_op: boolean; success: boolean };
        ActiveJobAtSubmit: {
            instance_type_name: string;
            status_at_submit: string;
            status_set_at: string;
            total_gpus: number;
            training_job_id: string;
            training_job_name: string | null;
            workload_plane_name: string;
        };
        APIKey: { api_key: string };
        APIKeyCategory:
            | "PERSONAL"
            | "GRID"
            | "WORKSPACE_MANAGE_ALL"
            | "WORKSPACE_EXPORT_METRICS"
            | "WORKSPACE_INVOKE"
            | "WORKSPACE_MANAGE_API_KEYS";
        APIKeyInfo: {
            created_at: string;
            expires_at: string
            | null;
            last_used_at: string | null;
            model_ids: string[] | null;
            name: string | null;
            owner: components["schemas"]["APIKeyOwner"] | null;
            prefix: string;
            team_name: string | null;
            type: components["schemas"]["APIKeyCategory"];
        };
        APIKeyOwner: { email: string
        | null; name: string | null; user_id: string };
        APIKeys: { keys: components["schemas"]["APIKeyInfo"][] };
        APIKeyTombstone: { prefix: string };
        AuditLogActor: {
            api_key_name: string | null;
            api_key_prefix: string | null;
            email: string | null;
            type: components["schemas"]["AuditLogActorType"];
        };
        AuditLogActorType: | "USER"
        | "API_KEY"
        | "BASETEN_USER"
        | "BASETEN_SYSTEM"
        | "TOMBSTONE_USER";
        AuditLogApiKeyRevocationReason: "INACTIVITY";
        AuditLogApiKeyType: | "PERSONAL"
        | "CREATOR_SERVICE_ACCOUNT"
        | "MANAGE_API_KEYS_SERVICE_ACCOUNT"
        | "INVOKE_ALL_MODELS_SERVICE_ACCOUNT"
        | "INVOKE_ALLOWED_MODELS_SERVICE_ACCOUNT"
        | "INVOKE_SCOPED_ENVS_AND_MODELS_SERVICE_ACCOUNT"
        | "EXPORT_METRICS_ALL_MODELS_SERVICE_ACCOUNT"
        | "EXPORT_METRICS_ALLOWED_MODELS_SERVICE_ACCOUNT"
        | "INVOKE_ALL_SHARED_ENDPOINTS_SERVICE_ACCOUNT"
        | "INVOKE_ALLOWED_SHARED_ENDPOINTS_SERVICE_ACCOUNT"
        | "INVOKE_ALL_ROUTES";
        AuditLogEntry: {
            actor: components["schemas"]["AuditLogActor"];
            client_name: string
            | null;
            client_session_id: string | null;
            client_version: string | null;
            created: string;
            event_data:
                | components["schemas"]["AuditLogEventModelDeployed"]
                | components["schemas"]["AuditLogEventModelDeploymentActivated"]
                | components["schemas"]["AuditLogEventModelDeploymentDeactivated"]
                | components["schemas"]["AuditLogEventModelDeploymentRetried"]
                | components["schemas"]["AuditLogEventModelDeploymentPromoted"]
                | components["schemas"]["AuditLogEventModelDeploymentAutoscalingSettingsChanged"]
                | components["schemas"]["AuditLogEventModelDeploymentRequestBackpressureSettingsChanged"]
                | components["schemas"]["AuditLogEventModelDeploymentInstanceTypeChanged"]
                | components["schemas"]["AuditLogEventModelDeploymentDeleted"]
                | components["schemas"]["AuditLogEventModelDeleted"]
                | components["schemas"]["AuditLogEventModelRenamed"]
                | components["schemas"]["AuditLogEventChainDeployed"]
                | components["schemas"]["AuditLogEventChainDeploymentActivated"]
                | components["schemas"]["AuditLogEventChainDeploymentDeactivated"]
                | components["schemas"]["AuditLogEventChainDeploymentPromoted"]
                | components["schemas"]["AuditLogEventChainletAutoscalingSettingsChanged"]
                | components["schemas"]["AuditLogEventChainletInstanceTypeChanged"]
                | components["schemas"]["AuditLogEventChainDeploymentDeleted"]
                | components["schemas"]["AuditLogEventChainDeleted"]
                | components["schemas"]["AuditLogEventChainEnvironmentCreated"]
                | components["schemas"]["AuditLogEventChainEnvironmentUpdated"]
                | components["schemas"]["AuditLogEventSecretUpdated"]
                | components["schemas"]["AuditLogEventSecretDeleted"]
                | components["schemas"]["AuditLogEventApiKeyCreated"]
                | components["schemas"]["AuditLogEventApiKeyDeleted"]
                | components["schemas"]["AuditLogEventApiKeyLifetimeLimitsUpdated"]
                | components["schemas"]["AuditLogEventGatewayEndpointCreated"]
                | components["schemas"]["AuditLogEventGatewayEndpointUpdated"]
                | components["schemas"]["AuditLogEventGatewayEndpointDeleted"]
                | components["schemas"]["AuditLogEventProviderConnectionCreated"]
                | components["schemas"]["AuditLogEventProviderConnectionUpdated"]
                | components["schemas"]["AuditLogEventProviderConnectionDeleted"]
                | components["schemas"]["AuditLogEventGridMachineUserCreated"]
                | components["schemas"]["AuditLogEventGridMachineUserUpdated"]
                | components["schemas"]["AuditLogEventGridMachineUserDeleted"]
                | components["schemas"]["AuditLogEventUserInvited"]
                | components["schemas"]["AuditLogEventUserJoinedOrganization"]
                | components["schemas"]["AuditLogEventWebhookSigningSecretCreated"]
                | components["schemas"]["AuditLogEventWebhookSigningSecretRotated"]
                | components["schemas"]["AuditLogEventWebhookSigningSecretDeleted"]
                | components["schemas"]["AuditLogEventUserRoleUpdated"]
                | components["schemas"]["AuditLogEventUserTeamRoleUpdated"]
                | components["schemas"]["AuditLogEventUserRemoved"]
                | components["schemas"]["AuditLogEventDirectoryGroupRoleUpdated"]
                | components["schemas"]["AuditLogEventRequireGroupBasedAdminsEnabled"]
                | components["schemas"]["AuditLogEventEnvironmentCreated"]
                | components["schemas"]["AuditLogEventEnvironmentUpdated"]
                | components["schemas"]["AuditLogEventEnvironmentDeleted"]
                | components["schemas"]["AuditLogEventReplicaTerminated"]
                | components["schemas"]["AuditLogEventModelPromotionControlAction"]
                | components["schemas"]["AuditLogEventSshCertificateSigned"]
                | components["schemas"]["AuditLogEventVolumeDeleted"]
                | components["schemas"]["AuditLogEventVolumeVersionDeleted"]
                | components["schemas"]["AuditLogEventVolumeVersionRestored"]
                | components["schemas"]["AuditLogEventVolumeTagSet"]
                | components["schemas"]["AuditLogEventVolumeTagDeleted"]
                | components["schemas"]["AuditLogEventVolumeUpdated"]
                | components["schemas"]["AuditLogEventTelemetryExportCreated"]
                | components["schemas"]["AuditLogEventTelemetryExportUpdated"]
                | components["schemas"]["AuditLogEventTelemetryExportDeleted"];
            event_type: components["schemas"]["AuditLogEventType"];
            id: string;
            source: components["schemas"]["AuditLogSource"]
            | null;
        };
        AuditLogEventApiKeyCreated: {
            api_key_id: string;
            api_key_type: components["schemas"]["AuditLogApiKeyType"];
            event_type: "API_KEY_CREATED";
            prefix: string;
        };
        AuditLogEventApiKeyDeleted: {
            api_key_id: string;
            api_key_type: components["schemas"]["AuditLogApiKeyType"];
            event_type: "API_KEY_DELETED";
            prefix: string;
            revocation_reason: | components["schemas"]["AuditLogApiKeyRevocationReason"]
            | null;
        };
        AuditLogEventApiKeyLifetimeLimitsUpdated: {
            event_type: "API_KEY_LIFETIME_LIMITS_UPDATED";
            new_personal_limit_days: number
            | null;
            new_team_limit_days: number | null;
            organization_id: string;
            previous_personal_limit_days: number | null;
            previous_team_limit_days: number | null;
        };
        AuditLogEventAutoscalingScheduleAction: | "CREATED"
        | "UPDATED"
        | "DELETED"
        | "UNCHANGED";
        AuditLogEventAutoscalingScheduleChange: {
            action: components["schemas"]["AuditLogEventAutoscalingScheduleAction"];
            current: | components["schemas"]["AuditLogEventAutoscalingScheduleSettings"]
            | null;
            previous: | components["schemas"]["AuditLogEventAutoscalingScheduleSettings"]
            | null;
            schedule_id: string;
        };
        AuditLogEventAutoscalingScheduleOperations: {
            delete_schedule_ids: string[];
            schedules: components["schemas"]["AuditLogEventAutoscalingScheduleUpsert"][];
            timezone: string
            | null;
        };
        AuditLogEventAutoscalingScheduleSettings: {
            autoscaling_window: number
            | null;
            cadence: string;
            concurrency_target: number | null;
            enabled: boolean;
            end_at: string | null;
            end_hour: number | null;
            end_minute: number | null;
            max_replica: number;
            max_scale_down_rate: number | null;
            min_replica: number;
            scale_down_delay: number | null;
            schedule_name: string;
            start_at: string | null;
            start_hour: number | null;
            start_minute: number | null;
            target_in_flight_tokens: number | null;
            target_utilization_percentage: number | null;
            timezone: string;
            weekdays: string[] | null;
        };
        AuditLogEventAutoscalingScheduleUpsert: {
            autoscaling_window: number
            | null;
            cadence: string;
            concurrency_target: number | null;
            enabled: boolean;
            end_at: string | null;
            end_hour: number | null;
            end_minute: number | null;
            max_replica: number;
            max_scale_down_rate: number | null;
            min_replica: number;
            scale_down_delay: number | null;
            schedule_id: string | null;
            schedule_name: string;
            start_at: string | null;
            start_hour: number | null;
            start_minute: number | null;
            target_in_flight_tokens: number | null;
            target_utilization_percentage: number | null;
            timezone: string | null;
            weekdays: string[] | null;
        };
        AuditLogEventAutoscalingSettings: {
            autoscaling_window: number
            | null;
            concurrency_target: number;
            max_replica: number;
            max_scale_down_rate: number | null;
            min_replica: number;
            scale_down_delay: number | null;
            target_in_flight_tokens: number | null;
            target_utilization_percentage: number | null;
        };
        AuditLogEventAutoscalingSettingsUpdate: {
            autoscaling_window: number
            | null;
            concurrency_target: number | null;
            max_replica: number | null;
            max_scale_down_rate: number | null;
            min_replica: number | null;
            scale_down_delay: number | null;
            target_in_flight_tokens: number | null;
            target_utilization_percentage: number | null;
        };
        AuditLogEventChainDeleted: {
            chain_deployment_name: string
            | null;
            chain_id: string;
            chain_name: string;
            event_type: "CHAIN_DELETED";
        };
        AuditLogEventChainDeployed: {
            chain_deployment_id: string;
            chain_deployment_name: string
            | null;
            chain_id: string;
            chain_name: string;
            event_type: "CHAIN_DEPLOYED";
            is_primary: boolean;
            publish: boolean;
        };
        AuditLogEventChainDeploymentActivated: {
            chain_deployment_id: string;
            chain_deployment_name: string
            | null;
            chain_id: string;
            chain_name: string;
            event_type: "CHAIN_DEPLOYMENT_ACTIVATED";
        };
        AuditLogEventChainDeploymentDeactivated: {
            chain_deployment_id: string;
            chain_deployment_name: string
            | null;
            chain_id: string;
            chain_name: string;
            event_type: "CHAIN_DEPLOYMENT_DEACTIVATED";
        };
        AuditLogEventChainDeploymentDeleted: {
            chain_deployment_id: string;
            chain_id: string;
            chain_name: string;
            deployment_name: string
            | null;
            event_type: "CHAIN_DEPLOYMENT_DELETED";
        };
        AuditLogEventChainDeploymentPromoted: {
            chain_deployment_id: string;
            chain_deployment_name: string
            | null;
            chain_id: string;
            chain_name: string;
            environment_id: string | null;
            environment_name: string | null;
            event_type: "CHAIN_DEPLOYMENT_PROMOTED";
        };
        AuditLogEventChainEnvironmentCreated: {
            chain_id: string;
            chain_name: string;
            environment_name: string;
            event_type: "CHAIN_ENVIRONMENT_CREATED";
            ramp_up_duration_seconds: number
            | null;
            ramp_up_while_promoting: boolean | null;
            redeploy_on_promotion: boolean | null;
        };
        AuditLogEventChainEnvironmentUpdated: {
            chain_id: string;
            chain_name: string;
            environment_name: string;
            event_type: "CHAIN_ENVIRONMENT_UPDATED";
            ramp_up_duration_seconds: number
            | null;
            ramp_up_while_promoting: boolean | null;
            redeploy_on_promotion: boolean | null;
        };
        AuditLogEventChainletAutoscalingSettingsChanged: {
            autoscaling_window: number
            | null;
            chain_deployment_id: string;
            chain_deployment_name: string | null;
            chain_id: string;
            chain_name: string;
            chainlet_id: string;
            chainlet_name: string;
            concurrency_target: number;
            event_type: "CHAINLET_AUTOSCALING_SETTINGS_CHANGED";
            max_replica: number;
            max_scale_down_rate: number | null;
            min_replica: number;
            previous_settings:
                | components["schemas"]["AuditLogEventAutoscalingSettings"]
                | null;
            scale_down_delay: number
            | null;
            target_in_flight_tokens: number | null;
            target_utilization_percentage: number | null;
        };
        AuditLogEventChainletInstanceTypeChanged: {
            chain_deployment_id: string;
            chain_deployment_name: string
            | null;
            chain_id: string;
            chain_name: string;
            chainlet_id: string;
            chainlet_name: string;
            event_type: "CHAINLET_INSTANCE_TYPE_CHANGED";
            instance_type_name: string;
        };
        AuditLogEventDirectoryGroupRoleUpdated: {
            directory_group_id: string;
            directory_group_name: string;
            event_type: "DIRECTORY_GROUP_ROLE_UPDATED";
            new_role_name: string;
            team_id: string
            | null;
            team_name: string | null;
        };
        AuditLogEventEnvironmentCreated: {
            autoscaling_window: number
            | null;
            concurrency_target: number;
            deployment_type: string | null;
            environment_name: string;
            event_type: "ENVIRONMENT_CREATED";
            max_replica: number;
            max_scale_down_rate: number | null;
            max_surge_percent: number | null;
            max_unavailable_percent: number | null;
            min_replica: number;
            model_id: string;
            model_name: string;
            promotion_cleanup_strategy: string | null;
            ramp_up_duration_seconds: number | null;
            ramp_up_step_size: number | null;
            ramp_up_while_promoting: boolean | null;
            redeploy_on_promotion: boolean | null;
            replica_overhead_percent: number | null;
            request_backpressure_policy: string | null;
            rolling_deploy: boolean | null;
            rolling_deploy_strategy: string | null;
            scale_down_delay: number | null;
            stabilization_time_seconds: number | null;
            target_in_flight_tokens: number | null;
            target_utilization_percentage: number | null;
        };
        AuditLogEventEnvironmentDeleted: {
            environment_name: string;
            event_type: "ENVIRONMENT_DELETED";
            model_id: string;
            model_name: string;
        };
        AuditLogEventEnvironmentSettings: {
            autoscaling_window: number
            | null;
            concurrency_target: number;
            max_replica: number;
            max_scale_down_rate: number | null;
            max_surge_percent: number | null;
            max_unavailable_percent: number | null;
            min_replica: number;
            promotion_cleanup_strategy: string | null;
            ramp_up_duration_seconds: number | null;
            ramp_up_step_size: number | null;
            ramp_up_while_promoting: boolean | null;
            redeploy_on_promotion: boolean | null;
            replica_overhead_percent: number | null;
            request_backpressure_policy: string | null;
            rolling_deploy: boolean | null;
            rolling_deploy_strategy: string | null;
            scale_down_delay: number | null;
            stabilization_time_seconds: number | null;
            target_in_flight_tokens: number | null;
            target_utilization_percentage: number | null;
        };
        AuditLogEventEnvironmentUpdated: {
            autoscaling_window: number
            | null;
            concurrency_target: number;
            deployment_type: string | null;
            environment_name: string;
            event_type: "ENVIRONMENT_UPDATED";
            max_replica: number;
            max_scale_down_rate: number | null;
            max_surge_percent: number | null;
            max_unavailable_percent: number | null;
            min_replica: number;
            model_id: string;
            model_name: string;
            previous_settings:
                | components["schemas"]["AuditLogEventEnvironmentSettings"]
                | null;
            promotion_cleanup_strategy: string
            | null;
            ramp_up_duration_seconds: number | null;
            ramp_up_step_size: number | null;
            ramp_up_while_promoting: boolean | null;
            redeploy_on_promotion: boolean | null;
            replica_overhead_percent: number | null;
            request_backpressure_policy: string | null;
            rolling_deploy: boolean | null;
            rolling_deploy_strategy: string | null;
            scale_down_delay: number | null;
            schedules:
                | components["schemas"]["AuditLogEventAutoscalingScheduleChange"][]
                | null;
            stabilization_time_seconds: number
            | null;
            target_in_flight_tokens: number | null;
            target_utilization_percentage: number | null;
        };
        AuditLogEventGatewayEndpointCreated: {
            event_type: "GATEWAY_ENDPOINT_CREATED";
            gateway_endpoint_id: string;
            slug: string;
        };
        AuditLogEventGatewayEndpointDeleted: {
            event_type: "GATEWAY_ENDPOINT_DELETED";
            gateway_endpoint_id: string;
            slug: string;
        };
        AuditLogEventGatewayEndpointUpdated: {
            event_type: "GATEWAY_ENDPOINT_UPDATED";
            gateway_endpoint_id: string;
            previous_slug: string
            | null;
            slug: string;
        };
        AuditLogEventGridMachineUserCreated: {
            event_type: "GRID_MACHINE_USER_CREATED";
            machine_user_id: string;
            machine_user_name: string;
            team_id: string;
            team_name: string;
        };
        AuditLogEventGridMachineUserDeleted: {
            event_type: "GRID_MACHINE_USER_DELETED";
            machine_user_id: string;
            machine_user_name: string;
            team_id: string;
            team_name: string;
        };
        AuditLogEventGridMachineUserUpdated: {
            event_type: "GRID_MACHINE_USER_UPDATED";
            machine_user_id: string;
            machine_user_name: string;
            previous_machine_user_name: string;
            team_id: string;
            team_name: string;
        };
        AuditLogEventModelDeleted: {
            event_type: "MODEL_DELETED";
            model_id: string;
            model_name: string;
        };
        AuditLogEventModelDeployed: {
            autoscaling_schedule_settings_update: | components["schemas"]["AuditLogEventAutoscalingScheduleOperations"]
            | null;
            autoscaling_settings_update: | components["schemas"]["AuditLogEventAutoscalingSettingsUpdate"]
            | null;
            deployment_id: string;
            deployment_name: string;
            environment_name: string
            | null;
            event_type: "MODEL_DEPLOYED";
            instance_type_id_update: string | null;
            model_id: string;
            model_name: string;
            promotion_settings_override:
                | components["schemas"]["AuditLogEventPromotionSettingsOverride"]
                | null;
            publish: boolean;
            region_update: string
            | null;
            request_backpressure_settings_update:
                | components["schemas"]["AuditLogEventRequestBackpressureSettingsUpdate"]
                | null;
            scale_previous_to_zero: boolean;
            trusted: boolean;
        };
        AuditLogEventModelDeploymentActivated: {
            deployment_id: string;
            deployment_name: string;
            event_type: "MODEL_DEPLOYMENT_ACTIVATED";
            model_id: string;
            model_name: string;
        };
        AuditLogEventModelDeploymentAutoscalingSettingsChanged: {
            autoscaling_window: number
            | null;
            concurrency_target: number;
            deployment_id: string;
            deployment_name: string;
            deployment_type: string | null;
            event_type: "MODEL_DEPLOYMENT_AUTOSCALING_SETTINGS_CHANGED";
            max_replica: number;
            max_scale_down_rate: number | null;
            min_replica: number;
            model_id: string;
            model_name: string;
            previous_settings:
                | components["schemas"]["AuditLogEventAutoscalingSettings"]
                | null;
            scale_down_delay: number
            | null;
            schedules:
                | components["schemas"]["AuditLogEventAutoscalingScheduleChange"][]
                | null;
            target_in_flight_tokens: number
            | null;
            target_utilization_percentage: number | null;
        };
        AuditLogEventModelDeploymentDeactivated: {
            deployment_id: string;
            deployment_name: string;
            event_type: "MODEL_DEPLOYMENT_DEACTIVATED";
            model_id: string;
            model_name: string;
        };
        AuditLogEventModelDeploymentDeleted: {
            deployment_id: string;
            deployment_name: string;
            event_type: "MODEL_DEPLOYMENT_DELETED";
            model_id: string;
            model_name: string;
        };
        AuditLogEventModelDeploymentInstanceTypeChanged: {
            deployment_id: string;
            deployment_name: string;
            event_type: "MODEL_DEPLOYMENT_INSTANCE_TYPE_CHANGED";
            instance_type_name: string;
            model_id: string;
            model_name: string;
        };
        AuditLogEventModelDeploymentPromoted: {
            autoscaling_schedule_settings_update: | components["schemas"]["AuditLogEventAutoscalingScheduleOperations"]
            | null;
            autoscaling_settings_update: | components["schemas"]["AuditLogEventAutoscalingSettingsUpdate"]
            | null;
            deployment_id: string;
            deployment_name: string;
            environment_id: string
            | null;
            environment_name: string | null;
            event_type: "MODEL_DEPLOYMENT_PROMOTED";
            instance_type_id_update: string | null;
            model_id: string;
            model_name: string;
            promotion_settings_override:
                | components["schemas"]["AuditLogEventPromotionSettingsOverride"]
                | null;
            region_update: string
            | null;
            request_backpressure_settings_update:
                | components["schemas"]["AuditLogEventRequestBackpressureSettingsUpdate"]
                | null;
        };
        AuditLogEventModelDeploymentRequestBackpressureSettingsChanged: {
            deployment_id: string;
            deployment_name: string;
            event_type: "MODEL_DEPLOYMENT_REQUEST_BACKPRESSURE_SETTINGS_CHANGED";
            model_id: string;
            model_name: string;
            policy: string
            | null;
            previous_policy: string | null;
        };
        AuditLogEventModelDeploymentRetried: {
            deployment_id: string;
            deployment_name: string;
            event_type: "MODEL_DEPLOYMENT_RETRIED";
            model_id: string;
            model_name: string;
            retried: boolean;
        };
        AuditLogEventModelPromotionControlAction: {
            action: components["schemas"]["AuditLogPromotionControlAction"];
            deployment_id: string;
            deployment_name: string;
            environment_id: string
            | null;
            environment_name: string;
            event_type: "MODEL_PROMOTION_CONTROL_ACTION";
            model_id: string;
            model_name: string;
        };
        AuditLogEventModelRenamed: {
            event_type: "MODEL_RENAMED";
            model_id: string;
            model_name: string;
            previous_name: string
            | null;
        };
        AuditLogEventPromotionSettingsOverride: {
            max_surge_percent: number
            | null;
            max_unavailable_percent: number | null;
            promotion_cleanup_strategy: string | null;
            redeploy_on_promotion: boolean | null;
            replica_overhead_percent: number | null;
            rolling_deploy: boolean | null;
            rolling_deploy_strategy: string | null;
            stabilization_time_seconds: number | null;
        };
        AuditLogEventProviderConnectionCreated: {
            event_type: "PROVIDER_CONNECTION_CREATED";
            provider: string;
            provider_connection_id: string;
            secret_name: string;
        };
        AuditLogEventProviderConnectionDeleted: {
            event_type: "PROVIDER_CONNECTION_DELETED";
            provider: string;
            provider_connection_id: string;
            secret_name: string;
        };
        AuditLogEventProviderConnectionUpdated: {
            event_type: "PROVIDER_CONNECTION_UPDATED";
            provider: string;
            provider_connection_id: string;
            secret_name: string;
        };
        AuditLogEventReplicaTerminated: {
            deployment_id: string;
            deployment_name: string;
            event_type: "REPLICA_TERMINATED";
            model_id: string;
            model_name: string;
            replica_id: string;
        };
        AuditLogEventRequestBackpressureSettingsUpdate: { policy: string
        | null };
        AuditLogEventRequireGroupBasedAdminsEnabled: {
            event_type: "REQUIRE_GROUP_BASED_ADMINS_ENABLED";
            organization_id: string;
        };
        AuditLogEventSecretDeleted: {
            event_type: "SECRET_DELETED";
            secret_id: string;
            secret_name: string;
        };
        AuditLogEventSecretUpdated: {
            event_type: "SECRET_UPDATED";
            secret_id: string;
            secret_name: string;
        };
        AuditLogEventSshCertificateSigned: {
            event_type: "SSH_CERTIFICATE_SIGNED";
            expires_at: string;
            project_id: string;
            proxy_address: string;
            replica_id: string;
            workload_id: string;
            workload_type: string;
        };
        AuditLogEventTelemetryExportCreated: {
            event_type: "TELEMETRY_EXPORT_CREATED";
            telemetry_export_configuration_id: string;
        };
        AuditLogEventTelemetryExportDeleted: {
            event_type: "TELEMETRY_EXPORT_DELETED";
            telemetry_export_configuration_id: string;
        };
        AuditLogEventTelemetryExportUpdated: {
            credential_rotated: boolean;
            enabled: boolean
            | null;
            event_type: "TELEMETRY_EXPORT_UPDATED";
            telemetry_export_configuration_id: string;
        };
        AuditLogEventType: | "MODEL_DEPLOYED"
        | "MODEL_DEPLOYMENT_ACTIVATED"
        | "MODEL_DEPLOYMENT_DEACTIVATED"
        | "MODEL_DEPLOYMENT_RETRIED"
        | "MODEL_DEPLOYMENT_PROMOTED"
        | "MODEL_DEPLOYMENT_AUTOSCALING_SETTINGS_CHANGED"
        | "MODEL_DEPLOYMENT_REQUEST_BACKPRESSURE_SETTINGS_CHANGED"
        | "MODEL_DEPLOYMENT_INSTANCE_TYPE_CHANGED"
        | "MODEL_DEPLOYMENT_DELETED"
        | "MODEL_DELETED"
        | "MODEL_RENAMED"
        | "CHAIN_DEPLOYED"
        | "CHAIN_DEPLOYMENT_ACTIVATED"
        | "CHAIN_DEPLOYMENT_DEACTIVATED"
        | "CHAIN_DEPLOYMENT_PROMOTED"
        | "CHAINLET_AUTOSCALING_SETTINGS_CHANGED"
        | "CHAINLET_INSTANCE_TYPE_CHANGED"
        | "CHAIN_DEPLOYMENT_DELETED"
        | "CHAIN_DELETED"
        | "CHAIN_ENVIRONMENT_CREATED"
        | "CHAIN_ENVIRONMENT_UPDATED"
        | "SECRET_UPDATED"
        | "SECRET_DELETED"
        | "API_KEY_CREATED"
        | "API_KEY_DELETED"
        | "API_KEY_LIFETIME_LIMITS_UPDATED"
        | "GATEWAY_ENDPOINT_CREATED"
        | "GATEWAY_ENDPOINT_UPDATED"
        | "GATEWAY_ENDPOINT_DELETED"
        | "PROVIDER_CONNECTION_CREATED"
        | "PROVIDER_CONNECTION_UPDATED"
        | "PROVIDER_CONNECTION_DELETED"
        | "GRID_MACHINE_USER_CREATED"
        | "GRID_MACHINE_USER_UPDATED"
        | "GRID_MACHINE_USER_DELETED"
        | "USER_INVITED"
        | "USER_JOINED_ORGANIZATION"
        | "WEBHOOK_SIGNING_SECRET_CREATED"
        | "WEBHOOK_SIGNING_SECRET_ROTATED"
        | "WEBHOOK_SIGNING_SECRET_DELETED"
        | "USER_ROLE_UPDATED"
        | "USER_TEAM_ROLE_UPDATED"
        | "USER_REMOVED"
        | "DIRECTORY_GROUP_ROLE_UPDATED"
        | "REQUIRE_GROUP_BASED_ADMINS_ENABLED"
        | "ENVIRONMENT_CREATED"
        | "ENVIRONMENT_UPDATED"
        | "ENVIRONMENT_DELETED"
        | "REPLICA_TERMINATED"
        | "MODEL_PROMOTION_CONTROL_ACTION"
        | "SSH_CERTIFICATE_SIGNED"
        | "VOLUME_DELETED"
        | "VOLUME_VERSION_DELETED"
        | "VOLUME_VERSION_RESTORED"
        | "VOLUME_TAG_SET"
        | "VOLUME_TAG_DELETED"
        | "VOLUME_UPDATED"
        | "TELEMETRY_EXPORT_CREATED"
        | "TELEMETRY_EXPORT_UPDATED"
        | "TELEMETRY_EXPORT_DELETED";
        AuditLogEventTypeGroup: | "DEPLOYED"
        | "PROMOTED"
        | "ACTIVATED_DEACTIVATED"
        | "AUTOSCALING_SETTINGS"
        | "REQUEST_BACKPRESSURE_SETTINGS"
        | "INSTANCE_TYPE_CHANGED"
        | "ENVIRONMENT_SETTINGS"
        | "REPLICA_TERMINATED"
        | "DELETED"
        | "METADATA"
        | "SECRETS"
        | "API_KEYS"
        | "GATEWAY"
        | "GRID"
        | "WEBHOOK_SIGNING_SECRETS"
        | "USER_MANAGEMENT"
        | "DIRECTORY_GROUP_MANAGEMENT"
        | "SSH"
        | "TELEMETRY_EXPORT";
        AuditLogEventUserInvited: {
            event_type: "USER_INVITED";
            invited_user_email: string;
            role_name: string;
        };
        AuditLogEventUserJoinedOrganization: {
            event_type: "USER_JOINED_ORGANIZATION";
            new_user_email: string;
            user_id: string;
        };
        AuditLogEventUserRemoved: {
            event_type: "USER_REMOVED";
            removed_user_email: string;
        };
        AuditLogEventUserRoleUpdated: {
            event_type: "USER_ROLE_UPDATED";
            new_role_name: string;
            user_email: string;
            user_id: string;
        };
        AuditLogEventUserTeamRoleUpdated: {
            event_type: "USER_TEAM_ROLE_UPDATED";
            new_role_name: string;
            team_id: string;
            team_name: string;
            user_email: string;
            user_id: string;
        };
        AuditLogEventVolumeDeleted: {
            event_type: "VOLUME_DELETED";
            namespace: string;
            versions_deleted: number;
            volume_name: string;
            volume_ref: string;
        };
        AuditLogEventVolumeTagDeleted: {
            deleted: boolean;
            event_type: "VOLUME_TAG_DELETED";
            tag: string;
            volume_ref: string;
        };
        AuditLogEventVolumeTagSet: {
            digest: string;
            event_type: "VOLUME_TAG_SET";
            tag: string;
            volume_ref: string;
        };
        AuditLogEventVolumeUpdated: {
            event_type: "VOLUME_UPDATED";
            expires_at: string
            | null;
            previous_expires_at: string | null;
            volume_ref: string;
        };
        AuditLogEventVolumeVersionDeleted: {
            digest: string;
            event_type: "VOLUME_VERSION_DELETED";
            namespace: string;
            version: string;
            volume_name: string;
            volume_ref: string;
        };
        AuditLogEventVolumeVersionRestored: {
            digest: string;
            event_type: "VOLUME_VERSION_RESTORED";
            namespace: string;
            version: string;
            volume_name: string;
            volume_ref: string;
        };
        AuditLogEventWebhookSigningSecretCreated: {
            event_type: "WEBHOOK_SIGNING_SECRET_CREATED";
            webhook_signing_secret_id: string;
        };
        AuditLogEventWebhookSigningSecretDeleted: {
            event_type: "WEBHOOK_SIGNING_SECRET_DELETED";
            webhook_signing_secret_id: string;
        };
        AuditLogEventWebhookSigningSecretRotated: {
            event_type: "WEBHOOK_SIGNING_SECRET_ROTATED";
            webhook_signing_secret_id: string;
        };
        AuditLogPromotionControlAction: | "PAUSE"
        | "RESUME"
        | "FORCE_CANCEL"
        | "FORCE_ROLL_FORWARD"
        | "GRACEFUL_CANCEL";
        AuditLogSortDirection: "DESC"
        | "ASC";
        AuditLogSource: "UI" | "API" | "MCP" | "SYSTEM" | "OTHER";
        AuthCode: {
            auth_code: string;
            auth_url: string;
            expires_at: string | null;
            generated_at: string | null;
            replica_id: string;
            session_id: string;
            tunnel_name: string | null;
            working_directory: string | null;
        };
        AuthMethod: | "CUSTOM_SECRET"
        | "AWS_OIDC"
        | "GCP_OIDC"
        | "HUGGING_FACE_OIDC"
        | "AWS_ASSUME_ROLE";
        AutoscalingSchedule: {
            autoscaling_settings: components["schemas"]["AutoscalingScheduleSettings"];
            cadence: "DAILY"
            | "HOURLY";
            enabled: boolean;
            end_hour: number | null;
            end_minute: number;
            id: string;
            name: string;
            start_hour: number | null;
            start_minute: number;
            weekdays: components["schemas"]["AutoscalingScheduleWeekday"][];
        };
        AutoscalingScheduleSettings: {
            autoscaling_window: number
            | null;
            concurrency_target: number | null;
            max_replica: number;
            max_scale_down_rate: number | null;
            min_replica: number;
            scale_down_delay: number | null;
            target_in_flight_tokens: number | null;
            target_utilization_percentage: number | null;
        };
        AutoscalingScheduleSettingsRequest: {
            autoscaling_window: number
            | null;
            concurrency_target: number | null;
            max_replica: number;
            max_scale_down_rate: number | null;
            min_replica: number;
            scale_down_delay: number | null;
            target_in_flight_tokens: number | null;
            target_utilization_percentage: number | null;
        };
        AutoscalingScheduleState: {
            autoscaling_settings: components["schemas"]["AutoscalingSettings"];
            schedule_id: string
            | null;
        };
        AutoscalingScheduleUpsert: {
            autoscaling_settings: components["schemas"]["AutoscalingScheduleSettingsRequest"];
            cadence: "DAILY"
            | "HOURLY";
            enabled: boolean;
            end_hour?: number | null;
            end_minute: number;
            id?: string | null;
            name: string;
            start_hour?: number | null;
            start_minute: number;
            weekdays: components["schemas"]["AutoscalingScheduleWeekday"][];
        };
        AutoscalingScheduleWeekday: | "SUNDAY"
        | "MONDAY"
        | "TUESDAY"
        | "WEDNESDAY"
        | "THURSDAY"
        | "FRIDAY"
        | "SATURDAY";
        AutoscalingSettings: {
            autoscaling_window: number
            | null;
            concurrency_target: number;
            max_replica: number;
            max_scale_down_rate: number | null;
            min_replica: number;
            scale_down_delay: number | null;
            target_in_flight_tokens: number | null;
            target_utilization_percentage: number | null;
        };
        AvailabilityModel: "standard"
        | "spot";
        AwsAssumeRole: { baseten_role_arn: string; external_id: string };
        AwsAssumeRoleDockerAuth: { region: string; role_arn: string };
        AWSCredentials: {
            aws_access_key_id: string;
            aws_secret_access_key: string;
            aws_session_token: string;
        };
        AwsIamDockerAuth: {
            access_key_secret_ref: components["schemas"]["SecretReference"];
            secret_access_key_secret_ref: components["schemas"]["SecretReference"];
        };
        AwsOidcDockerAuth: { region: string; role_arn: string };
        BasetenLatestCheckpointConfig: {
            job_id?: string | null;
            project_name?: string | null;
            typ: "baseten_latest_checkpoint";
        };
        BasetenNamedCheckpointConfig: {
            checkpoint_name: string;
            job_id?: string
            | null;
            project_name?: string | null;
            typ: "baseten_named_checkpoint";
        };
        BenchmarkSnapshot: {
            embedding?: components["schemas"]["EmbeddingBenchmarkMetrics"]
            | null;
            llm?: components["schemas"]["LLMBenchmarkMetrics"] | null;
            measured_at: string;
            profile?: string | null;
            replicas?: number | null;
            run_id: string;
            tts?: components["schemas"]["TTSBenchmarkMetrics"] | null;
        };
        BillableResource: {
            base_model: string
            | null;
            chain_metadata: components["schemas"]["ChainMetadata"] | null;
            environment_name: string | null;
            id: string;
            instance_type: string | null;
            is_deleted: boolean;
            kind: components["schemas"]["ResourceKind"];
            model_id: string | null;
            model_name: string | null;
            name: string | null;
            team_id: string | null;
            team_name: string | null;
        };
        BucketWidth: "1m"
        | "1h"
        | "1d";
        CancelPromotionResponse: {
            message: string;
            status: components["schemas"]["CancelPromotionStatus"];
        };
        CancelPromotionStatus: "CANCELED"
        | "RAMPING_DOWN";
        CapacityAtSubmit: {
            gpu_type: string;
            last_modified: string;
            max_gpus: number;
            min_gpus: number | null;
        };
        Chain: {
            created_at: string;
            deployments_count: number;
            id: string;
            name: string;
            team_name: string;
        };
        ChainDeployment: {
            chain_id: string;
            chainlets: components["schemas"]["Chainlet"][];
            created_at: string;
            environment: string
            | null;
            id: string;
            status: components["schemas"]["DeploymentStatus"];
        };
        ChainDeployments: {
            deployments: components["schemas"]["ChainDeployment"][];
        };
        ChainDeploymentTombstone: {
            chain_id: string;
            deleted: boolean;
            id: string;
        };
        ChainEnvironment: {
            candidate_deployment: components["schemas"]["ChainDeployment"]
            | null;
            chain_id: string;
            chainlet_settings: components["schemas"]["ChainletEnvironmentSettings"][];
            created_at: string;
            current_deployment: components["schemas"]["ChainDeployment"] | null;
            in_progress_promotion: components["schemas"]["InProgressPromotion"] | null;
            name: string;
            promotion_settings: components["schemas"]["PromotionSettings"];
        };
        Chainlet: {
            active_replica_count: number;
            autoscaling_settings: components["schemas"]["AutoscalingSettings"]
            | null;
            id: string;
            instance_type_name: string;
            name: string;
            status: components["schemas"]["DeploymentStatus"];
        };
        ChainletEnvironmentAutoscalingSettingsUpdate: {
            autoscaling_settings: components["schemas"]["UpdateAutoscalingSettings"];
            chainlet_name: string;
        };
        ChainletEnvironmentInstanceTypeUpdate: {
            chainlet_name: string;
            instance_type_id: string;
        };
        ChainletEnvironmentSettings: {
            autoscaling_settings: | components["schemas"]["AutoscalingSettings"]
            | null;
            chainlet_name: string;
            instance_type: components["schemas"]["InstanceType"];
        };
        ChainletEnvironmentSettingsRequest: {
            autoscaling_settings?: | components["schemas"]["UpdateAutoscalingSettings"]
            | null;
            chainlet_name: string;
            instance_type_id?: string;
        };
        ChainMetadata: {
            chain_deployment_id: string;
            chain_id: string;
            chain_name: string
            | null;
        };
        Chains: { chains: components["schemas"]["Chain"][] };
        ChainTombstone: { deleted: boolean; id: string };
        CheckpointFile: {
            last_modified: string;
            node_rank: number;
            relative_file_name: string;
            size_bytes: number;
            url: string;
        };
        CheckpointSyncStatus: "SYNCING"
        | "COMPLETED";
        CleanupImagesParams: { team_id?: string };
        CleanupSandboxImagesResponse: {
            deleted: number;
            has_more?: boolean;
            message: string;
            remaining?: number;
        };
        CreateApiKeyForGroupRequest: { name?: string
        | null };
        CreateApiKeyForGroupResponse: {
            api_key: string;
            name: string | null;
            prefix: string;
        };
        CreateAPIKeyRequest: {
            expires_at?: string
            | null;
            model_ids?: string[] | null;
            name?: string | null;
            team_id?: string | null;
            type: components["schemas"]["APIKeyCategory"];
        };
        CreateChainEnvironmentRequest: {
            chainlet_settings?: | components["schemas"]["ChainletEnvironmentSettingsRequest"][]
            | null;
            name: string;
            promotion_settings?: | components["schemas"]["UpdatePromotionSettings"]
            | null;
        };
        CreateDeploymentPatchRequest: {
            next_patch_point: components["schemas"]["DeploymentPatchPoint"];
            patch_ops: (
                | components["schemas"]["DeploymentPatchOpModelCode"]
                | components["schemas"]["DeploymentPatchOpPackage"]
                | components["schemas"]["DeploymentPatchOpConfig"]
                | components["schemas"]["DeploymentPatchOpPythonRequirement"]
                | components["schemas"]["DeploymentPatchOpEnvVar"]
                | components["schemas"]["DeploymentPatchOpExternalData"]
            )[];
            prev_patch_hash: string;
        };
        CreateDeploymentPatchResponse: {
            patch_point: components["schemas"]["DeploymentPatchPointWithHash"];
        };
        CreatedGridMachineUser: {
            api_key: string
            | null;
            created_at: string;
            created_by: string | null;
            id: string;
            name: string;
            team_id: string;
            team_name: string;
        };
        CreatedModelDeployment: {
            deployment: components["schemas"]["Deployment"];
            model: components["schemas"]["Model"];
        };
        CreateEndpointRequest: {
            region?: components["schemas"]["SharedEndpointRegion"];
            slug: string;
            targets: components["schemas"]["EndpointTargetRequest"][];
        };
        CreateEnvironmentRequest: {
            autoscaling_settings?: | components["schemas"]["UpdateAutoscalingSettings"]
            | null;
            name: string;
            promotion_settings?: | components["schemas"]["UpdateModelPromotionSettings"]
            | null;
            request_backpressure_settings?: | components["schemas"]["UpdateRequestBackpressureSettings"]
            | null;
        };
        CreateGridConnectionRequest: {
            config: | components["schemas"]["UpsertGridConnectionConfigAnthropic"]
            | components["schemas"]["UpsertGridConnectionConfigOpenAI"]
            | components["schemas"]["UpsertGridConnectionConfigXAI"]
            | components["schemas"]["UpsertGridConnectionConfigVertex"]
            | components["schemas"]["UpsertGridConnectionConfigBedrock"];
            team_id?: string
            | null;
        };
        CreateGridMachineUserAPIKeyRequest: { name?: string
        | null };
        CreateGridMachineUserRequest: {
            api_key?:
                | components["schemas"]["CreateGridMachineUserAPIKeyRequest"]
                | null;
            name: string;
            team_id?: string
            | null;
        };
        CreateGridRouteRequest: {
            description?: string
            | null;
            display_name?: string | null;
            target:
                | components["schemas"]["UpsertGridRouteTargetBasetenModelAPI"]
                | components["schemas"]["UpsertGridRouteTargetConnection"]
                | components["schemas"]["UpsertGridRouteTargetClassifier"];
            team_id?: string
            | null;
        };
        CreateGridTokenRequest: { team_id?: string
        | null };
        CreateGroupHierarchy: {
            limit_enforcement?: components["schemas"]["LimitEnforcement"] | null;
            parent_group_id?: string | null;
        };
        CreateGroupRequest: {
            hierarchy: components["schemas"]["CreateGroupHierarchy"];
            metadata: components["schemas"]["GroupMetadata"];
            models: components["schemas"]["ModelConfig"][];
        };
        CreateJobWeightConfig: {
            allow_patterns?: string[]
            | null;
            auth?: components["schemas"]["TrainingWeightAuth"] | null;
            auth_secret_name?: string | null;
            ignore_patterns?: string[] | null;
            mount_location: string;
            source: string;
        };
        CreateLibraryListingRequest: {
            closed_source?: boolean;
            display_name: string;
            is_listed?: boolean;
            is_public?: boolean;
            user_defined_id: string;
        };
        CreateLibraryListingVersionRequest: {
            allow_truss_download?: boolean;
            closed_source?: boolean;
            display_name?: string
            | null;
            is_listed?: boolean;
            is_public?: boolean;
            oracle_version_id: string;
            replace_model?: boolean;
            version_tag: string;
        };
        CreateLLMModelRequest: {
            additional_autoscaling_config?: { [key: string]: unknown }
            | null;
            autoscaling_settings?:
                | components["schemas"]["UpdateAutoscalingSettings"]
                | null;
            bdn?: { [key: string]: unknown }
            | null;
            deployment_name?: string | null;
            egress_restrictions?: components["schemas"]["EgressRestrictions"] | null;
            environment_variables?: { [key: string]: unknown };
            llm_config?: { [key: string]: unknown };
            llm_version?: string | null;
            metadata?: { [key: string]: unknown } | null;
            model_metadata?: { [key: string]: unknown } | null;
            name: string;
            region?: string | null;
            resources: { [key: string]: unknown };
            runtime?: components["schemas"]["LLMRuntime"] | null;
            weights?: { [key: string]: unknown }[] | null;
        };
        CreateLLMModelVersionRequest: {
            additional_autoscaling_config?: { [key: string]: unknown }
            | null;
            autoscaling_settings?:
                | components["schemas"]["UpdateAutoscalingSettings"]
                | null;
            bdn?: { [key: string]: unknown }
            | null;
            deployment_name?: string | null;
            egress_restrictions?: components["schemas"]["EgressRestrictions"] | null;
            environment_variables?: { [key: string]: unknown };
            llm_config?: { [key: string]: unknown };
            llm_version?: string | null;
            metadata?: { [key: string]: unknown } | null;
            model_metadata?: { [key: string]: unknown } | null;
            region?: string | null;
            resources: { [key: string]: unknown };
            runtime?: components["schemas"]["LLMRuntime"] | null;
            weights?: { [key: string]: unknown }[] | null;
        };
        CreateLoopsRunRequest: {
            availability_model?: components["schemas"]["AvailabilityModel"];
            base_checkpoint?: string
            | null;
            base_model: string;
            lora_rank?: number;
            max_seq_len?: number | null;
            name?: string | null;
            path?: string | null;
            replicas?: number;
            reuse_from_run_id?: string | null;
            reuse_from_session_id?: string | null;
            sampler_num_replicas?: number | null;
            scale_down_delay_seconds?: number;
            seed?: number | null;
            session_id: string;
        };
        CreateLoopsRunResponse: { run: components["schemas"]["LoopsRun"] };
        CreateLoopsSamplerRequest: {
            availability_model?: components["schemas"]["AvailabilityModel"] | null;
            base_model?: string | null;
            max_seq_length?: number | null;
            model_path?: string | null;
            num_replicas?: number | null;
            reuse_from_session_id?: string | null;
            run_id?: string | null;
            scope?: components["schemas"]["LoopsPlacementScope"];
            session_id: string;
        };
        CreateLoopsSamplerResponse: {
            sampler: components["schemas"]["LoopsSampler"];
        };
        CreateLoopsSessionResponse: {
            session: components["schemas"]["LoopsSession"];
        };
        CreateLoopsTrainerRequest: {
            availability_model?: components["schemas"]["AvailabilityModel"];
            base_checkpoint?: string
            | null;
            base_model: string;
            lora_rank?: number;
            max_seq_len?: number | null;
            name?: string | null;
            path?: string | null;
            replicas?: number;
            reuse_from_run_id?: string | null;
            reuse_from_session_id?: string | null;
            scale_down_delay_seconds?: number;
            scope?: components["schemas"]["LoopsPlacementScope"];
            seed?: number | null;
            session_id: string;
        };
        CreateModelDeploymentRequest: {
            source: components["schemas"]["DeploymentArchiveSource"];
        };
        CreateModelRequest: {
            source: | components["schemas"]["LibraryListingSource"]
            | components["schemas"]["ModelArchiveSource"];
        };
        CreateSandboxParams: { team_id?: string };
        CreateSandboxPreviewParams: { team_id?: string };
        CreateSandboxPreviewRequest: components["schemas"]["SandboxPreviewConfiguration"] & {
            create_if_not_exists?: boolean;
            name?: string;
            port: number;
            ttl?: components["schemas"]["SandboxPreviewTtl"];
        };
        CreateSandboxPreviewTokenParams: { team_id?: string };
        CreateSandboxPreviewTokenRequest: {
            create_if_not_exists?: boolean;
            expires_at: string;
        };
        CreateSandboxRequest: {
            cpu?: number;
            create_if_not_exists?: boolean;
            envs?: components["schemas"]["SandboxEnv"][];
            external_id?: string;
            filesystem?: components["schemas"]["SandboxFilesystem"];
            image?: string;
            labels?: components["schemas"]["SandboxMetadataLabels"];
            lifecycle?: components["schemas"]["SandboxLifecycle"];
            memory?: number;
            name?: string;
            ports?: components["schemas"]["SandboxPorts"];
            region?: string;
            volumes?: components["schemas"]["SandboxVolumeAttachment"][];
        };
        CreateSandboxVolumeParams: { team_id?: string };
        CreateSandboxVolumeRequest: {
            labels?: components["schemas"]["SandboxMetadataLabels"];
            name?: string;
            region?: string;
            size: string | number;
        };
        CreateTokenRequest: { scopes: components["schemas"]["TokenScope"][] };
        CreateTrainingJob: {
            compute?: components["schemas"]["CreateTrainingJobCompute"];
            enable_baseten_workdir?: boolean;
            image: components["schemas"]["CreateTrainingJobImage"];
            interactive_session?:
                | components["schemas"]["InteractiveSessionConfig"]
                | null;
            name?: string
            | null;
            priority?: number | null;
            runtime?: components["schemas"]["CreateTrainingJobRuntime"];
            truss_user_env?: components["schemas"]["TrussUserEnv"] | null;
            weights?: components["schemas"]["CreateJobWeightConfig"][];
        };
        CreateTrainingJobAccelerator: { accelerator: string; count: number };
        CreateTrainingJobCacheConfig: {
            enable_legacy_hf_mount?: boolean;
            enabled?: boolean;
            mount_base_path?: string;
            persistent_home?: boolean;
            require_cache_affinity?: boolean;
        };
        CreateTrainingJobCheckpointingConfig: {
            checkpoint_path?: string
            | null;
            enabled?: boolean;
            volume_size_gib?: number | null;
        };
        CreateTrainingJobCompute: {
            accelerator?: | components["schemas"]["CreateTrainingJobAccelerator"]
            | null;
            availability_model?: components["schemas"]["AvailabilityModel"];
            cpu_count?: number;
            memory?: string;
            node_count?: number;
        };
        CreateTrainingJobImage: {
            base_image: string;
            docker_auth?: components["schemas"]["DockerAuth"]
            | null;
        };
        CreateTrainingJobRequest: {
            training_job: components["schemas"]["CreateTrainingJob"];
        };
        CreateTrainingJobResponse: {
            training_job: components["schemas"]["TrainingJob"];
        };
        CreateTrainingJobRuntime: {
            artifacts?: components["schemas"]["CreateTrainingJobS3Artifact"][];
            cache_config?: | components["schemas"]["CreateTrainingJobCacheConfig"]
            | null;
            checkpointing_config?: components["schemas"]["CreateTrainingJobCheckpointingConfig"];
            enable_cache?: boolean
            | null;
            environment_variables?: { [key: string]: string | { name: string } };
            load_checkpoint_config?:
                | components["schemas"]["LoadCheckpointConfig"]
                | null;
            start_commands?: string[];
        };
        CreateTrainingJobS3Artifact: { s3_bucket: string; s3_key: string };
        CreateVolumeSyncRequest: {
            destination: components["schemas"]["VolumeSyncDestination"];
            source:
                | components["schemas"]["VolumeSyncSourceHuggingFace"]
                | components["schemas"]["VolumeSyncSourceS3"]
                | components["schemas"]["VolumeSyncSourceGCS"]
                | components["schemas"]["VolumeSyncSourceAzure"]
                | components["schemas"]["VolumeSyncSourceR2"]
                | components["schemas"]["VolumeSyncSourceCoreWeave"]
                | components["schemas"]["VolumeSyncSourceBasetenTraining"];
        };
        CreateVolumeTokenRequest: {
            correlation_id?: string
            | null;
            namespaces: string[];
            scopes: components["schemas"]["VolumeTokenScope"][];
            volumes: string[];
        };
        CreateVolumeTokenResponse: {
            bdn_endpoint: string
            | null;
            expires_at: string;
            namespaces: string[];
            scopes: components["schemas"]["VolumeTokenScope"][];
            token: string;
            volumes: string[];
        };
        DailyDedicatedUsage: {
            compute_cost: number
            | string;
            date: string;
            inference_requests: number;
            minutes: number;
            subtotal: number | string;
            surcharge_cost: number | string;
        };
        DailyLoopsUsage: {
            cached_prefill: components["schemas"]["LoopsMeterUsage"];
            date: string;
            sample: components["schemas"]["LoopsMeterUsage"];
            subtotal: number
            | string;
            train: components["schemas"]["LoopsMeterUsage"];
            uncached_prefill: components["schemas"]["LoopsMeterUsage"];
        };
        DailyModelApiUsage: {
            cached_input_tokens: number;
            date: string;
            input_tokens: number;
            output_tokens: number;
            subtotal: number
            | string;
        };
        DailyTrainingUsage: {
            date: string;
            minutes: number;
            subtotal: number
            | string;
        };
        DeactivateLoopsDeploymentResponse: {
            base_model: string;
            id: string;
            user: components["schemas"]["User"];
        };
        DeactivateLoopsRunResponse: {
            base_model: string;
            id: string;
            user: components["schemas"]["User"];
        };
        DeactivateLoopsSamplerResponse: {
            base_model: string;
            id: string;
            user: components["schemas"]["User"];
        };
        DeactivateResponse: { no_op: boolean; success: boolean };
        DedicatedItem: {
            billable_resource: components["schemas"]["BillableResource"];
            compute_cost: number | string;
            daily?: components["schemas"]["DailyDedicatedUsage"][];
            inference_requests: number;
            minutes: number;
            subtotal: number | string;
            surcharge_cost: number | string;
        };
        DedicatedUsage: {
            breakdown?: components["schemas"]["DedicatedItem"][];
            credits_used: number
            | string;
            minutes: number;
            subtotal: number | string;
            total: number | string;
        };
        DeleteImageParams: { team_id?: string };
        DeleteImageTagParams: { team_id?: string };
        DeleteSandboxParams: { team_id?: string };
        DeleteSandboxPreviewParams: { team_id?: string };
        DeleteSandboxPreviewTokenParams: { team_id?: string };
        DeleteSandboxVolumeParams: { team_id?: string };
        DeleteVolumeRequest: { expected_sequence?: number | null };
        DeleteVolumeResponse: {
            name: string;
            namespace: string;
            versions_deleted: number;
            volume_sequence: number;
        };
        DeleteVolumeTagRequest: { expected_sequence?: number
        | null };
        DeleteVolumeTagResponse: {
            deleted: boolean;
            namespace: string;
            tag: string;
            volume: string;
            volume_sequence: number;
        };
        DeleteVolumeVersionRequest: { expected_sequence?: number
        | null };
        DeleteVolumeVersionResponse: {
            delete_after: string;
            digest: string;
            lifecycle: string;
            namespace: string;
            version_ref: string;
            volume: string;
            volume_sequence: number;
        };
        DeployLoopsCheckpointRequest: {
            checkpoint_ids: string[];
            hf_secret_name: string;
            instance_type_id: string;
            model_name: string;
        };
        DeployLoopsCheckpointResponse: { deployment_id: string; model_id: string };
        Deployment: {
            active_replica_count: number;
            autoscaling_settings: components["schemas"]["AutoscalingSettings"] | null;
            created_at: string;
            environment: string | null;
            id: string;
            instance_type_name: string | null;
            is_development: boolean;
            is_production: boolean;
            labels: { [key: string]: unknown } | null;
            model_id: string;
            name: string;
            region: components["schemas"]["Region"] | null;
            request_backpressure_settings: components["schemas"]["RequestBackpressureSettings"];
            status: components["schemas"]["DeploymentStatus"];
        };
        DeploymentArchivePayload: {
            autoscaling_schedule_settings?: | components["schemas"]["UpdateAutoscalingScheduleSettings"]
            | null;
            autoscaling_settings?: | components["schemas"]["UpdateAutoscalingSettings"]
            | null;
            config: { [key: string]: unknown };
            create_environment_if_missing?: boolean;
            deploy_timeout_minutes?: number | null;
            deployment_name?: string | null;
            environment_name?: string | null;
            instance_type_id?: string | null;
            is_development?: boolean;
            labels?: { [key: string]: unknown } | null;
            preserve_env_instance_type?: boolean;
            promotion_settings_override?:
                | components["schemas"]["UpdatePromotionSettings"]
                | null;
            raw_config?: string
            | null;
            region?: string | null;
            request_backpressure_settings?:
                | components["schemas"]["UpdateRequestBackpressureSettings"]
                | null;
            user_env?: { [key: string]: unknown }
            | null;
        };
        DeploymentArchiveSource: {
            deployment: components["schemas"]["DeploymentArchivePayload"];
            kind: "model_archive";
            s3_key?: string
            | null;
        };
        DeploymentConfigOutputFormat: "raw"
        | "parsed"
        | "both";
        DeploymentConfigResponse: {
            config: { [key: string]: unknown } | null;
            raw_config: string | null;
        };
        DeploymentPatchAction: "ADD"
        | "UPDATE"
        | "REMOVE";
        DeploymentPatchOpConfig: {
            config: { [key: string]: unknown };
            path?: string;
            type: "config";
        };
        DeploymentPatchOpEnvVar: {
            action: components["schemas"]["DeploymentPatchAction"];
            name: string;
            type: "environment_variable";
            value?: string
            | null;
        };
        DeploymentPatchOpExternalData: {
            action: components["schemas"]["DeploymentPatchAction"];
            item: { [key: string]: string };
            type: "external_data";
        };
        DeploymentPatchOpModelCode: {
            action: components["schemas"]["DeploymentPatchAction"];
            content?: string
            | null;
            content_bytes?: string | null;
            hot_reload?: boolean;
            path: string;
            type: "model_code";
        };
        DeploymentPatchOpPackage: {
            action: components["schemas"]["DeploymentPatchAction"];
            content?: string
            | null;
            content_bytes?: string | null;
            path: string;
            type: "package";
        };
        DeploymentPatchOpPythonRequirement: {
            action: components["schemas"]["DeploymentPatchAction"];
            requirement: string;
            type: "python_requirement";
        };
        DeploymentPatchPoint: {
            config: string;
            content_hashes: { [key: string]: string
            | null };
            requirements?: string[];
        };
        DeploymentPatchPointWithHash: {
            config: string;
            content_hashes: { [key: string]: string
            | null };
            hash: string;
            requirements?: string[];
        };
        Deployments: { deployments: components["schemas"]["Deployment"][] };
        DeploymentStatus:
            | "BUILDING"
            | "DEPLOYING"
            | "DEPLOY_FAILED"
            | "LOADING_MODEL"
            | "ACTIVE"
            | "UNHEALTHY"
            | "BUILD_FAILED"
            | "BUILD_STOPPED"
            | "DEACTIVATING"
            | "INACTIVE"
            | "FAILED"
            | "UPDATING"
            | "SCALED_TO_ZERO"
            | "WAKING_UP";
        DeploymentTombstone: { deleted: boolean; id: string; model_id: string };
        DockerAuth: {
            auth_method: components["schemas"]["DockerAuthType"];
            aws_assume_role_docker_auth?:
                | components["schemas"]["AwsAssumeRoleDockerAuth"]
                | null;
            aws_iam_docker_auth?: components["schemas"]["AwsIamDockerAuth"]
            | null;
            aws_oidc_docker_auth?: components["schemas"]["AwsOidcDockerAuth"] | null;
            gcp_oidc_docker_auth?: components["schemas"]["GcpOidcDockerAuth"] | null;
            gcp_service_account_json_docker_auth?:
                | components["schemas"]["GcpServiceAccountJsonDockerAuth"]
                | null;
            registry: string;
            registry_secret_docker_auth?: | components["schemas"]["RegistrySecretDockerAuth"]
            | null;
        };
        DockerAuthType: | "GCP_SERVICE_ACCOUNT_JSON"
        | "AWS_IAM"
        | "AWS_OIDC"
        | "GCP_OIDC"
        | "REGISTRY_SECRET"
        | "AWS_ASSUME_ROLE";
        DownloadDeploymentResponse: { download_url: string };
        DownloadTrainingJobResponse: { artifact_presigned_urls: string[] };
        EffectiveModelConfig: {
            rate_limits?: components["schemas"]["EffectiveRateLimit"][];
            slug: string;
            usage_limits?: components["schemas"]["EffectiveUsageLimit"][];
        };
        EffectiveRateLimit: {
            source_group: string;
            threshold: number;
            type: components["schemas"]["LimitType"];
            unit: components["schemas"]["RateLimitUnit"];
        };
        EffectiveUsageLimit: {
            source_group: string;
            threshold: number;
            type: components["schemas"]["LimitType"];
            unit: components["schemas"]["UsageLimitUnit"];
        };
        EgressRestrictions: {
            fqdn_allow_list?: string[]
            | null;
            ip_allow_list?: string[] | null;
        };
        EmbeddingBenchmarkMetrics: {
            e2e_latency_ms_p50?: number
            | null;
            e2e_latency_ms_p99?: number | null;
            input_tokens_per_sec?: number | null;
            requests_per_sec?: number | null;
        };
        EnablementDetails: {
            reason: string;
            reason_detail: string;
            remediation: string;
        };
        Endpoint: {
            created_at: string;
            id: string;
            region: components["schemas"]["SharedEndpointRegion"];
            slug: string;
            targets: components["schemas"]["EndpointTarget"][];
            updated_at: string;
        };
        EndpointsResponse: {
            items: components["schemas"]["Endpoint"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        EndpointTarget: {
            base_url: string
            | null;
            environment_name: string | null;
            model_id: string | null;
            provider: components["schemas"]["GatewayEndpointProvider"];
            secret_id: string | null;
            target_model: string | null;
            vertex_config: components["schemas"]["VertexTargetConfig"] | null;
        };
        EndpointTargetRequest: {
            base_url?: string
            | null;
            environment_name?: string | null;
            model_id?: string | null;
            provider: components["schemas"]["GatewayEndpointProvider"];
            secret_id?: string | null;
            target_model?: string | null;
            vertex_config?: components["schemas"]["VertexTargetConfig"] | null;
        };
        EndpointTombstone: { id: string; slug: string };
        Environment: {
            autoscaling_schedules:
                | components["schemas"]["EnvironmentAutoscalingSchedules"]
                | null;
            autoscaling_settings: components["schemas"]["AutoscalingSettings"];
            candidate_deployment: components["schemas"]["Deployment"]
            | null;
            created_at: string;
            current_deployment: components["schemas"]["Deployment"] | null;
            in_progress_promotion: components["schemas"]["InProgressPromotion"] | null;
            instance_type: components["schemas"]["InstanceType"];
            model_id: string;
            name: string;
            promotion_settings: components["schemas"]["ModelPromotionSettings"];
            request_backpressure_settings: components["schemas"]["RequestBackpressureSettings"];
            traffic_routing: components["schemas"]["EnvironmentTrafficRouting"] | null;
        };
        EnvironmentAutoscalingSchedules: {
            applied_state: components["schemas"]["AutoscalingScheduleState"]
            | null;
            schedules: (
                | components["schemas"]["AutoscalingSchedule"]
                | components["schemas"]["OneTimeAutoscalingSchedule"]
            )[];
            timezone: string
            | null;
        };
        EnvironmentGroup: {
            manage_access: components["schemas"]["EnvironmentGroupManageAccess"];
            name: string;
            team_id: string;
            team_name: string;
        };
        EnvironmentGroupManageAccess: {
            is_restricted: boolean;
            users?: components["schemas"]["EnvironmentGroupUser"][];
        };
        EnvironmentGroups: {
            items: components["schemas"]["EnvironmentGroup"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        EnvironmentGroupUser: {
            email: string
            | null;
            name: string | null;
            user_id: string;
        };
        Environments: { environments: components["schemas"]["Environment"][] };
        EnvironmentTombstone: { deleted: boolean; model_id: string; name: string };
        EnvironmentTrafficRouting: {
            rules: components["schemas"]["TrafficRoutingRule"][];
        };
        ExploreCost: {
            cache_read: number
            | null;
            cache_write: number | null;
            input: number | null;
            long_context: components["schemas"]["ExploreCostValues"] | null;
            output: number | null;
        };
        ExploreCostValues: {
            cache_read: number
            | null;
            cache_write: number | null;
            input: number | null;
            output: number | null;
        };
        ExploreMetadata: {
            context_window: number
            | null;
            cost: components["schemas"]["ExploreCost"] | null;
            display_name: string | null;
            input_modalities: string[];
            max_output_tokens: number | null;
            parallel_tool_calls: boolean | null;
            provider: string | null;
            reasoning_effort_levels: string[] | null;
            release_date: string | null;
            slug: string | null;
            supported_api_formats:
                | components["schemas"]["ExploreMetadataAPIFormats"]
                | null;
            tools: boolean
            | null;
        };
        ExploreMetadataAPIFormats: {
            chat_completions: boolean;
            messages: boolean;
            responses: boolean;
        };
        ExploreMetadataResponse: {
            items: components["schemas"]["ExploreMetadata"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        FileSummary: {
            file_type: string;
            modified: string;
            path: string;
            permissions: string;
            size_bytes: number;
        };
        GatewayEndpointProvider: | "ANTHROPIC"
        | "OPENAI"
        | "XAI"
        | "BASETEN"
        | "BASETEN_MODEL_API"
        | "VERTEX"
        | "OPENAI_COMPATIBLE";
        GatewayEvent: {
            apiKeyPrefix: string;
            externalEntityId: string;
            idempotencyKey: string;
            modelSlug: string;
            requestId: string;
            timestamp: string;
            tokens: components["schemas"]["GatewayEventTokens"];
            type: string;
        };
        GatewayEventsResponse: {
            items: components["schemas"]["GatewayEvent"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        GatewayEventTokens: {
            cachedInputTokens: number;
            inputTokens: number;
            outputTokens: number;
        };
        GatewayKeyInfo: { name: string
        | null; prefix: string };
        GcpOidcDockerAuth: {
            service_account: string;
            workload_identity_provider: string;
        };
        GcpServiceAccountJsonDockerAuth: {
            service_account_json_secret_ref: components["schemas"]["SecretReference"];
        };
        GetApiKeysParams: {
            created_by_me?: boolean;
            type?: components["schemas"]["APIKeyCategory"]
            | null;
        };
        GetAuditLogsParams: {
            chain_deployment_ids?: string[];
            cursor?: string
            | null;
            deployment_ids?: string[];
            direction?: components["schemas"]["AuditLogSortDirection"];
            end_epoch_millis?: number | null;
            environment_names?: string[];
            event_type_groups?: components["schemas"]["AuditLogEventTypeGroup"][];
            limit?: number;
            search?: string | null;
            sources?: components["schemas"]["AuditLogSource"][];
            start_epoch_millis?: number | null;
            user_ids?: string[];
        };
        GetAuthCodesResponse: { auth_codes: components["schemas"]["AuthCode"][] };
        GetBillingModelApisParams: {
            api_key_prefixes?: string[];
            cursor?: string | null;
            end_date?: string | null;
            group_by?: components["schemas"]["ModelApiCostDimension"][];
            limit?: number;
            models?: string[];
            service_tiers?: string[];
            start_date?: string | null;
            team_ids?: string[];
            user_ids?: string[];
        };
        GetBillingToolCallUsageParams: {
            end_date?: string
            | null;
            group_by?: components["schemas"]["ToolCallUsageDimension"][];
            start_date: string;
            team_ids?: string[];
        };
        GetBillingUsageSummaryParams: { end_date: string; start_date: string };
        GetBlobCredentialsResponse: {
            creds: components["schemas"]["AWSCredentials"];
            s3_bucket: string;
            s3_key: string;
        };
        GetCacheSummaryResponse: {
            file_summaries: components["schemas"]["FileSummary"][];
            project_id: string;
            timestamp: string;
        };
        GetChainsAuditLogsParams: {
            chain_deployment_ids?: string[];
            cursor?: string
            | null;
            deployment_ids?: string[];
            direction?: components["schemas"]["AuditLogSortDirection"];
            end_epoch_millis?: number | null;
            environment_names?: string[];
            event_type_groups?: components["schemas"]["AuditLogEventTypeGroup"][];
            limit?: number;
            search?: string | null;
            sources?: components["schemas"]["AuditLogSource"][];
            start_epoch_millis?: number | null;
            user_ids?: string[];
        };
        GetChainsDeploymentsChainletsLogsParams: {
            component?: string
            | null;
            direction?: components["schemas"]["SortOrder"] | null;
            end_epoch_millis?: number | null;
            excludes?: string[];
            includes?: string[];
            limit?: number | null;
            min_level?: components["schemas"]["LogLevel"] | null;
            replica?: string | null;
            request_id?: string | null;
            search_pattern?: string | null;
            start_epoch_millis?: number | null;
        };
        GetDeploymentLogsRequest: {
            component?: string
            | null;
            direction?: components["schemas"]["SortOrder"] | null;
            end_epoch_millis?: number | null;
            excludes?: string[];
            includes?: string[];
            limit?: number | null;
            min_level?: components["schemas"]["LogLevel"] | null;
            replica?: string | null;
            request_id?: string | null;
            search_pattern?: string | null;
            start_epoch_millis?: number | null;
        };
        GetDeploymentPatchesStateResponse: {
            pending_patch_point: | components["schemas"]["DeploymentPatchPointWithHash"]
            | null;
            running_patch_point: components["schemas"]["DeploymentPatchPointWithHash"];
        };
        GetExploreMetadataParams: {
            cursor?: string
            | null;
            limit?: number;
            provider?: string | null;
            q?: string | null;
        };
        GetGatewayEventsParams: {
            api_keys?: string[];
            cursor?: string
            | null;
            end_time?: string | null;
            external_entity_ids?: string[];
            limit?: number | null;
            start_time?: string | null;
        };
        GetGridClassifiersParams: { cursor?: string
        | null; limit?: number };
        GetGridConnectionsParams: {
            cursor?: string | null;
            limit?: number;
            team_id?: string | null;
        };
        GetGridMachineUsersParams: {
            cursor?: string
            | null;
            limit?: number;
            team_id?: string | null;
        };
        GetGridRouteClassifiersParams: { cursor?: string
        | null; limit?: number };
        GetGridRoutesParams: {
            cursor?: string | null;
            for_harnesses?: boolean;
            limit?: number;
            name?: string | null;
            team_id?: string | null;
        };
        GetGridRoutesUsageParams: {
            cursor?: string
            | null;
            end_date?: string | null;
            group_by?: components["schemas"]["GridRouteUsageDimension"][];
            harnesses?: components["schemas"]["GridRouteUsageHarness"][];
            limit?: number;
            models?: string[];
            providers?: components["schemas"]["GridProvider"][];
            start_date?: string | null;
            team_id?: string | null;
            user_ids?: string[];
        };
        GetGridTeamSettingsParams: { team_id?: string
        | null };
        GetGridTeamSettingsUsersParams: {
            cursor?: string | null;
            limit?: number;
            team_id?: string | null;
        };
        GetGridTeamSettingsUsersUserIdParams: { team_id?: string
        | null };
        GetImageBuildLogsParams: {
            end_time?: string;
            limit?: number;
            offset?: number;
            start_time?: string;
            team_id?: string;
        };
        GetImageParams: { team_id?: string };
        GetLogsResponse: { logs: components["schemas"]["Log"][] };
        GetLoopsCapabilitiesParams: {
            enabled?: boolean | null;
            max_seq_len?: number | null;
            model?: string | null;
            use_case?: components["schemas"]["LoopsUseCase"];
        };
        GetLoopsCapabilitiesResponse: {
            supported_models: components["schemas"]["SupportedModel"][];
        };
        GetLoopsCheckpointsFilesParams: { page_size?: number; page_token?: number };
        GetLoopsCheckpointsParams: {
            base_model?: string | null;
            checkpoint_path?: string | null;
            run_id?: string | null;
        };
        GetLoopsDeploymentMetricsRequest: {
            end_epoch_millis?: number
            | null;
            start_epoch_millis?: number | null;
            step_seconds?: number | null;
            time_divisor_seconds?: number | null;
        };
        GetLoopsDeploymentMetricsResponse: {
            deployment_id: string;
            metrics: components["schemas"]["LoopsDeploymentMetrics"];
        };
        GetLoopsDeploymentResponse: {
            deployment: components["schemas"]["LoopsDeployment"];
        };
        GetLoopsDeploymentsDebugArchiveFilesParams: {
            page_size?: number;
            page_token?: string
            | null;
        };
        GetLoopsDeploymentsLogsParams: {
            direction?: components["schemas"]["SortOrder"]
            | null;
            end_epoch_millis?: number | null;
            limit?: number | null;
            min_level?: components["schemas"]["LogLevel"] | null;
            start_epoch_millis?: number | null;
        };
        GetLoopsDeploymentsParams: { scope?: string
        | null };
        GetLoopsRunResponse: { run: components["schemas"]["LoopsRun"] };
        GetLoopsRunsParams: {
            base_model?: string | null;
            run_id?: string | null;
            scope?: string | null;
            session_id?: string | null;
        };
        GetLoopsSamplerResponse: { sampler: components["schemas"]["LoopsSampler"] };
        GetLoopsSamplersParams: {
            scope?: string | null;
            session_id?: string | null;
        };
        GetLoopsSessionResponse: { session: components["schemas"]["LoopsSession"] };
        GetLoopsUserConfigResponse: {
            user_config: components["schemas"]["LoopsUserConfig"];
        };
        GetMetricsResponse: {
            end_epoch_millis: number;
            metric_descriptors: components["schemas"]["MetricDescriptor"][];
            metric_values: components["schemas"]["MetricValueSet"][];
            mode: components["schemas"]["MetricMode"];
            start_epoch_millis: number;
            step_seconds: number
            | null;
        };
        GetModelApisMetricsParams: {
            end_epoch_millis?: number
            | null;
            metrics?: string[];
            mode?: components["schemas"]["MetricMode"];
            start_epoch_millis?: number | null;
        };
        GetModelApisModelApiNameParams: { team_ids?: string[] };
        GetModelApisParams: {
            added_only?: boolean;
            cursor?: string | null;
            limit?: number;
            team_ids?: string[];
        };
        GetModelApisUsageParams: {
            api_keys?: string[];
            bucket_width?: components["schemas"]["BucketWidth"];
            cursor?: string
            | null;
            end_time?: string | null;
            group_by?: components["schemas"]["UsageDimension"][];
            limit?: number | null;
            models?: string[];
            start_time?: string | null;
            team_ids?: string[];
            user_ids?: string[];
        };
        GetModelsAuditLogsParams: {
            chain_deployment_ids?: string[];
            cursor?: string
            | null;
            deployment_ids?: string[];
            direction?: components["schemas"]["AuditLogSortDirection"];
            end_epoch_millis?: number | null;
            environment_names?: string[];
            event_type_groups?: components["schemas"]["AuditLogEventTypeGroup"][];
            limit?: number;
            search?: string | null;
            sources?: components["schemas"]["AuditLogSource"][];
            start_epoch_millis?: number | null;
            user_ids?: string[];
        };
        GetModelsDeploymentsConfigParams: {
            output_format?: components["schemas"]["DeploymentConfigOutputFormat"];
        };
        GetModelsDeploymentsLogsParams: {
            component?: string
            | null;
            direction?: components["schemas"]["SortOrder"] | null;
            end_epoch_millis?: number | null;
            excludes?: string[];
            includes?: string[];
            limit?: number | null;
            min_level?: components["schemas"]["LogLevel"] | null;
            replica?: string | null;
            request_id?: string | null;
            search_pattern?: string | null;
            start_epoch_millis?: number | null;
        };
        GetModelsDeploymentsMetricsParams: {
            end_epoch_millis?: number
            | null;
            metrics?: string[];
            mode?: components["schemas"]["MetricMode"];
            start_epoch_millis?: number | null;
        };
        GetModelsDeploymentsParams: { name?: string
        | null };
        GetModelsDeploymentsStartupsParams: {
            cursor?: string | null;
            direction?: components["schemas"]["SortOrder"] | null;
            end_epoch_millis: number;
            limit?: number;
            min_duration_ms?: number | null;
            outcomes?: components["schemas"]["StartupOutcome"][];
            phase?: components["schemas"]["StartupPhase"] | null;
            search?: string | null;
            sort_by?: components["schemas"]["StartupSortField"] | null;
            start_epoch_millis: number;
        };
        GetModelsDeploymentsStartupsSummaryParams: {
            end_epoch_millis: number;
            min_duration_ms?: number
            | null;
            start_epoch_millis: number;
        };
        GetModelsEnvironmentsLogsParams: {
            component?: string
            | null;
            direction?: components["schemas"]["SortOrder"] | null;
            end_epoch_millis?: number | null;
            excludes?: string[];
            includes?: string[];
            limit?: number | null;
            min_level?: components["schemas"]["LogLevel"] | null;
            replica?: string | null;
            request_id?: string | null;
            search_pattern?: string | null;
            start_epoch_millis?: number | null;
        };
        GetModelsEnvironmentsMetricsParams: {
            end_epoch_millis?: number
            | null;
            metrics?: string[];
            mode?: components["schemas"]["MetricMode"];
            start_epoch_millis?: number | null;
        };
        GetModelsEnvironmentsStartupsParams: {
            cursor?: string
            | null;
            direction?: components["schemas"]["SortOrder"] | null;
            end_epoch_millis: number;
            limit?: number;
            min_duration_ms?: number | null;
            outcomes?: components["schemas"]["StartupOutcome"][];
            phase?: components["schemas"]["StartupPhase"] | null;
            search?: string | null;
            sort_by?: components["schemas"]["StartupSortField"] | null;
            start_epoch_millis: number;
        };
        GetModelsEnvironmentsStartupsSummaryParams: {
            end_epoch_millis: number;
            min_duration_ms?: number
            | null;
            start_epoch_millis: number;
        };
        GetModelsParams: { name?: string
        | null };
        GetSandboxConfigurationResponse: {
            regions: components["schemas"]["SandboxRegion"][];
        };
        GetSandboxLogsParams: {
            cursor?: string;
            end_time: string;
            limit?: number;
            start_time: string;
            team_id?: string;
        };
        GetSandboxMetricsParams: {
            end_epoch_millis?: number;
            metrics?: components["schemas"]["SandboxMetricName"][];
            mode?: components["schemas"]["SandboxMetricMode"];
            start_epoch_millis?: number;
            team_id?: string;
        };
        GetSandboxParams: { show_secrets?: boolean; team_id?: string };
        GetSandboxPreviewParams: { show_secrets?: boolean; team_id?: string };
        GetSandboxVolumeParams: { team_id?: string };
        GetTeamsLoopsRunsParams: {
            base_model?: string | null;
            run_id?: string | null;
            scope?: string | null;
            session_id?: string | null;
        };
        GetTeamsLoopsSamplersParams: {
            scope?: string
            | null;
            session_id?: string | null;
        };
        GetTeamsModelsParams: { name?: string
        | null };
        GetTeamsParams: { name?: string | null };
        GetTrainingGpuCapacityResponse: {
            gpu_capacities: components["schemas"]["TrainingGpuCapacityItem"][];
            team_gpu_capacities?: components["schemas"]["TeamTrainingGpuCapacityItem"][];
        };
        GetTrainingJobCheckpointFilesResponse: {
            next_page_token: number
            | null;
            presigned_urls: components["schemas"]["CheckpointFile"][];
            total_count: number;
        };
        GetTrainingJobCheckpointsResponse: {
            checkpoints: components["schemas"]["TrainingJobCheckpoint"][];
            training_job: components["schemas"]["TrainingJob"];
        };
        GetTrainingJobLogsRequest: {
            direction?: components["schemas"]["SortOrder"]
            | null;
            end_epoch_millis?: number | null;
            limit?: number | null;
            min_level?: components["schemas"]["LogLevel"] | null;
            start_epoch_millis?: number | null;
        };
        GetTrainingJobMetricsRequest: {
            end_epoch_millis?: number
            | null;
            start_epoch_millis?: number | null;
            step_seconds?: number | null;
        };
        GetTrainingJobMetricsResponse: {
            cache: components["schemas"]["StorageMetrics"]
            | null;
            cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][];
            cpu_usage: components["schemas"]["TrainingJobMetric"][];
            ephemeral_storage: components["schemas"]["StorageMetrics"];
            gpu_memory_usage_bytes: {
                [key: string]: { timestamp: string; value: number }[];
            };
            gpu_utilization: { [key: string]: { timestamp: string; value: number }[] };
            per_node_metrics: components["schemas"]["TrainingJobNodeMetrics"][];
            training_job: components["schemas"]["TrainingJob"];
        };
        GetTrainingJobQueueContextResponse: {
            active_at_submit: components["schemas"]["ActiveJobAtSubmit"][];
            events: components["schemas"]["QueueEvent"][];
            events_window_end: string;
            gpu_type: string;
            org_capacity: components["schemas"]["CapacityAtSubmit"]
            | null;
            pending_ahead_at_submit: components["schemas"]["PendingJobAheadAtSubmit"][];
            pending_seconds: number | null;
            released_at: string | null;
            requested_gpus: number;
            submitted_at: string;
            target_job_id: string;
            target_job_name: string | null;
            team_capacity: components["schemas"]["CapacityAtSubmit"] | null;
        };
        GetTrainingJobResponse: {
            training_job: components["schemas"]["TrainingJob"];
            training_project: components["schemas"]["TrainingProject"];
        };
        GetTrainingProjectResponse: {
            training_project: components["schemas"]["TrainingProject"];
        };
        GetTrainingProjectsJobsCheckpointFilesParams: {
            page_size?: number;
            page_token?: number;
        };
        GetTrainingProjectsJobsLogsParams: {
            direction?: components["schemas"]["SortOrder"]
            | null;
            end_epoch_millis?: number | null;
            limit?: number | null;
            min_level?: components["schemas"]["LogLevel"] | null;
            start_epoch_millis?: number | null;
        };
        GetTrainingProjectsJobsMetricsParams: {
            end_epoch_millis?: number
            | null;
            start_epoch_millis?: number | null;
            step_seconds?: number | null;
        };
        GetTrainingProjectsParams: {
            cursor?: string
            | null;
            limit?: number | null;
            name?: string | null;
        };
        GetUsersParams: {
            cursor?: string
            | null;
            email?: string | null;
            limit?: number;
        };
        GetVolumesNamespacesParams: { cursor?: string
        | null; limit?: number };
        GetVolumesParams: {
            cursor?: string | null;
            limit?: number;
            namespace: string;
        };
        GetVolumesSyncsParams: {
            cursor?: string
            | null;
            limit?: number;
            ref?: string | null;
        };
        GetVolumesVersionsParams: { include_tombstoned?: boolean };
        GitInfo: {
            commits_since_tag: number | null;
            has_uncommitted_changes: boolean;
            latest_commit_sha: string;
            latest_tag: string | null;
        };
        GridClassifier: { id: string; name: string };
        GridClassifiersResponse: {
            items: components["schemas"]["GridClassifier"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        GridConnection: {
            config: | components["schemas"]["GridConnectionConfigAnthropic"]
            | components["schemas"]["GridConnectionConfigOpenAI"]
            | components["schemas"]["GridConnectionConfigXAI"]
            | components["schemas"]["GridConnectionConfigVertex"]
            | components["schemas"]["GridConnectionConfigBedrock"];
            created_at: string;
            id: string;
            team_id: string;
            team_name: string;
            updated_at: string;
        };
        GridConnectionBedrockAccessKeysAuth: { method: "access_keys" };
        GridConnectionBedrockApiKeyAuth: { method: "api_key" };
        GridConnectionConfigAnthropic: {
            provider: "ANTHROPIC";
            secret_id: string;
            secret_name: string;
        };
        GridConnectionConfigBedrock: {
            auth: | components["schemas"]["GridConnectionBedrockApiKeyAuth"]
            | components["schemas"]["GridConnectionBedrockAccessKeysAuth"];
            provider: "BEDROCK";
            region: string;
            secret_id: string;
            secret_name: string;
        };
        GridConnectionConfigOpenAI: {
            provider: "OPENAI";
            secret_id: string;
            secret_name: string;
        };
        GridConnectionConfigVertex: {
            location: string;
            project_id: string;
            provider: "VERTEX";
            secret_id: string;
            secret_name: string;
        };
        GridConnectionConfigXAI: {
            provider: "XAI";
            secret_id: string;
            secret_name: string;
        };
        GridConnectionsResponse: {
            items: components["schemas"]["GridConnection"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        GridConnectionTombstone: { id: string };
        GridEffectiveSpendLimit: {
            monthly_limit_usd: string | null;
            source: components["schemas"]["GridSettingSource"] | null;
        };
        GridHarnessDefaults: {
            claude_code: components["schemas"]["GridHarnessModels"];
            codex: components["schemas"]["GridHarnessModels"];
            opencode: components["schemas"]["GridHarnessModels"];
            pi: components["schemas"]["GridHarnessModels"];
        };
        GridHarnessModel: {
            route: components["schemas"]["GridRoute"];
            source: components["schemas"]["GridSettingSource"];
        };
        GridHarnessModels: {
            background: components["schemas"]["GridHarnessModel"]
            | null;
            primary: components["schemas"]["GridHarnessModel"] | null;
        };
        GridMachineUser: {
            created_at: string;
            created_by: string
            | null;
            id: string;
            name: string;
            team_id: string;
            team_name: string;
        };
        GridMachineUsersResponse: {
            items: components["schemas"]["GridMachineUser"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        GridMachineUserTombstone: { id: string };
        GridProvider:
            | "BASETEN_MODEL_API"
            | "OPENAI"
            | "ANTHROPIC"
            | "XAI"
            | "VERTEX"
            | "OPENAI_COMPATIBLE"
            | "BEDROCK";
        GridRoute: {
            created_at: string;
            description: string;
            display_name: string;
            id: string;
            invoke_url: string;
            metadata: components["schemas"]["ExploreMetadata"]
            | null;
            name: string;
            target:
                | components["schemas"]["GridRouteTargetBasetenModelAPI"]
                | components["schemas"]["GridRouteTargetConnection"]
                | components["schemas"]["GridRouteTargetClassifier"]
                | components["schemas"]["GridRouteTargetIntelligent"];
            team_id: string;
            team_name: string;
        };
        GridRouteClassifier: {
            decidable_models: string[];
            id: string;
            name: string;
            supported_tradeoffs: ("cost" | "balanced" | "intelligence")[];
        };
        GridRouteClassifiersResponse: {
            items: components["schemas"]["GridRouteClassifier"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        GridRouteRef: { id: string; slug: string };
        GridRoutesResponse: {
            items: components["schemas"]["GridRoute"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        GridRouteTargetBasetenModelAPI: {
            model: string;
            type: "BASETEN_MODEL_API";
        };
        GridRouteTargetClassifier: {
            allowed_routes: components["schemas"]["GridRouteRef"][];
            classifier: components["schemas"]["GridClassifier"]
            | null;
            default_route: components["schemas"]["GridRouteRef"];
            type: "CLASSIFIER";
        };
        GridRouteTargetConnection: {
            connection_id: string;
            model: string;
            type: "CONNECTION";
        };
        GridRouteTargetIntelligent: {
            route_classifier: components["schemas"]["GridRouteClassifier"];
            tradeoff: "cost"
            | "balanced"
            | "intelligence";
            type: "INTELLIGENT";
        };
        GridRouteTombstone: { id: string; name: string };
        GridRouteUsageBucket: {
            date: string;
            results: components["schemas"]["GridRouteUsageResult"][];
        };
        GridRouteUsageDimension: | "USER"
        | "TEAM"
        | "MODEL"
        | "PROVIDER"
        | "INTELLIGENT_ROUTE"
        | "HARNESS";
        GridRouteUsageHarness: "CLAUDE_CODE"
        | "OPENCODE"
        | "CODEX"
        | "PI";
        GridRouteUsageResponse: {
            items: components["schemas"]["GridRouteUsageBucket"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        GridRouteUsageResult: {
            cached_input_tokens: number;
            cost_usd: string;
            harness: components["schemas"]["GridRouteUsageHarness"]
            | null;
            input_tokens: number;
            intelligent_route: string | null;
            model: string | null;
            output_tokens: number;
            provider: components["schemas"]["GridProvider"] | null;
            requests: number;
            team_id: string | null;
            team_name: string | null;
            uncached_input_tokens: number;
            user_id: string | null;
        };
        GridSettingSource: "user"
        | "team";
        GridSpendBlockedBy: "member" | "team";
        GridSpendLimitSetting: {
            effective: components["schemas"]["GridEffectiveSpendLimit"];
            month_override_usd: string | null;
            team_default: components["schemas"]["GridSpendLimitTeamDefault"] | null;
            team_wide_monthly_limit_usd: string | null;
            user_monthly_limit_usd: string | null;
        };
        GridSpendLimitTeamDefault: {
            per_member_monthly_limit_usd: string;
            team_id: string;
            team_name: string;
        };
        GridTeamSettings: {
            harness_defaults: components["schemas"]["GridHarnessDefaults"];
            spend_limit: components["schemas"]["GridTeamSpendLimitSetting"];
            team_id: string;
            team_name: string;
        };
        GridTeamSpendLimitSetting: {
            per_member_monthly_limit_usd: string
            | null;
            team_wide_monthly_limit_usd: string | null;
        };
        GridTeamUserSettings: {
            blocked_by: components["schemas"]["GridSpendBlockedBy"]
            | null;
            email: string | null;
            is_blocked: boolean;
            month_spend_usd: string;
            spend_limit: components["schemas"]["GridSpendLimitSetting"];
            team_id: string;
            team_name: string;
            user_id: string;
        };
        GridTeamUserSettingsList: {
            items: components["schemas"]["GridTeamUserSettings"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        GridToken: {
            expires_at: string;
            team_id: string;
            team_name: string;
            token: string;
        };
        Group: {
            created_at: string;
            effective_models?: components["schemas"]["EffectiveModelConfig"][];
            hierarchy: components["schemas"]["GroupHierarchy"];
            id: string;
            metadata: components["schemas"]["GroupMetadata"];
            models?: components["schemas"]["ModelConfig"][];
        };
        GroupHierarchy: {
            limit_enforcement: components["schemas"]["LimitEnforcement"];
            parent_group_id: string
            | null;
        };
        GroupMetadata: { external_entity_id: string; name?: string
        | null };
        GroupsResponse: {
            items: components["schemas"]["Group"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        InferenceVolumeByStatusDatapoint: {
            status_2xx: number;
            status_4xx: number;
            status_5xx: number;
            timestamp: string;
        };
        InProgressPromotion: {
            error_message: string
            | null;
            percent_traffic_to_new_version: number;
            rolling_deploy: boolean | null;
            status: components["schemas"]["InProgressPromotionStatus"];
        };
        InProgressPromotionStatus: | "RELEASING"
        | "RAMPING_UP"
        | "RAMPING_DOWN"
        | "PAUSED"
        | "SUCCEEDED"
        | "FAILED"
        | "CANCELED";
        InstanceType: {
            gpu_count: number;
            gpu_memory_limit_mib: number
            | null;
            gpu_type: string | null;
            id: string;
            memory_limit_mib: number;
            millicpu_limit: number;
            name: string;
        };
        InstanceTypePrices: {
            instance_types: components["schemas"]["InstanceTypeWithPrice"][];
        };
        InstanceTypes: { instance_types: components["schemas"]["InstanceType"][] };
        InstanceTypeWithPrice: {
            instance_type: components["schemas"]["InstanceType"];
            price: number;
        };
        InteractiveSession: {
            auth_code: string
            | null;
            auth_code_generated_at: string | null;
            auth_provider: string;
            auth_url: string | null;
            authenticated_at: string | null;
            expires_at: string | null;
            id: string;
            pod_name: string;
            session_provider: string;
            timeout_minutes: number;
            trigger: string;
            tunnel_name: string | null;
            working_directory: string | null;
        };
        InteractiveSessionConfig: {
            auth_provider?: components["schemas"]["V1InteractiveSessionAuthProvider"];
            session_provider?: components["schemas"]["V1InteractiveSessionProvider"];
            timeout_minutes?: number;
            trigger?: components["schemas"]["V1InteractiveSessionTrigger"];
        };
        KeysForGroupResponse: {
            items: components["schemas"]["GatewayKeyInfo"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        LibraryListing: {
            closed_source: boolean;
            created_at: string;
            display_name: string;
            is_listed: boolean;
            is_public: boolean;
            metadata: components["schemas"]["LibraryListingMetadata"]
            | null;
            modified_at: string;
            trending: boolean | null;
            user_defined_id: string;
        };
        LibraryListingMetadata: {
            base_model?: string
            | null;
            context_length?: number | null;
            description?: string | null;
            input_modalities?: components["schemas"]["LibraryListingModality"][];
            license: string;
            model_api_slug?: string | null;
            model_family?: string | null;
            output_modalities?: components["schemas"]["LibraryListingModality"][];
            parameter_count?: number | null;
            publisher?: string | null;
            release_date?: string | null;
            trending?: boolean;
            variant?: string | null;
        };
        LibraryListingModality: | "text"
        | "image"
        | "audio"
        | "video"
        | "embedding"
        | "rerank"
        | "decision";
        LibraryListings: { listings: components["schemas"]["LibraryListing"][] };
        LibraryListingSource: {
            deployed_model_name?: string | null;
            kind: "library_listing";
            lab_display_name: string;
            user_defined_listing_id: string;
        };
        LibraryListingTombstone: { deleted: boolean; user_defined_id: string };
        LibraryListingVersion: {
            allow_truss_download: boolean;
            benchmark: components["schemas"]["BenchmarkSnapshot"] | null;
            created_at: string;
            is_live: boolean;
            modified_at: string;
            oracle_version_id: string;
            version_tag: string;
        };
        LibraryListingVersions: {
            versions: components["schemas"]["LibraryListingVersion"][];
        };
        LibraryListingVersionTombstone: { deleted: boolean; version_tag: string };
        LimitEnforcement: "CASCADING" | "INDEPENDENT";
        LimitType:
            | "REQUEST"
            | "TOKEN"
            | "CONCURRENT_REQUEST"
            | "UNCACHED_INPUT_TOKEN"
            | "OUTPUT_TOKEN";
        ListAuditLogsResponse: {
            items: components["schemas"]["AuditLogEntry"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        ListImagesParams: {
            cursor?: string;
            limit?: number;
            q?: string;
            sort?: string;
            team_id?: string;
        };
        ListImageTagsParams: {
            cursor?: string;
            limit?: number;
            name?: string;
            q?: string;
            sort?: string;
            team_id?: string;
        };
        ListLoopsCheckpointsResponse: {
            checkpoints: components["schemas"]["LoopsCheckpoint"][];
        };
        ListLoopsDeploymentsResponse: {
            deployments: components["schemas"]["LoopsDeployment"][];
        };
        ListLoopsRunsResponse: { runs: components["schemas"]["LoopsRun"][] };
        ListLoopsSamplersResponse: {
            samplers: components["schemas"]["LoopsSampler"][];
        };
        ListSandboxesParams: {
            cursor?: string;
            external_id?: string;
            limit?: number;
            q?: string;
            status?: string[];
            team_id?: string;
        };
        ListSandboxesResponse: {
            items: components["schemas"]["Sandbox"][];
            pagination: components["schemas"]["SandboxApiPagination"];
        };
        ListSandboxImagesResponse: {
            items: components["schemas"]["SandboxImage"][];
            pagination: components["schemas"]["SandboxApiPagination"];
        };
        ListSandboxImageTagsResponse: {
            items: components["schemas"]["SandboxImageTag"][];
            pagination: components["schemas"]["SandboxApiPagination"];
        };
        ListSandboxLibraryImagesResponse: {
            items: components["schemas"]["SandboxLibraryImage"][];
        };
        ListSandboxPreviewsParams: {
            cursor?: string;
            limit?: number;
            team_id?: string;
        };
        ListSandboxPreviewsResponse: {
            items: components["schemas"]["SandboxPreview"][];
            pagination: components["schemas"]["SandboxApiPagination"];
        };
        ListSandboxPreviewTokensParams: {
            cursor?: string;
            limit?: number;
            team_id?: string;
        };
        ListSandboxPreviewTokensResponse: {
            items: components["schemas"]["SandboxPreviewToken"][];
            pagination: components["schemas"]["SandboxApiPagination"];
        };
        ListSandboxVolumesParams: {
            cursor?: string;
            limit?: number;
            q?: string;
            status?: components["schemas"]["SandboxVolumeStatus"][];
            team_id?: string;
        };
        ListSandboxVolumesResponse: {
            items: components["schemas"]["SandboxVolume"][];
            pagination: components["schemas"]["SandboxApiPagination"];
        };
        ListTrainingJobsResponse: {
            training_jobs: components["schemas"]["TrainingJob"][];
            training_project: components["schemas"]["TrainingProject"];
        };
        ListTrainingProjectsResponse: {
            pagination: components["schemas"]["PaginationResponse"];
            training_projects: components["schemas"]["TrainingProject"][];
        };
        ListVolumeNamespacesResponse: {
            items: string[];
            pagination: components["schemas"]["PaginationResponse"];
        };
        ListVolumesResponse: {
            items: components["schemas"]["Volume"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        ListVolumeVersionsResponse: {
            versions: components["schemas"]["VolumeVersion"][];
            volume_sequence: number;
        };
        LLMBenchmarkMetrics: {
            cost_per_1m_tokens_usd?: number
            | null;
            max_concurrent_users_at_50ms_tpot?: number | null;
            output_tokens_per_sec_per_user_p50?: number | null;
            requests_per_sec_p50?: number | null;
            ttft_ms_p50?: number | null;
        };
        LLMModelHandle: {
            hostname: string;
            instance_type_name: string
            | null;
            model_id: string;
            version_id: string;
        };
        LLMRuntime: { oidc?: components["schemas"]["RuntimeOidc"]
        | null };
        LoadCheckpointConfig: {
            checkpoints?: (
                | components["schemas"]["BasetenLatestCheckpointConfig"]
                | components["schemas"]["BasetenNamedCheckpointConfig"]
                | components["schemas"]["LoopsCheckpointConfig"]
            )[];
            download_folder?: string;
            enabled?: boolean;
        };
        Log: {
            level: components["schemas"]["LogLevel"]
            | null;
            message: string;
            replica: string | null;
            request_id: string | null;
            timestamp: string;
        };
        LogLevel: "DEBUG"
        | "INFO"
        | "WARNING"
        | "ERROR";
        LoopsBaseModelItem: {
            base_model: string;
            breakdown?: components["schemas"]["LoopsResourceItem"][];
            cached_prefill: components["schemas"]["LoopsMeterUsage"];
            daily?: components["schemas"]["DailyLoopsUsage"][];
            sample: components["schemas"]["LoopsMeterUsage"];
            subtotal: number | string;
            train: components["schemas"]["LoopsMeterUsage"];
            uncached_prefill: components["schemas"]["LoopsMeterUsage"];
        };
        LoopsCheckpoint: {
            base_model: string
            | null;
            checkpoint_id: string;
            checkpoint_type: string;
            created_at: string;
            id: string;
            lora_adapter_config: { [key: string]: unknown } | null;
            lora_config: components["schemas"]["LoopsLoRAConfig"] | null;
            run_id: string;
            size_bytes: number;
            sync_status: string | null;
            target: components["schemas"]["TrainerCheckpointTarget"];
        };
        LoopsCheckpointConfig: {
            checkpoint_name: string;
            run_id: string;
            target?: "trainer"
            | "sampler";
            typ: "loops_checkpoint";
        };
        LoopsCheckpointFilesResponse: {
            next_page_token: number
            | null;
            presigned_urls: components["schemas"]["CheckpointFile"][];
            total_count: number;
        };
        LoopsCheckpointS3Source: { kind: "s3" };
        LoopsCheckpointSourceResponse: {
            source:
                | components["schemas"]["LoopsCheckpointS3Source"]
                | components["schemas"]["LoopsCheckpointVolumeSource"];
        };
        LoopsCheckpointVolumeSource: {
            kind: "volume";
            path: string;
            volume_ref: string;
        };
        LoopsDebugArchiveFilesResponse: {
            next_page_token: string
            | null;
            presigned_urls: components["schemas"]["CheckpointFile"][];
        };
        LoopsDeployment: {
            active_run_id: string
            | null;
            availability_model: components["schemas"]["AvailabilityModel"];
            base_checkpoint: string | null;
            base_model: string;
            base_url: string;
            created_at: string;
            id: string;
            instance_type: components["schemas"]["InstanceType"];
            latest_run_id: string | null;
            node_count: number;
            sampler: components["schemas"]["LoopsSampler"] | null;
            status: components["schemas"]["LoopsDeploymentStatus"];
            user: components["schemas"]["User"];
        };
        LoopsDeploymentMetrics: {
            concurrent_requests: components["schemas"]["TrainingJobMetric"][];
            cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][];
            cpu_usage: components["schemas"]["TrainingJobMetric"][];
            ephemeral_storage: components["schemas"]["StorageMetrics"];
            gpu_memory_usage_bytes: {
                [key: string]: { timestamp: string; value: number }[];
            };
            gpu_utilization: { [key: string]: { timestamp: string; value: number }[] };
            inference_volume: components["schemas"]["TrainingJobMetric"][];
            inference_volume_by_status: components["schemas"]["InferenceVolumeByStatusDatapoint"][];
            per_node_metrics: components["schemas"]["LoopsDeploymentNodeMetrics"][];
            response_time_stats: components["schemas"]["ResponseTimeDatapoint"][];
        };
        LoopsDeploymentNodeMetrics: {
            cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][];
            cpu_usage: components["schemas"]["TrainingJobMetric"][];
            ephemeral_storage: components["schemas"]["StorageMetrics"];
            gpu_memory_usage_bytes: {
                [key: string]: { timestamp: string; value: number }[];
            };
            gpu_utilization: { [key: string]: { timestamp: string; value: number }[] };
            node_id: string;
        };
        LoopsDeploymentStatus: { name: components["schemas"]["Name"] };
        LoopsLoRAConfig: {
            config_version: string;
            expert_layout: "per_expert" | "shared_outer" | "shared_adapter" | null;
            targets: string[];
        };
        LoopsMeterUsage: { subtotal: number
        | string; tokens: number };
        LoopsPlacementScope: "default" | "serverless" | "dedicated";
        LoopsResourceItem: {
            billable_resource: components["schemas"]["BillableResource"];
            cached_prefill: components["schemas"]["LoopsMeterUsage"];
            daily?: components["schemas"]["DailyLoopsUsage"][];
            sample: components["schemas"]["LoopsMeterUsage"];
            subtotal: number | string;
            train: components["schemas"]["LoopsMeterUsage"];
            uncached_prefill: components["schemas"]["LoopsMeterUsage"];
        };
        LoopsRun: {
            base_checkpoint: string
            | null;
            base_model: string;
            base_url: string;
            created_at: string;
            deployment_id: string | null;
            id: string;
            lora_config_version: string | null;
            name: string;
            sampler: components["schemas"]["LoopsSampler"] | null;
            session_id: string;
            status: components["schemas"]["LoopsRunStatus"];
            user: components["schemas"]["User"];
        };
        LoopsRunStatus: { name: components["schemas"]["LoopsRunStatusName"] };
        LoopsRunStatusName: "ACTIVE" | "INACTIVE";
        LoopsSampler: {
            base_checkpoint: string | null;
            base_model: string;
            base_url: string;
            created_at: string;
            deployment_id: string | null;
            id: string;
            instance_type: components["schemas"]["InstanceType"] | null;
            model_id: string | null;
            node_count: number;
            session_id: string;
            status: components["schemas"]["LoopsSamplerStatus"];
            user: components["schemas"]["User"];
        };
        LoopsSamplerStatus: { name: components["schemas"]["DeploymentStatus"] };
        LoopsSession: { id: string };
        LoopsUsage: {
            breakdown?: components["schemas"]["LoopsBaseModelItem"][];
            credits_used: number | string;
            subtotal: number | string;
            total: number | string;
        };
        LoopsUseCase: "rl"
        | "sft";
        LoopsUserConfig: {
            sampler_accelerator_priority: string[] | null;
            trainer_accelerator_priority: string[] | null;
        };
        MetricDescriptor: {
            kind: components["schemas"]["MetricKind"];
            label_sets: { [key: string]: string }[];
            name: string;
            unit_hint: components["schemas"]["MetricUnitHint"];
        };
        MetricKind: "GAUGE"
        | "COUNTER"
        | "HISTOGRAM";
        MetricMode: "CURRENT" | "SUMMARY" | "SERIES";
        MetricUnitHint:
            | "PER_SECOND"
            | "SECONDS"
            | "BYTES"
            | "MEBIBYTES"
            | "COUNT"
            | "RATIO"
            | "CELSIUS"
            | "WATTS";
        MetricValueSet: { start_epoch_millis: number; values: (number | null)[][] };
        Model: {
            created_at: string;
            deployments_count: number;
            development_deployment_id: string | null;
            id: string;
            instance_type_name: string;
            name: string;
            production_deployment_id: string | null;
            team_name: string;
        };
        ModelAPI: {
            context_length: number;
            cost_per_million_cached_input_tokens: number
            | string
            | null;
            cost_per_million_input_tokens: number | string | null;
            cost_per_million_output_tokens: number | string | null;
            description: string;
            display_name: string;
            invoke_url: string;
            model_family: string | null;
            name: string;
            org_details: components["schemas"]["ModelAPIOrgDetails"] | null;
            rate_limits: components["schemas"]["ModelAPIRateLimit"][];
            release_date: string;
            team_details?: components["schemas"]["ModelAPITeamDetails"][];
        };
        ModelApiCostDimension: | "api_key_prefix"
        | "user"
        | "model"
        | "service_tier"
        | "team";
        ModelApiItem: {
            cached_input_tokens: number;
            daily?: components["schemas"]["DailyModelApiUsage"][];
            input_tokens: number;
            model_family: string
            | null;
            model_name: string;
            output_tokens: number;
            subtotal: number | string;
        };
        ModelAPIOrgDetails: { added_at: string; last_used_at: string
        | null };
        ModelAPIRateLimit: {
            baseline_threshold: number;
            is_pooled: boolean;
            service_tier: components["schemas"]["ModelAPIServiceTier"];
            threshold: number;
            type: components["schemas"]["LimitType"];
            unit: components["schemas"]["RateLimitUnit"];
        };
        ModelApisCostBucket: {
            date: string;
            results?: components["schemas"]["ModelApisCostResult"][];
        };
        ModelApisCostResult: {
            api_key_prefixes: string[]
            | null;
            model: string | null;
            service_tier: string | null;
            subtotal: string;
            team_id: string | null;
            user_id: string | null;
        };
        ModelApisCostsResponse: {
            items: components["schemas"]["ModelApisCostBucket"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        ModelAPIServiceTier: "DEFAULT"
        | "FLEX"
        | "PRIORITY";
        ModelAPIsResponse: {
            items: components["schemas"]["ModelAPI"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        ModelApisUsage: {
            breakdown?: components["schemas"]["ModelApiItem"][];
            credits_used: number
            | string;
            subtotal: number | string;
            total: number | string;
        };
        ModelApisUsageBucket: {
            end_time: string;
            results?: components["schemas"]["ModelApisUsageResult"][];
            start_time: string;
        };
        ModelApisUsageResponse: {
            items: components["schemas"]["ModelApisUsageBucket"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        ModelApisUsageResult: {
            api_key_prefix: string
            | null;
            cached_input_tokens: number;
            input_tokens: number;
            model: string | null;
            output_tokens: number;
            request_count: number;
            team_id: string | null;
            uncached_input_tokens: number;
            user_id: string | null;
        };
        ModelAPITeamDetails: {
            added_at: string;
            cost_per_million_input_tokens: number
            | string
            | null;
            cost_per_million_output_tokens: number | string | null;
            id: string;
            last_used_at: string | null;
            rate_limits: components["schemas"]["ModelAPIRateLimit"][];
            team_id: string;
            team_name: string;
        };
        ModelArchiveSource: {
            deployment: components["schemas"]["DeploymentArchivePayload"];
            disable_archive_download?: boolean;
            kind: "model_archive";
            name: string;
            s3_key?: string
            | null;
        };
        ModelConfig: {
            rate_limits?: components["schemas"]["RateLimit"][];
            slug: string;
            usage_limits?: components["schemas"]["UsageLimit"][];
        };
        ModelPromotionSettings: {
            promotion_cleanup_strategy: | components["schemas"]["PromotionCleanupStrategy"]
            | null;
            ramp_up_duration_seconds: number
            | null;
            ramp_up_while_promoting: boolean | null;
            redeploy_on_promotion: boolean | null;
            rolling_deploy: boolean | null;
            rolling_deploy_config: components["schemas"]["RollingDeployConfig"] | null;
        };
        Models: { models: components["schemas"]["Model"][] };
        ModelTombstone: { deleted: boolean; id: string };
        Name:
            | "CREATED"
            | "DEPLOYING"
            | "RUNNING"
            | "SCALED_TO_ZERO"
            | "FAILED"
            | "STOPPED"
            | "PREEMPTED";
        OneTimeAutoscalingSchedule: {
            autoscaling_settings: components["schemas"]["AutoscalingScheduleSettings"];
            cadence: "ONE_TIME";
            enabled: boolean;
            end_at: string;
            id: string;
            name: string;
            start_at: string;
        };
        OneTimeAutoscalingScheduleUpsert: {
            autoscaling_settings: components["schemas"]["AutoscalingScheduleSettingsRequest"];
            cadence: "ONE_TIME";
            enabled: boolean;
            end_at: string;
            id?: string
            | null;
            name: string;
            start_at: string;
        };
        OrderBy: { field: string; order: string };
        OrganizationInfo: {
            aws_assume_role: components["schemas"]["AwsAssumeRole"] | null;
            created_at: string;
            name: string | null;
            org_id: string;
        };
        PaginationResponse: { cursor: string
        | null; has_more: boolean };
        PatchInteractiveSessionRequest: {
            timeout_minutes?: number | null;
            trigger?: components["schemas"]["V1InteractiveSessionTrigger"] | null;
        };
        PatchInteractiveSessionResponse: {
            interactive_session: components["schemas"]["InteractiveSession"];
            message: string;
        };
        PatchLoopsUserConfigRequest: {
            sampler_accelerator_priority?: string[]
            | null;
            trainer_accelerator_priority?: string[] | null;
        };
        PatchLoopsUserConfigResponse: {
            user_config: components["schemas"]["LoopsUserConfig"];
        };
        PatchTeamTrainingGpuCapacityRequest: {
            gpu_type: string;
            max_gpus: number;
            team_id: string;
        };
        PatchTeamTrainingGpuCapacityResponse: {
            team_gpu_capacity: components["schemas"]["TeamTrainingGpuCapacityItem"];
        };
        PatchVolumeRequest: {
            expected_sequence?: number
            | null;
            expires_at?: string | null;
        };
        PatchVolumeResponse: {
            expires_at: string
            | null;
            namespace: string;
            volume: string;
            volume_sequence: number;
        };
        PendingJobAheadAtSubmit: {
            instance_type_name: string;
            priority: number;
            requested_gpus: number;
            submitted_at: string;
            training_job_id: string;
            training_job_name: string
            | null;
        };
        PrepareModelUploadRequest: {
            deployment: components["schemas"]["DeploymentArchivePayload"];
            dry_run?: boolean;
            model_id?: string
            | null;
            name?: string | null;
            team_id?: string | null;
        };
        PrepareModelUploadResponse: {
            creds: components["schemas"]["AWSCredentials"]
            | null;
            s3_bucket: string | null;
            s3_key: string | null;
            s3_region: string | null;
        };
        PromoteRequest: {
            environment_settings_update?: | components["schemas"]["PromotionEnvironmentSettingsUpdate"]
            | null;
            preserve_env_instance_type?: boolean;
            promotion_settings_override?: | components["schemas"]["UpdatePromotionSettings"]
            | null;
            scale_down_previous_production?: boolean;
        };
        PromoteToChainEnvironmentRequest: {
            deployment_id: string;
            scale_down_previous_deployment?: boolean;
        };
        PromoteToEnvironmentRequest: {
            deployment_id: string;
            environment_settings_update?: | components["schemas"]["PromotionEnvironmentSettingsUpdate"]
            | null;
            preserve_env_instance_type?: boolean;
            promotion_settings_override?: | components["schemas"]["UpdatePromotionSettings"]
            | null;
            scale_down_previous_deployment?: boolean;
        };
        PromotionCleanupStrategy: "KEEP"
        | "SCALE_TO_ZERO"
        | "DEACTIVATE";
        PromotionEnvironmentSettingsUpdate: {
            autoscaling_schedule_settings?:
                | components["schemas"]["UpdateAutoscalingScheduleSettings"]
                | null;
            autoscaling_settings?: | components["schemas"]["UpdateAutoscalingSettings"]
            | null;
            instance_type_id?: string
            | null;
            promotion_settings?:
                | components["schemas"]["UpdatePromotionSettings"]
                | null;
            region?: string
            | null;
            request_backpressure_settings?:
                | components["schemas"]["UpdateRequestBackpressureSettings"]
                | null;
        };
        PromotionSettings: {
            promotion_cleanup_strategy: | components["schemas"]["PromotionCleanupStrategy"]
            | null;
            ramp_up_duration_seconds: number
            | null;
            ramp_up_while_promoting: boolean | null;
            redeploy_on_promotion: boolean | null;
            rolling_deploy: boolean | null;
            rolling_deploy_config: components["schemas"]["RollingDeployConfig"] | null;
        };
        PushImageParams: { team_id?: string };
        PushSandboxImageRequest: {
            docker_config?: string;
            image?: string;
            memory?: number;
            name: string;
            volume?: number;
        };
        PushSandboxImageResponse: {
            image?: string;
            name: string;
            status: components["schemas"]["SandboxImageStatus"];
            upload_headers?: { [key: string]: string };
            upload_url?: string;
        };
        QueueEvent: {
            created: string;
            event_message: string
            | null;
            exit_code: number | null;
            status: string;
            training_job_id: string;
            training_job_name: string | null;
        };
        RateLimit: {
            threshold: number;
            type: components["schemas"]["LimitType"];
            unit: components["schemas"]["RateLimitUnit"];
        };
        RateLimitUnit: "SECOND"
        | "MINUTE";
        RecreateTrainingJobResponse: {
            training_job: components["schemas"]["TrainingJob"];
        };
        Region: { display_name: string; slug: string };
        Regions: { regions: components["schemas"]["Region"][] };
        RegisterAPIKeyRequest: { key: string; name?: string | null };
        RegisterAPIKeyResponse: { ok: boolean };
        RegistrySecretDockerAuth: {
            secret_ref: components["schemas"]["SecretReference"];
        };
        RequestBackpressurePolicy: "QUEUE_ON_FULL"
        | "REJECT_ON_FULL";
        RequestBackpressureSettings: {
            policy: components["schemas"]["RequestBackpressurePolicy"] | null;
        };
        ResourceKind: | "LOOPS_RUN"
        | "LOOPS_SAMPLER"
        | "LOOPS_TRAINER"
        | "MODEL_DEPLOYMENT"
        | "TRAINING_JOB"
        | "CHAINLET";
        ResponseTimeDatapoint: {
            p50: number
            | null;
            p95: number | null;
            p99: number | null;
            timestamp: string;
        };
        RestoreVolumeVersionRequest: { expected_sequence?: number
        | null };
        RestoreVolumeVersionResponse: {
            digest: string;
            lifecycle: string;
            namespace: string;
            version_ref: string;
            volume: string;
            volume_sequence: number;
        };
        RetryDeploymentResponse: {
            deployment: components["schemas"]["Deployment"];
            reason: string
            | null;
            retried: boolean;
        };
        RollingDeployConfig: {
            max_surge_percent: number;
            max_unavailable_percent: number;
            replica_overhead_percent: number;
            rolling_deploy_strategy: components["schemas"]["RollingDeployStrategy"];
            stabilization_time_seconds: number;
        };
        RollingDeployStrategy: "REPLICA";
        RuntimeOidc: {
            byok?: { [key: string]: unknown }
            | null;
            enabled?: boolean | null;
        };
        Sandbox: components["schemas"]["SandboxConfiguration"] & {
            created_at: string;
            created_by?: string;
            expires_in?: number;
            last_used_at?: string;
            name: string;
            status: components["schemas"]["SandboxStatus"];
            updated_at?: string;
            updated_by?: string;
            url: string;
        };
        SandboxApiPagination: { cursor?: string; has_more: boolean };
        SandboxConfiguration: {
            cpu?: number;
            envs?: components["schemas"]["SandboxEnv"][];
            external_id?: string;
            filesystem?: components["schemas"]["SandboxFilesystem"];
            image?: string;
            labels?: components["schemas"]["SandboxMetadataLabels"];
            lifecycle?: components["schemas"]["SandboxLifecycle"];
            memory?: number;
            ports?: components["schemas"]["SandboxPorts"];
            region?: string;
            volumes?: components["schemas"]["SandboxVolumeAttachment"][];
        };
        SandboxDateExpirationPolicy: {
            action: "DELETE";
            type: "DATE";
            value: string;
        };
        SandboxDuration: string;
        SandboxEnv: { name?: string; secret?: boolean; value?: string };
        SandboxExpirationPolicy:
            | components["schemas"]["SandboxTTLIdleExpirationPolicy"]
            | components["schemas"]["SandboxTTLMaxAgeExpirationPolicy"]
            | components["schemas"]["SandboxDateExpirationPolicy"];
        SandboxFilesystem: { max_memory_usage?: string
        | number };
        SandboxImage: {
            created_at?: string;
            last_deployed_at?: string;
            name: string;
            size?: number;
            status: components["schemas"]["SandboxImageStatus"];
            tag_count?: number;
            updated_at?: string;
        };
        SandboxImageBuildLog: {
            message: string;
            severity: number;
            timestamp: string;
        };
        SandboxImageBuildLogsResponse: {
            logs: components["schemas"]["SandboxImageBuildLog"][];
            total_count: number;
        };
        SandboxImageStatus: "UPLOADING"
        | "BUILDING"
        | "BUILT"
        | "FAILED";
        SandboxImageTag: {
            created_at?: string;
            name: string;
            size?: number;
            updated_at?: string;
        };
        SandboxLibraryImage: {
            categories?: string[];
            coming_soon?: boolean;
            creation_options?: components["schemas"]["SandboxLibraryImageCreationOptions"];
            description?: string;
            display_name?: string;
            enterprise?: boolean;
            hidden?: boolean;
            icon?: string;
            icon_dark?: string;
            icon_light?: string;
            image: string;
            long_description?: string;
            memory?: number;
            name: string;
            ports?: components["schemas"]["SandboxPorts"];
            tags?: string[];
            url?: string;
        };
        SandboxLibraryImageCreationOptions: {
            extra_args?: { [key: string]: string };
            volumes?: components["schemas"]["SandboxLibraryImageVolume"][];
        };
        SandboxLibraryImageVolume: {
            mount_path: string;
            name: string;
            read_only?: boolean;
        };
        SandboxLifecycle: {
            expiration_policies?: components["schemas"]["SandboxExpirationPolicy"][];
            terminated_retention?: components["schemas"]["SandboxDuration"];
        };
        SandboxLogEntry: {
            action?: string;
            message: string;
            severity: number;
            timestamp: string;
            trace_id: string;
        };
        SandboxLogs: {
            end_time: string;
            logs: components["schemas"]["SandboxLogEntry"][];
            next_cursor: string
            | null;
            sandbox_name: string;
            start_time: string;
        };
        SandboxMetadataLabels: { [key: string]: string };
        SandboxMetricDescriptor: {
            kind: "GAUGE" | "COUNTER";
            label_sets: { [key: string]: string }[];
            name: components["schemas"]["SandboxMetricName"];
            unit_hint: "COUNT" | "CORES" | "BYTES";
        };
        SandboxMetricMode: "CURRENT"
        | "SUMMARY"
        | "SERIES";
        SandboxMetricName:
            | "baseten_sandbox_requests_total"
            | "baseten_sandbox_cpu_usage_cores"
            | "baseten_sandbox_memory_bytes";
        SandboxMetrics: {
            end_epoch_millis: number;
            metric_descriptors: components["schemas"]["SandboxMetricDescriptor"][];
            metric_values: components["schemas"]["SandboxMetricValueSet"][];
            mode: components["schemas"]["SandboxMetricMode"];
            start_epoch_millis: number;
            step_seconds: number
            | null;
        };
        SandboxMetricValueSet: {
            start_epoch_millis: number;
            values: (number | null)[][];
        };
        SandboxPort: {
            name?: string;
            protocol?: "HTTP"
            | "TCP"
            | "UDP"
            | "TLS";
            target: number;
        };
        SandboxPorts: components["schemas"]["SandboxPort"][];
        SandboxPreview: components["schemas"]["SandboxPreviewConfiguration"] & {
            created_at?: string;
            created_by?: string;
            name: string;
            port: number;
            region?: string;
            status: components["schemas"]["SandboxPreviewStatus"];
            updated_at?: string;
            updated_by?: string;
            url: string;
        };
        SandboxPreviewConfiguration: {
            expires_at?: string;
            public?: boolean;
            request_headers?: components["schemas"]["SandboxPreviewHeaders"];
            response_headers?: components["schemas"]["SandboxPreviewHeaders"];
        };
        SandboxPreviewHeaders: { [key: string]: string };
        SandboxPreviewStatus:
            | "DEPLOYING"
            | "DEPLOYED"
            | "FAILED"
            | "DELETING"
            | "TERMINATED";
        SandboxPreviewToken: {
            expired: boolean;
            expires_at: string;
            name: string;
            token: string;
        };
        SandboxPreviewTtl: string;
        SandboxRegion: {
            continent: string;
            country: string;
            info_generation: "CARBON";
            location: string;
            name: string;
        };
        SandboxStatus: | "DEPLOYING"
        | "DEPLOYED"
        | "FAILED"
        | "DEACTIVATING"
        | "DEACTIVATED"
        | "DELETING"
        | "TERMINATED"
        | "ARCHIVING"
        | "ARCHIVED"
        | "UNARCHIVING"
        | "BUILDING"
        | "UPLOADING";
        SandboxTTLIdleExpirationPolicy: {
            action: "DELETE";
            type: "TTL_IDLE";
            value: components["schemas"]["SandboxDuration"];
        };
        SandboxTTLMaxAgeExpirationPolicy: {
            action: "DELETE";
            type: "TTL_MAX_AGE";
            value: components["schemas"]["SandboxDuration"];
        };
        SandboxVolume: {
            attached_to?: string;
            created_at?: string;
            created_by?: string;
            labels?: components["schemas"]["SandboxMetadataLabels"];
            name: string;
            region: string;
            size: string
            | number;
            status: components["schemas"]["SandboxVolumeStatus"];
            updated_at?: string;
            updated_by?: string;
        };
        SandboxVolumeAttachment: {
            mount_path: string;
            name: string;
            read_only?: boolean;
        };
        SandboxVolumeStatus: "DEPLOYING"
        | "DEPLOYED"
        | "FAILED"
        | "DELETING";
        SearchTrainingJobsRequest: {
            cursor?: string | null;
            job_id?: string | null;
            limit?: number;
            order_by?: components["schemas"]["OrderBy"][];
            project_id?: string | null;
            statuses?: string[] | null;
        };
        SearchTrainingJobsResponse: {
            pagination: components["schemas"]["PaginationResponse"];
            training_jobs: components["schemas"]["TrainingJob"][];
        };
        Secret: { created_at: string; id: string; name: string; team_name: string };
        SecretReference: { name: string };
        Secrets: { secrets: components["schemas"]["Secret"][] };
        SecretTombstone: { name: string };
        SetVolumeTagRequest: {
            expected_sequence?: number | null;
            expires_at?: string | null;
            tag: string;
            version: string;
        };
        SetVolumeTagResponse: {
            digest: string;
            expires_at: string
            | null;
            namespace: string;
            tag: string;
            version_ref: string;
            volume: string;
            volume_sequence: number;
        };
        SharedEndpointRegion: "UNRESTRICTED"
        | "EU";
        SignalPromotionResponse: { success: boolean };
        SignSSHCertificateRequest: {
            public_key: string;
            replica_id?: string | null;
        };
        SignSSHCertificateResponse: {
            jwt: string;
            proxy_address: string;
            ssh_cert_expires_at: string;
            ssh_certificate: string;
        };
        SortOrder: "asc"
        | "desc";
        StartupAttempt: {
            deployment_id: string | null;
            deployment_name: string;
            duration_ms: number;
            environment_name: string | null;
            model_id: string;
            outcome: components["schemas"]["StartupOutcome"];
            phase_summary: components["schemas"]["StartupPhaseSummary"][];
            ready_at_epoch_millis: number | null;
            replica_id: string | null;
            started_at_epoch_millis: number;
        };
        StartupAttempts: {
            items: components["schemas"]["StartupAttempt"][];
            pagination: components["schemas"]["PaginationResponse"];
            total_count: number;
        };
        StartupOutcome: "SUCCESS"
        | "FAILED"
        | "STALLED";
        StartupPercentiles: {
            mean_ms: number | null;
            p50_ms: number | null;
            p90_ms: number | null;
            p95_ms: number | null;
            p99_ms: number | null;
            sample_count: number;
        };
        StartupPhase: | "SCHEDULING"
        | "IMAGE_PULL"
        | "WEIGHT_DOWNLOAD"
        | "CONTAINER_CREATE"
        | "CONTAINER_START"
        | "READINESS";
        StartupPhasePercentiles: {
            duration_ms: components["schemas"]["StartupPercentiles"];
            phase: components["schemas"]["StartupPhase"];
        };
        StartupPhaseStatus: "COMPLETED"
        | "FAILED";
        StartupPhaseSummary: {
            duration_ms: number | null;
            offset_ms: number;
            phase: components["schemas"]["StartupPhase"];
            status: components["schemas"]["StartupPhaseStatus"];
        };
        StartupSortField: "OUTCOME"
        | "STARTED_AT"
        | "READY_AT"
        | "DURATION";
        StartupSummary: {
            end_epoch_millis: number;
            phase_duration_ms: components["schemas"]["StartupPhasePercentiles"][];
            start_epoch_millis: number;
            total_duration_ms: components["schemas"]["StartupPercentiles"];
        };
        StopTrainingJobRequest: Record<string, unknown>;
        StopTrainingJobResponse: {
            training_job: components["schemas"]["TrainingJob"];
        };
        StorageMetrics: {
            usage_bytes: components["schemas"]["TrainingJobMetric"][];
            utilization: components["schemas"]["TrainingJobMetric"][];
        };
        SupportedModel: {
            enabled: boolean;
            enablement_details: components["schemas"]["EnablementDetails"]
            | null;
            max_context_length: number;
            max_enabled_seq_len: number;
            max_seq_len: number;
            model_name: string;
            serverless: boolean | null;
            supports_vision_language: boolean;
        };
        SyncDeploymentPatchesRequest: Record<string, unknown>;
        SyncDeploymentPatchesResponse: { needs_full_deploy_reason: string | null };
        Team: { created_at: string; default: boolean; id: string; name: string };
        Teams: { teams: components["schemas"]["Team"][] };
        TeamTrainingGpuCapacityItem: {
            baseline: number;
            dedicated_usage_count: number;
            gpu_type: string;
            limit: number;
            spot_usage_count: number;
            team_id: string;
            team_name: string;
            usage_count: number;
        };
        TerminateReplicaResponse: { success: boolean };
        Token: { expires_at: string; token: string };
        TokenScope: "sandboxes";
        ToolCallUsageBucket: {
            calls: number;
            date: string;
            model: string;
            provider: string;
            quantity: number;
            sku: string;
            team_id: string | null;
        };
        ToolCallUsageDimension: "TEAM";
        ToolCallUsageResponse: {
            items?: components["schemas"]["ToolCallUsageBucket"][];
        };
        TrafficRoutingRule: {
            expires_at: string;
            id: string;
            percent_traffic: number;
            propagate_client_cancellation: boolean;
            sampling_mode: components["schemas"]["TrafficRoutingRuleShadowSamplingMode"];
            targets: components["schemas"]["TrafficRoutingTarget"][];
            type: "SHADOW";
        };
        TrafficRoutingRuleShadowSamplingMode: "RANDOM"
        | "USER_SESSION";
        TrafficRoutingRuleUpsert: {
            expires_at: string;
            id?: string | null;
            percent_traffic: number;
            propagate_client_cancellation: boolean;
            sampling_mode: components["schemas"]["TrafficRoutingRuleShadowSamplingMode"];
            targets: components["schemas"]["TrafficRoutingTargetUpsert"][];
            type: "SHADOW";
        };
        TrafficRoutingTarget: {
            deployment_id: string
            | null;
            environment: string | null;
            model_id: string;
        };
        TrafficRoutingTargetUpsert: {
            deployment_id?: string
            | null;
            environment?: string | null;
        };
        TrainerCheckpointTarget: "sampler"
        | "trainer";
        TrainingGpuCapacityItem: {
            baseline: number;
            dedicated_usage_count: number;
            gpu_type: string;
            limit: number;
            spot_usage_count: number;
            usage_count: number;
        };
        TrainingItem: {
            billable_resource: components["schemas"]["BillableResource"];
            daily?: components["schemas"]["DailyTrainingUsage"][];
            minutes: number;
            subtotal: number
            | string;
        };
        TrainingJob: {
            availability_model: components["schemas"]["AvailabilityModel"];
            checkpoint_sync_status: | components["schemas"]["CheckpointSyncStatus"]
            | null;
            created_at: string;
            current_status: string;
            error_message: string
            | null;
            id: string;
            instance_type: components["schemas"]["InstanceType"];
            name: string | null;
            node_count: number;
            priority: number;
            training_project: components["schemas"]["TrainingProjectSummary"];
            training_project_id: string;
            updated_at: string;
            user: components["schemas"]["User"] | null;
        };
        TrainingJobCheckpoint: {
            base_model: string
            | null;
            checkpoint_id: string;
            checkpoint_type: string;
            created_at: string;
            lora_adapter_config: { [key: string]: unknown } | null;
            size_bytes: number;
            sync_status: string | null;
            training_job_id: string;
        };
        TrainingJobMetric: { timestamp: string; value: number };
        TrainingJobMetrics: {
            cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][];
            cpu_usage: components["schemas"]["TrainingJobMetric"][];
            ephemeral_storage: components["schemas"]["StorageMetrics"];
            gpu_memory_usage_bytes: {
                [key: string]: { timestamp: string; value: number }[];
            };
            gpu_utilization: { [key: string]: { timestamp: string; value: number }[] };
        };
        TrainingJobNodeMetrics: {
            metrics: components["schemas"]["TrainingJobMetrics"];
            node_id: string;
        };
        TrainingJobTombstone: {
            deleted: boolean;
            id: string;
            training_project_id: string;
        };
        TrainingProject: {
            created_at: string;
            id: string;
            latest_job: components["schemas"]["TrainingJob"]
            | null;
            name: string;
            project_accelerator: string | null;
            team_name: string | null;
            updated_at: string;
        };
        TrainingProjectSummary: { id: string; name: string };
        TrainingProjectTombstone: { deleted: boolean; id: string };
        TrainingUsage: {
            breakdown?: components["schemas"]["TrainingItem"][];
            credits_used: number | string;
            minutes: number;
            subtotal: number | string;
            total: number | string;
        };
        TrainingWeightAuth: {
            auth_method: components["schemas"]["AuthMethod"];
            auth_secret_name?: string
            | null;
            aws_assume_role_arn?: string | null;
            aws_assume_role_region?: string | null;
            aws_oidc_region?: string | null;
            aws_oidc_role_arn?: string | null;
            gcp_oidc_service_account?: string | null;
            gcp_oidc_workload_id_provider?: string | null;
        };
        TrussUserEnv: {
            git_info?: components["schemas"]["GitInfo"]
            | null;
            is_frontend_deployment?: boolean;
            is_library_deployment?: boolean;
            mypy_version?: string | null;
            pydantic_version?: string | null;
            python_version?: string | null;
            truss_client_version?: string | null;
        };
        TTSBenchmarkMetrics: {
            cost_per_audio_minute_usd?: number
            | null;
            max_concurrent_streams_at_rtf1?: number | null;
            ttft_ms_p50?: number | null;
            ttft_ms_p50_at_max_concurrency?: number | null;
        };
        UpdateAutoscalingScheduleSettings: {
            delete_schedules?: string[];
            schedules?: (
                | components["schemas"]["AutoscalingScheduleUpsert"]
                | components["schemas"]["OneTimeAutoscalingScheduleUpsert"]
            )[];
            timezone?: string
            | null;
        };
        UpdateAutoscalingSettings: {
            autoscaling_window?: number
            | null;
            concurrency_target?: number | null;
            max_replica?: number | null;
            max_scale_down_rate?: number | null;
            min_replica?: number | null;
            scale_down_delay?: number | null;
            target_in_flight_tokens?: number | null;
            target_utilization_percentage?: number | null;
        };
        UpdateAutoscalingSettingsResponse: {
            message: string;
            status: components["schemas"]["UpdateAutoscalingSettingsStatus"];
        };
        UpdateAutoscalingSettingsStatus: "ACCEPTED"
        | "QUEUED"
        | "UNCHANGED";
        UpdateChainEnvironmentRequest: {
            promotion_settings?:
                | components["schemas"]["UpdatePromotionSettings"]
                | null;
        };
        UpdateChainEnvironmentResponse: { ok: boolean };
        UpdateChainletEnvironmentAutoscalingSettingsRequest: {
            updates: components["schemas"]["ChainletEnvironmentAutoscalingSettingsUpdate"][];
        };
        UpdateChainletEnvironmentInstanceTypeRequest: {
            updates: components["schemas"]["ChainletEnvironmentInstanceTypeUpdate"][];
        };
        UpdateChainletEnvironmentInstanceTypeResponse: {
            chain_deployment: components["schemas"]["ChainDeployment"]
            | null;
            chainlet_environment_settings: components["schemas"]["ChainletEnvironmentSettings"][];
            requires_redeployment: boolean;
        };
        UpdateDeploymentRequest: { name?: string
        | null };
        UpdateEndpointRequest: {
            targets?: components["schemas"]["EndpointTargetRequest"][] | null;
        };
        UpdateEnvironmentGroupManageAccess: {
            is_restricted: boolean;
            user_ids?: string[];
        };
        UpdateEnvironmentGroupRequest: {
            manage_access?: | components["schemas"]["UpdateEnvironmentGroupManageAccess"]
            | null;
        };
        UpdateEnvironmentRequest: {
            autoscaling_schedule_settings?: | components["schemas"]["UpdateAutoscalingScheduleSettings"]
            | null;
            autoscaling_settings?: | components["schemas"]["UpdateAutoscalingSettings"]
            | null;
            promotion_settings?: | components["schemas"]["UpdateModelPromotionSettings"]
            | null;
            request_backpressure_settings?: | components["schemas"]["UpdateRequestBackpressureSettings"]
            | null;
            traffic_routing_settings?: | components["schemas"]["UpdateTrafficRoutingSettings"]
            | null;
        };
        UpdateEnvironmentResponse: {
            environment: components["schemas"]["Environment"];
            message: string;
            status: components["schemas"]["UpdateAutoscalingSettingsStatus"];
        };
        UpdateGridConnectionRequest: {
            config: | components["schemas"]["UpsertGridConnectionConfigAnthropic"]
            | components["schemas"]["UpsertGridConnectionConfigOpenAI"]
            | components["schemas"]["UpsertGridConnectionConfigXAI"]
            | components["schemas"]["UpsertGridConnectionConfigVertex"]
            | components["schemas"]["UpsertGridConnectionConfigBedrock"];
        };
        UpdateGridHarnessDefaults: {
            claude_code?: components["schemas"]["UpdateGridHarnessModels"]
            | null;
            codex?: components["schemas"]["UpdateGridHarnessModels"] | null;
            opencode?: components["schemas"]["UpdateGridHarnessModels"] | null;
            pi?: components["schemas"]["UpdateGridHarnessModels"] | null;
        };
        UpdateGridHarnessModels: {
            background?: string
            | null;
            primary?: string | null;
        };
        UpdateGridMachineUserRequest: { name?: string
        | null };
        UpdateGridRouteRequest: {
            description?: string | null;
            display_name?: string | null;
            target?:
                | | components["schemas"]["UpsertGridRouteTargetBasetenModelAPI"]
                | components["schemas"]["UpsertGridRouteTargetConnection"]
                | components["schemas"]["UpsertGridRouteTargetClassifier"]
                | null;
        };
        UpdateGridSpendLimitSetting: {
            month_override_usd?: string
            | null;
            user_monthly_limit_usd?: string | null;
        };
        UpdateGridTeamSettingsRequest: {
            harness_defaults?: | components["schemas"]["UpdateGridHarnessDefaults"]
            | null;
            spend_limit?: | components["schemas"]["UpdateGridTeamSpendLimitSetting"]
            | null;
            team_id?: string
            | null;
        };
        UpdateGridTeamSpendLimitSetting: {
            per_member_monthly_limit_usd?: string
            | null;
            team_wide_monthly_limit_usd?: string | null;
        };
        UpdateGridUserSettingsRequest: {
            spend_limit?: | components["schemas"]["UpdateGridSpendLimitSetting"]
            | null;
            team_id?: string
            | null;
        };
        UpdateGroupMetadata: { name?: string
        | null };
        UpdateGroupRequest: {
            metadata?: components["schemas"]["UpdateGroupMetadata"] | null;
            models?: components["schemas"]["ModelConfig"][] | null;
        };
        UpdateLibraryListingRequest: {
            display_name?: string
            | null;
            is_listed?: boolean | null;
            is_public?: boolean | null;
            metadata?: components["schemas"]["LibraryListingMetadata"] | null;
            trending?: boolean | null;
        };
        UpdateLibraryListingVersionRequest: {
            allow_truss_download?: boolean
            | null;
            benchmark?: components["schemas"]["BenchmarkSnapshot"] | null;
            is_live?: boolean | null;
        };
        UpdateModelPromotionSettings: {
            promotion_cleanup_strategy?: | components["schemas"]["PromotionCleanupStrategy"]
            | null;
            ramp_up_duration_seconds?: number
            | null;
            ramp_up_while_promoting?: boolean | null;
            redeploy_on_promotion?: boolean | null;
            rolling_deploy?: boolean | null;
            rolling_deploy_config?:
                | components["schemas"]["UpdateRollingDeployConfig"]
                | null;
        };
        UpdateModelRequest: { name?: string
        | null };
        UpdatePromotionSettings: {
            promotion_cleanup_strategy?:
                | components["schemas"]["PromotionCleanupStrategy"]
                | null;
            ramp_up_duration_seconds?: number
            | null;
            ramp_up_while_promoting?: boolean | null;
            redeploy_on_promotion?: boolean | null;
            rolling_deploy?: boolean | null;
            rolling_deploy_config?:
                | components["schemas"]["UpdateRollingDeployConfig"]
                | null;
        };
        UpdateRequestBackpressureSettings: {
            policy?: components["schemas"]["RequestBackpressurePolicy"]
            | null;
        };
        UpdateRollingDeployConfig: {
            max_surge_percent?: number
            | null;
            max_unavailable_percent?: number | null;
            replica_overhead_percent?: number | null;
            rolling_deploy_strategy?:
                | components["schemas"]["RollingDeployStrategy"]
                | null;
            stabilization_time_seconds?: number
            | null;
        };
        UpdateSandboxParams: { team_id?: string };
        UpdateSandboxPreviewParams: { team_id?: string };
        UpdateSandboxPreviewRequest: components["schemas"]["SandboxPreviewConfiguration"] & {
            ttl?: components["schemas"]["SandboxPreviewTtl"];
        };
        UpdateSandboxRequest: {
            envs?: components["schemas"]["SandboxEnv"][];
            external_id?: string;
            labels?: components["schemas"]["SandboxMetadataLabels"];
            lifecycle?: components["schemas"]["SandboxLifecycle"];
        };
        UpdateSandboxVolumeParams: { team_id?: string };
        UpdateSandboxVolumeRequest: {
            labels?: components["schemas"]["SandboxMetadataLabels"];
            size?: string | number;
        };
        UpdateTrafficRoutingSettings: {
            delete_rules?: string[];
            rules?: components["schemas"]["TrafficRoutingRuleUpsert"][];
        };
        UpdateTrainingJobRequest: {
            availability_model?: components["schemas"]["AvailabilityModel"]
            | null;
            priority?: number | null;
        };
        UpdateTrainingJobResponse: {
            training_job: components["schemas"]["TrainingJob"];
        };
        UpsertGridConnectionBedrockAccessKeysAuth: { method: "access_keys" };
        UpsertGridConnectionBedrockApiKeyAuth: { method: "api_key" };
        UpsertGridConnectionConfigAnthropic: {
            provider: "ANTHROPIC";
            secret_name: string;
        };
        UpsertGridConnectionConfigBedrock: {
            auth: | components["schemas"]["UpsertGridConnectionBedrockApiKeyAuth"]
            | components["schemas"]["UpsertGridConnectionBedrockAccessKeysAuth"];
            provider: "BEDROCK";
            region: string;
            secret_name: string;
        };
        UpsertGridConnectionConfigOpenAI: {
            provider: "OPENAI";
            secret_name: string;
        };
        UpsertGridConnectionConfigVertex: {
            location: string;
            project_id: string;
            provider: "VERTEX";
            secret_name: string;
        };
        UpsertGridConnectionConfigXAI: { provider: "XAI"; secret_name: string };
        UpsertGridRouteTargetBasetenModelAPI: {
            model: string;
            type: "BASETEN_MODEL_API";
        };
        UpsertGridRouteTargetClassifier: {
            allowed_route_ids: string[];
            classifier_id: string;
            default_route_id: string;
            type: "CLASSIFIER";
        };
        UpsertGridRouteTargetConnection: {
            connection_id: string;
            model: string;
            type: "CONNECTION";
        };
        UpsertSecretRequest: { name: string; value: string };
        UpsertTrainingProject: {
            name: string;
            project_accelerator?: string | null;
        };
        UpsertTrainingProjectRequest: {
            training_project: components["schemas"]["UpsertTrainingProject"];
        };
        UpsertTrainingProjectResponse: {
            training_project: components["schemas"]["TrainingProject"];
        };
        UsageDimension: "api_key"
        | "user"
        | "model"
        | "team";
        UsageLimit: {
            threshold: number;
            type: components["schemas"]["LimitType"];
            unit: components["schemas"]["UsageLimitUnit"];
        };
        UsageLimitUnit: "DAY";
        UsageSummary: {
            dedicated_usage: components["schemas"]["DedicatedUsage"]
            | null;
            loops_usage: components["schemas"]["LoopsUsage"] | null;
            model_apis_usage: components["schemas"]["ModelApisUsage"] | null;
            training_usage: components["schemas"]["TrainingUsage"] | null;
        };
        User: { email: string
        | null };
        UserInfo: {
            email: string | null;
            name: string | null;
            user_id: string;
            workspace_name: string | null;
        };
        UsersResponse: {
            items: components["schemas"]["UserInfo"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        V1InteractiveSessionAuthProvider: "github"
        | "microsoft";
        V1InteractiveSessionProvider: "vs_code" | "cursor" | "ssh";
        V1InteractiveSessionTrigger: "on_startup" | "on_failure" | "on_demand";
        ValidateLoopsCheckpointRequest: {
            checkpoint_path: string;
            run_id?: string | null;
        };
        ValidateLoopsCheckpointResponse: Record<string, unknown>;
        VertexTargetConfig: { location: string; project_id: string };
        Volume: {
            expires_at: string | null;
            head: components["schemas"]["VolumeVersionSummary"] | null;
            name: string;
            namespace: string;
            sequence: number;
            tag_count: number;
            tags: components["schemas"]["VolumeTag"][];
            updated_at: string;
            version_ref: string;
            versions_alive: number;
            versions_earliest_expires_at: string | null;
            versions_expiring: number;
            versions_tombstoned: number;
            versions_untagged: number;
        };
        VolumeSync: {
            completed_at: string
            | null;
            content_digest: string | null;
            created_at: string;
            destination: components["schemas"]["VolumeSyncDestination"];
            error: components["schemas"]["VolumeSyncError"] | null;
            source:
                | components["schemas"]["VolumeSyncSourceHuggingFace"]
                | components["schemas"]["VolumeSyncSourceS3"]
                | components["schemas"]["VolumeSyncSourceGCS"]
                | components["schemas"]["VolumeSyncSourceAzure"]
                | components["schemas"]["VolumeSyncSourceR2"]
                | components["schemas"]["VolumeSyncSourceCoreWeave"]
                | components["schemas"]["VolumeSyncSourceBasetenTraining"];
            status: components["schemas"]["VolumeSyncStatus"];
            sync_id: string;
            total_size_bytes: number
            | null;
            version_ref: string | null;
            volume_version_id: string | null;
        };
        VolumeSyncAuthenticationAWSAssumeRole: { region: string; role_arn: string };
        VolumeSyncAuthenticationAWSOIDC: { region: string; role_arn: string };
        VolumeSyncAuthenticationGCPOIDC: {
            service_account: string;
            workload_identity_provider: string;
        };
        VolumeSyncAuthenticationHuggingFaceOIDC: { resource: string };
        VolumeSyncDestination: { ref: string };
        VolumeSyncError: { code: string; message: string };
        VolumeSyncs: {
            items: components["schemas"]["VolumeSync"][];
            pagination: components["schemas"]["PaginationResponse"];
        };
        VolumeSyncSourceAzure: {
            auth_secret_name?: string
            | null;
            exclude?: string[];
            include?: string[];
            type: "AZURE";
            uri: string;
        };
        VolumeSyncSourceBasetenTraining: {
            exclude?: string[];
            include?: string[];
            type: "BASETEN_TRAINING";
            uri: string;
        };
        VolumeSyncSourceCoreWeave: {
            auth_secret_name?: string
            | null;
            exclude?: string[];
            include?: string[];
            type: "COREWEAVE";
            uri: string;
        };
        VolumeSyncSourceGCS: {
            auth_secret_name?: string
            | null;
            exclude?: string[];
            gcp_oidc?: components["schemas"]["VolumeSyncAuthenticationGCPOIDC"] | null;
            include?: string[];
            type: "GCS";
            uri: string;
        };
        VolumeSyncSourceHuggingFace: {
            auth_secret_name?: string
            | null;
            exclude?: string[];
            hf_oidc?:
                | components["schemas"]["VolumeSyncAuthenticationHuggingFaceOIDC"]
                | null;
            include?: string[];
            type: "HUGGING_FACE";
            uri: string;
        };
        VolumeSyncSourceR2: {
            auth_secret_name?: string
            | null;
            exclude?: string[];
            include?: string[];
            type: "R2";
            uri: string;
        };
        VolumeSyncSourceS3: {
            auth_secret_name?: string
            | null;
            aws_assume_role?:
                | components["schemas"]["VolumeSyncAuthenticationAWSAssumeRole"]
                | null;
            aws_oidc?: components["schemas"]["VolumeSyncAuthenticationAWSOIDC"]
            | null;
            exclude?: string[];
            include?: string[];
            type: "S3";
            uri: string;
        };
        VolumeSyncStatus: "PENDING"
        | "SYNCING"
        | "READY"
        | "FAILED"
        | "CANCELED";
        VolumeTag: { digest: string; expires_at: string | null; name: string };
        VolumeTokenScope: "PULL" | "INSPECT" | "PUSH" | "TAG";
        VolumeVersion: {
            created_at: string;
            delete_after: string | null;
            digest: string;
            expires_at: string | null;
            is_head: boolean;
            lifecycle: string;
            namespace: string;
            sequence: number | null;
            tags: string[];
            tombstoned_at: string | null;
            total_size_bytes: number | null;
            version_ref: string;
            volume: string;
        };
        VolumeVersionDetail: {
            created_at: string;
            delete_after: string
            | null;
            digest: string;
            entry_count: number | null;
            expires_at: string | null;
            is_head: boolean;
            lifecycle: string;
            namespace: string;
            sequence: number | null;
            tags: string[];
            tombstoned_at: string | null;
            total_size_bytes: number | null;
            version_ref: string;
            volume: string;
            volume_sequence: number;
        };
        VolumeVersionSummary: {
            created_at: string;
            digest: string;
            total_size_bytes: number;
        };
    }

    Type Declaration

    • ActivateResponse: { no_op: boolean; success: boolean }

      ActivateResponseV1

      The response to a request to activate a deployment.

      • no_op: boolean

        No Op

        Whether the request did nothing because the deployment was already active or on its way to becoming active

        false
        
      • success: boolean

        Success

        Whether the deployment was successfully activated

        true
        
    • ActiveJobAtSubmit: {
          instance_type_name: string;
          status_at_submit: string;
          status_set_at: string;
          total_gpus: number;
          training_job_id: string;
          training_job_name: string | null;
          workload_plane_name: string;
      }

      ActiveJobAtSubmitV1

      One other job in the same (org, gpu_type) pool that was holding GPU capacity at the moment the target was submitted.

      • instance_type_name: string

        Instance Type Name

        Instance type of the other job

      • status_at_submit: string

        Status At Submit

        Other job's status as of submitted_at (one of ACTIVE_STATES)

      • status_set_at: string

        Status Set At Format: date-time

        When that status was set

      • total_gpus: number

        Total Gpus

        gpu_count * effective_node_count

      • training_job_id: string

        Training Job Id

        Hashid of the other training job

      • training_job_name: string | null

        Training Job Name

        Other job's name

        null
        
      • workload_plane_name: string

        Workload Plane Name

        Workload plane the other job was on

    • APIKey: { api_key: string }

      APIKeyV1

      Represents an API key.

      • api_key: string

        Api Key

        The API key string

    • APIKeyCategory:
          | "PERSONAL"
          | "GRID"
          | "WORKSPACE_MANAGE_ALL"
          | "WORKSPACE_EXPORT_METRICS"
          | "WORKSPACE_INVOKE"
          | "WORKSPACE_MANAGE_API_KEYS"

      APIKeyCategory

      Enum representing the category of an API key.

    • APIKeyInfo: {
          created_at: string;
          expires_at: string | null;
          last_used_at: string | null;
          model_ids: string[] | null;
          name: string | null;
          owner: components["schemas"]["APIKeyOwner"] | null;
          prefix: string;
          team_name: string | null;
          type: components["schemas"]["APIKeyCategory"];
      }

      APIKeyInfoV1

      Represents the metadata of an API key.

      • created_at: string

        Created At Format: date-time

        Creation time in ISO 8601 format

      • expires_at: string | null

        Expires At

        Expiry time in ISO 8601 format, or null if the key never expires.

        null
        
      • last_used_at: string | null

        Last Used At

        Last recorded use in ISO 8601 format, or null if unavailable. Updates may be delayed.

        null
        
      • model_ids: string[] | null

        Model Ids

        List of model IDs to scope the API key to, only present if type is 'WORKSPACE_EXPORT_METRICS' or 'WORKSPACE_INVOKE'

        null
        
        [
        "aaaaaaaa"
        ]
      • name: string | null

        Name

        Optional name for the API key

        null
        
        my-api-key
        
      • owner: components["schemas"]["APIKeyOwner"] | null

        The user who owns the API key. Only present for personal API keys.

        null
        
      • prefix: string

        Prefix

        The prefix of the API key

      • team_name: string | null

        Team Name

        The name of the team associated with the API key

        null
        
      • type: components["schemas"]["APIKeyCategory"]

        Type of the API key.

        PERSONAL
        
        GRID
        
        WORKSPACE_MANAGE_API_KEYS
        
        WORKSPACE_EXPORT_METRICS
        
        WORKSPACE_INVOKE
        
        WORKSPACE_MANAGE_ALL
        
    • APIKeyOwner: { email: string | null; name: string | null; user_id: string }

      APIKeyOwnerV1

      The user who owns a personal API key.

      • email: string | null

        Email

        Email address of the user

        null
        
      • name: string | null

        Name

        Display name of the user

        null
        
      • user_id: string

        User Id

        Unique identifier for the user

    • APIKeys: { keys: components["schemas"]["APIKeyInfo"][] }

      APIKeysV1

      A list of API keys.

    • APIKeyTombstone: { prefix: string }

      APIKeyTombstoneV1

      An API key tombstone.

      • prefix: string

        Prefix

        Unique prefix of the API key

    • AuditLogActor: {
          api_key_name: string | null;
          api_key_prefix: string | null;
          email: string | null;
          type: components["schemas"]["AuditLogActorType"];
      }

      AuditLogActorV1

      The actor that performed an audited action.

      • api_key_name: string | null

        Api Key Name

        Display name of the acting API key, when the actor is an API key.

        null
        
      • api_key_prefix: string | null

        Api Key Prefix

        Prefix of the acting API key, when the actor is an API key.

        null
        
      • email: string | null

        Email

        Email of the acting user, when the actor is a user.

        null
        
      • type: components["schemas"]["AuditLogActorType"]

        Kind of actor that performed the action.

    • AuditLogActorType: "USER" | "API_KEY" | "BASETEN_USER" | "BASETEN_SYSTEM" | "TOMBSTONE_USER"

      AuditLogActorTypeV1

      Kind of actor that performed an audited action.

    • AuditLogApiKeyRevocationReason: "INACTIVITY"

      AuditLogApiKeyRevocationReasonV1

      Reason an API key was revoked.

    • AuditLogApiKeyType:
          | "PERSONAL"
          | "CREATOR_SERVICE_ACCOUNT"
          | "MANAGE_API_KEYS_SERVICE_ACCOUNT"
          | "INVOKE_ALL_MODELS_SERVICE_ACCOUNT"
          | "INVOKE_ALLOWED_MODELS_SERVICE_ACCOUNT"
          | "INVOKE_SCOPED_ENVS_AND_MODELS_SERVICE_ACCOUNT"
          | "EXPORT_METRICS_ALL_MODELS_SERVICE_ACCOUNT"
          | "EXPORT_METRICS_ALLOWED_MODELS_SERVICE_ACCOUNT"
          | "INVOKE_ALL_SHARED_ENDPOINTS_SERVICE_ACCOUNT"
          | "INVOKE_ALLOWED_SHARED_ENDPOINTS_SERVICE_ACCOUNT"
          | "INVOKE_ALL_ROUTES"

      AuditLogApiKeyTypeV1

      Type of API key recorded on an API-key event.

    • AuditLogEntry: {
          actor: components["schemas"]["AuditLogActor"];
          client_name: string | null;
          client_session_id: string | null;
          client_version: string | null;
          created: string;
          event_data:
              | components["schemas"]["AuditLogEventModelDeployed"]
              | components["schemas"]["AuditLogEventModelDeploymentActivated"]
              | components["schemas"]["AuditLogEventModelDeploymentDeactivated"]
              | components["schemas"]["AuditLogEventModelDeploymentRetried"]
              | components["schemas"]["AuditLogEventModelDeploymentPromoted"]
              | components["schemas"]["AuditLogEventModelDeploymentAutoscalingSettingsChanged"]
              | components["schemas"]["AuditLogEventModelDeploymentRequestBackpressureSettingsChanged"]
              | components["schemas"]["AuditLogEventModelDeploymentInstanceTypeChanged"]
              | components["schemas"]["AuditLogEventModelDeploymentDeleted"]
              | components["schemas"]["AuditLogEventModelDeleted"]
              | components["schemas"]["AuditLogEventModelRenamed"]
              | components["schemas"]["AuditLogEventChainDeployed"]
              | components["schemas"]["AuditLogEventChainDeploymentActivated"]
              | components["schemas"]["AuditLogEventChainDeploymentDeactivated"]
              | components["schemas"]["AuditLogEventChainDeploymentPromoted"]
              | components["schemas"]["AuditLogEventChainletAutoscalingSettingsChanged"]
              | components["schemas"]["AuditLogEventChainletInstanceTypeChanged"]
              | components["schemas"]["AuditLogEventChainDeploymentDeleted"]
              | components["schemas"]["AuditLogEventChainDeleted"]
              | components["schemas"]["AuditLogEventChainEnvironmentCreated"]
              | components["schemas"]["AuditLogEventChainEnvironmentUpdated"]
              | components["schemas"]["AuditLogEventSecretUpdated"]
              | components["schemas"]["AuditLogEventSecretDeleted"]
              | components["schemas"]["AuditLogEventApiKeyCreated"]
              | components["schemas"]["AuditLogEventApiKeyDeleted"]
              | components["schemas"]["AuditLogEventApiKeyLifetimeLimitsUpdated"]
              | components["schemas"]["AuditLogEventGatewayEndpointCreated"]
              | components["schemas"]["AuditLogEventGatewayEndpointUpdated"]
              | components["schemas"]["AuditLogEventGatewayEndpointDeleted"]
              | components["schemas"]["AuditLogEventProviderConnectionCreated"]
              | components["schemas"]["AuditLogEventProviderConnectionUpdated"]
              | components["schemas"]["AuditLogEventProviderConnectionDeleted"]
              | components["schemas"]["AuditLogEventGridMachineUserCreated"]
              | components["schemas"]["AuditLogEventGridMachineUserUpdated"]
              | components["schemas"]["AuditLogEventGridMachineUserDeleted"]
              | components["schemas"]["AuditLogEventUserInvited"]
              | components["schemas"]["AuditLogEventUserJoinedOrganization"]
              | components["schemas"]["AuditLogEventWebhookSigningSecretCreated"]
              | components["schemas"]["AuditLogEventWebhookSigningSecretRotated"]
              | components["schemas"]["AuditLogEventWebhookSigningSecretDeleted"]
              | components["schemas"]["AuditLogEventUserRoleUpdated"]
              | components["schemas"]["AuditLogEventUserTeamRoleUpdated"]
              | components["schemas"]["AuditLogEventUserRemoved"]
              | components["schemas"]["AuditLogEventDirectoryGroupRoleUpdated"]
              | components["schemas"]["AuditLogEventRequireGroupBasedAdminsEnabled"]
              | components["schemas"]["AuditLogEventEnvironmentCreated"]
              | components["schemas"]["AuditLogEventEnvironmentUpdated"]
              | components["schemas"]["AuditLogEventEnvironmentDeleted"]
              | components["schemas"]["AuditLogEventReplicaTerminated"]
              | components["schemas"]["AuditLogEventModelPromotionControlAction"]
              | components["schemas"]["AuditLogEventSshCertificateSigned"]
              | components["schemas"]["AuditLogEventVolumeDeleted"]
              | components["schemas"]["AuditLogEventVolumeVersionDeleted"]
              | components["schemas"]["AuditLogEventVolumeVersionRestored"]
              | components["schemas"]["AuditLogEventVolumeTagSet"]
              | components["schemas"]["AuditLogEventVolumeTagDeleted"]
              | components["schemas"]["AuditLogEventVolumeUpdated"]
              | components["schemas"]["AuditLogEventTelemetryExportCreated"]
              | components["schemas"]["AuditLogEventTelemetryExportUpdated"]
              | components["schemas"]["AuditLogEventTelemetryExportDeleted"];
          event_type: components["schemas"]["AuditLogEventType"];
          id: string;
          source: components["schemas"]["AuditLogSource"]
          | null;
      }

      AuditLogEntryV1

      A single audit-log entry.

    • AuditLogEventApiKeyCreated: {
          api_key_id: string;
          api_key_type: components["schemas"]["AuditLogApiKeyType"];
          event_type: "API_KEY_CREATED";
          prefix: string;
      }

      AuditLogEventApiKeyCreatedV1

      An API key was created.

      • api_key_id: string

        Api Key Id

      • api_key_type: components["schemas"]["AuditLogApiKeyType"]
      • event_type: "API_KEY_CREATED"

        discriminator enum property added by openapi-typescript

      • prefix: string

        Prefix

    • AuditLogEventApiKeyDeleted: {
          api_key_id: string;
          api_key_type: components["schemas"]["AuditLogApiKeyType"];
          event_type: "API_KEY_DELETED";
          prefix: string;
          revocation_reason:
              | components["schemas"]["AuditLogApiKeyRevocationReason"]
              | null;
      }

      AuditLogEventApiKeyDeletedV1

      An API key was revoked.

      • api_key_id: string

        Api Key Id

      • api_key_type: components["schemas"]["AuditLogApiKeyType"]
      • event_type: "API_KEY_DELETED"

        discriminator enum property added by openapi-typescript

      • prefix: string

        Prefix

      • revocation_reason: components["schemas"]["AuditLogApiKeyRevocationReason"] | null
        null
        
    • AuditLogEventApiKeyLifetimeLimitsUpdated: {
          event_type: "API_KEY_LIFETIME_LIMITS_UPDATED";
          new_personal_limit_days: number | null;
          new_team_limit_days: number | null;
          organization_id: string;
          previous_personal_limit_days: number | null;
          previous_team_limit_days: number | null;
      }

      AuditLogEventApiKeyLifetimeLimitsUpdatedV1

      An administrator updated the organization's API key lifetime limits.

      • event_type: "API_KEY_LIFETIME_LIMITS_UPDATED"

        discriminator enum property added by openapi-typescript

      • new_personal_limit_days: number | null

        New Personal Limit Days

      • new_team_limit_days: number | null

        New Team Limit Days

      • organization_id: string

        Organization Id

      • previous_personal_limit_days: number | null

        Previous Personal Limit Days

      • previous_team_limit_days: number | null

        Previous Team Limit Days

    • AuditLogEventAutoscalingScheduleAction: "CREATED" | "UPDATED" | "DELETED" | "UNCHANGED"

      AuditLogEventAutoscalingScheduleActionV1

      What an autoscaling change did to one schedule.

    • AuditLogEventAutoscalingScheduleChange: {
          action: components["schemas"]["AuditLogEventAutoscalingScheduleAction"];
          current:
              | components["schemas"]["AuditLogEventAutoscalingScheduleSettings"]
              | null;
          previous: | components["schemas"]["AuditLogEventAutoscalingScheduleSettings"]
          | null;
          schedule_id: string;
      }

      AuditLogEventAutoscalingScheduleChangeV1

      What an autoscaling change did to one schedule, and the schedule on either side of it. previous is null on a create, current on a delete, and an unchanged schedule carries only current. Not itself a payload in the discriminated union.

    • AuditLogEventAutoscalingScheduleOperations: {
          delete_schedule_ids: string[];
          schedules: components["schemas"]["AuditLogEventAutoscalingScheduleUpsert"][];
          timezone: string | null;
      }

      AuditLogEventAutoscalingScheduleOperationsV1

      The autoscaling schedule changes a request asked for. Not itself a union payload.

      • delete_schedule_ids: string[]

        Delete Schedule Ids

      • schedules: components["schemas"]["AuditLogEventAutoscalingScheduleUpsert"][]

        Schedules

      • timezone: string | null

        Timezone

    • AuditLogEventAutoscalingScheduleSettings: {
          autoscaling_window: number | null;
          cadence: string;
          concurrency_target: number | null;
          enabled: boolean;
          end_at: string | null;
          end_hour: number | null;
          end_minute: number | null;
          max_replica: number;
          max_scale_down_rate: number | null;
          min_replica: number;
          scale_down_delay: number | null;
          schedule_name: string;
          start_at: string | null;
          start_hour: number | null;
          start_minute: number | null;
          target_in_flight_tokens: number | null;
          target_utilization_percentage: number | null;
          timezone: string;
          weekdays: string[] | null;
      }

      AuditLogEventAutoscalingScheduleSettingsV1

      One autoscaling schedule's timing and autoscaling settings. Not itself a union payload.

      • autoscaling_window: number | null

        Autoscaling Window

      • cadence: string

        Cadence

      • concurrency_target: number | null

        Concurrency Target

      • enabled: boolean

        Enabled

      • end_at: string | null

        End At

        null
        
      • end_hour: number | null

        End Hour

      • end_minute: number | null

        End Minute

      • max_replica: number

        Max Replica

      • max_scale_down_rate: number | null

        Max Scale Down Rate

      • min_replica: number

        Min Replica

      • scale_down_delay: number | null

        Scale Down Delay

      • schedule_name: string

        Schedule Name

      • start_at: string | null

        Start At

        null
        
      • start_hour: number | null

        Start Hour

      • start_minute: number | null

        Start Minute

      • target_in_flight_tokens: number | null

        Target In Flight Tokens

      • target_utilization_percentage: number | null

        Target Utilization Percentage

      • timezone: string

        Timezone

      • weekdays: string[] | null

        Weekdays

    • AuditLogEventAutoscalingScheduleUpsert: {
          autoscaling_window: number | null;
          cadence: string;
          concurrency_target: number | null;
          enabled: boolean;
          end_at: string | null;
          end_hour: number | null;
          end_minute: number | null;
          max_replica: number;
          max_scale_down_rate: number | null;
          min_replica: number;
          scale_down_delay: number | null;
          schedule_id: string | null;
          schedule_name: string;
          start_at: string | null;
          start_hour: number | null;
          start_minute: number | null;
          target_in_flight_tokens: number | null;
          target_utilization_percentage: number | null;
          timezone: string | null;
          weekdays: string[] | null;
      }

      AuditLogEventAutoscalingScheduleUpsertV1

      One schedule a request creates (schedule_id null) or replaces. timezone is the request's, null when it keeps the environment's. Not itself a union payload.

      • autoscaling_window: number | null

        Autoscaling Window

      • cadence: string

        Cadence

      • concurrency_target: number | null

        Concurrency Target

      • enabled: boolean

        Enabled

      • end_at: string | null

        End At

        null
        
      • end_hour: number | null

        End Hour

      • end_minute: number | null

        End Minute

      • max_replica: number

        Max Replica

      • max_scale_down_rate: number | null

        Max Scale Down Rate

      • min_replica: number

        Min Replica

      • scale_down_delay: number | null

        Scale Down Delay

      • schedule_id: string | null

        Schedule Id

      • schedule_name: string

        Schedule Name

      • start_at: string | null

        Start At

        null
        
      • start_hour: number | null

        Start Hour

      • start_minute: number | null

        Start Minute

      • target_in_flight_tokens: number | null

        Target In Flight Tokens

      • target_utilization_percentage: number | null

        Target Utilization Percentage

      • timezone: string | null

        Timezone

      • weekdays: string[] | null

        Weekdays

    • AuditLogEventAutoscalingSettings: {
          autoscaling_window: number | null;
          concurrency_target: number;
          max_replica: number;
          max_scale_down_rate: number | null;
          min_replica: number;
          scale_down_delay: number | null;
          target_in_flight_tokens: number | null;
          target_utilization_percentage: number | null;
      }

      AuditLogEventAutoscalingSettingsV1

      Autoscaling settings for a deployment or environment.

      • autoscaling_window: number | null

        Autoscaling Window

      • concurrency_target: number

        Concurrency Target

      • max_replica: number

        Max Replica

      • max_scale_down_rate: number | null

        Max Scale Down Rate

      • min_replica: number

        Min Replica

      • scale_down_delay: number | null

        Scale Down Delay

      • target_in_flight_tokens: number | null

        Target In Flight Tokens

      • target_utilization_percentage: number | null

        Target Utilization Percentage

    • AuditLogEventAutoscalingSettingsUpdate: {
          autoscaling_window: number | null;
          concurrency_target: number | null;
          max_replica: number | null;
          max_scale_down_rate: number | null;
          min_replica: number | null;
          scale_down_delay: number | null;
          target_in_flight_tokens: number | null;
          target_utilization_percentage: number | null;
      }

      AuditLogEventAutoscalingSettingsUpdateV1

      Autoscaling settings a request set, null where it left a setting unchanged. Not itself a payload in the discriminated union.

      • autoscaling_window: number | null

        Autoscaling Window

      • concurrency_target: number | null

        Concurrency Target

      • max_replica: number | null

        Max Replica

      • max_scale_down_rate: number | null

        Max Scale Down Rate

      • min_replica: number | null

        Min Replica

      • scale_down_delay: number | null

        Scale Down Delay

      • target_in_flight_tokens: number | null

        Target In Flight Tokens

      • target_utilization_percentage: number | null

        Target Utilization Percentage

    • AuditLogEventChainDeleted: {
          chain_deployment_name: string | null;
          chain_id: string;
          chain_name: string;
          event_type: "CHAIN_DELETED";
      }

      AuditLogEventChainDeletedV1

      A chain was deleted.

      • chain_deployment_name: string | null

        Chain Deployment Name

      • chain_id: string

        Chain Id

      • chain_name: string

        Chain Name

      • event_type: "CHAIN_DELETED"

        discriminator enum property added by openapi-typescript

    • AuditLogEventChainDeployed: {
          chain_deployment_id: string;
          chain_deployment_name: string | null;
          chain_id: string;
          chain_name: string;
          event_type: "CHAIN_DEPLOYED";
          is_primary: boolean;
          publish: boolean;
      }

      AuditLogEventChainDeployedV1

      A chain deployment was created.

      • chain_deployment_id: string

        Chain Deployment Id

      • chain_deployment_name: string | null

        Chain Deployment Name

      • chain_id: string

        Chain Id

      • chain_name: string

        Chain Name

      • event_type: "CHAIN_DEPLOYED"

        discriminator enum property added by openapi-typescript

      • is_primary: boolean

        Is Primary

      • publish: boolean

        Publish

    • AuditLogEventChainDeploymentActivated: {
          chain_deployment_id: string;
          chain_deployment_name: string | null;
          chain_id: string;
          chain_name: string;
          event_type: "CHAIN_DEPLOYMENT_ACTIVATED";
      }

      AuditLogEventChainDeploymentActivatedV1

      A chain deployment was activated.

      • chain_deployment_id: string

        Chain Deployment Id

      • chain_deployment_name: string | null

        Chain Deployment Name

      • chain_id: string

        Chain Id

      • chain_name: string

        Chain Name

      • event_type: "CHAIN_DEPLOYMENT_ACTIVATED"

        discriminator enum property added by openapi-typescript

    • AuditLogEventChainDeploymentDeactivated: {
          chain_deployment_id: string;
          chain_deployment_name: string | null;
          chain_id: string;
          chain_name: string;
          event_type: "CHAIN_DEPLOYMENT_DEACTIVATED";
      }

      AuditLogEventChainDeploymentDeactivatedV1

      A chain deployment was deactivated.

      • chain_deployment_id: string

        Chain Deployment Id

      • chain_deployment_name: string | null

        Chain Deployment Name

      • chain_id: string

        Chain Id

      • chain_name: string

        Chain Name

      • event_type: "CHAIN_DEPLOYMENT_DEACTIVATED"

        discriminator enum property added by openapi-typescript

    • AuditLogEventChainDeploymentDeleted: {
          chain_deployment_id: string;
          chain_id: string;
          chain_name: string;
          deployment_name: string | null;
          event_type: "CHAIN_DEPLOYMENT_DELETED";
      }

      AuditLogEventChainDeploymentDeletedV1

      A chain deployment was deleted.

      • chain_deployment_id: string

        Chain Deployment Id

      • chain_id: string

        Chain Id

      • chain_name: string

        Chain Name

      • deployment_name: string | null

        Deployment Name

      • event_type: "CHAIN_DEPLOYMENT_DELETED"

        discriminator enum property added by openapi-typescript

    • AuditLogEventChainDeploymentPromoted: {
          chain_deployment_id: string;
          chain_deployment_name: string | null;
          chain_id: string;
          chain_name: string;
          environment_id: string | null;
          environment_name: string | null;
          event_type: "CHAIN_DEPLOYMENT_PROMOTED";
      }

      AuditLogEventChainDeploymentPromotedV1

      A chain deployment was promoted to an environment.

      • chain_deployment_id: string

        Chain Deployment Id

      • chain_deployment_name: string | null

        Chain Deployment Name

      • chain_id: string

        Chain Id

      • chain_name: string

        Chain Name

      • environment_id: string | null

        Environment Id

      • environment_name: string | null

        Environment Name

      • event_type: "CHAIN_DEPLOYMENT_PROMOTED"

        discriminator enum property added by openapi-typescript

    • AuditLogEventChainEnvironmentCreated: {
          chain_id: string;
          chain_name: string;
          environment_name: string;
          event_type: "CHAIN_ENVIRONMENT_CREATED";
          ramp_up_duration_seconds: number | null;
          ramp_up_while_promoting: boolean | null;
          redeploy_on_promotion: boolean | null;
      }

      AuditLogEventChainEnvironmentCreatedV1

      A chain environment was created.

      • chain_id: string

        Chain Id

      • chain_name: string

        Chain Name

      • environment_name: string

        Environment Name

      • event_type: "CHAIN_ENVIRONMENT_CREATED"

        discriminator enum property added by openapi-typescript

      • ramp_up_duration_seconds: number | null

        Ramp Up Duration Seconds

      • ramp_up_while_promoting: boolean | null

        Ramp Up While Promoting

      • redeploy_on_promotion: boolean | null

        Redeploy On Promotion

    • AuditLogEventChainEnvironmentUpdated: {
          chain_id: string;
          chain_name: string;
          environment_name: string;
          event_type: "CHAIN_ENVIRONMENT_UPDATED";
          ramp_up_duration_seconds: number | null;
          ramp_up_while_promoting: boolean | null;
          redeploy_on_promotion: boolean | null;
      }

      AuditLogEventChainEnvironmentUpdatedV1

      A chain environment was updated.

      • chain_id: string

        Chain Id

      • chain_name: string

        Chain Name

      • environment_name: string

        Environment Name

      • event_type: "CHAIN_ENVIRONMENT_UPDATED"

        discriminator enum property added by openapi-typescript

      • ramp_up_duration_seconds: number | null

        Ramp Up Duration Seconds

      • ramp_up_while_promoting: boolean | null

        Ramp Up While Promoting

      • redeploy_on_promotion: boolean | null

        Redeploy On Promotion

    • AuditLogEventChainletAutoscalingSettingsChanged: {
          autoscaling_window: number | null;
          chain_deployment_id: string;
          chain_deployment_name: string | null;
          chain_id: string;
          chain_name: string;
          chainlet_id: string;
          chainlet_name: string;
          concurrency_target: number;
          event_type: "CHAINLET_AUTOSCALING_SETTINGS_CHANGED";
          max_replica: number;
          max_scale_down_rate: number | null;
          min_replica: number;
          previous_settings:
              | components["schemas"]["AuditLogEventAutoscalingSettings"]
              | null;
          scale_down_delay: number
          | null;
          target_in_flight_tokens: number | null;
          target_utilization_percentage: number | null;
      }

      AuditLogEventChainletAutoscalingSettingsChangedV1

      A chainlet's autoscaling settings were changed.

      • autoscaling_window: number | null

        Autoscaling Window

      • chain_deployment_id: string

        Chain Deployment Id

      • chain_deployment_name: string | null

        Chain Deployment Name

      • chain_id: string

        Chain Id

      • chain_name: string

        Chain Name

      • chainlet_id: string

        Chainlet Id

      • chainlet_name: string

        Chainlet Name

      • concurrency_target: number

        Concurrency Target

      • event_type: "CHAINLET_AUTOSCALING_SETTINGS_CHANGED"

        discriminator enum property added by openapi-typescript

      • max_replica: number

        Max Replica

      • max_scale_down_rate: number | null

        Max Scale Down Rate

      • min_replica: number

        Min Replica

      • previous_settings: components["schemas"]["AuditLogEventAutoscalingSettings"] | null
      • scale_down_delay: number | null

        Scale Down Delay

      • target_in_flight_tokens: number | null

        Target In Flight Tokens

      • target_utilization_percentage: number | null

        Target Utilization Percentage

    • AuditLogEventChainletInstanceTypeChanged: {
          chain_deployment_id: string;
          chain_deployment_name: string | null;
          chain_id: string;
          chain_name: string;
          chainlet_id: string;
          chainlet_name: string;
          event_type: "CHAINLET_INSTANCE_TYPE_CHANGED";
          instance_type_name: string;
      }

      AuditLogEventChainletInstanceTypeChangedV1

      A chainlet's instance type was changed.

      • chain_deployment_id: string

        Chain Deployment Id

      • chain_deployment_name: string | null

        Chain Deployment Name

      • chain_id: string

        Chain Id

      • chain_name: string

        Chain Name

      • chainlet_id: string

        Chainlet Id

      • chainlet_name: string

        Chainlet Name

      • event_type: "CHAINLET_INSTANCE_TYPE_CHANGED"

        discriminator enum property added by openapi-typescript

      • instance_type_name: string

        Instance Type Name

    • AuditLogEventDirectoryGroupRoleUpdated: {
          directory_group_id: string;
          directory_group_name: string;
          event_type: "DIRECTORY_GROUP_ROLE_UPDATED";
          new_role_name: string;
          team_id: string | null;
          team_name: string | null;
      }

      AuditLogEventDirectoryGroupRoleUpdatedV1

      A directory group's role was updated.

      • directory_group_id: string

        Directory Group Id

      • directory_group_name: string

        Directory Group Name

      • event_type: "DIRECTORY_GROUP_ROLE_UPDATED"

        discriminator enum property added by openapi-typescript

      • new_role_name: string

        New Role Name

      • team_id: string | null

        Team Id

      • team_name: string | null

        Team Name

    • AuditLogEventEnvironmentCreated: {
          autoscaling_window: number | null;
          concurrency_target: number;
          deployment_type: string | null;
          environment_name: string;
          event_type: "ENVIRONMENT_CREATED";
          max_replica: number;
          max_scale_down_rate: number | null;
          max_surge_percent: number | null;
          max_unavailable_percent: number | null;
          min_replica: number;
          model_id: string;
          model_name: string;
          promotion_cleanup_strategy: string | null;
          ramp_up_duration_seconds: number | null;
          ramp_up_step_size: number | null;
          ramp_up_while_promoting: boolean | null;
          redeploy_on_promotion: boolean | null;
          replica_overhead_percent: number | null;
          request_backpressure_policy: string | null;
          rolling_deploy: boolean | null;
          rolling_deploy_strategy: string | null;
          scale_down_delay: number | null;
          stabilization_time_seconds: number | null;
          target_in_flight_tokens: number | null;
          target_utilization_percentage: number | null;
      }

      AuditLogEventEnvironmentCreatedV1

      A model environment was created.

      • autoscaling_window: number | null

        Autoscaling Window

      • concurrency_target: number

        Concurrency Target

      • deployment_type: string | null

        Deployment Type

      • environment_name: string

        Environment Name

      • event_type: "ENVIRONMENT_CREATED"

        discriminator enum property added by openapi-typescript

      • max_replica: number

        Max Replica

      • max_scale_down_rate: number | null

        Max Scale Down Rate

      • max_surge_percent: number | null

        Max Surge Percent

      • max_unavailable_percent: number | null

        Max Unavailable Percent

      • min_replica: number

        Min Replica

      • model_id: string

        Model Id

      • model_name: string

        Model Name

      • promotion_cleanup_strategy: string | null

        Promotion Cleanup Strategy

      • ramp_up_duration_seconds: number | null

        Ramp Up Duration Seconds

      • ramp_up_step_size: number | null

        Ramp Up Step Size

      • ramp_up_while_promoting: boolean | null

        Ramp Up While Promoting

      • redeploy_on_promotion: boolean | null

        Redeploy On Promotion

      • replica_overhead_percent: number | null

        Replica Overhead Percent

      • request_backpressure_policy: string | null

        Request Backpressure Policy

        null
        
      • rolling_deploy: boolean | null

        Rolling Deploy

      • rolling_deploy_strategy: string | null

        Rolling Deploy Strategy

      • scale_down_delay: number | null

        Scale Down Delay

      • stabilization_time_seconds: number | null

        Stabilization Time Seconds

      • target_in_flight_tokens: number | null

        Target In Flight Tokens

      • target_utilization_percentage: number | null

        Target Utilization Percentage

    • AuditLogEventEnvironmentDeleted: {
          environment_name: string;
          event_type: "ENVIRONMENT_DELETED";
          model_id: string;
          model_name: string;
      }

      AuditLogEventEnvironmentDeletedV1

      A model environment was deleted.

      • environment_name: string

        Environment Name

      • event_type: "ENVIRONMENT_DELETED"

        discriminator enum property added by openapi-typescript

      • model_id: string

        Model Id

      • model_name: string

        Model Name

    • AuditLogEventEnvironmentSettings: {
          autoscaling_window: number | null;
          concurrency_target: number;
          max_replica: number;
          max_scale_down_rate: number | null;
          max_surge_percent: number | null;
          max_unavailable_percent: number | null;
          min_replica: number;
          promotion_cleanup_strategy: string | null;
          ramp_up_duration_seconds: number | null;
          ramp_up_step_size: number | null;
          ramp_up_while_promoting: boolean | null;
          redeploy_on_promotion: boolean | null;
          replica_overhead_percent: number | null;
          request_backpressure_policy: string | null;
          rolling_deploy: boolean | null;
          rolling_deploy_strategy: string | null;
          scale_down_delay: number | null;
          stabilization_time_seconds: number | null;
          target_in_flight_tokens: number | null;
          target_utilization_percentage: number | null;
      }

      AuditLogEventEnvironmentSettingsV1

      Full environment settings (autoscaling + rolling promotion + deprecated canary); shared base for the environment events and the type of their previous_settings snapshots. Not itself a payload in the discriminated union.

      • autoscaling_window: number | null

        Autoscaling Window

      • concurrency_target: number

        Concurrency Target

      • max_replica: number

        Max Replica

      • max_scale_down_rate: number | null

        Max Scale Down Rate

      • max_surge_percent: number | null

        Max Surge Percent

      • max_unavailable_percent: number | null

        Max Unavailable Percent

      • min_replica: number

        Min Replica

      • promotion_cleanup_strategy: string | null

        Promotion Cleanup Strategy

      • ramp_up_duration_seconds: number | null

        Ramp Up Duration Seconds

      • ramp_up_step_size: number | null

        Ramp Up Step Size

      • ramp_up_while_promoting: boolean | null

        Ramp Up While Promoting

      • redeploy_on_promotion: boolean | null

        Redeploy On Promotion

      • replica_overhead_percent: number | null

        Replica Overhead Percent

      • request_backpressure_policy: string | null

        Request Backpressure Policy

        null
        
      • rolling_deploy: boolean | null

        Rolling Deploy

      • rolling_deploy_strategy: string | null

        Rolling Deploy Strategy

      • scale_down_delay: number | null

        Scale Down Delay

      • stabilization_time_seconds: number | null

        Stabilization Time Seconds

      • target_in_flight_tokens: number | null

        Target In Flight Tokens

      • target_utilization_percentage: number | null

        Target Utilization Percentage

    • AuditLogEventEnvironmentUpdated: {
          autoscaling_window: number | null;
          concurrency_target: number;
          deployment_type: string | null;
          environment_name: string;
          event_type: "ENVIRONMENT_UPDATED";
          max_replica: number;
          max_scale_down_rate: number | null;
          max_surge_percent: number | null;
          max_unavailable_percent: number | null;
          min_replica: number;
          model_id: string;
          model_name: string;
          previous_settings:
              | components["schemas"]["AuditLogEventEnvironmentSettings"]
              | null;
          promotion_cleanup_strategy: string
          | null;
          ramp_up_duration_seconds: number | null;
          ramp_up_step_size: number | null;
          ramp_up_while_promoting: boolean | null;
          redeploy_on_promotion: boolean | null;
          replica_overhead_percent: number | null;
          request_backpressure_policy: string | null;
          rolling_deploy: boolean | null;
          rolling_deploy_strategy: string | null;
          scale_down_delay: number | null;
          schedules:
              | components["schemas"]["AuditLogEventAutoscalingScheduleChange"][]
              | null;
          stabilization_time_seconds: number
          | null;
          target_in_flight_tokens: number | null;
          target_utilization_percentage: number | null;
      }

      AuditLogEventEnvironmentUpdatedV1

      A model environment's settings were updated.

      • autoscaling_window: number | null

        Autoscaling Window

      • concurrency_target: number

        Concurrency Target

      • deployment_type: string | null

        Deployment Type

      • environment_name: string

        Environment Name

      • event_type: "ENVIRONMENT_UPDATED"

        discriminator enum property added by openapi-typescript

      • max_replica: number

        Max Replica

      • max_scale_down_rate: number | null

        Max Scale Down Rate

      • max_surge_percent: number | null

        Max Surge Percent

      • max_unavailable_percent: number | null

        Max Unavailable Percent

      • min_replica: number

        Min Replica

      • model_id: string

        Model Id

      • model_name: string

        Model Name

      • previous_settings: components["schemas"]["AuditLogEventEnvironmentSettings"] | null
      • promotion_cleanup_strategy: string | null

        Promotion Cleanup Strategy

      • ramp_up_duration_seconds: number | null

        Ramp Up Duration Seconds

      • ramp_up_step_size: number | null

        Ramp Up Step Size

      • ramp_up_while_promoting: boolean | null

        Ramp Up While Promoting

      • redeploy_on_promotion: boolean | null

        Redeploy On Promotion

      • replica_overhead_percent: number | null

        Replica Overhead Percent

      • request_backpressure_policy: string | null

        Request Backpressure Policy

        null
        
      • rolling_deploy: boolean | null

        Rolling Deploy

      • rolling_deploy_strategy: string | null

        Rolling Deploy Strategy

      • scale_down_delay: number | null

        Scale Down Delay

      • schedules: components["schemas"]["AuditLogEventAutoscalingScheduleChange"][] | null

        Schedules

      • stabilization_time_seconds: number | null

        Stabilization Time Seconds

      • target_in_flight_tokens: number | null

        Target In Flight Tokens

      • target_utilization_percentage: number | null

        Target Utilization Percentage

    • AuditLogEventGatewayEndpointCreated: {
          event_type: "GATEWAY_ENDPOINT_CREATED";
          gateway_endpoint_id: string;
          slug: string;
      }

      AuditLogEventGatewayEndpointCreatedV1

      A Frontier Gateway endpoint was created.

      • event_type: "GATEWAY_ENDPOINT_CREATED"

        discriminator enum property added by openapi-typescript

      • gateway_endpoint_id: string

        Gateway Endpoint Id

      • slug: string

        Slug

    • AuditLogEventGatewayEndpointDeleted: {
          event_type: "GATEWAY_ENDPOINT_DELETED";
          gateway_endpoint_id: string;
          slug: string;
      }

      AuditLogEventGatewayEndpointDeletedV1

      A Frontier Gateway endpoint was deleted.

      • event_type: "GATEWAY_ENDPOINT_DELETED"

        discriminator enum property added by openapi-typescript

      • gateway_endpoint_id: string

        Gateway Endpoint Id

      • slug: string

        Slug

    • AuditLogEventGatewayEndpointUpdated: {
          event_type: "GATEWAY_ENDPOINT_UPDATED";
          gateway_endpoint_id: string;
          previous_slug: string | null;
          slug: string;
      }

      AuditLogEventGatewayEndpointUpdatedV1

      A Frontier Gateway endpoint was updated.

      • event_type: "GATEWAY_ENDPOINT_UPDATED"

        discriminator enum property added by openapi-typescript

      • gateway_endpoint_id: string

        Gateway Endpoint Id

      • previous_slug: string | null

        Previous Slug

      • slug: string

        Slug

    • AuditLogEventGridMachineUserCreated: {
          event_type: "GRID_MACHINE_USER_CREATED";
          machine_user_id: string;
          machine_user_name: string;
          team_id: string;
          team_name: string;
      }

      AuditLogEventGridMachineUserCreatedV1

      A Grid machine user was created.

      • event_type: "GRID_MACHINE_USER_CREATED"

        discriminator enum property added by openapi-typescript

      • machine_user_id: string

        Machine User Id

      • machine_user_name: string

        Machine User Name

      • team_id: string

        Team Id

      • team_name: string

        Team Name

    • AuditLogEventGridMachineUserDeleted: {
          event_type: "GRID_MACHINE_USER_DELETED";
          machine_user_id: string;
          machine_user_name: string;
          team_id: string;
          team_name: string;
      }

      AuditLogEventGridMachineUserDeletedV1

      A Grid machine user was deleted, revoking its API keys.

      • event_type: "GRID_MACHINE_USER_DELETED"

        discriminator enum property added by openapi-typescript

      • machine_user_id: string

        Machine User Id

      • machine_user_name: string

        Machine User Name

      • team_id: string

        Team Id

      • team_name: string

        Team Name

    • AuditLogEventGridMachineUserUpdated: {
          event_type: "GRID_MACHINE_USER_UPDATED";
          machine_user_id: string;
          machine_user_name: string;
          previous_machine_user_name: string;
          team_id: string;
          team_name: string;
      }

      AuditLogEventGridMachineUserUpdatedV1

      A Grid machine user was renamed.

      • event_type: "GRID_MACHINE_USER_UPDATED"

        discriminator enum property added by openapi-typescript

      • machine_user_id: string

        Machine User Id

      • machine_user_name: string

        Machine User Name

      • previous_machine_user_name: string

        Previous Machine User Name

      • team_id: string

        Team Id

      • team_name: string

        Team Name

    • AuditLogEventModelDeleted: { event_type: "MODEL_DELETED"; model_id: string; model_name: string }

      AuditLogEventModelDeletedV1

      A model was deleted.

      • event_type: "MODEL_DELETED"

        discriminator enum property added by openapi-typescript

      • model_id: string

        Model Id

      • model_name: string

        Model Name

    • AuditLogEventModelDeployed: {
          autoscaling_schedule_settings_update:
              | components["schemas"]["AuditLogEventAutoscalingScheduleOperations"]
              | null;
          autoscaling_settings_update: | components["schemas"]["AuditLogEventAutoscalingSettingsUpdate"]
          | null;
          deployment_id: string;
          deployment_name: string;
          environment_name: string
          | null;
          event_type: "MODEL_DEPLOYED";
          instance_type_id_update: string | null;
          model_id: string;
          model_name: string;
          promotion_settings_override:
              | components["schemas"]["AuditLogEventPromotionSettingsOverride"]
              | null;
          publish: boolean;
          region_update: string
          | null;
          request_backpressure_settings_update:
              | components["schemas"]["AuditLogEventRequestBackpressureSettingsUpdate"]
              | null;
          scale_previous_to_zero: boolean;
          trusted: boolean;
      }

      AuditLogEventModelDeployedV1

      A model deployment was created.

      • autoscaling_schedule_settings_update: components["schemas"]["AuditLogEventAutoscalingScheduleOperations"] | null
      • autoscaling_settings_update: components["schemas"]["AuditLogEventAutoscalingSettingsUpdate"] | null
      • deployment_id: string

        Deployment Id

      • deployment_name: string

        Deployment Name

      • environment_name: string | null

        Environment Name

      • event_type: "MODEL_DEPLOYED"

        discriminator enum property added by openapi-typescript

      • instance_type_id_update: string | null

        Instance Type Id Update

      • model_id: string

        Model Id

      • model_name: string

        Model Name

      • promotion_settings_override: components["schemas"]["AuditLogEventPromotionSettingsOverride"] | null
      • publish: boolean

        Publish

      • region_update: string | null

        Region Update

      • request_backpressure_settings_update: components["schemas"]["AuditLogEventRequestBackpressureSettingsUpdate"] | null
      • scale_previous_to_zero: boolean

        Scale Previous To Zero

      • trusted: boolean

        Trusted

    • AuditLogEventModelDeploymentActivated: {
          deployment_id: string;
          deployment_name: string;
          event_type: "MODEL_DEPLOYMENT_ACTIVATED";
          model_id: string;
          model_name: string;
      }

      AuditLogEventModelDeploymentActivatedV1

      A model deployment was activated.

      • deployment_id: string

        Deployment Id

      • deployment_name: string

        Deployment Name

      • event_type: "MODEL_DEPLOYMENT_ACTIVATED"

        discriminator enum property added by openapi-typescript

      • model_id: string

        Model Id

      • model_name: string

        Model Name

    • AuditLogEventModelDeploymentAutoscalingSettingsChanged: {
          autoscaling_window: number | null;
          concurrency_target: number;
          deployment_id: string;
          deployment_name: string;
          deployment_type: string | null;
          event_type: "MODEL_DEPLOYMENT_AUTOSCALING_SETTINGS_CHANGED";
          max_replica: number;
          max_scale_down_rate: number | null;
          min_replica: number;
          model_id: string;
          model_name: string;
          previous_settings:
              | components["schemas"]["AuditLogEventAutoscalingSettings"]
              | null;
          scale_down_delay: number
          | null;
          schedules:
              | components["schemas"]["AuditLogEventAutoscalingScheduleChange"][]
              | null;
          target_in_flight_tokens: number
          | null;
          target_utilization_percentage: number | null;
      }

      AuditLogEventModelDeploymentAutoscalingSettingsChangedV1

      A model deployment's autoscaling settings were changed.

      • autoscaling_window: number | null

        Autoscaling Window

      • concurrency_target: number

        Concurrency Target

      • deployment_id: string

        Deployment Id

      • deployment_name: string

        Deployment Name

      • deployment_type: string | null

        Deployment Type

      • event_type: "MODEL_DEPLOYMENT_AUTOSCALING_SETTINGS_CHANGED"

        discriminator enum property added by openapi-typescript

      • max_replica: number

        Max Replica

      • max_scale_down_rate: number | null

        Max Scale Down Rate

      • min_replica: number

        Min Replica

      • model_id: string

        Model Id

      • model_name: string

        Model Name

      • previous_settings: components["schemas"]["AuditLogEventAutoscalingSettings"] | null
      • scale_down_delay: number | null

        Scale Down Delay

      • schedules: components["schemas"]["AuditLogEventAutoscalingScheduleChange"][] | null

        Schedules

      • target_in_flight_tokens: number | null

        Target In Flight Tokens

      • target_utilization_percentage: number | null

        Target Utilization Percentage

    • AuditLogEventModelDeploymentDeactivated: {
          deployment_id: string;
          deployment_name: string;
          event_type: "MODEL_DEPLOYMENT_DEACTIVATED";
          model_id: string;
          model_name: string;
      }

      AuditLogEventModelDeploymentDeactivatedV1

      A model deployment was deactivated.

      • deployment_id: string

        Deployment Id

      • deployment_name: string

        Deployment Name

      • event_type: "MODEL_DEPLOYMENT_DEACTIVATED"

        discriminator enum property added by openapi-typescript

      • model_id: string

        Model Id

      • model_name: string

        Model Name

    • AuditLogEventModelDeploymentDeleted: {
          deployment_id: string;
          deployment_name: string;
          event_type: "MODEL_DEPLOYMENT_DELETED";
          model_id: string;
          model_name: string;
      }

      AuditLogEventModelDeploymentDeletedV1

      A model deployment was deleted.

      • deployment_id: string

        Deployment Id

      • deployment_name: string

        Deployment Name

      • event_type: "MODEL_DEPLOYMENT_DELETED"

        discriminator enum property added by openapi-typescript

      • model_id: string

        Model Id

      • model_name: string

        Model Name

    • AuditLogEventModelDeploymentInstanceTypeChanged: {
          deployment_id: string;
          deployment_name: string;
          event_type: "MODEL_DEPLOYMENT_INSTANCE_TYPE_CHANGED";
          instance_type_name: string;
          model_id: string;
          model_name: string;
      }

      AuditLogEventModelDeploymentInstanceTypeChangedV1

      A model deployment's instance type was changed.

      • deployment_id: string

        Deployment Id

      • deployment_name: string

        Deployment Name

      • event_type: "MODEL_DEPLOYMENT_INSTANCE_TYPE_CHANGED"

        discriminator enum property added by openapi-typescript

      • instance_type_name: string

        Instance Type Name

      • model_id: string

        Model Id

      • model_name: string

        Model Name

    • AuditLogEventModelDeploymentPromoted: {
          autoscaling_schedule_settings_update:
              | components["schemas"]["AuditLogEventAutoscalingScheduleOperations"]
              | null;
          autoscaling_settings_update: | components["schemas"]["AuditLogEventAutoscalingSettingsUpdate"]
          | null;
          deployment_id: string;
          deployment_name: string;
          environment_id: string
          | null;
          environment_name: string | null;
          event_type: "MODEL_DEPLOYMENT_PROMOTED";
          instance_type_id_update: string | null;
          model_id: string;
          model_name: string;
          promotion_settings_override:
              | components["schemas"]["AuditLogEventPromotionSettingsOverride"]
              | null;
          region_update: string
          | null;
          request_backpressure_settings_update:
              | components["schemas"]["AuditLogEventRequestBackpressureSettingsUpdate"]
              | null;
      }

      AuditLogEventModelDeploymentPromotedV1

      A model deployment was promoted to an environment.

      • autoscaling_schedule_settings_update: components["schemas"]["AuditLogEventAutoscalingScheduleOperations"] | null
      • autoscaling_settings_update: components["schemas"]["AuditLogEventAutoscalingSettingsUpdate"] | null
      • deployment_id: string

        Deployment Id

      • deployment_name: string

        Deployment Name

      • environment_id: string | null

        Environment Id

      • environment_name: string | null

        Environment Name

      • event_type: "MODEL_DEPLOYMENT_PROMOTED"

        discriminator enum property added by openapi-typescript

      • instance_type_id_update: string | null

        Instance Type Id Update

      • model_id: string

        Model Id

      • model_name: string

        Model Name

      • promotion_settings_override: components["schemas"]["AuditLogEventPromotionSettingsOverride"] | null
      • region_update: string | null

        Region Update

      • request_backpressure_settings_update: components["schemas"]["AuditLogEventRequestBackpressureSettingsUpdate"] | null
    • AuditLogEventModelDeploymentRequestBackpressureSettingsChanged: {
          deployment_id: string;
          deployment_name: string;
          event_type: "MODEL_DEPLOYMENT_REQUEST_BACKPRESSURE_SETTINGS_CHANGED";
          model_id: string;
          model_name: string;
          policy: string | null;
          previous_policy: string | null;
      }

      AuditLogEventModelDeploymentRequestBackpressureSettingsChangedV1

      A model deployment's request backpressure settings were changed.

      • deployment_id: string

        Deployment Id

      • deployment_name: string

        Deployment Name

      • event_type: "MODEL_DEPLOYMENT_REQUEST_BACKPRESSURE_SETTINGS_CHANGED"

        discriminator enum property added by openapi-typescript

      • model_id: string

        Model Id

      • model_name: string

        Model Name

      • policy: string | null

        Policy

        null
        
      • previous_policy: string | null

        Previous Policy

        null
        
    • AuditLogEventModelDeploymentRetried: {
          deployment_id: string;
          deployment_name: string;
          event_type: "MODEL_DEPLOYMENT_RETRIED";
          model_id: string;
          model_name: string;
          retried: boolean;
      }

      AuditLogEventModelDeploymentRetriedV1

      A model deployment build was retried.

      • deployment_id: string

        Deployment Id

      • deployment_name: string

        Deployment Name

      • event_type: "MODEL_DEPLOYMENT_RETRIED"

        discriminator enum property added by openapi-typescript

      • model_id: string

        Model Id

      • model_name: string

        Model Name

      • retried: boolean

        Retried

    • AuditLogEventModelPromotionControlAction: {
          action: components["schemas"]["AuditLogPromotionControlAction"];
          deployment_id: string;
          deployment_name: string;
          environment_id: string | null;
          environment_name: string;
          event_type: "MODEL_PROMOTION_CONTROL_ACTION";
          model_id: string;
          model_name: string;
      }

      AuditLogEventModelPromotionControlActionV1

      A user-initiated promotion control signal was sent to a rolling promotion.

      • action: components["schemas"]["AuditLogPromotionControlAction"]
      • deployment_id: string

        Deployment Id

      • deployment_name: string

        Deployment Name

      • environment_id: string | null

        Environment Id

      • environment_name: string

        Environment Name

      • event_type: "MODEL_PROMOTION_CONTROL_ACTION"

        discriminator enum property added by openapi-typescript

      • model_id: string

        Model Id

      • model_name: string

        Model Name

    • AuditLogEventModelRenamed: {
          event_type: "MODEL_RENAMED";
          model_id: string;
          model_name: string;
          previous_name: string | null;
      }

      AuditLogEventModelRenamedV1

      A model was renamed. model_name is the new name.

      • event_type: "MODEL_RENAMED"

        discriminator enum property added by openapi-typescript

      • model_id: string

        Model Id

      • model_name: string

        Model Name

      • previous_name: string | null

        Previous Name

    • AuditLogEventPromotionSettingsOverride: {
          max_surge_percent: number | null;
          max_unavailable_percent: number | null;
          promotion_cleanup_strategy: string | null;
          redeploy_on_promotion: boolean | null;
          replica_overhead_percent: number | null;
          rolling_deploy: boolean | null;
          rolling_deploy_strategy: string | null;
          stabilization_time_seconds: number | null;
      }

      AuditLogEventPromotionSettingsOverrideV1

      Promotion settings overridden for one promotion. Null means the environment's value. Not itself a payload in the discriminated union.

      • max_surge_percent: number | null

        Max Surge Percent

      • max_unavailable_percent: number | null

        Max Unavailable Percent

      • promotion_cleanup_strategy: string | null

        Promotion Cleanup Strategy

      • redeploy_on_promotion: boolean | null

        Redeploy On Promotion

      • replica_overhead_percent: number | null

        Replica Overhead Percent

      • rolling_deploy: boolean | null

        Rolling Deploy

      • rolling_deploy_strategy: string | null

        Rolling Deploy Strategy

      • stabilization_time_seconds: number | null

        Stabilization Time Seconds

    • AuditLogEventProviderConnectionCreated: {
          event_type: "PROVIDER_CONNECTION_CREATED";
          provider: string;
          provider_connection_id: string;
          secret_name: string;
      }

      AuditLogEventProviderConnectionCreatedV1

      • event_type: "PROVIDER_CONNECTION_CREATED"

        discriminator enum property added by openapi-typescript

      • provider: string

        Provider

      • provider_connection_id: string

        Provider Connection Id

      • secret_name: string

        Secret Name

    • AuditLogEventProviderConnectionDeleted: {
          event_type: "PROVIDER_CONNECTION_DELETED";
          provider: string;
          provider_connection_id: string;
          secret_name: string;
      }

      AuditLogEventProviderConnectionDeletedV1

      • event_type: "PROVIDER_CONNECTION_DELETED"

        discriminator enum property added by openapi-typescript

      • provider: string

        Provider

      • provider_connection_id: string

        Provider Connection Id

      • secret_name: string

        Secret Name

    • AuditLogEventProviderConnectionUpdated: {
          event_type: "PROVIDER_CONNECTION_UPDATED";
          provider: string;
          provider_connection_id: string;
          secret_name: string;
      }

      AuditLogEventProviderConnectionUpdatedV1

      • event_type: "PROVIDER_CONNECTION_UPDATED"

        discriminator enum property added by openapi-typescript

      • provider: string

        Provider

      • provider_connection_id: string

        Provider Connection Id

      • secret_name: string

        Secret Name

    • AuditLogEventReplicaTerminated: {
          deployment_id: string;
          deployment_name: string;
          event_type: "REPLICA_TERMINATED";
          model_id: string;
          model_name: string;
          replica_id: string;
      }

      AuditLogEventReplicaTerminatedV1

      A replica of a model deployment was terminated.

      • deployment_id: string

        Deployment Id

      • deployment_name: string

        Deployment Name

      • event_type: "REPLICA_TERMINATED"

        discriminator enum property added by openapi-typescript

      • model_id: string

        Model Id

      • model_name: string

        Model Name

      • replica_id: string

        Replica Id

    • AuditLogEventRequestBackpressureSettingsUpdate: { policy: string | null }

      AuditLogEventRequestBackpressureSettingsUpdateV1

      A request backpressure policy a request set; a null policy clears it. Not itself a payload in the discriminated union.

      • policy: string | null

        Policy

    • AuditLogEventRequireGroupBasedAdminsEnabled: { event_type: "REQUIRE_GROUP_BASED_ADMINS_ENABLED"; organization_id: string }

      AuditLogEventRequireGroupBasedAdminsEnabledV1

      Group-based admin enforcement was enabled for the organization.

      • event_type: "REQUIRE_GROUP_BASED_ADMINS_ENABLED"

        discriminator enum property added by openapi-typescript

      • organization_id: string

        Organization Id

    • AuditLogEventSecretDeleted: { event_type: "SECRET_DELETED"; secret_id: string; secret_name: string }

      AuditLogEventSecretDeletedV1

      A secret was deleted.

      • event_type: "SECRET_DELETED"

        discriminator enum property added by openapi-typescript

      • secret_id: string

        Secret Id

      • secret_name: string

        Secret Name

    • AuditLogEventSecretUpdated: { event_type: "SECRET_UPDATED"; secret_id: string; secret_name: string }

      AuditLogEventSecretUpdatedV1

      A secret was created or updated.

      • event_type: "SECRET_UPDATED"

        discriminator enum property added by openapi-typescript

      • secret_id: string

        Secret Id

      • secret_name: string

        Secret Name

    • AuditLogEventSshCertificateSigned: {
          event_type: "SSH_CERTIFICATE_SIGNED";
          expires_at: string;
          project_id: string;
          proxy_address: string;
          replica_id: string;
          workload_id: string;
          workload_type: string;
      }

      AuditLogEventSshCertificateSignedV1

      An SSH certificate was signed for a workload.

      • event_type: "SSH_CERTIFICATE_SIGNED"

        discriminator enum property added by openapi-typescript

      • expires_at: string

        Expires At

      • project_id: string

        Project Id

      • proxy_address: string

        Proxy Address

      • replica_id: string

        Replica Id

      • workload_id: string

        Workload Id

      • workload_type: string

        Workload Type

    • AuditLogEventTelemetryExportCreated: {
          event_type: "TELEMETRY_EXPORT_CREATED";
          telemetry_export_configuration_id: string;
      }

      AuditLogEventTelemetryExportCreatedV1

      A telemetry export configuration was created.

      • event_type: "TELEMETRY_EXPORT_CREATED"

        discriminator enum property added by openapi-typescript

      • telemetry_export_configuration_id: string

        Telemetry Export Configuration Id

    • AuditLogEventTelemetryExportDeleted: {
          event_type: "TELEMETRY_EXPORT_DELETED";
          telemetry_export_configuration_id: string;
      }

      AuditLogEventTelemetryExportDeletedV1

      A telemetry export configuration was deleted.

      • event_type: "TELEMETRY_EXPORT_DELETED"

        discriminator enum property added by openapi-typescript

      • telemetry_export_configuration_id: string

        Telemetry Export Configuration Id

    • AuditLogEventTelemetryExportUpdated: {
          credential_rotated: boolean;
          enabled: boolean | null;
          event_type: "TELEMETRY_EXPORT_UPDATED";
          telemetry_export_configuration_id: string;
      }

      AuditLogEventTelemetryExportUpdatedV1

      A telemetry export configuration was updated. enabled is the new value when this update paused or resumed exporting and null when only the endpoint, protocol, headers, or credential changed; a pause whose actor is the Baseten system was Baseten's own.

      • credential_rotated: boolean

        Credential Rotated

      • enabled: boolean | null

        Enabled

      • event_type: "TELEMETRY_EXPORT_UPDATED"

        discriminator enum property added by openapi-typescript

      • telemetry_export_configuration_id: string

        Telemetry Export Configuration Id

    • AuditLogEventType:
          | "MODEL_DEPLOYED"
          | "MODEL_DEPLOYMENT_ACTIVATED"
          | "MODEL_DEPLOYMENT_DEACTIVATED"
          | "MODEL_DEPLOYMENT_RETRIED"
          | "MODEL_DEPLOYMENT_PROMOTED"
          | "MODEL_DEPLOYMENT_AUTOSCALING_SETTINGS_CHANGED"
          | "MODEL_DEPLOYMENT_REQUEST_BACKPRESSURE_SETTINGS_CHANGED"
          | "MODEL_DEPLOYMENT_INSTANCE_TYPE_CHANGED"
          | "MODEL_DEPLOYMENT_DELETED"
          | "MODEL_DELETED"
          | "MODEL_RENAMED"
          | "CHAIN_DEPLOYED"
          | "CHAIN_DEPLOYMENT_ACTIVATED"
          | "CHAIN_DEPLOYMENT_DEACTIVATED"
          | "CHAIN_DEPLOYMENT_PROMOTED"
          | "CHAINLET_AUTOSCALING_SETTINGS_CHANGED"
          | "CHAINLET_INSTANCE_TYPE_CHANGED"
          | "CHAIN_DEPLOYMENT_DELETED"
          | "CHAIN_DELETED"
          | "CHAIN_ENVIRONMENT_CREATED"
          | "CHAIN_ENVIRONMENT_UPDATED"
          | "SECRET_UPDATED"
          | "SECRET_DELETED"
          | "API_KEY_CREATED"
          | "API_KEY_DELETED"
          | "API_KEY_LIFETIME_LIMITS_UPDATED"
          | "GATEWAY_ENDPOINT_CREATED"
          | "GATEWAY_ENDPOINT_UPDATED"
          | "GATEWAY_ENDPOINT_DELETED"
          | "PROVIDER_CONNECTION_CREATED"
          | "PROVIDER_CONNECTION_UPDATED"
          | "PROVIDER_CONNECTION_DELETED"
          | "GRID_MACHINE_USER_CREATED"
          | "GRID_MACHINE_USER_UPDATED"
          | "GRID_MACHINE_USER_DELETED"
          | "USER_INVITED"
          | "USER_JOINED_ORGANIZATION"
          | "WEBHOOK_SIGNING_SECRET_CREATED"
          | "WEBHOOK_SIGNING_SECRET_ROTATED"
          | "WEBHOOK_SIGNING_SECRET_DELETED"
          | "USER_ROLE_UPDATED"
          | "USER_TEAM_ROLE_UPDATED"
          | "USER_REMOVED"
          | "DIRECTORY_GROUP_ROLE_UPDATED"
          | "REQUIRE_GROUP_BASED_ADMINS_ENABLED"
          | "ENVIRONMENT_CREATED"
          | "ENVIRONMENT_UPDATED"
          | "ENVIRONMENT_DELETED"
          | "REPLICA_TERMINATED"
          | "MODEL_PROMOTION_CONTROL_ACTION"
          | "SSH_CERTIFICATE_SIGNED"
          | "VOLUME_DELETED"
          | "VOLUME_VERSION_DELETED"
          | "VOLUME_VERSION_RESTORED"
          | "VOLUME_TAG_SET"
          | "VOLUME_TAG_DELETED"
          | "VOLUME_UPDATED"
          | "TELEMETRY_EXPORT_CREATED"
          | "TELEMETRY_EXPORT_UPDATED"
          | "TELEMETRY_EXPORT_DELETED"

      AuditLogEventTypeV1

      Type of action recorded by an audit-log entry.

    • AuditLogEventTypeGroup:
          | "DEPLOYED"
          | "PROMOTED"
          | "ACTIVATED_DEACTIVATED"
          | "AUTOSCALING_SETTINGS"
          | "REQUEST_BACKPRESSURE_SETTINGS"
          | "INSTANCE_TYPE_CHANGED"
          | "ENVIRONMENT_SETTINGS"
          | "REPLICA_TERMINATED"
          | "DELETED"
          | "METADATA"
          | "SECRETS"
          | "API_KEYS"
          | "GATEWAY"
          | "GRID"
          | "WEBHOOK_SIGNING_SECRETS"
          | "USER_MANAGEMENT"
          | "DIRECTORY_GROUP_MANAGEMENT"
          | "SSH"
          | "TELEMETRY_EXPORT"

      AuditLogEventTypeGroupV1

      Coarse grouping of event types, used to filter the audit log.

    • AuditLogEventUserInvited: { event_type: "USER_INVITED"; invited_user_email: string; role_name: string }

      AuditLogEventUserInvitedV1

      A user was invited to the organization.

      • event_type: "USER_INVITED"

        discriminator enum property added by openapi-typescript

      • invited_user_email: string

        Invited User Email

      • role_name: string

        Role Name

    • AuditLogEventUserJoinedOrganization: {
          event_type: "USER_JOINED_ORGANIZATION";
          new_user_email: string;
          user_id: string;
      }

      AuditLogEventUserJoinedOrganizationV1

      A user joined the organization.

      • event_type: "USER_JOINED_ORGANIZATION"

        discriminator enum property added by openapi-typescript

      • new_user_email: string

        New User Email

      • user_id: string

        User Id

    • AuditLogEventUserRemoved: { event_type: "USER_REMOVED"; removed_user_email: string }

      AuditLogEventUserRemovedV1

      A user was removed from the organization.

      • event_type: "USER_REMOVED"

        discriminator enum property added by openapi-typescript

      • removed_user_email: string

        Removed User Email

    • AuditLogEventUserRoleUpdated: {
          event_type: "USER_ROLE_UPDATED";
          new_role_name: string;
          user_email: string;
          user_id: string;
      }

      AuditLogEventUserRoleUpdatedV1

      A user's organization role was updated.

      • event_type: "USER_ROLE_UPDATED"

        discriminator enum property added by openapi-typescript

      • new_role_name: string

        New Role Name

      • user_email: string

        User Email

      • user_id: string

        User Id

    • AuditLogEventUserTeamRoleUpdated: {
          event_type: "USER_TEAM_ROLE_UPDATED";
          new_role_name: string;
          team_id: string;
          team_name: string;
          user_email: string;
          user_id: string;
      }

      AuditLogEventUserTeamRoleUpdatedV1

      A user's team role was updated.

      • event_type: "USER_TEAM_ROLE_UPDATED"

        discriminator enum property added by openapi-typescript

      • new_role_name: string

        New Role Name

      • team_id: string

        Team Id

      • team_name: string

        Team Name

      • user_email: string

        User Email

      • user_id: string

        User Id

    • AuditLogEventVolumeDeleted: {
          event_type: "VOLUME_DELETED";
          namespace: string;
          versions_deleted: number;
          volume_name: string;
          volume_ref: string;
      }

      AuditLogEventVolumeDeletedV1

      A volume was deleted, tombstoning every version it still held.

      • event_type: "VOLUME_DELETED"

        discriminator enum property added by openapi-typescript

      • namespace: string

        Namespace

      • versions_deleted: number

        Versions Deleted

      • volume_name: string

        Volume Name

      • volume_ref: string

        Volume Ref

    • AuditLogEventVolumeTagDeleted: {
          deleted: boolean;
          event_type: "VOLUME_TAG_DELETED";
          tag: string;
          volume_ref: string;
      }

      AuditLogEventVolumeTagDeletedV1

      Deleting a volume tag succeeded. deleted is false if the tag was already absent.

      • deleted: boolean

        Deleted

      • event_type: "VOLUME_TAG_DELETED"

        discriminator enum property added by openapi-typescript

      • tag: string

        Tag

      • volume_ref: string

        Volume Ref

    • AuditLogEventVolumeTagSet: {
          digest: string;
          event_type: "VOLUME_TAG_SET";
          tag: string;
          volume_ref: string;
      }

      AuditLogEventVolumeTagSetV1

      A volume tag was set on a version.

      • digest: string

        Digest

      • event_type: "VOLUME_TAG_SET"

        discriminator enum property added by openapi-typescript

      • tag: string

        Tag

      • volume_ref: string

        Volume Ref

    • AuditLogEventVolumeUpdated: {
          event_type: "VOLUME_UPDATED";
          expires_at: string | null;
          previous_expires_at: string | null;
          volume_ref: string;
      }

      AuditLogEventVolumeUpdatedV1

      A volume's settings were updated.

      • event_type: "VOLUME_UPDATED"

        discriminator enum property added by openapi-typescript

      • expires_at: string | null

        Expires At

        The volume's expiration time after the update, as an ISO 8601 string. Null when the update cleared it.

      • previous_expires_at: string | null

        Previous Expires At

        The expiration time the update replaced, as an ISO 8601 string. Null when the volume had none.

      • volume_ref: string

        Volume Ref

    • AuditLogEventVolumeVersionDeleted: {
          digest: string;
          event_type: "VOLUME_VERSION_DELETED";
          namespace: string;
          version: string;
          volume_name: string;
          volume_ref: string;
      }

      AuditLogEventVolumeVersionDeletedV1

      One version of a volume was deleted.

      • digest: string

        Digest

      • event_type: "VOLUME_VERSION_DELETED"

        discriminator enum property added by openapi-typescript

      • namespace: string

        Namespace

      • version: string

        Version

      • volume_name: string

        Volume Name

      • volume_ref: string

        Volume Ref

    • AuditLogEventVolumeVersionRestored: {
          digest: string;
          event_type: "VOLUME_VERSION_RESTORED";
          namespace: string;
          version: string;
          volume_name: string;
          volume_ref: string;
      }

      AuditLogEventVolumeVersionRestoredV1

      A deleted version of a volume was restored.

      • digest: string

        Digest

      • event_type: "VOLUME_VERSION_RESTORED"

        discriminator enum property added by openapi-typescript

      • namespace: string

        Namespace

      • version: string

        Version

      • volume_name: string

        Volume Name

      • volume_ref: string

        Volume Ref

    • AuditLogEventWebhookSigningSecretCreated: {
          event_type: "WEBHOOK_SIGNING_SECRET_CREATED";
          webhook_signing_secret_id: string;
      }

      AuditLogEventWebhookSigningSecretCreatedV1

      A webhook signing secret was created.

      • event_type: "WEBHOOK_SIGNING_SECRET_CREATED"

        discriminator enum property added by openapi-typescript

      • webhook_signing_secret_id: string

        Webhook Signing Secret Id

    • AuditLogEventWebhookSigningSecretDeleted: {
          event_type: "WEBHOOK_SIGNING_SECRET_DELETED";
          webhook_signing_secret_id: string;
      }

      AuditLogEventWebhookSigningSecretDeletedV1

      A webhook signing secret was deleted.

      • event_type: "WEBHOOK_SIGNING_SECRET_DELETED"

        discriminator enum property added by openapi-typescript

      • webhook_signing_secret_id: string

        Webhook Signing Secret Id

    • AuditLogEventWebhookSigningSecretRotated: {
          event_type: "WEBHOOK_SIGNING_SECRET_ROTATED";
          webhook_signing_secret_id: string;
      }

      AuditLogEventWebhookSigningSecretRotatedV1

      A webhook signing secret was rotated.

      • event_type: "WEBHOOK_SIGNING_SECRET_ROTATED"

        discriminator enum property added by openapi-typescript

      • webhook_signing_secret_id: string

        Webhook Signing Secret Id

    • AuditLogPromotionControlAction: "PAUSE" | "RESUME" | "FORCE_CANCEL" | "FORCE_ROLL_FORWARD" | "GRACEFUL_CANCEL"

      AuditLogPromotionControlActionV1

      User-initiated promotion control signal recorded on a promotion-control event.

    • AuditLogSortDirection: "DESC" | "ASC"

      AuditLogSortDirectionV1

      Sort order of returned entries, by creation time.

    • AuditLogSource: "UI" | "API" | "MCP" | "SYSTEM" | "OTHER"

      AuditLogSourceV1

      Surface that issued the audited action.

    • AuthCode: {
          auth_code: string;
          auth_url: string;
          expires_at: string | null;
          generated_at: string | null;
          replica_id: string;
          session_id: string;
          tunnel_name: string | null;
          working_directory: string | null;
      }

      AuthCodeV1

      Authentication code for a training job interactive session node.

      • auth_code: string

        Auth Code

        The device authentication code (e.g., '4F64-C0D9').

      • auth_url: string

        Auth Url

        URL where the user should enter the auth code (e.g., 'https://github.com/login/device').

      • expires_at: string | null

        Expires At

        When the session expires, in ISO 8601 format.

        null
        
      • generated_at: string | null

        Generated At

        When the auth code was generated, in ISO 8601 format.

        null
        
      • replica_id: string

        Replica Id

        Replica identifier in gXXrY format (e.g., 'g00r0' for group 0, replica 0).

      • session_id: string

        Session Id

        Unique identifier of the interactive session.

      • tunnel_name: string | null

        Tunnel Name

        The name of the tunnel node.

        null
        
      • working_directory: string | null

        Working Directory

        The working directory of the session.

        null
        
    • AuthMethod:
          | "CUSTOM_SECRET"
          | "AWS_OIDC"
          | "GCP_OIDC"
          | "HUGGING_FACE_OIDC"
          | "AWS_ASSUME_ROLE"

      AuthMethod

    • AutoscalingSchedule: {
          autoscaling_settings: components["schemas"]["AutoscalingScheduleSettings"];
          cadence: "DAILY" | "HOURLY";
          enabled: boolean;
          end_hour: number | null;
          end_minute: number;
          id: string;
          name: string;
          start_hour: number | null;
          start_minute: number;
          weekdays: components["schemas"]["AutoscalingScheduleWeekday"][];
      }

      AutoscalingScheduleV1

      • autoscaling_settings: components["schemas"]["AutoscalingScheduleSettings"]

        Raw autoscaling overrides applied during the schedule window

      • cadence: "DAILY" | "HOURLY"

        Cadence of the schedule. DAILY runs once per selected weekday; HOURLY repeats the minute window every hour on selected weekdays. (enum property replaced by openapi-typescript)

      • enabled: boolean

        Enabled

        Whether the schedule is enabled

      • end_hour: number | null

        End Hour

        End hour in the environment schedule timezone. Omitted for unrestricted HOURLY schedules.

        null
        
      • end_minute: number

        End Minute

        End minute of the schedule window

      • id: string

        Id

        Stable unique identifier of the schedule

      • name: string

        Name

        Name of the schedule

      • start_hour: number | null

        Start Hour

        Start hour in the environment schedule timezone. Omitted for unrestricted HOURLY schedules.

        null
        
      • start_minute: number

        Start Minute

        Start minute of the schedule window

      • weekdays: components["schemas"]["AutoscalingScheduleWeekday"][]

        Weekdays

        Weekdays on which the schedule runs

    • AutoscalingScheduleSettings: {
          autoscaling_window: number | null;
          concurrency_target: number | null;
          max_replica: number;
          max_scale_down_rate: number | null;
          min_replica: number;
          scale_down_delay: number | null;
          target_in_flight_tokens: number | null;
          target_utilization_percentage: number | null;
      }

      AutoscalingScheduleSettingsV1

      • autoscaling_window: number | null

        Autoscaling Window

        Timeframe of traffic considered for autoscaling decisions. Null inherits the environment value.

      • concurrency_target: number | null

        Concurrency Target

        Number of requests per replica before scaling up. Null inherits the environment value.

      • max_replica: number

        Max Replica

        Maximum number of replicas

      • max_scale_down_rate: number | null

        Max Scale Down Rate

        Maximum percentage of replicas that can be removed per autoscaling window. Null inherits the environment value.

      • min_replica: number

        Min Replica

        Minimum number of replicas

      • scale_down_delay: number | null

        Scale Down Delay

        Waiting period before scaling down any active replica. Null inherits the environment value.

      • target_in_flight_tokens: number | null

        Target In Flight Tokens

        Target number of in-flight tokens for autoscaling decisions. Null inherits the environment value. Early access only.

      • target_utilization_percentage: number | null

        Target Utilization Percentage

        Target utilization percentage for scaling up/down. Null inherits the environment value.

    • AutoscalingScheduleSettingsRequest: {
          autoscaling_window: number | null;
          concurrency_target: number | null;
          max_replica: number;
          max_scale_down_rate: number | null;
          min_replica: number;
          scale_down_delay: number | null;
          target_in_flight_tokens: number | null;
          target_utilization_percentage: number | null;
      }

      AutoscalingScheduleSettingsRequestV1

      A complete set of raw autoscaling overrides for a schedule.

      • autoscaling_window: number | null

        Autoscaling Window

        Timeframe of traffic considered for autoscaling decisions. Null stores no schedule override and follows the current environment value.

      • concurrency_target: number | null

        Concurrency Target

        Number of requests per replica before scaling up. Null stores no schedule override and follows the current environment value.

      • max_replica: number

        Max Replica

        Maximum number of replicas

      • max_scale_down_rate: number | null

        Max Scale Down Rate

        Maximum percentage of replicas that can be removed per autoscaling window. Null stores no schedule override and follows the current environment value.

      • min_replica: number

        Min Replica

        Minimum number of replicas

      • scale_down_delay: number | null

        Scale Down Delay

        Waiting period before scaling down any active replica. Null stores no schedule override and follows the current environment value.

      • target_in_flight_tokens: number | null

        Target In Flight Tokens

        Target number of in-flight tokens for autoscaling decisions. Null stores no schedule override and follows the current environment value. Early access only.

      • target_utilization_percentage: number | null

        Target Utilization Percentage

        Target utilization percentage for scaling up/down. Null stores no schedule override and follows the current environment value.

    • AutoscalingScheduleState: {
          autoscaling_settings: components["schemas"]["AutoscalingSettings"];
          schedule_id: string | null;
      }

      AutoscalingScheduleStateV1

      • autoscaling_settings: components["schemas"]["AutoscalingSettings"]

        Autoscaling settings on the current serving deployment. In a PATCH response, this snapshot can precede asynchronous schedule reconciliation; poll the GET endpoint for the applied state.

      • schedule_id: string | null

        Schedule Id

        Stable schedule identifier, or null when the baseline settings apply

    • AutoscalingScheduleUpsert: {
          autoscaling_settings: components["schemas"]["AutoscalingScheduleSettingsRequest"];
          cadence: "DAILY" | "HOURLY";
          enabled: boolean;
          end_hour?: number | null;
          end_minute: number;
          id?: string | null;
          name: string;
          start_hour?: number | null;
          start_minute: number;
          weekdays: components["schemas"]["AutoscalingScheduleWeekday"][];
      }

      AutoscalingScheduleUpsertV1

      A complete recurring schedule submitted for create or replacement.

      • autoscaling_settings: components["schemas"]["AutoscalingScheduleSettingsRequest"]

        Complete raw autoscaling overrides for the schedule. Every field is required; nullable fields store no schedule override and follow the current environment value.

      • cadence: "DAILY" | "HOURLY"

        Recurring schedule cadence (enum property replaced by openapi-typescript)

      • enabled: boolean

        Enabled

        Whether the schedule is enabled

      • Optionalend_hour?: number | null

        End Hour

        End hour in the environment schedule timezone. Omit for unrestricted HOURLY schedules.

      • end_minute: number

        End Minute

        End minute of the schedule window

      • Optionalid?: string | null

        Id

        Stable schedule identifier. Omit this field to create a schedule.

      • name: string

        Name

        Name of the schedule

      • Optionalstart_hour?: number | null

        Start Hour

        Start hour in the environment schedule timezone. Omit for unrestricted HOURLY schedules.

      • start_minute: number

        Start Minute

        Start minute of the schedule window

      • weekdays: components["schemas"]["AutoscalingScheduleWeekday"][]

        Weekdays

        Weekdays on which the schedule runs

    • AutoscalingScheduleWeekday:
          | "SUNDAY"
          | "MONDAY"
          | "TUESDAY"
          | "WEDNESDAY"
          | "THURSDAY"
          | "FRIDAY"
          | "SATURDAY"

      AutoscalingScheduleWeekdayV1

    • AutoscalingSettings: {
          autoscaling_window: number | null;
          concurrency_target: number;
          max_replica: number;
          max_scale_down_rate: number | null;
          min_replica: number;
          scale_down_delay: number | null;
          target_in_flight_tokens: number | null;
          target_utilization_percentage: number | null;
      }

      AutoscalingSettingsV1

      Autoscaling settings for a deployment.

      • autoscaling_window: number | null

        Autoscaling Window

        Timeframe of traffic considered for autoscaling decisions

      • concurrency_target: number

        Concurrency Target

        Number of requests per replica before scaling up

      • max_replica: number

        Max Replica

        Maximum number of replicas

      • max_scale_down_rate: number | null

        Max Scale Down Rate

        Maximum percentage of replicas that can be removed per autoscaling window (1–50). E.g. 20 means at most 20% of replicas are removed per window.

        null
        
      • min_replica: number

        Min Replica

        Minimum number of replicas

      • scale_down_delay: number | null

        Scale Down Delay

        Waiting period before scaling down any active replica

      • target_in_flight_tokens: number | null

        Target In Flight Tokens

        Target number of in-flight tokens for autoscaling decisions. Early access only.

        null
        
      • target_utilization_percentage: number | null

        Target Utilization Percentage

        Target utilization percentage for scaling up/down.

    • AvailabilityModel: "standard" | "spot"

      AvailabilityModelV1

      Capacity a training job or Loops trainer runs on.

    • AwsAssumeRole: { baseten_role_arn: string; external_id: string }

      AwsAssumeRoleV1

      AWS AssumeRole trust-policy inputs for the organization.

      • baseten_role_arn: string

        Baseten Role Arn

        Baseten role ARN to allow in an IAM role's trust policy

      • external_id: string

        External Id

        sts:ExternalId Baseten presents when assuming the role

    • AwsAssumeRoleDockerAuth: { region: string; role_arn: string }

      AwsAssumeRoleDockerAuthV1

      AWS assume-role details for the registry.

      • region: string

        Region

        AWS region of the registry

      • role_arn: string

        Role Arn

        AWS IAM role ARN that Baseten assumes to pull from the registry. The role's trust policy must allow Baseten's AWS principal with your Baseten-provided external ID.

    • AWSCredentials: {
          aws_access_key_id: string;
          aws_secret_access_key: string;
          aws_session_token: string;
      }

      AWSCredentialsV1

      AWS credentials

      • aws_access_key_id: string

        Aws Access Key Id

        The AWS access key ID

      • aws_secret_access_key: string

        Aws Secret Access Key

        The AWS secret access key

      • aws_session_token: string

        Aws Session Token

        The AWS session token

    • AwsIamDockerAuth: {
          access_key_secret_ref: components["schemas"]["SecretReference"];
          secret_access_key_secret_ref: components["schemas"]["SecretReference"];
      }

      AwsIamDockerAuthV1

      AWS details for the registry.

      • access_key_secret_ref: components["schemas"]["SecretReference"]

        Name of the access key secret

      • secret_access_key_secret_ref: components["schemas"]["SecretReference"]

        Name of the secret key secret

    • AwsOidcDockerAuth: { region: string; role_arn: string }

      AwsOidcDockerAuthV1

      AWS OIDC details for the registry.

      • region: string

        Region

        AWS region for OIDC authentication

      • role_arn: string

        Role Arn

        AWS IAM role ARN for OIDC authentication

    • BasetenLatestCheckpointConfig: {
          job_id?: string | null;
          project_name?: string | null;
          typ: "baseten_latest_checkpoint";
      }

      BasetenLatestCheckpointConfig

      • Optionaljob_id?: string | null

        Job Id

        ID of the job to load the checkpoint from

      • Optionalproject_name?: string | null

        Project Name

        Name of the project to load the checkpoint from

      • typ: "baseten_latest_checkpoint"

        discriminator enum property added by openapi-typescript

    • BasetenNamedCheckpointConfig: {
          checkpoint_name: string;
          job_id?: string | null;
          project_name?: string | null;
          typ: "baseten_named_checkpoint";
      }

      BasetenNamedCheckpointConfig

      • checkpoint_name: string

        Checkpoint Name

        Name of the checkpoint to load from

      • Optionaljob_id?: string | null

        Job Id

        ID of the job to load the checkpoint from

      • Optionalproject_name?: string | null

        Project Name

        Name of the project to load the checkpoint from

      • typ: "baseten_named_checkpoint"

        discriminator enum property added by openapi-typescript

    • BenchmarkSnapshot: {
          embedding?: components["schemas"]["EmbeddingBenchmarkMetrics"] | null;
          llm?: components["schemas"]["LLMBenchmarkMetrics"] | null;
          measured_at: string;
          profile?: string | null;
          replicas?: number | null;
          run_id: string;
          tts?: components["schemas"]["TTSBenchmarkMetrics"] | null;
      }

      BenchmarkSnapshotV1

      • Optionalembedding?: components["schemas"]["EmbeddingBenchmarkMetrics"] | null
      • Optionalllm?: components["schemas"]["LLMBenchmarkMetrics"] | null
      • measured_at: string

        Measured At Format: date

      • Optionalprofile?: string | null

        Profile

      • Optionalreplicas?: number | null

        Replicas

      • run_id: string

        Run Id

      • Optionaltts?: components["schemas"]["TTSBenchmarkMetrics"] | null
    • BillableResource: {
          base_model: string | null;
          chain_metadata: components["schemas"]["ChainMetadata"] | null;
          environment_name: string | null;
          id: string;
          instance_type: string | null;
          is_deleted: boolean;
          kind: components["schemas"]["ResourceKind"];
          model_id: string | null;
          model_name: string | null;
          name: string | null;
          team_id: string | null;
          team_name: string | null;
      }

      BillableResourceV1

      • base_model: string | null

        Base Model

        Base model used by this Loops run, trainer, or sampler

        null
        
      • chain_metadata: components["schemas"]["ChainMetadata"] | null

        Chain metadata if this is a chainlet deployment

        null
        
      • environment_name: string | null

        Environment Name

        Environment name (e.g., 'production', 'staging')

        null
        
      • id: string

        Id

        Unique identifier of the resource

      • instance_type: string | null

        Instance Type

        Instance type used

        null
        
      • is_deleted: boolean

        Is Deleted

        Indicates if the resource has been deleted

      • kind: components["schemas"]["ResourceKind"]

        Resource kind (MODEL_DEPLOYMENT, CHAINLET, TRAINING_JOB, LOOPS_TRAINER, LOOPS_SAMPLER, or LOOPS_RUN)

      • model_id: string | null

        Model Id

        Unique identifier of the parent model for model deployments and chainlets

        null
        
      • model_name: string | null

        Model Name

        Name of the parent resource (e.g., model name for model deployments, training project name for training jobs)

        null
        
      • name: string | null

        Name

        Name of the resource

        null
        
      • team_id: string | null

        Team Id

        Unique identifier of the team that owns the resource. Only present for organizations with multiple teams enabled.

        null
        
      • team_name: string | null

        Team Name

        Name of the team that owns the resource. Only present for organizations with multiple teams enabled.

        null
        
    • BucketWidth: "1m" | "1h" | "1d"

      BucketWidth

    • CancelPromotionResponse: { message: string; status: components["schemas"]["CancelPromotionStatus"] }

      CancelPromotionResponseV1

      The response to a request to cancel a promotion.

      • message: string

        Message

        A message describing the status of the request to cancel a promotion

      • status: components["schemas"]["CancelPromotionStatus"]

        Status of the request to cancel a promotion. Can be CANCELED or RAMPING_DOWN.

    • CancelPromotionStatus: "CANCELED" | "RAMPING_DOWN"

      CancelPromotionStatusV1

      The status of a request to cancel a promotion.

    • CapacityAtSubmit: {
          gpu_type: string;
          last_modified: string;
          max_gpus: number;
          min_gpus: number | null;
      }

      CapacityAtSubmitV1

      A GPU capacity row as it stands now, with last_modified so callers can judge whether the value matches what the dequeue gate saw at submit time. Capacity rows are not historicized: edits overwrite in place. Compare last_modified against the response's submitted_at — if it's later, the value may have changed.

      • gpu_type: string

        Gpu Type

        GPU type identifier (e.g. H100, A100-40GB)

      • last_modified: string

        Last Modified Format: date-time

        When the capacity row was last modified

      • max_gpus: number

        Max Gpus

        Current max concurrent GPUs of this type

      • min_gpus: number | null

        Min Gpus

        Current baseline GPU allocation, if configured

        null
        
    • Chain: {
          created_at: string;
          deployments_count: number;
          id: string;
          name: string;
          team_name: string;
      }

      ChainV1

      A chain.

      • created_at: string

        Created At Format: date-time

        Time the chain was created in ISO 8601 format

      • deployments_count: number

        Deployments Count

        Number of deployments of the chain

      • id: string

        Id

        Unique identifier of the chain

      • name: string

        Name

        Name of the chain

      • team_name: string

        Team Name

        Name of the team associated with the chain

    • ChainDeployment: {
          chain_id: string;
          chainlets: components["schemas"]["Chainlet"][];
          created_at: string;
          environment: string | null;
          id: string;
          status: components["schemas"]["DeploymentStatus"];
      }

      ChainDeploymentV1

      A deployment of a chain.

      • chain_id: string

        Chain Id

        Unique identifier of the chain

      • chainlets: components["schemas"]["Chainlet"][]

        Chainlets

        Chainlets in the chain deployment

      • created_at: string

        Created At Format: date-time

        Time the chain deployment was created in ISO 8601 format

      • environment: string | null

        Environment

        Environment the chain deployment is deployed in

      • id: string

        Id

        Unique identifier of the chain deployment

      • status: components["schemas"]["DeploymentStatus"]

        Status of the chain deployment

    • ChainDeployments: { deployments: components["schemas"]["ChainDeployment"][] }

      ChainDeploymentsV1

      A list of chain deployments.

      • deployments: components["schemas"]["ChainDeployment"][]

        Deployments

        A list of chain deployments

    • ChainDeploymentTombstone: { chain_id: string; deleted: boolean; id: string }

      ChainDeploymentTombstoneV1

      A chain deployment tombstone.

      • chain_id: string

        Chain Id

        Unique identifier of the chain

      • deleted: boolean

        Deleted

        Whether the chain deployment was deleted

      • id: string

        Id

        Unique identifier of the chain deployment

    • ChainEnvironment: {
          candidate_deployment: components["schemas"]["ChainDeployment"] | null;
          chain_id: string;
          chainlet_settings: components["schemas"]["ChainletEnvironmentSettings"][];
          created_at: string;
          current_deployment: components["schemas"]["ChainDeployment"] | null;
          in_progress_promotion: components["schemas"]["InProgressPromotion"] | null;
          name: string;
          promotion_settings: components["schemas"]["PromotionSettings"];
      }

      ChainEnvironmentV1

      Environment for oracles.

      • candidate_deployment: components["schemas"]["ChainDeployment"] | null

        Candidate chain deployment being promoted to the environment, if a promotion is in progress

        null
        
      • chain_id: string

        Chain Id

        Unique identifier of the chain

      • chainlet_settings: components["schemas"]["ChainletEnvironmentSettings"][]

        Chainlet Settings

        Environment settings for the chainlets

      • created_at: string

        Created At Format: date-time

        Time the environment was created in ISO 8601 format

      • current_deployment: components["schemas"]["ChainDeployment"] | null

        Current chain deployment of the environment

      • in_progress_promotion: components["schemas"]["InProgressPromotion"] | null

        Details of the in-progress promotion, if any

        null
        
      • name: string

        Name

        Name of the environment

      • promotion_settings: components["schemas"]["PromotionSettings"]

        Promotion settings for the environment

    • Chainlet: {
          active_replica_count: number;
          autoscaling_settings: components["schemas"]["AutoscalingSettings"] | null;
          id: string;
          instance_type_name: string;
          name: string;
          status: components["schemas"]["DeploymentStatus"];
      }

      ChainletV1

      A chainlet in a chain deployment.

      • active_replica_count: number

        Active Replica Count

        Number of active replicas

      • autoscaling_settings: components["schemas"]["AutoscalingSettings"] | null

        Autoscaling settings for the chainlet. If null, it has not finished deploying

      • id: string

        Id

        Unique identifier of the chainlet

      • instance_type_name: string

        Instance Type Name

        Name of the instance type the chainlet is deployed on

      • name: string

        Name

        Name of the chainlet

      • status: components["schemas"]["DeploymentStatus"]

        Status of the chainlet

    • ChainletEnvironmentAutoscalingSettingsUpdate: {
          autoscaling_settings: components["schemas"]["UpdateAutoscalingSettings"];
          chainlet_name: string;
      }

      ChainletEnvironmentAutoscalingSettingsUpdateV1

      The request to update the autoscaling settings for a chainlet.

      • autoscaling_settings: components["schemas"]["UpdateAutoscalingSettings"]

        Autoscaling settings for the chainlet

        {
        * "autoscaling_window": 800,
        * "concurrency_target": 3,
        * "max_replica": 2,
        * "max_scale_down_rate": null,
        * "min_replica": 1,
        * "scale_down_delay": 60,
        * "target_in_flight_tokens": null,
        * "target_utilization_percentage": null
        * }
      • chainlet_name: string

        Chainlet Name

        Name of the chainlet

        HelloWorld
        
    • ChainletEnvironmentInstanceTypeUpdate: { chainlet_name: string; instance_type_id: string }

      ChainletEnvironmentInstanceTypeUpdateV1

      A request to update the environment settings for a chainlet.

      • chainlet_name: string

        Chainlet Name

        Name of the chainlet

        HelloWorld
        
      • instance_type_id: string

        Instance Type Id

        Key of the instance type to use for the chainlet

        1x4
        
        2x8
        
        A10G:2x24x96
        
    • ChainletEnvironmentSettings: {
          autoscaling_settings:
              | components["schemas"]["AutoscalingSettings"]
              | null;
          chainlet_name: string;
          instance_type: components["schemas"]["InstanceType"];
      }

      ChainletEnvironmentSettingsV1

      Environment settings for a chainlet.

      • autoscaling_settings: components["schemas"]["AutoscalingSettings"] | null

        Autoscaling settings for the chainlet. If null, it has not finished deploying

      • chainlet_name: string

        Chainlet Name

        Name of the chainlet

      • instance_type: components["schemas"]["InstanceType"]

        Instance type for the chainlet

    • ChainletEnvironmentSettingsRequest: {
          autoscaling_settings?:
              | components["schemas"]["UpdateAutoscalingSettings"]
              | null;
          chainlet_name: string;
          instance_type_id?: string;
      }

      ChainletEnvironmentSettingsRequestV1

      Request to create environment settings for a chainlet.

      • Optionalautoscaling_settings?: components["schemas"]["UpdateAutoscalingSettings"] | null

        Autoscaling settings for the chainlet

        {
        * "autoscaling_window": 60,
        * "concurrency_target": 1,
        * "max_replica": 1,
        * "max_scale_down_rate": null,
        * "min_replica": 0,
        * "scale_down_delay": 900,
        * "target_in_flight_tokens": null,
        * "target_utilization_percentage": 70
        * }
      • chainlet_name: string

        Chainlet Name

        Name of the chainlet

        HelloWorld
        
      • Optionalinstance_type_id?: string

        Instance Type Id

        ID of the instance type to use for the chainlet

        1x4
        
        2x8
        
        A10G:2x24x96
        
        H100:2x52x468
        
    • ChainMetadata: { chain_deployment_id: string; chain_id: string; chain_name: string | null }

      ChainMetadataV1

      • chain_deployment_id: string

        Chain Deployment Id

        Unique identifier of the chain deployment

      • chain_id: string

        Chain Id

        Unique identifier of the chain

      • chain_name: string | null

        Chain Name

        Name of the chain

        null
        
    • Chains: { chains: components["schemas"]["Chain"][] }

      ChainsV1

      A list of chains.

    • ChainTombstone: { deleted: boolean; id: string }

      ChainTombstoneV1

      A chain tombstone.

      • deleted: boolean

        Deleted

        Whether the chain was deleted

      • id: string

        Id

        Unique identifier of the chain

    • CheckpointFile: {
          last_modified: string;
          node_rank: number;
          relative_file_name: string;
          size_bytes: number;
          url: string;
      }

      CheckpointFile

      • last_modified: string

        Last Modified

      • node_rank: number

        Node Rank

      • relative_file_name: string

        Relative File Name

      • size_bytes: number

        Size Bytes

      • url: string

        Url

    • CheckpointSyncStatus: "SYNCING" | "COMPLETED"

      CheckpointSyncStatus

      Lifecycle state for the checkpoint uploader.

    • CleanupImagesParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • CleanupSandboxImagesResponse: { deleted: number; has_more?: boolean; message: string; remaining?: number }

      Result of cleaning up unused sandbox images.

      {
      * "deleted": 3,
      * "message": "Removed 3 unused image versions. Image versions used by active sandboxes were retained."
      * }
      • deleted: number

        Number of image versions removed.

        3
        
      • Optionalhas_more?: boolean

        True when the cleanup stopped on its time limit before every unused version was removed. Call it again to continue.

        false
        
      • message: string

        Human-readable cleanup result.

        Removed 3 unused image versions. Image versions used by active sandboxes were retained.
        
      • Optionalremaining?: number

        Number of unused image versions left for a next call.

        0
        
    • CreateApiKeyForGroupRequest: { name?: string | null }

      CreateApiKeyForGroupRequestV1

      • Optionalname?: string | null

        Name

        Optional display name for the new key.

        prod-key-1
        
    • CreateApiKeyForGroupResponse: { api_key: string; name: string | null; prefix: string }

      CreateApiKeyForGroupResponseV1

      • api_key: string

        Api Key

        Plaintext key string, returned exactly once.

      • name: string | null

        Name

        Display name of the key.

        null
        
      • prefix: string

        Prefix

        Key prefix (the part before the dot).

    • CreateAPIKeyRequest: {
          expires_at?: string | null;
          model_ids?: string[] | null;
          name?: string | null;
          team_id?: string | null;
          type: components["schemas"]["APIKeyCategory"];
      }

      CreateAPIKeyRequestV1

      Request to create an API key.

      • Optionalexpires_at?: string | null

        Expires At

        Expiration time in UTC. Must be in the future. Personal keys must expire within 90 days, or sooner if your organization sets a lower limit. Team and organization keys require an expiration within your organization's limit when one is set; otherwise they may omit it or use null. Organization lifetime limits do not apply to Grid keys.

        2027-01-01T00:00:00Z
        
      • Optionalmodel_ids?: string[] | null

        Model Ids

        List of model IDs to scope the API key to, only present if type is 'WORKSPACE_EXPORT_METRICS' or 'WORKSPACE_INVOKE'

        [
        "aaaaaaaa"
        ]
      • Optionalname?: string | null

        Name

        Optional name for the API key

        my-api-key
        
      • Optionalteam_id?: string | null

        Team Id

        Team ID for a team-scoped key. When omitted, uses the team in the URL if present, otherwise your organization's default team. Must match the URL team when both are provided. Not supported for PERSONAL or WORKSPACE_MANAGE_API_KEYS keys.

      • type: components["schemas"]["APIKeyCategory"]

        Type of the API key.

        PERSONAL
        
        GRID
        
        WORKSPACE_MANAGE_API_KEYS
        
        WORKSPACE_EXPORT_METRICS
        
        WORKSPACE_INVOKE
        
        WORKSPACE_MANAGE_ALL
        
    • CreateChainEnvironmentRequest: {
          chainlet_settings?:
              | components["schemas"]["ChainletEnvironmentSettingsRequest"][]
              | null;
          name: string;
          promotion_settings?: | components["schemas"]["UpdatePromotionSettings"]
          | null;
      }

      CreateChainEnvironmentRequestV1

      A request to create a custom environment for a chain.

      • Optionalchainlet_settings?: components["schemas"]["ChainletEnvironmentSettingsRequest"][] | null

        Chainlet Settings

        Mapping of chainlet name to the desired chainlet environment settings

        [
        {
        "autoscaling_settings": {
        "autoscaling_window": 800,
        "concurrency_target": 4,
        "max_replica": 3,
        "max_scale_down_rate": null,
        "min_replica": 2,
        "scale_down_delay": 63,
        "target_in_flight_tokens": null,
        "target_utilization_percentage": null
        },
        "chainlet_name": "HelloWorld",
        "instance_type_id": "2x8"
        },
        {
        "autoscaling_settings": {
        "autoscaling_window": null,
        "concurrency_target": null,
        "max_replica": 3,
        "max_scale_down_rate": null,
        "min_replica": 3,
        "scale_down_delay": null,
        "target_in_flight_tokens": null,
        "target_utilization_percentage": null
        },
        "chainlet_name": "RandInt",
        "instance_type_id": "A10Gx8x32"
        }
        ]
      • name: string

        Name

        Name of the environment

        staging
        
      • Optionalpromotion_settings?: components["schemas"]["UpdatePromotionSettings"] | null

        Promotion settings for the environment

        {
        * "promotion_cleanup_strategy": null,
        * "ramp_up_duration_seconds": 600,
        * "ramp_up_while_promoting": true,
        * "redeploy_on_promotion": true,
        * "rolling_deploy": null,
        * "rolling_deploy_config": null
        * }
    • CreateDeploymentPatchRequest: {
          next_patch_point: components["schemas"]["DeploymentPatchPoint"];
          patch_ops: (
              | components["schemas"]["DeploymentPatchOpModelCode"]
              | components["schemas"]["DeploymentPatchOpPackage"]
              | components["schemas"]["DeploymentPatchOpConfig"]
              | components["schemas"]["DeploymentPatchOpPythonRequirement"]
              | components["schemas"]["DeploymentPatchOpEnvVar"]
              | components["schemas"]["DeploymentPatchOpExternalData"]
          )[];
          prev_patch_hash: string;
      }

      CreateDeploymentPatchRequestV1

      A patch to stage against the development deployment.

      Staging is durable on its own: the patch is persisted independently of the
      later sync, so a failed sync does not lose it.
      
      • next_patch_point: components["schemas"]["DeploymentPatchPoint"]

        The source state after this patch. The server derives its content hash from content_hashes.

      • patch_ops: (
            | components["schemas"]["DeploymentPatchOpModelCode"]
            | components["schemas"]["DeploymentPatchOpPackage"]
            | components["schemas"]["DeploymentPatchOpConfig"]
            | components["schemas"]["DeploymentPatchOpPythonRequirement"]
            | components["schemas"]["DeploymentPatchOpEnvVar"]
            | components["schemas"]["DeploymentPatchOpExternalData"]
        )[]

        Patch Ops

        The ordered ops that make up this patch. At least one op is required; a patch that changes nothing is not a valid request. There is no op for a directory: a directory comes into existence when the first file under it is added, and is removed when its last file is removed, so directory creation and deletion happen implicitly through the file ops. Adding or removing an otherwise empty directory therefore produces no ops even though it changes the source hash; do not send a patch request for such a change.

      • prev_patch_hash: string

        Prev Patch Hash

        Content hash of the patch point this patch is applied on - the link the staged patch must build on. A stale value (the base moved underneath the client) is rejected with a conflict.

    • CreateDeploymentPatchResponse: { patch_point: components["schemas"]["DeploymentPatchPointWithHash"] }

      CreateDeploymentPatchResponseV1

      The created patch, represented by the patch point it produced.

      • patch_point: components["schemas"]["DeploymentPatchPointWithHash"]

        The resulting patch point the staged patch produced; matches the pending point a subsequent state read returns.

    • CreatedGridMachineUser: {
          api_key: string | null;
          created_at: string;
          created_by: string | null;
          id: string;
          name: string;
          team_id: string;
          team_name: string;
      }

      CreatedGridMachineUserV1

      • api_key: string | null

        Api Key

        The first API key, returned only once. Null unless the request set api_key.

        null
        
      • created_at: string

        Created At Format: date-time

        Creation time, ISO 8601.

      • created_by: string | null

        Created By

        ID of the user who created the machine user. Null when unknown.

        null
        
      • id: string

        Id

        Stable machine user identifier. Grid usage and settings identify the machine user by this ID as its user_id.

      • name: string

        Name

        Name of the machine user, unique within its team.

      • team_id: string

        Team Id

        Identifier of the team that owns the machine user.

      • team_name: string

        Team Name

        Name of the team that owns the machine user.

    • CreatedModelDeployment: {
          deployment: components["schemas"]["Deployment"];
          model: components["schemas"]["Model"];
      }

      CreatedModelDeploymentV1

      A newly created deployment and its model.

      • deployment: components["schemas"]["Deployment"]

        The newly created deployment.

      • model: components["schemas"]["Model"]

        The model the deployment belongs to. May have been created by this call.

    • CreateEndpointRequest: {
          region?: components["schemas"]["SharedEndpointRegion"];
          slug: string;
          targets: components["schemas"]["EndpointTargetRequest"][];
      }

      CreateEndpointRequestV1

      • Optionalregion?: components["schemas"]["SharedEndpointRegion"]

        Region the new routing serves.

      • slug: string

        Slug

        Globally-unique slug of the form '{org_prefix}/{name}'.

        baseten/mymodel-4
        
      • targets: components["schemas"]["EndpointTargetRequest"][]

        Targets

        The endpoint's upstream targets. Exactly one target is supported at this time.

        [
        {
        "environment_name": "staging",
        "model_id": "3kZ9xqd",
        "provider": "BASETEN",
        "target_model": "custom/model-name"
        }
        ]
        [
        {
        "provider": "OPENAI",
        "secret_id": "3kZ9xqd",
        "target_model": "gpt-4o"
        }
        ]
        [
        {
        "base_url": "https://my-vllm.example.com",
        "provider": "OPENAI_COMPATIBLE",
        "secret_id": "3kZ9xqd",
        "target_model": "my-model"
        }
        ]
    • CreateEnvironmentRequest: {
          autoscaling_settings?:
              | components["schemas"]["UpdateAutoscalingSettings"]
              | null;
          name: string;
          promotion_settings?: | components["schemas"]["UpdateModelPromotionSettings"]
          | null;
          request_backpressure_settings?: | components["schemas"]["UpdateRequestBackpressureSettings"]
          | null;
      }

      CreateEnvironmentRequestV1

      A request to create an environment.

      • Optionalautoscaling_settings?: components["schemas"]["UpdateAutoscalingSettings"] | null

        Autoscaling settings for the environment

        {
        * "autoscaling_window": 800,
        * "concurrency_target": 3,
        * "max_replica": 2,
        * "max_scale_down_rate": null,
        * "min_replica": 1,
        * "scale_down_delay": 60,
        * "target_in_flight_tokens": null,
        * "target_utilization_percentage": null
        * }
      • name: string

        Name

        Name of the environment

        staging
        
      • Optionalpromotion_settings?: components["schemas"]["UpdateModelPromotionSettings"] | null

        Promotion settings for the environment. New Model environments use rolling promotions by default. Set rolling_deploy to false to opt out.

        {
        * "promotion_cleanup_strategy": null,
        * "ramp_up_duration_seconds": null,
        * "ramp_up_while_promoting": null,
        * "redeploy_on_promotion": true,
        * "rolling_deploy": false,
        * "rolling_deploy_config": null
        * }
      • Optionalrequest_backpressure_settings?: components["schemas"]["UpdateRequestBackpressureSettings"] | null

        Request backpressure settings for the environment.

    • CreateGridConnectionRequest: {
          config:
              | components["schemas"]["UpsertGridConnectionConfigAnthropic"]
              | components["schemas"]["UpsertGridConnectionConfigOpenAI"]
              | components["schemas"]["UpsertGridConnectionConfigXAI"]
              | components["schemas"]["UpsertGridConnectionConfigVertex"]
              | components["schemas"]["UpsertGridConnectionConfigBedrock"];
          team_id?: string
          | null;
      }

      CreateGridConnectionRequestV1

      • config:
            | components["schemas"]["UpsertGridConnectionConfigAnthropic"]
            | components["schemas"]["UpsertGridConnectionConfigOpenAI"]
            | components["schemas"]["UpsertGridConnectionConfigXAI"]
            | components["schemas"]["UpsertGridConnectionConfigVertex"]
            | components["schemas"]["UpsertGridConnectionConfigBedrock"]

        Config

        Provider the connection authenticates with, and the team secret holding its API key.

        {
        * "provider": "ANTHROPIC",
        * "secret_name": "anthropic-key"
        * }
      • Optionalteam_id?: string | null

        Team Id

        Identifier of the team that owns the connection.

        abc1234
        
    • CreateGridMachineUserAPIKeyRequest: { name?: string | null }

      CreateGridMachineUserAPIKeyRequestV1

      • Optionalname?: string | null

        Name

        Name of the API key: lowercase letters, numbers, and hyphens, at most 255 characters, and unique among the machine user's active keys. Defaults to a name derived from the machine user's.

        production
        
    • CreateGridMachineUserRequest: {
          api_key?:
              | components["schemas"]["CreateGridMachineUserAPIKeyRequest"]
              | null;
          name: string;
          team_id?: string
          | null;
      }

      CreateGridMachineUserRequestV1

      • Optionalapi_key?: components["schemas"]["CreateGridMachineUserAPIKeyRequest"] | null

        When set, also creates the machine user's first API key.

      • name: string

        Name

        Name of the machine user, unique within the team. At most 255 characters.

        night-shift
        
      • Optionalteam_id?: string | null

        Team Id

        Identifier of the team that owns the machine user. Defaults to your only team, if you belong to exactly one.

        abc1234
        
    • CreateGridRouteRequest: {
          description?: string | null;
          display_name?: string | null;
          target:
              | components["schemas"]["UpsertGridRouteTargetBasetenModelAPI"]
              | components["schemas"]["UpsertGridRouteTargetConnection"]
              | components["schemas"]["UpsertGridRouteTargetClassifier"];
          team_id?: string
          | null;
      }

      CreateGridRouteRequestV1

      • Optionaldescription?: string | null

        Description

        Short description of the route. Omit for no description; null is not accepted.

        Assistant for code review and debugging.
        
      • Optionaldisplay_name?: string | null

        Display Name

        Display label. Omit to use the route name; null is not accepted.

        Assistant
        
      • target:
            | components["schemas"]["UpsertGridRouteTargetBasetenModelAPI"]
            | components["schemas"]["UpsertGridRouteTargetConnection"]
            | components["schemas"]["UpsertGridRouteTargetClassifier"]

        Target

        Upstream target for the route. CONNECTION targets use the provider and credentials of a connection owned by the route's team.

        {
        * "model": "zai-org/GLM-5.3",
        * "type": "BASETEN_MODEL_API"
        * }
      • Optionalteam_id?: string | null

        Team Id

        Identifier of the team that owns the route.

        abc1234
        
    • CreateGridTokenRequest: { team_id?: string | null }

      CreateGridTokenRequestV1

      • Optionalteam_id?: string | null

        Team Id

        ID of the team. When omitted, the team you belong to; required when you belong to several.

        abc1234
        
    • CreateGroupHierarchy: {
          limit_enforcement?: components["schemas"]["LimitEnforcement"] | null;
          parent_group_id?: string | null;
      }

      CreateGroupHierarchyV1

      • Optionallimit_enforcement?: components["schemas"]["LimitEnforcement"] | null

        Limit behavior. Child groups inherit their parent's behavior when omitted; root groups default to Independent for backwards compatibility.

        INDEPENDENT
        
      • Optionalparent_group_id?: string | null

        Parent Group Id

        abc123
        
    • CreateGroupRequest: {
          hierarchy: components["schemas"]["CreateGroupHierarchy"];
          metadata: components["schemas"]["GroupMetadata"];
          models: components["schemas"]["ModelConfig"][];
      }

      CreateGroupRequestV1

      • hierarchy: components["schemas"]["CreateGroupHierarchy"]

        Parent linkage and limit enforcement mode. Immutable after creation.

      • metadata: components["schemas"]["GroupMetadata"]

        Group identity + display metadata.

      • models: components["schemas"]["ModelConfig"][]

        Models

        Per-model rate and usage limit configuration. Defines the group's complete model set. Must be non-empty.

        [
        {
        "slug": "my-org/claude"
        }
        ]
    • CreateJobWeightConfig: {
          allow_patterns?: string[] | null;
          auth?: components["schemas"]["TrainingWeightAuth"] | null;
          auth_secret_name?: string | null;
          ignore_patterns?: string[] | null;
          mount_location: string;
          source: string;
      }

      CreateJobWeightConfigV1

      Weight source configuration for MDN (Model Distribution Network).

      Enables training jobs to mount external model weights from HuggingFace, S3, GCS, R2,
      or CoreWeave via MDN's caching and CSI mounting infrastructure. Weights are mirrored
      once and deduplicated across training jobs.
      
      • Optionalallow_patterns?: string[] | null

        Allow Patterns

        File patterns to include (Unix-style shell patterns)

        [
        "*.safetensors",
        "config.json"
        ]
      • Optionalauth?: components["schemas"]["TrainingWeightAuth"] | null

        Authentication configuration for the weight source.

        {
        * "auth_method": "CUSTOM_SECRET",
        * "auth_secret_name": "hf_token"
        * }
        {
        * "auth_method": "AWS_OIDC",
        * "aws_oidc_region": "us-east-1",
        * "aws_oidc_role_arn": "arn:aws:iam::123456789012:role/weights-access"
        * }
        {
        * "auth_method": "GCP_OIDC",
        * "gcp_oidc_service_account": "weights-reader@example.iam.gserviceaccount.com",
        * "gcp_oidc_workload_id_provider": "projects/123456789/locations/global/workloadIdentityPools/baseten/providers/baseten"
        * }
        {
        * "auth_method": "AWS_ASSUME_ROLE",
        * "aws_assume_role_arn": "arn:aws:iam::123456789012:role/baseten-customer-access",
        * "aws_assume_role_region": "us-east-1"
        * }
      • Optionalauth_secret_name?: string | null

        Auth Secret Name

        Name of the workspace secret for authentication (e.g., HuggingFace token)

        hf_token
        
        aws_credentials
        
      • Optionalignore_patterns?: string[] | null

        Ignore Patterns

        File patterns to exclude (Unix-style shell patterns)

        [
        "*.bin",
        "*.h5"
        ]
      • mount_location: string

        Mount Location

        Path where weights will be mounted in the container

        /app/models/base
        
        /models/llama
        
      • source: string

        Source

        Weight source URI. Supported formats: hf://, s3://, gs://, r2://, cw://

        hf://meta-llama/Llama-3-8B@main
        
        s3://my-bucket/models/llama
        
        gs://my-bucket/models/llama
        
        r2://account_id.bucket/models/llama
        
        r2://account_id.eu.bucket/models/llama
        
        cw://my-bucket/models/llama
        
    • CreateLibraryListingRequest: {
          closed_source?: boolean;
          display_name: string;
          is_listed?: boolean;
          is_public?: boolean;
          user_defined_id: string;
      }

      CreateLibraryListingRequestV1

      Request to create a new library listing.

      • Optionalclosed_source?: boolean

        Closed Source

        Whether the listing is closed source (deployers cannot view or download the Truss, and forks copy mirrored weights instead of re-mirroring from upstream)

      • display_name: string

        Display Name

        Display name of the library listing

      • Optionalis_listed?: boolean

        Is Listed

        Whether the listing appears in catalogs; unlisted listings still deploy from a direct link

      • Optionalis_public?: boolean

        Is Public

        Whether the listing is publicly accessible

      • user_defined_id: string

        User Defined Id

        User-defined identifier of the library listing

    • CreateLibraryListingVersionRequest: {
          allow_truss_download?: boolean;
          closed_source?: boolean;
          display_name?: string | null;
          is_listed?: boolean;
          is_public?: boolean;
          oracle_version_id: string;
          replace_model?: boolean;
          version_tag: string;
      }

      CreateLibraryListingVersionRequestV1

      Request to create a new library listing version from an existing model version.

      • Optionalallow_truss_download?: boolean

        Allow Truss Download

        Whether users deploying this model can download the Truss

      • Optionalclosed_source?: boolean

        Closed Source

        Whether the listing is closed source (deployers cannot view or download the Truss, and forks copy mirrored weights instead of re-mirroring from upstream). Only used when creating a new listing.

      • Optionaldisplay_name?: string | null

        Display Name

        Display name of the library listing. Required when creating a new listing.

      • Optionalis_listed?: boolean

        Is Listed

        Whether the listing appears in catalogs; unlisted listings still deploy from a direct link. Only used when creating a new listing.

      • Optionalis_public?: boolean

        Is Public

        Whether the listing is publicly accessible. Only used when creating a new listing.

      • oracle_version_id: string

        Oracle Version Id

        Id of the source model version to publish

      • Optionalreplace_model?: boolean

        Replace Model

        Allow publishing from a different model than the listing's current one. The listing then points at the new model; earlier versions and existing deployments are unaffected. Fails if the new model already backs another listing.

      • version_tag: string

        Version Tag

        Human-readable tag for this version

    • CreateLLMModelRequest: {
          additional_autoscaling_config?: { [key: string]: unknown } | null;
          autoscaling_settings?:
              | components["schemas"]["UpdateAutoscalingSettings"]
              | null;
          bdn?: { [key: string]: unknown }
          | null;
          deployment_name?: string | null;
          egress_restrictions?: components["schemas"]["EgressRestrictions"] | null;
          environment_variables?: { [key: string]: unknown };
          llm_config?: { [key: string]: unknown };
          llm_version?: string | null;
          metadata?: { [key: string]: unknown } | null;
          model_metadata?: { [key: string]: unknown } | null;
          name: string;
          region?: string | null;
          resources: { [key: string]: unknown };
          runtime?: components["schemas"]["LLMRuntime"] | null;
          weights?: { [key: string]: unknown }[] | null;
      }

      CreateLLMModelRequestV1

      A request to create a BIS-LLM model

      • Optionaladditional_autoscaling_config?: { [key: string]: unknown } | null

        Additional Autoscaling Config

        Additional autoscaling configuration (e.g. target in-flight tokens)

        {
        * "metrics": [
        * {
        * "name": "in_flight_tokens",
        * "target": 40000
        * }
        * ]
        * }
      • Optionalautoscaling_settings?: components["schemas"]["UpdateAutoscalingSettings"] | null

        Autoscaling settings for the model

        {
        * "autoscaling_window": 600,
        * "concurrency_target": null,
        * "max_replica": 5,
        * "max_scale_down_rate": null,
        * "min_replica": 1,
        * "scale_down_delay": 300,
        * "target_in_flight_tokens": null,
        * "target_utilization_percentage": null
        * }
      • Optionalbdn?: { [key: string]: unknown } | null

        Bdn

        BDN configuration for read-only sealed volume mounts; supports mounts only

      • Optionaldeployment_name?: string | null

        Deployment Name

        Name of the deployment, unique within the model. Use only A-Z, a-z, 0-9, '-', '_', and '.'. The name 'development' is reserved. If omitted or empty, a name is generated automatically.

      • Optionalegress_restrictions?: components["schemas"]["EgressRestrictions"] | null

        Restricts this deployment's egress to the specified FQDNs and IP addresses; an empty block allows none. Requires the organization to have egress restrictions enabled.

      • Optionalenvironment_variables?: { [key: string]: unknown }

        Environment Variables

        Environment variables for the model

      • Optionalllm_config?: { [key: string]: unknown }

        Llm Config

        Configuration specific to the LLM model

      • Optionalllm_version?: string | null

        Llm Version

        Version of the helm chart to use.

      • Optionalmetadata?: { [key: string]: unknown } | null

        Metadata

        User-defined metadata for the deployment

        {
        * "environment": "production",
        * "git_sha": "abc123"
        * }
      • Optionalmodel_metadata?: { [key: string]: unknown } | null

        Model Metadata

        Model metadata persisted into model_config

      • name: string

        Name

        Name of the model

      • Optionalregion?: string | null

        Region

        Region in which to deploy the model

      • resources: { [key: string]: unknown }

        Resources

        Resources allocated to the model

      • Optionalruntime?: components["schemas"]["LLMRuntime"] | null

        Runtime configuration for the deployment

      • Optionalweights?: { [key: string]: unknown }[] | null

        Weights

        Weight configurations for BDN model weight distribution

        [
        {
        "mount_location": "/models/base",
        "source": "hf://meta-llama/Llama-3-8B"
        }
        ]
    • CreateLLMModelVersionRequest: {
          additional_autoscaling_config?: { [key: string]: unknown } | null;
          autoscaling_settings?:
              | components["schemas"]["UpdateAutoscalingSettings"]
              | null;
          bdn?: { [key: string]: unknown }
          | null;
          deployment_name?: string | null;
          egress_restrictions?: components["schemas"]["EgressRestrictions"] | null;
          environment_variables?: { [key: string]: unknown };
          llm_config?: { [key: string]: unknown };
          llm_version?: string | null;
          metadata?: { [key: string]: unknown } | null;
          model_metadata?: { [key: string]: unknown } | null;
          region?: string | null;
          resources: { [key: string]: unknown };
          runtime?: components["schemas"]["LLMRuntime"] | null;
          weights?: { [key: string]: unknown }[] | null;
      }

      CreateLLMModelVersionRequestV1

      A request to create a BIS-LLM model version

      • Optionaladditional_autoscaling_config?: { [key: string]: unknown } | null

        Additional Autoscaling Config

        Additional autoscaling configuration (e.g. target in-flight tokens)

        {
        * "metrics": [
        * {
        * "name": "in_flight_tokens",
        * "target": 40000
        * }
        * ]
        * }
      • Optionalautoscaling_settings?: components["schemas"]["UpdateAutoscalingSettings"] | null

        Autoscaling settings for the model

        {
        * "autoscaling_window": 600,
        * "concurrency_target": null,
        * "max_replica": 5,
        * "max_scale_down_rate": null,
        * "min_replica": 1,
        * "scale_down_delay": 300,
        * "target_in_flight_tokens": null,
        * "target_utilization_percentage": null
        * }
      • Optionalbdn?: { [key: string]: unknown } | null

        Bdn

        BDN configuration for read-only sealed volume mounts; supports mounts only

      • Optionaldeployment_name?: string | null

        Deployment Name

        Name of the deployment, unique within the model. Use only A-Z, a-z, 0-9, '-', '_', and '.'. The name 'development' is reserved. If omitted or empty, a name is generated automatically.

      • Optionalegress_restrictions?: components["schemas"]["EgressRestrictions"] | null

        Restricts this deployment's egress to the specified FQDNs and IP addresses; an empty block allows none. Requires the organization to have egress restrictions enabled.

      • Optionalenvironment_variables?: { [key: string]: unknown }

        Environment Variables

        Environment variables for the model

      • Optionalllm_config?: { [key: string]: unknown }

        Llm Config

        Configuration specific to the LLM model

      • Optionalllm_version?: string | null

        Llm Version

        Version of the helm chart to use.

      • Optionalmetadata?: { [key: string]: unknown } | null

        Metadata

        User-defined metadata for the deployment

        {
        * "environment": "production",
        * "git_sha": "abc123"
        * }
      • Optionalmodel_metadata?: { [key: string]: unknown } | null

        Model Metadata

        Model metadata persisted into model_config

      • Optionalregion?: string | null

        Region

        Region in which to deploy the model

      • resources: { [key: string]: unknown }

        Resources

        Resources allocated to the model

      • Optionalruntime?: components["schemas"]["LLMRuntime"] | null

        Runtime configuration for the deployment

      • Optionalweights?: { [key: string]: unknown }[] | null

        Weights

        Weight configurations for BDN model weight distribution

        [
        {
        "mount_location": "/models/base",
        "source": "hf://meta-llama/Llama-3-8B"
        }
        ]
    • CreateLoopsRunRequest: {
          availability_model?: components["schemas"]["AvailabilityModel"];
          base_checkpoint?: string | null;
          base_model: string;
          lora_rank?: number;
          max_seq_len?: number | null;
          name?: string | null;
          path?: string | null;
          replicas?: number;
          reuse_from_run_id?: string | null;
          reuse_from_session_id?: string | null;
          sampler_num_replicas?: number | null;
          scale_down_delay_seconds?: number;
          seed?: number | null;
          session_id: string;
      }

      CreateLoopsRunRequestV1

      Request to create a Loops run together with its paired sampler.

      • Optionalavailability_model?: components["schemas"]["AvailabilityModel"]

        Capacity the trainer runs on. 'standard' is not preempted. 'spot' runs below inference and reaches idle reserved capacity, but the run is stopped if its GPUs are reclaimed and cannot be resumed.

        spot
        
      • Optionalbase_checkpoint?: string | null

        Base Checkpoint

        Optional Hugging Face checkpoint to start training from instead of the base model's weights. Form: hf:///[@]. It must be a complete, merged checkpoint in safetensors format with the same architecture as base_model, which still selects the hardware and training configuration. It must include its tokenizer files: the run's sampler and the SDK load the tokenizer and chat template from the checkpoint. A private or gated repository needs a Hugging Face token in the team secret hf_access_token. The revision is pinned to a commit when the run is created. Cannot be combined with path, reuse_from_run_id, or reuse_from_session_id.

      • base_model: string

        Base Model

        Base model ID (e.g. 'Qwen/Qwen3-8B').

      • Optionallora_rank?: number

        Lora Rank

        LoRA rank.

      • Optionalmax_seq_len?: number | null

        Max Seq Len

        Maximum prompt length (in tokens) the run must handle. Set this to the longest training example you plan to send. Defaults to the maximum supported by the model configuration.

      • Optionalname?: string | null

        Name

        Optional display name for the run. Defaults to the base model name when omitted.

      • Optionalpath?: string | null

        Path

        Optional bt:// URI of an existing checkpoint to load weights from on startup. Form: bt://loops:<run_id>/weights/<checkpoint_name>.

        bt://loops:k4q95w5/weights/step-100
        
      • Optionalreplicas?: number

        Replicas

        Number of data-parallel trainer replicas. Each replica is one full copy of the model's preset node group, so the trainer deployment runs (preset node_count * replicas) nodes (e.g. replicas=4 on a 4-node preset → 16 nodes, 4 DP workers). Must be a positive integer. Defaults to 1.

      • Optionalreuse_from_run_id?: string | null

        Reuse From Run Id

        Optional ID of a prior Loops run whose trainer and/or sampler should be reused for this run instead of provisioning fresh. The prior run must use the same base model and belong to the same team.

      • Optionalreuse_from_session_id?: string | null

        Reuse From Session Id

        Optional ID of a prior Loops session whose trainer and/or sampler should be reused for this run. Deprecated in favor of reuse_from_run_id.

      • Optionalsampler_num_replicas?: number | null

        Sampler Num Replicas

        Number of replicas the run's sampler runs, applied as both its minimum and maximum. Must be at least 1. If omitted, a new sampler uses the platform defaults and a sampler reused from an earlier run keeps its settings. A run that already has a sampler keeps it unchanged. When the run ends, its sampler is scaled down.

      • Optionalscale_down_delay_seconds?: number

        Scale Down Delay Seconds

        Seconds of inactivity before the run scales to zero. Must be between 1 and 3600 (1 hour). Defaults to 900 (15 minutes).

      • Optionalseed?: number | null

        Seed

        Random seed for reproducibility.

      • session_id: string

        Session Id

        ID of the Loops session this run belongs to.

    • CreateLoopsRunResponse: { run: components["schemas"]["LoopsRun"] }

      CreateLoopsRunResponseV1

    • CreateLoopsSamplerRequest: {
          availability_model?: components["schemas"]["AvailabilityModel"] | null;
          base_model?: string | null;
          max_seq_length?: number | null;
          model_path?: string | null;
          num_replicas?: number | null;
          reuse_from_session_id?: string | null;
          run_id?: string | null;
          scope?: components["schemas"]["LoopsPlacementScope"];
          session_id: string;
      }

      CreateLoopsSamplerRequestV1

      • Optionalavailability_model?: components["schemas"]["AvailabilityModel"] | null

        Capacity the sampler runs on. 'spot' allows preemption when its GPUs are reclaimed. Defaults to 'standard' for standalone samplers. Paired samplers inherit their run's availability model; an explicit value must match it.

      • Optionalbase_model?: string | null

        Base Model

        Base model ID for a standalone sampler (for example, a baseline).

      • Optionalmax_seq_length?: number | null

        Max Seq Length

        Maximum prompt length (in tokens) the sampler must handle. Set this to the longest prompt you plan to send.

      • Optionalmodel_path?: string | null

        Model Path

        bt:// URI of an existing sampler checkpoint to serve. Form: bt://loops:<run_id>/sampler_weights/<checkpoint_name>.

        bt://loops:k4q95w5/sampler_weights/step-100
        
      • Optionalnum_replicas?: number | null

        Num Replicas

        Number of replicas the sampler runs, applied as both its minimum and maximum. Must be at least 1. If omitted, a new sampler uses the platform defaults and a paired sampler reused from an earlier run keeps its settings. A run that already has a sampler keeps it unchanged, and when a run ends, its sampler is scaled down.

      • Optionalreuse_from_session_id?: string | null

        Reuse From Session Id

        Optional ID of a prior Loops session to reuse a trainer and/or sampler from. Deprecated.

      • Optionalrun_id?: string | null

        Run Id

        ID of an existing run to attach this sampler to. When set, the sampler is paired to the run and weight-syncs from its trainer, and base_model is inherited from the run. Omit to create a standalone sampler.

      • Optionalscope?: components["schemas"]["LoopsPlacementScope"]

        Choose where this runs. 'default' lets Baseten choose. 'serverless' runs on Baseten's shared capacity, and fails instead of falling back when shared capacity can't serve the request. 'dedicated' gives it its own deployment, which you size and pay for. Standalone samplers only: a run's sampler runs where its run does.

      • session_id: string

        Session Id

        ID of the Loops session this sampler belongs to.

    • CreateLoopsSamplerResponse: { sampler: components["schemas"]["LoopsSampler"] }

      CreateLoopsSamplerResponseV1

    • CreateLoopsSessionResponse: { session: components["schemas"]["LoopsSession"] }

      CreateLoopsSessionResponseV1

    • CreateLoopsTrainerRequest: {
          availability_model?: components["schemas"]["AvailabilityModel"];
          base_checkpoint?: string | null;
          base_model: string;
          lora_rank?: number;
          max_seq_len?: number | null;
          name?: string | null;
          path?: string | null;
          replicas?: number;
          reuse_from_run_id?: string | null;
          reuse_from_session_id?: string | null;
          scale_down_delay_seconds?: number;
          scope?: components["schemas"]["LoopsPlacementScope"];
          seed?: number | null;
          session_id: string;
      }

      CreateLoopsTrainerRequestV1

      • Optionalavailability_model?: components["schemas"]["AvailabilityModel"]

        Capacity the trainer runs on. 'standard' is not preempted. 'spot' runs below inference and reaches idle reserved capacity, but the run is stopped if its GPUs are reclaimed and cannot be resumed.

        spot
        
      • Optionalbase_checkpoint?: string | null

        Base Checkpoint

        Optional Hugging Face checkpoint to start training from instead of the base model's weights. Form: hf:///[@]. It must be a complete, merged checkpoint in safetensors format with the same architecture as base_model, which still selects the hardware and training configuration. It must include its tokenizer files: the run's sampler and the SDK load the tokenizer and chat template from the checkpoint. A private or gated repository needs a Hugging Face token in the team secret hf_access_token. The revision is pinned to a commit when the run is created. Cannot be combined with path, reuse_from_run_id, or reuse_from_session_id.

      • base_model: string

        Base Model

        Base model ID (e.g. 'Qwen/Qwen3-8B').

      • Optionallora_rank?: number

        Lora Rank

        LoRA rank.

      • Optionalmax_seq_len?: number | null

        Max Seq Len

        Maximum prompt length (in tokens) the run must handle. Set this to the longest training example you plan to send. Defaults to the maximum supported by the model configuration.

      • Optionalname?: string | null

        Name

        Optional display name for the run. Defaults to the base model name when omitted.

      • Optionalpath?: string | null

        Path

        Optional bt:// URI of an existing checkpoint to load weights from on startup. Form: bt://loops:<run_id>/weights/<checkpoint_name>.

        bt://loops:k4q95w5/weights/step-100
        
      • Optionalreplicas?: number

        Replicas

        Number of data-parallel trainer replicas. Each replica is one full copy of the model's preset node group, so the trainer deployment runs (preset node_count * replicas) nodes (e.g. replicas=4 on a 4-node preset → 16 nodes, 4 DP workers). Must be a positive integer. Defaults to 1.

      • Optionalreuse_from_run_id?: string | null

        Reuse From Run Id

        Optional ID of a prior Loops run whose trainer and/or sampler should be reused for this run instead of provisioning fresh. The prior run must use the same base model and belong to the same team.

      • Optionalreuse_from_session_id?: string | null

        Reuse From Session Id

        Optional ID of a prior Loops session whose trainer and/or sampler should be reused for this run. Deprecated in favor of reuse_from_run_id.

      • Optionalscale_down_delay_seconds?: number

        Scale Down Delay Seconds

        Seconds of inactivity before the run scales to zero. Must be between 1 and 3600 (1 hour). Defaults to 900 (15 minutes).

      • Optionalscope?: components["schemas"]["LoopsPlacementScope"]

        Choose where this runs. 'default' lets Baseten choose. 'serverless' runs on Baseten's shared capacity, and fails instead of falling back when shared capacity can't serve the request. 'dedicated' gives it its own deployment, which you size and pay for.

      • Optionalseed?: number | null

        Seed

        Random seed for reproducibility.

      • session_id: string

        Session Id

        ID of the Loops session this run belongs to.

    • CreateModelDeploymentRequest: { source: components["schemas"]["DeploymentArchiveSource"] }

      CreateModelDeploymentRequestV1

      Body for adding a deployment to an existing model via POST /v1/models/{model_id}/deployments.

      • source: components["schemas"]["DeploymentArchiveSource"]

        Source

        Where the new deployment is created from.

    • CreateModelRequest: {
          source:
              | components["schemas"]["LibraryListingSource"]
              | components["schemas"]["ModelArchiveSource"];
      }

      CreateModelRequestV1

      Body for creating a model via POST /v1/models.

    • CreateSandboxParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • CreateSandboxPreviewParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • CreateSandboxPreviewRequest: components["schemas"]["SandboxPreviewConfiguration"] & {
          create_if_not_exists?: boolean;
          name?: string;
          port: number;
          ttl?: components["schemas"]["SandboxPreviewTtl"];
      }

      Preview to create. Only port is required. ttl and expires_at are mutually exclusive; supplying both returns 400.

    • CreateSandboxPreviewTokenParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • CreateSandboxPreviewTokenRequest: { create_if_not_exists?: boolean; expires_at: string }
      • Optionalcreate_if_not_exists?: boolean

        When true, may return an existing unexpired token of this preview that stays valid at least until expires_at instead of creating a new one. A token created a moment earlier may not be found yet, in which case a new token is created. Defaults to false when omitted.

      • expires_at: string

        Format: date-time

        Time at which the token stops working. Must be in the future.

        2026-10-13T12:00:00Z
        
    • CreateSandboxRequest: {
          cpu?: number;
          create_if_not_exists?: boolean;
          envs?: components["schemas"]["SandboxEnv"][];
          external_id?: string;
          filesystem?: components["schemas"]["SandboxFilesystem"];
          image?: string;
          labels?: components["schemas"]["SandboxMetadataLabels"];
          lifecycle?: components["schemas"]["SandboxLifecycle"];
          memory?: number;
          name?: string;
          ports?: components["schemas"]["SandboxPorts"];
          region?: string;
          volumes?: components["schemas"]["SandboxVolumeAttachment"][];
      }

      Configuration for a new sandbox. The client may provide a name; otherwise the server generates one. The name is immutable after creation.

      {
      * "name": "baseten-api-review-0916",
      * "lifecycle": {
      * "expiration_policies": [
      * {
      * "action": "DELETE",
      * "type": "TTL_IDLE",
      * "value": "24h"
      * },
      * {
      * "action": "DELETE",
      * "type": "TTL_MAX_AGE",
      * "value": "7d"
      * },
      * {
      * "action": "DELETE",
      * "type": "DATE",
      * "value": "2026-09-23T21:26:58Z"
      * }
      * ],
      * "terminated_retention": "24h"
      * },
      * "region": "us-pdx-1",
      * "envs": [
      * {
      * "name": "NODE_ENV",
      * "secret": false,
      * "value": "production"
      * },
      * {
      * "name": "PORT",
      * "secret": false,
      * "value": "3000"
      * }
      * ],
      * "image": "baseten/base-image:latest",
      * "memory": 4096,
      * "cpu": 2,
      * "ports": [
      * {
      * "name": "http",
      * "protocol": "HTTP",
      * "target": 3000
      * }
      * ],
      * "external_id": "api-review-20260916-001",
      * "labels": {
      * "env": "development",
      * "project": "api-review",
      * "team": "engineering"
      * }
      * }
      • Optionalcpu?: number

        Optional number of vCPUs, a whole number between 1 and 32. When omitted, the CPU allocation is derived from memory. When set, memory must be between 1024 and 8192 megabytes per vCPU (a ratio from 1:1 to 1:8), and cpu must not exceed the account's per-sandbox cpu quota. A value equal to the allocation memory alone would give is always accepted. When memory is omitted, it defaults to 8192 MB per vCPU, capped at the account's memory quota. Immutable after creation.

        2
        
      • Optionalcreate_if_not_exists?: boolean

        When true, return the existing live sandbox with this name or recreate it if it is failed, terminated, or being deleted. The server handles concurrent creation and deletion races with a bounded wait; persistent contention returns a conflict. Requires name. Existing configuration is preserved. Defaults to false when omitted.

      • Optionalenvs?: components["schemas"]["SandboxEnv"][]

        Environment variables injected into the sandbox.

        [
        {
        "name": "NODE_ENV",
        "secret": false,
        "value": "production"
        },
        {
        "name": "PORT",
        "secret": false,
        "value": "3000"
        }
        ]
      • Optionalexternal_id?: string

        Caller-owned identifier for external lookups. Max 64 chars, alphanumeric + dash.

        api-review-20260916-001
        
      • Optionalfilesystem?: components["schemas"]["SandboxFilesystem"]

        Filesystem configuration. Set at creation only.

        {
        * "max_memory_usage": "80%"
        * }
      • Optionalimage?: string

        Image reference including its tag. Defaults to baseten/base-image:latest, the built-in sandbox execution API. This image is available directly without building, pushing, or listing images through GET /v1/sandboxes/images.

        baseten/base-image:latest
        
      • Optionallabels?: components["schemas"]["SandboxMetadataLabels"]

        Key-value pairs for organizing and filtering resources. Labels can be used to categorize resources by environment, project, team, or any custom taxonomy.

        {
        * "env": "development",
        * "project": "api-review",
        * "team": "engineering"
        * }
      • Optionallifecycle?: components["schemas"]["SandboxLifecycle"]

        Lifecycle configuration controlling automatic sandbox deletion based on idle time, max age, or specific dates

        {
        * "expiration_policies": [
        * {
        * "action": "DELETE",
        * "type": "TTL_IDLE",
        * "value": "24h"
        * },
        * {
        * "action": "DELETE",
        * "type": "TTL_MAX_AGE",
        * "value": "7d"
        * },
        * {
        * "action": "DELETE",
        * "type": "DATE",
        * "value": "2026-09-23T21:26:58Z"
        * }
        * ],
        * "terminated_retention": "24h"
        * }
      • Optionalmemory?: number

        Memory allocation in megabytes. Must be between 1024 and 262144. Defaults to 4096, or to 8192 MB per vCPU (a 1:8 ratio) when only cpu is set, capped at the account's memory quota. When cpu is omitted, memory also determines the CPU allocation (by default 2048 MB = 1 vCPU, 4096 MB = 2, 8192 MB = 4, 16384 MB = 6, 32768 MB = 8, 65536 MB = 16, 131072 MB or more = 32).

        4096
        
      • Optionalname?: string

        Optional unique sandbox name. Generated by the server when omitted; immutable after creation.

        baseten-api-review-0916
        
      • Optionalports?: components["schemas"]["SandboxPorts"]

        Set of ports for a resource

        [
        {
        "name": "http",
        "protocol": "HTTP",
        "target": 3000
        }
        ]
      • Optionalregion?: string

        Region where the sandbox runs (for example us-pdx-1 or eu-lon-1). When omitted at creation, the default sandbox region is used.

        us-pdx-1
        
      • Optionalvolumes?: components["schemas"]["SandboxVolumeAttachment"][]

        Volumes mounted in the sandbox. Set at creation only.

    • CreateSandboxVolumeParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • CreateSandboxVolumeRequest: {
          labels?: components["schemas"]["SandboxMetadataLabels"];
          name?: string;
          region?: string;
          size: string | number;
      }

      Volume to create. Only size is required.

      • Optionallabels?: components["schemas"]["SandboxMetadataLabels"]
      • Optionalname?: string

        Volume name, unique in the team. Generated when omitted.

        datasets
        
      • Optionalregion?: string

        Region of the volume. Defaults to the default sandbox region. Sandboxes mounting it must be in the same region.

        us-pdx-1
        
      • size: string | number

        Capacity, as a size (e.g. "10Gi", "512Mi") or a number of Mi (e.g. 1024). Can grow later, never shrink.

        10Gi
        
    • CreateTokenRequest: { scopes: components["schemas"]["TokenScope"][] }

      CreateTokenRequestV1

      • scopes: components["schemas"]["TokenScope"][]

        Scopes

        What the token should grant access to. Only sandboxes is supported today; the token then authenticates against the sandbox API.

        [
        "sandboxes"
        ]
    • CreateTrainingJob: {
          compute?: components["schemas"]["CreateTrainingJobCompute"];
          enable_baseten_workdir?: boolean;
          image: components["schemas"]["CreateTrainingJobImage"];
          interactive_session?:
              | components["schemas"]["InteractiveSessionConfig"]
              | null;
          name?: string
          | null;
          priority?: number | null;
          runtime?: components["schemas"]["CreateTrainingJobRuntime"];
          truss_user_env?: components["schemas"]["TrussUserEnv"] | null;
          weights?: components["schemas"]["CreateJobWeightConfig"][];
      }

      CreateTrainingJobV1

      Configuration for a training job.

      • Optionalcompute?: components["schemas"]["CreateTrainingJobCompute"]
        {
        * "accelerator": {
        * "accelerator": "H100",
        * "count": 2
        * },
        * "availability_model": "spot",
        * "cpu_count": 1,
        * "memory": "2Gi",
        * "node_count": 1
        * }
      • Optionalenable_baseten_workdir?: boolean

        Enable Baseten Workdir

        When enabled, uses /b10/workspace as the working directory instead of the image WORKDIR.

        false
        
        true
        
      • image: components["schemas"]["CreateTrainingJobImage"]
        {
        * "base_image": "hello-world",
        * "docker_auth": null
        * }
      • Optionalinteractive_session?: components["schemas"]["InteractiveSessionConfig"] | null

        Configuration for interactive debugging sessions.

      • Optionalname?: string | null

        Name

        Name of the training job.

        gpt-oss-job
        
      • Optionalpriority?: number | null

        Priority

        Queue priority. Higher values are dequeued first. Defaults to 0.

        0
        
        10
        
        100
        
      • Optionalruntime?: components["schemas"]["CreateTrainingJobRuntime"]

        Configuration for the runtime environment of the training job.

        {
        * "artifacts": [],
        * "cache_config": null,
        * "checkpointing_config": {
        * "checkpoint_path": null,
        * "enabled": false,
        * "volume_size_gib": null
        * },
        * "enable_cache": null,
        * "environment_variables": {
        * "API_KEY": "your_api_key_here",
        * "PATH": "/usr/bin"
        * },
        * "load_checkpoint_config": null,
        * "start_commands": [
        * "python main.py"
        * ]
        * }
      • Optionaltruss_user_env?: components["schemas"]["TrussUserEnv"] | null

        Truss user environment information

      • Optionalweights?: components["schemas"]["CreateJobWeightConfig"][]

        Weights

        MDN weight sources to mount in the training container. Weights are mirrored and cached for fast startup.

        [
        {
        "allow_patterns": null,
        "auth": null,
        "auth_secret_name": null,
        "ignore_patterns": null,
        "mount_location": "/app/models/base",
        "source": "hf://meta-llama/Llama-3-8B@main"
        }
        ]
    • CreateTrainingJobAccelerator: { accelerator: string; count: number }

      CreateTrainingJobAcceleratorV1

      • accelerator: string

        Accelerator

        GPU type for the training job.

        H100
        
      • count: number

        Count

        GPUs needed for the training job.

        2
        
    • CreateTrainingJobCacheConfig: {
          enable_legacy_hf_mount?: boolean;
          enabled?: boolean;
          mount_base_path?: string;
          persistent_home?: boolean;
          require_cache_affinity?: boolean;
      }

      CreateTrainingJobCacheConfig

      • Optionalenable_legacy_hf_mount?: boolean

        Enable Legacy Hf Mount

        Whether to enable the legacy Hugging Face cache.

        true
        
      • Optionalenabled?: boolean

        Enabled

        Whether to enable the read-write cache.

        true
        
      • Optionalmount_base_path?: string

        Mount Base Path

        Mount base path for the cache directory. The project cache and team cache will be mounted under this path.

        /workspace/.cache
        
        /root/.cache
        
      • Optionalpersistent_home?: boolean

        Persistent Home

        Whether to keep $HOME in a per-job directory on the project cache, so its contents outlive the job. Requires enabled.

        true
        
        false
        
      • Optionalrequire_cache_affinity?: boolean

        Require Cache Affinity

        Whether to require region affinity for the read-write cache. If False, the resulting job is not guaranteed to be deployed alongside the previous cache.

        true
        
        false
        
    • CreateTrainingJobCheckpointingConfig: {
          checkpoint_path?: string | null;
          enabled?: boolean;
          volume_size_gib?: number | null;
      }

      CreateTrainingJobCheckpointingConfig

      • Optionalcheckpoint_path?: string | null

        Checkpoint Path

        path where checkpoints will be saved.

        /mnt/ckpts
        
      • Optionalenabled?: boolean

        Enabled

        Whether checkpointing is enabled.

        true
        
      • Optionalvolume_size_gib?: number | null

        Volume Size Gib

        Size of the volume in gibibytes. If not provided, the default size will be used

        10
        
    • CreateTrainingJobCompute: {
          accelerator?:
              | components["schemas"]["CreateTrainingJobAccelerator"]
              | null;
          availability_model?: components["schemas"]["AvailabilityModel"];
          cpu_count?: number;
          memory?: string;
          node_count?: number;
      }

      CreateTrainingJobComputeV1

      Configuration to specify the compute for a training job.

      • Optionalaccelerator?: components["schemas"]["CreateTrainingJobAccelerator"] | null

        GPU specification for the training job

        {
        * "accelerator": "H100",
        * "count": 2
        * }
      • Optionalavailability_model?: components["schemas"]["AvailabilityModel"]

        Capacity guarantee for the job. Defaults to 'standard'. 'standard' runs on capacity that is not preempted. 'spot' runs on interruptible capacity that may be preempted; you are responsible for checkpointing your own progress.

        spot
        
      • Optionalcpu_count?: number

        Cpu Count

        Number of cpus for the training job.

        1
        
      • Optionalmemory?: string

        Memory

        Memory for the training job.

        2Gi
        
      • Optionalnode_count?: number

        Node Count

        Number of nodes for the training job.

        1
        
    • CreateTrainingJobImage: { base_image: string; docker_auth?: components["schemas"]["DockerAuth"] | null }

      CreateTrainingJobImageV1

      Configuration to create a training job image.

      • base_image: string

        Base Image

        Base image for the training job.

        hello-world
        
      • Optionaldocker_auth?: components["schemas"]["DockerAuth"] | null

        Docker authentication credentials

    • CreateTrainingJobRequest: { training_job: components["schemas"]["CreateTrainingJob"] }

      CreateTrainingJobRequestV1

      A request to create a training job.

      • training_job: components["schemas"]["CreateTrainingJob"]

        The training job to create.

    • CreateTrainingJobResponse: { training_job: components["schemas"]["TrainingJob"] }

      CreateTrainingJobResponseV1

      A response to creating a training job.

    • CreateTrainingJobRuntime: {
          artifacts?: components["schemas"]["CreateTrainingJobS3Artifact"][];
          cache_config?: components["schemas"]["CreateTrainingJobCacheConfig"] | null;
          checkpointing_config?: components["schemas"]["CreateTrainingJobCheckpointingConfig"];
          enable_cache?: boolean | null;
          environment_variables?: { [key: string]: string | { name: string } };
          load_checkpoint_config?:
              | components["schemas"]["LoadCheckpointConfig"]
              | null;
          start_commands?: string[];
      }

      CreateTrainingJobRuntimeV1

      Configuration to specify the runtime environment for a training job.

      • Optionalartifacts?: components["schemas"]["CreateTrainingJobS3Artifact"][]

        Artifacts

        Runtime artifacts for the training job.

      • Optionalcache_config?: components["schemas"]["CreateTrainingJobCacheConfig"] | null

        Configuration for the read-write cache.

        {
        * "enable_legacy_hf_mount": true,
        * "enabled": true,
        * "mount_base_path": "/root/.cache",
        * "persistent_home": false,
        * "require_cache_affinity": true
        * }
      • Optionalcheckpointing_config?: components["schemas"]["CreateTrainingJobCheckpointingConfig"]

        Configuration for checkpointing.

        {
        * "checkpoint_path": "/mnt/ckpts",
        * "enabled": true,
        * "volume_size_gib": null
        * }
      • Optionalenable_cache?: boolean | null

        Enable Cache

        Deprecated. Use cache_config instead.

        true
        
      • Optionalenvironment_variables?: { [key: string]: string | { name: string } }

        Environment Variables

        Environment variables to set in the runtime.

        {
        * "API_KEY": "your_api_key_here",
        * "PATH": "/usr/bin"
        * }
      • Optionalload_checkpoint_config?: components["schemas"]["LoadCheckpointConfig"] | null

        Configuration for loading checkpoints

      • Optionalstart_commands?: string[]

        Start Commands

        Commands to execute when starting the runtime.

        [
        "python main.py"
        ]
    • CreateTrainingJobS3Artifact: { s3_bucket: string; s3_key: string }

      CreateTrainingJobS3Artifact

      • s3_bucket: string

        S3 Bucket

        S3 bucket for the uploaded runtime artifact.

        my-s3-bucket
        
      • s3_key: string

        S3 Key

        S3 key for the uploaded runtime artifact.

        my-s3-key
        
    • CreateVolumeSyncRequest: {
          destination: components["schemas"]["VolumeSyncDestination"];
          source:
              | components["schemas"]["VolumeSyncSourceHuggingFace"]
              | components["schemas"]["VolumeSyncSourceS3"]
              | components["schemas"]["VolumeSyncSourceGCS"]
              | components["schemas"]["VolumeSyncSourceAzure"]
              | components["schemas"]["VolumeSyncSourceR2"]
              | components["schemas"]["VolumeSyncSourceCoreWeave"]
              | components["schemas"]["VolumeSyncSourceBasetenTraining"];
      }

      CreateVolumeSyncRequestV1

      Request to start an asynchronous volume sync.

    • CreateVolumeTokenRequest: {
          correlation_id?: string | null;
          namespaces: string[];
          scopes: components["schemas"]["VolumeTokenScope"][];
          volumes: string[];
      }

      CreateVolumeTokenRequestV1

      • Optionalcorrelation_id?: string | null

        Correlation Id

        Optional client-chosen identifier, at most 128 printable ASCII characters. Echoed into server logs to link the issued token to a client operation.

      • namespaces: string[]

        Namespaces

        Volume namespaces the token is limited to, lowercase ASCII, at least one. Pass only the namespaces the operation needs.

      • scopes: components["schemas"]["VolumeTokenScope"][]

        Scopes

        Capabilities the token grants, at least one. Requesting PUSH or TAG requires organization-level model management permission.

      • volumes: string[]

        Volumes

        Volume names the token is limited to, lowercase ASCII, exact names only, at least one. The limit applies to every requested scope in every requested namespace.

    • CreateVolumeTokenResponse: {
          bdn_endpoint: string | null;
          expires_at: string;
          namespaces: string[];
          scopes: components["schemas"]["VolumeTokenScope"][];
          token: string;
          volumes: string[];
      }

      CreateVolumeTokenResponseV1

      • bdn_endpoint: string | null

        Bdn Endpoint

        Base URL of the volume API this token authenticates against. Null when the environment does not expose a public volume API yet.

      • expires_at: string

        Expires At Format: date-time

        Token expiry in ISO 8601 format. Tokens cannot be renewed; exchange again for a fresh token.

      • namespaces: string[]

        Namespaces

        Effective namespaces granted, in canonical lowercase form.

      • scopes: components["schemas"]["VolumeTokenScope"][]

        Scopes

        Effective capabilities granted.

      • token: string

        Token

        Volume access token. Pass as a bearer token to the volume APIs.

      • volumes: string[]

        Volumes

        Effective volume names granted, in canonical lowercase form.

    • DailyDedicatedUsage: {
          compute_cost: number | string;
          date: string;
          inference_requests: number;
          minutes: number;
          subtotal: number | string;
          surcharge_cost: number | string;
      }

      DailyDedicatedUsageV1

      • compute_cost: number | string

        Compute Cost

        Compute cost incurred on this date in dollars

      • date: string

        Date Format: date

        Date of the usage

      • inference_requests: number

        Inference Requests

        Number of inference requests on this date

      • minutes: number

        Minutes

        Minutes used on this date

      • subtotal: number | string

        Subtotal

        Subtotal cost incurred on this date in dollars

      • surcharge_cost: number | string

        Surcharge Cost

        Model distribution surcharge incurred on this date in dollars

    • DailyLoopsUsage: {
          cached_prefill: components["schemas"]["LoopsMeterUsage"];
          date: string;
          sample: components["schemas"]["LoopsMeterUsage"];
          subtotal: number | string;
          train: components["schemas"]["LoopsMeterUsage"];
          uncached_prefill: components["schemas"]["LoopsMeterUsage"];
      }

      DailyLoopsUsageV1

      • cached_prefill: components["schemas"]["LoopsMeterUsage"]

        Prompt tokens served from the prefix cache

      • date: string

        Date Format: date

        Date of the usage

      • sample: components["schemas"]["LoopsMeterUsage"]

        Tokens generated by sampling

      • subtotal: number | string

        Subtotal

        Cost in dollars across all four meters

      • train: components["schemas"]["LoopsMeterUsage"]

        Tokens processed by forward and forward-backward training calls

      • uncached_prefill: components["schemas"]["LoopsMeterUsage"]

        Prompt tokens that missed the prefix cache

    • DailyModelApiUsage: {
          cached_input_tokens: number;
          date: string;
          input_tokens: number;
          output_tokens: number;
          subtotal: number | string;
      }

      DailyModelApiUsageV1

      • cached_input_tokens: number

        Cached Input Tokens

        Number of cached input tokens on this date

      • date: string

        Date Format: date

        Date of the usage

      • input_tokens: number

        Input Tokens

        Number of input tokens on this date

      • output_tokens: number

        Output Tokens

        Number of output tokens on this date

      • subtotal: number | string

        Subtotal

        Subtotal cost incurred on this date in dollars

    • DailyTrainingUsage: { date: string; minutes: number; subtotal: number | string }

      DailyTrainingUsageV1

      • date: string

        Date Format: date

        Date of the usage

      • minutes: number

        Minutes

        Minutes used on this date

      • subtotal: number | string

        Subtotal

        Subtotal cost incurred on this date in dollars

    • DeactivateLoopsDeploymentResponse: { base_model: string; id: string; user: components["schemas"]["User"] }

      DeactivateLoopsDeploymentResponseV1

      Response for POST /v1/loops/deployments/<deployment_id>/deactivate.

      • base_model: string

        Base Model

        The base model whose Loops deployment was deactivated.

      • id: string

        Id

        The deactivated Loops deployment ID.

      • user: components["schemas"]["User"]

        The user who owned the Loops deployment.

    • DeactivateLoopsRunResponse: { base_model: string; id: string; user: components["schemas"]["User"] }

      DeactivateLoopsRunResponseV1

      Response for POST /v1/loops/runs/<run_id>/deactivate.

      • base_model: string

        Base Model

        The base model whose Loops run was deactivated.

      • id: string

        Id

        The deactivated Loops run ID.

      • user: components["schemas"]["User"]

        The user who owns the Loops run.

    • DeactivateLoopsSamplerResponse: { base_model: string; id: string; user: components["schemas"]["User"] }

      DeactivateLoopsSamplerResponseV1

      Response for POST /v1/loops/samplers/<sampler_id>/deactivate.

      • base_model: string

        Base Model

        The base model the deactivated sampler was serving.

      • id: string

        Id

        The deactivated Loops sampler ID.

      • user: components["schemas"]["User"]

        The user who owns the Loops sampler.

    • DeactivateResponse: { no_op: boolean; success: boolean }

      DeactivateResponseV1

      The response to a request to deactivate a deployment.

      • no_op: boolean

        No Op

        Whether the request did nothing because the deployment was already inactive

        false
        
      • success: boolean

        Success

        Whether the deployment was successfully deactivated

        true
        
    • DedicatedItem: {
          billable_resource: components["schemas"]["BillableResource"];
          compute_cost: number | string;
          daily?: components["schemas"]["DailyDedicatedUsage"][];
          inference_requests: number;
          minutes: number;
          subtotal: number | string;
          surcharge_cost: number | string;
      }

      DedicatedItemV1

      • billable_resource: components["schemas"]["BillableResource"]

        The model deployment resource

      • compute_cost: number | string

        Compute Cost

        Compute cost in dollars for this billable resource

      • Optionaldaily?: components["schemas"]["DailyDedicatedUsage"][]

        Daily

        Daily usage breakdown

      • inference_requests: number

        Inference Requests

        Total inference requests for this billable resource

      • minutes: number

        Minutes

        Total minutes used for this billable resource

      • subtotal: number | string

        Subtotal

        Subtotal cost in dollars for this billable resource

      • surcharge_cost: number | string

        Surcharge Cost

        Model distribution surcharge in dollars for this billable resource

    • DedicatedUsage: {
          breakdown?: components["schemas"]["DedicatedItem"][];
          credits_used: number | string;
          minutes: number;
          subtotal: number | string;
          total: number | string;
      }

      DedicatedUsageV1

      • Optionalbreakdown?: components["schemas"]["DedicatedItem"][]

        Breakdown

        Per-deployment usage breakdown

      • credits_used: number | string

        Credits Used

        Credits applied in dollars

      • minutes: number

        Minutes

        Total minutes used

      • subtotal: number | string

        Subtotal

        Subtotal cost in dollars after applying credits used

      • total: number | string

        Total

        Total cost in dollars

    • DeleteImageParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • DeleteImageTagParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • DeleteSandboxParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • DeleteSandboxPreviewParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • DeleteSandboxPreviewTokenParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • DeleteSandboxVolumeParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • DeleteVolumeRequest: { expected_sequence?: number | null }

      DeleteVolumeRequestV1

      • Optionalexpected_sequence?: number | null

        Expected Sequence

        Revision the volume is expected to be at. When set, the delete fails with a conflict if the volume has changed since, so it cannot act on a volume someone else has pushed to. Take the value from a volume's sequence, or from volume_sequence.

    • DeleteVolumeResponse: {
          name: string;
          namespace: string;
          versions_deleted: number;
          volume_sequence: number;
      }

      DeleteVolumeResponseV1

      • name: string

        Name

        Name of the volume, in lowercase.

      • namespace: string

        Namespace

        Namespace the volume belongs to, in lowercase.

      • versions_deleted: number

        Versions Deleted

        Number of versions this request deleted. Zero when the volume had no live versions left, which is not an error.

      • volume_sequence: number

        Volume Sequence

        Revision of the volume after the delete.

    • DeleteVolumeTagRequest: { expected_sequence?: number | null }

      DeleteVolumeTagRequestV1

      • Optionalexpected_sequence?: number | null

        Expected Sequence

        Revision the volume is expected to be at. When set, the delete fails with a conflict if the volume has changed since, so it cannot delete a tag someone else has just set on another version. Take the value from volume_sequence.

    • DeleteVolumeTagResponse: {
          deleted: boolean;
          namespace: string;
          tag: string;
          volume: string;
          volume_sequence: number;
      }

      DeleteVolumeTagResponseV1

      • deleted: boolean

        Deleted

        Whether the tag existed and was deleted. False when the volume had no tag by that name, which is not an error.

      • namespace: string

        Namespace

        Namespace the volume belongs to, in lowercase.

      • tag: string

        Tag

        Tag name from the request, with its original capitalization.

      • volume: string

        Volume

        Name of the volume, in lowercase.

      • volume_sequence: number

        Volume Sequence

        Revision of the volume after the delete.

    • DeleteVolumeVersionRequest: { expected_sequence?: number | null }

      DeleteVolumeVersionRequestV1

      • Optionalexpected_sequence?: number | null

        Expected Sequence

        Revision the volume is expected to be at. When set, the delete fails with a conflict if the volume has changed since, so a read followed by a delete cannot act on a version a tag has since been moved off. Take the value from volume_sequence.

    • DeleteVolumeVersionResponse: {
          delete_after: string;
          digest: string;
          lifecycle: string;
          namespace: string;
          version_ref: string;
          volume: string;
          volume_sequence: number;
      }

      DeleteVolumeVersionResponseV1

      • delete_after: string

        Delete After Format: date-time

        When the version stops being restorable, in ISO 8601 format. Until then it can be returned to service.

      • digest: string

        Digest

        Content digest of the deleted version, as b3:<hex>.

      • lifecycle: string

        Lifecycle

        Lifecycle state of the version after the delete.

      • namespace: string

        Namespace

        Namespace the volume belongs to, in lowercase.

      • version_ref: string

        Version Ref

        Full address of the deleted version, as bdn:<namespace>/<volume>@<digest>.

      • volume: string

        Volume

        Name of the volume, in lowercase.

      • volume_sequence: number

        Volume Sequence

        Revision of the volume after the delete.

    • DeployLoopsCheckpointRequest: {
          checkpoint_ids: string[];
          hf_secret_name: string;
          instance_type_id: string;
          model_name: string;
      }

      DeployLoopsCheckpointRequestV1

      • checkpoint_ids: string[]

        Checkpoint Ids

        Sampler checkpoint IDs to deploy together.

      • hf_secret_name: string

        Hf Secret Name

        Name of the team-scoped secret that supplies HF_TOKEN.

      • instance_type_id: string

        Instance Type Id

        Instance type ID for the deployment.

      • model_name: string

        Model Name

        Name for the created model.

    • DeployLoopsCheckpointResponse: { deployment_id: string; model_id: string }

      DeployLoopsCheckpointResponseV1

      • deployment_id: string

        Deployment Id

        ID of the created model version deployment.

      • model_id: string

        Model Id

        ID of the created or updated model.

    • Deployment: {
          active_replica_count: number;
          autoscaling_settings: components["schemas"]["AutoscalingSettings"] | null;
          created_at: string;
          environment: string | null;
          id: string;
          instance_type_name: string | null;
          is_development: boolean;
          is_production: boolean;
          labels: { [key: string]: unknown } | null;
          model_id: string;
          name: string;
          region: components["schemas"]["Region"] | null;
          request_backpressure_settings: components["schemas"]["RequestBackpressureSettings"];
          status: components["schemas"]["DeploymentStatus"];
      }

      DeploymentV1

      A deployment of a model.

      • active_replica_count: number

        Active Replica Count

        Number of active replicas

      • autoscaling_settings: components["schemas"]["AutoscalingSettings"] | null

        Autoscaling settings for the deployment. If null, the model has not finished deploying

      • created_at: string

        Created At Format: date-time

        Time the deployment was created in ISO 8601 format

      • environment: string | null

        Environment

        The environment associated with the deployment

      • id: string

        Id

        Unique identifier of the deployment

      • instance_type_name: string | null

        Instance Type Name

        Name of the instance type the model deployment is running on

      • is_development: boolean

        Is Development

        Whether the deployment is the development deployment of the model

      • is_production: boolean

        Is Production

        Whether the deployment is the production deployment of the model

      • labels: { [key: string]: unknown } | null

        Labels

        User-provided key-value labels for the deployment

        null
        
      • model_id: string

        Model Id

        Unique identifier of the model

      • name: string

        Name

        Name of the deployment

      • region: components["schemas"]["Region"] | null

        The selected region for the deployment, if any

        null
        
      • request_backpressure_settings: components["schemas"]["RequestBackpressureSettings"]

        Effective request backpressure settings for the deployment.

      • status: components["schemas"]["DeploymentStatus"]

        Status of the deployment

    • DeploymentArchivePayload: {
          autoscaling_schedule_settings?:
              | components["schemas"]["UpdateAutoscalingScheduleSettings"]
              | null;
          autoscaling_settings?: | components["schemas"]["UpdateAutoscalingSettings"]
          | null;
          config: { [key: string]: unknown };
          create_environment_if_missing?: boolean;
          deploy_timeout_minutes?: number | null;
          deployment_name?: string | null;
          environment_name?: string | null;
          instance_type_id?: string | null;
          is_development?: boolean;
          labels?: { [key: string]: unknown } | null;
          preserve_env_instance_type?: boolean;
          promotion_settings_override?:
              | components["schemas"]["UpdatePromotionSettings"]
              | null;
          raw_config?: string
          | null;
          region?: string | null;
          request_backpressure_settings?:
              | components["schemas"]["UpdateRequestBackpressureSettings"]
              | null;
          user_env?: { [key: string]: unknown }
          | null;
      }

      DeploymentArchivePayloadV1

      Deployment-level fields for a model-archive push.

      Shared by every endpoint that creates a deployment from an uploaded archive:
      `POST /v1/prepare_model_upload`, the `model_archive` source on `POST
      /v1/models`, and `POST /v1/models/{model_id}/deployments`.
      
      • Optionalautoscaling_schedule_settings?: components["schemas"]["UpdateAutoscalingScheduleSettings"] | null

        Autoscaling schedule changes for the environment named by environment_name, applied when the promotion completes. Requires environment_name.

      • Optionalautoscaling_settings?: components["schemas"]["UpdateAutoscalingSettings"] | null

        Autoscaling settings for the new deployment. The new deployment starts from the settings of the environment named by environment_name with these changes applied, and the environment keeps the result when the promotion completes. Requires environment_name.

        {
        * "max_replica": 4,
        * "min_replica": 2
        * }
      • config: { [key: string]: unknown }

        Config

        Parsed model config as a JSON object.

      • Optionalcreate_environment_if_missing?: boolean

        Create Environment If Missing

        Create the environment named by environment_name if it does not exist yet. If false, a push to an environment that does not exist is rejected. Only meaningful when environment_name is set to something other than production, which always exists. This field currently defaults to true, but that default will change to false in a future release. Set it explicitly to avoid a behavior change.

      • Optionaldeploy_timeout_minutes?: number | null

        Deploy Timeout Minutes

        Deploy timeout in minutes; allowed range 10 to 1440. Server default applies if unset.

      • Optionaldeployment_name?: string | null

        Deployment Name

        Optional human-readable name for the deployment.

      • Optionalenvironment_name?: string | null

        Environment Name

        Stable environment to push to (e.g. production). If unset, the deployment is created without environment selection. Caller must have push permission for the named environment.

      • Optionalinstance_type_id?: string | null

        Instance Type Id

        Instance type for the new deployment, from GET /v1/instance_types, in place of the one in config. The environment named by environment_name takes it when the promotion completes. Requires environment_name. Cannot be set with preserve_env_instance_type: true.

      • Optionalis_development?: boolean

        Is Development

        If true, push as a development deployment: the model's single mutable dev slot, created if absent and overwritten in place otherwise. The following fields must be left at their defaults: environment_name, preserve_env_instance_type, deployment_name.

      • Optionallabels?: { [key: string]: unknown } | null

        Labels

        User-provided key-value labels for the deployment.

      • Optionalpreserve_env_instance_type?: boolean

        Preserve Env Instance Type

        Retain the target environment's current instance type rather than the one in config. Only meaningful when environment_name is set and that environment already exists.

      • Optionalpromotion_settings_override?: components["schemas"]["UpdatePromotionSettings"] | null

        Promotion settings for promoting the new deployment into the environment named by environment_name, for this promotion only. Omitted fields keep the environment's values, and the environment's promotion settings are unchanged. Requires environment_name.

        {
        * "rolling_deploy_config": {
        * "max_surge_percent": 50
        * }
        * }
      • Optionalraw_config?: string | null

        Raw Config

        Original config.yaml text, persisted as-is on the deployment. Best-effort: invalid raw configs are logged and dropped without failing the request.

      • Optionalregion?: string | null

        Region

        Region in which to deploy the model

      • Optionalrequest_backpressure_settings?: components["schemas"]["UpdateRequestBackpressureSettings"] | null

        Request backpressure settings for the new deployment, applied the same way as autoscaling_settings.

        {
        * "policy": "REJECT_ON_FULL"
        * }
      • Optionaluser_env?: { [key: string]: unknown } | null

        User Env

        Client environment metadata (e.g. client version, Python version). Validated server-side.

    • DeploymentArchiveSource: {
          deployment: components["schemas"]["DeploymentArchivePayload"];
          kind: "model_archive";
          s3_key?: string | null;
      }

      DeploymentArchiveSourceV1

      Add a deployment from an archive previously uploaded via the credentials issued by POST /v1/prepare_model_upload.

      • deployment: components["schemas"]["DeploymentArchivePayload"]

        Deployment-level configuration.

      • kind: "model_archive"

        discriminator enum property added by openapi-typescript

      • Optionals3_key?: string | null

        S3 Key

        S3 key of the uploaded archive, from the credentials returned by POST /v1/prepare_model_upload. Omit for model formats that are not built from an archive (for example, BIS-LLM), where prepare issues no upload target.

    • DeploymentConfigOutputFormat: "raw" | "parsed" | "both"

      DeploymentConfigOutputFormat

    • DeploymentConfigResponse: { config: { [key: string]: unknown } | null; raw_config: string | null }

      DeploymentConfigResponseV1

      The config of a deployment. Fields are populated per output_format.

      • config: { [key: string]: unknown } | null

        Config

        The parsed config of the deployment.

        null
        
      • raw_config: string | null

        Raw Config

        The original config.yaml text — preserves comments, ordering, formatting.

        null
        
    • DeploymentPatchAction: "ADD" | "UPDATE" | "REMOVE"

      DeploymentPatchActionV1

      How a patch op changes its target.

    • DeploymentPatchOpConfig: { config: { [key: string]: unknown }; path?: string; type: "config" }

      DeploymentPatchOpConfigV1

      Replace the config when config.yaml changes.

      Config has no action: it is always a full replacement of the parsed config.
      Derived changes (environment variables, external data, requirements) are
      emitted as their own ops alongside this one.
      
      • config: { [key: string]: unknown }

        Config

        The full parsed config as a JSON object.

      • Optionalpath?: string

        Path

        Config file path within the source.

      • type: "config"

        discriminator enum property added by openapi-typescript

    • DeploymentPatchOpEnvVar: {
          action: components["schemas"]["DeploymentPatchAction"];
          name: string;
          type: "environment_variable";
          value?: string | null;
      }

      DeploymentPatchOpEnvVarV1

      Add, update, or remove a single environment variable.

      • action: components["schemas"]["DeploymentPatchAction"]

        How this op changes the variable.

      • name: string

        Name

        The environment variable name.

      • type: "environment_variable"

        discriminator enum property added by openapi-typescript

      • Optionalvalue?: string | null

        Value

        The environment variable value. Required for add and update.

    • DeploymentPatchOpExternalData: {
          action: components["schemas"]["DeploymentPatchAction"];
          item: { [key: string]: string };
          type: "external_data";
      }

      DeploymentPatchOpExternalDataV1

      Add, update, or remove a single external data item.

      External data is referenced by config, not stored in the source. The backend
      only adds or removes it, where adding re-downloads (overwriting any existing
      file), so `update` is accepted and treated identically to `add`.
      
      • action: components["schemas"]["DeploymentPatchAction"]

        How this op changes the item. UPDATE is treated identically to ADD.

      • item: { [key: string]: string }

        Item

        The single external data item descriptor.

      • type: "external_data"

        discriminator enum property added by openapi-typescript

    • DeploymentPatchOpModelCode: {
          action: components["schemas"]["DeploymentPatchAction"];
          content?: string | null;
          content_bytes?: string | null;
          hot_reload?: boolean;
          path: string;
          type: "model_code";
      }

      DeploymentPatchOpModelCodeV1

      Add, update, or remove a file under the model code directory.

      • action: components["schemas"]["DeploymentPatchAction"]

        How this op changes the file.

      • Optionalcontent?: string | null

        Content

        UTF-8 file content. Null for removals and binary files.

      • Optionalcontent_bytes?: string | null

        Content Bytes

        Base64-encoded content for binary files.

      • Optionalhot_reload?: boolean

        Hot Reload

        Whether the running server can pick up this change without a restart.

      • path: string

        Path

        File path relative to the model code directory.

      • type: "model_code"

        discriminator enum property added by openapi-typescript

    • DeploymentPatchOpPackage: {
          action: components["schemas"]["DeploymentPatchAction"];
          content?: string | null;
          content_bytes?: string | null;
          path: string;
          type: "package";
      }

      DeploymentPatchOpPackageV1

      Add, update, or remove a file under the bundled packages directory.

      • action: components["schemas"]["DeploymentPatchAction"]

        How this op changes the file.

      • Optionalcontent?: string | null

        Content

        UTF-8 file content. Null for removals and binary files.

      • Optionalcontent_bytes?: string | null

        Content Bytes

        Base64-encoded content for binary files.

      • path: string

        Path

        File path relative to the bundled packages directory.

      • type: "package"

        discriminator enum property added by openapi-typescript

    • DeploymentPatchOpPythonRequirement: {
          action: components["schemas"]["DeploymentPatchAction"];
          requirement: string;
          type: "python_requirement";
      }

      DeploymentPatchOpPythonRequirementV1

      Add, update, or remove a single Python requirement.

      • action: components["schemas"]["DeploymentPatchAction"]

        How this op changes the requirement.

      • requirement: string

        Requirement

        The requirement to apply. For removals this is the package name; otherwise the full requirements.txt-style line.

      • type: "python_requirement"

        discriminator enum property added by openapi-typescript

    • DeploymentPatchPoint: {
          config: string;
          content_hashes: { [key: string]: string | null };
          requirements?: string[];
      }

      DeploymentPatchPointV1

      A patch point: the source state the next patch is computed against.

      The content hash that identifies a point is derived from this state (see
      `DeploymentPatchPointWithHashV1.hash`), so a request only sends the state and
      the server stamps the hash. A previous point's hash plus the current local
      source is enough to compute the next patch, so the watch client reads the
      point it is patching off of.
      
      • config: string

        Config

        The verbatim config.yaml text for this source state.

      • content_hashes: { [key: string]: string | null }

        Content Hashes

        Map of every non-ignored source path, relative and forward-slash, to its content hash: files map to the hex blake3 digest of their bytes, directories map to null. This is the full signature of the source tree and what the content hash is derived from.

      • Optionalrequirements?: string[]

        Requirements

        Requirements resolved from the config's requirements file, when it points at one. Empty when requirements are declared inline in the config.

    • DeploymentPatchPointWithHash: {
          config: string;
          content_hashes: { [key: string]: string | null };
          hash: string;
          requirements?: string[];
      }

      DeploymentPatchPointWithHashV1

      A patch point plus its server-assigned content hash, returned in responses.

      Requests omit the hash (the server derives it from the source state); responses
      include it so the watch client can echo it back as the next patch's
      `prev_patch_hash` without having to recompute the fold itself.
      
      • config: string

        Config

        The verbatim config.yaml text for this source state.

      • content_hashes: { [key: string]: string | null }

        Content Hashes

        Map of every non-ignored source path, relative and forward-slash, to its content hash: files map to the hex blake3 digest of their bytes, directories map to null. This is the full signature of the source tree and what the content hash is derived from.

      • hash: string

        Hash

        Content hash identifying this exact source state, and the link patches build on. It is derived deterministically from content_hashes, so a request need not send it - the server derives it. It is derived by sorting the content_hashes keys as paths, splitting each key on '/' into its path components and ordering the keys by comparing those component lists element by element, each component compared by Unicode code point (equivalently UTF-8 byte order). Treating '/' as a path separator this way, rather than as the ordinary character U+002F, means a key that is an ancestor path sorts before a sibling whose name extends the first differing component (so e.g. 'a/b' sorts before 'a.b'). A blake3 hasher is then built, and for each key in that order updated with the blake3 digest (32 raw bytes) of the key encoded as UTF-8, then, when the entry is a file (non-null value), with that file's digest as 32 raw bytes. The stream uses raw digest bytes, but the values in content_hashes are those digests hex-encoded (64 hex chars), so decode each value from hex first. Directory entries (null value) contribute only their key digest. The result is the hasher's own hex digest.

      • Optionalrequirements?: string[]

        Requirements

        Requirements resolved from the config's requirements file, when it points at one. Empty when requirements are declared inline in the config.

    • Deployments: { deployments: components["schemas"]["Deployment"][] }

      DeploymentsV1

      A list of deployments of a model.

      • deployments: components["schemas"]["Deployment"][]

        Deployments

        A list of deployments of a model

    • DeploymentStatus:
          | "BUILDING"
          | "DEPLOYING"
          | "DEPLOY_FAILED"
          | "LOADING_MODEL"
          | "ACTIVE"
          | "UNHEALTHY"
          | "BUILD_FAILED"
          | "BUILD_STOPPED"
          | "DEACTIVATING"
          | "INACTIVE"
          | "FAILED"
          | "UPDATING"
          | "SCALED_TO_ZERO"
          | "WAKING_UP"

      DeploymentStatusV1

      The status of a deployment.

    • DeploymentTombstone: { deleted: boolean; id: string; model_id: string }

      DeploymentTombstoneV1

      A model deployment tombstone.

      • deleted: boolean

        Deleted

        Whether the deployment was deleted

      • id: string

        Id

        Unique identifier of the deployment

      • model_id: string

        Model Id

        Unique identifier of the model

    • DockerAuth: {
          auth_method: components["schemas"]["DockerAuthType"];
          aws_assume_role_docker_auth?:
              | components["schemas"]["AwsAssumeRoleDockerAuth"]
              | null;
          aws_iam_docker_auth?: components["schemas"]["AwsIamDockerAuth"]
          | null;
          aws_oidc_docker_auth?: components["schemas"]["AwsOidcDockerAuth"] | null;
          gcp_oidc_docker_auth?: components["schemas"]["GcpOidcDockerAuth"] | null;
          gcp_service_account_json_docker_auth?:
              | components["schemas"]["GcpServiceAccountJsonDockerAuth"]
              | null;
          registry: string;
          registry_secret_docker_auth?: | components["schemas"]["RegistrySecretDockerAuth"]
          | null;
      }

      DockerAuthV1

      Docker authentication credentials.

      • auth_method: components["schemas"]["DockerAuthType"]

        Method to authenticate with the registry

        GCP_SERVICE_ACCOUNT_JSON
        
        AWS_IAM
        
        AWS_OIDC
        
        GCP_OIDC
        
        REGISTRY_SECRET
        
        AWS_ASSUME_ROLE
        
      • Optionalaws_assume_role_docker_auth?: components["schemas"]["AwsAssumeRoleDockerAuth"] | null

        Required when auth_method is AWS_ASSUME_ROLE. Baseten assumes the given IAM role with its own AWS principal and your organization's external ID, with no OIDC provider registration in your account.

      • Optionalaws_iam_docker_auth?: components["schemas"]["AwsIamDockerAuth"] | null

        AWS details for the registry

      • Optionalaws_oidc_docker_auth?: components["schemas"]["AwsOidcDockerAuth"] | null

        AWS OIDC details for the registry

      • Optionalgcp_oidc_docker_auth?: components["schemas"]["GcpOidcDockerAuth"] | null

        GCP OIDC details for the registry

      • Optionalgcp_service_account_json_docker_auth?: components["schemas"]["GcpServiceAccountJsonDockerAuth"] | null

        GCP service account details for the registry

      • registry: string

        Registry

        Registry to authenticate with

      • Optionalregistry_secret_docker_auth?: components["schemas"]["RegistrySecretDockerAuth"] | null

        Required when auth_method is REGISTRY_SECRET. Supports any Docker registry (Docker Hub, GHCR, NGC, etc.) via username:password credentials stored as a Baseten secret.

    • DockerAuthType:
          | "GCP_SERVICE_ACCOUNT_JSON"
          | "AWS_IAM"
          | "AWS_OIDC"
          | "GCP_OIDC"
          | "REGISTRY_SECRET"
          | "AWS_ASSUME_ROLE"

      DockerAuthType

    • DownloadDeploymentResponse: { download_url: string }

      DownloadDeploymentResponseV1

      The response to a request to download a deployment's truss.

      • download_url: string

        Download Url

        Presigned URL to download the truss tar file

    • DownloadTrainingJobResponse: { artifact_presigned_urls: string[] }

      DownloadTrainingJobResponseV1

      A response with presigned URLs for a training job's artifacts.

      • artifact_presigned_urls: string[]

        Artifact Presigned Urls

        Presigned URLs for the job's uploaded artifacts.

    • EffectiveModelConfig: {
          rate_limits?: components["schemas"]["EffectiveRateLimit"][];
          slug: string;
          usage_limits?: components["schemas"]["EffectiveUsageLimit"][];
      }

      EffectiveModelConfigV1

      • Optionalrate_limits?: components["schemas"]["EffectiveRateLimit"][]

        Rate Limits

      • slug: string

        Slug

        Shared endpoint slug.

      • Optionalusage_limits?: components["schemas"]["EffectiveUsageLimit"][]

        Usage Limits

    • EffectiveRateLimit: {
          source_group: string;
          threshold: number;
          type: components["schemas"]["LimitType"];
          unit: components["schemas"]["RateLimitUnit"];
      }

      EffectiveRateLimitV1

      • source_group: string

        Source Group

        ID of the group in the hierarchy this limit is anchored to.

        abc123
        
      • threshold: number

        Threshold

        The threshold for the rate limit

        1000
        
        50000
        
      • type: components["schemas"]["LimitType"]

        The type of the rate limit

        TOKEN
        
        REQUEST
        
      • unit: components["schemas"]["RateLimitUnit"]

        The unit of the rate limit

        SECOND
        
        MINUTE
        
    • EffectiveUsageLimit: {
          source_group: string;
          threshold: number;
          type: components["schemas"]["LimitType"];
          unit: components["schemas"]["UsageLimitUnit"];
      }

      EffectiveUsageLimitV1

      • source_group: string

        Source Group

        ID of the group in the hierarchy this limit is anchored to.

        abc123
        
      • threshold: number

        Threshold

        The threshold for the usage limit

        10000000
        
      • type: components["schemas"]["LimitType"]

        The type of the usage limit

        REQUEST
        
        TOKEN
        
      • unit: components["schemas"]["UsageLimitUnit"]

        The unit of the usage limit

        DAY
        
    • EgressRestrictions: { fqdn_allow_list?: string[] | null; ip_allow_list?: string[] | null }

      EgressRestrictionsV1

      • Optionalfqdn_allow_list?: string[] | null

        Fqdn Allow List

        Allowed outbound FQDNs; '*' wildcards are supported.

        [
        "*.example.com"
        ]
      • Optionalip_allow_list?: string[] | null

        Ip Allow List

        Allowed outbound IPv4 addresses or CIDR ranges.

        [
        "1.1.1.1/32"
        ]
    • EmbeddingBenchmarkMetrics: {
          e2e_latency_ms_p50?: number | null;
          e2e_latency_ms_p99?: number | null;
          input_tokens_per_sec?: number | null;
          requests_per_sec?: number | null;
      }

      EmbeddingBenchmarkMetricsV1

      • Optionale2e_latency_ms_p50?: number | null

        E2E Latency Ms P50

      • Optionale2e_latency_ms_p99?: number | null

        E2E Latency Ms P99

      • Optionalinput_tokens_per_sec?: number | null

        Input Tokens Per Sec

      • Optionalrequests_per_sec?: number | null

        Requests Per Sec

    • EnablementDetails: { reason: string; reason_detail: string; remediation: string }

      EnablementDetailsV1

      Why a supported model is not enabled for this workspace.

      • reason: string

        Reason

        Machine-readable reason the model is not enabled. Currently one of 'needs_approval', 'sequence_length_unsupported' or 'loops_not_enabled'. Deliberately not a closed enum: values are added as the check learns to distinguish cases that call for a different action, so treat an unrecognized value as 'not enabled, reason unknown' rather than an error.

        needs_approval
        
      • reason_detail: string

        Reason Detail

        Human-readable explanation of the reason.

      • remediation: string

        Remediation

        Human-readable next step to enable the model.

    • Endpoint: {
          created_at: string;
          id: string;
          region: components["schemas"]["SharedEndpointRegion"];
          slug: string;
          targets: components["schemas"]["EndpointTarget"][];
          updated_at: string;
      }

      EndpointV1

      A Gateway endpoint: a slug and its priority-ordered targets (index 0 tried first).

      • created_at: string

        Created At Format: date-time

        Creation time, ISO 8601.

      • id: string

        Id

        Stable identifier for the endpoint.

      • region: components["schemas"]["SharedEndpointRegion"]

        Region this endpoint's routing serves.

      • slug: string

        Slug

        Globally-unique routing slug.

        baseten/mymodel-4
        
      • targets: components["schemas"]["EndpointTarget"][]

        Targets

        The endpoint's upstream targets. Exactly one target is supported at this time.

      • updated_at: string

        Updated At Format: date-time

        Last update time, ISO 8601.

    • EndpointsResponse: {
          items: components["schemas"]["Endpoint"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      EndpointsResponseV1

    • EndpointTarget: {
          base_url: string | null;
          environment_name: string | null;
          model_id: string | null;
          provider: components["schemas"]["GatewayEndpointProvider"];
          secret_id: string | null;
          target_model: string | null;
          vertex_config: components["schemas"]["VertexTargetConfig"] | null;
      }

      EndpointTargetV1

      One configured upstream target of an endpoint.

      • base_url: string | null

        Base Url

        Custom OpenAI-compatible base URL, if any.

        null
        
      • environment_name: string | null

        Environment Name

        Baseten model environment, if non-production.

        null
        
      • model_id: string | null

        Model Id

        Baseten model, if any.

        null
        
      • provider: components["schemas"]["GatewayEndpointProvider"]

        Upstream provider.

        ANTHROPIC
        
        OPENAI_COMPATIBLE
        
      • secret_id: string | null

        Secret Id

        Referenced secret, if any.

        null
        
      • target_model: string | null

        Target Model

        Upstream model name, if any.

        null
        
      • vertex_config: components["schemas"]["VertexTargetConfig"] | null

        Google Vertex configuration, if any.

        null
        
    • EndpointTargetRequest: {
          base_url?: string | null;
          environment_name?: string | null;
          model_id?: string | null;
          provider: components["schemas"]["GatewayEndpointProvider"];
          secret_id?: string | null;
          target_model?: string | null;
          vertex_config?: components["schemas"]["VertexTargetConfig"] | null;
      }

      EndpointTargetRequestV1

      One desired upstream target. The customer picks a provider; Baseten owns the upstream host and protocol adapter.

      • Optionalbase_url?: string | null

        Base Url

        HTTPS base URL of the upstream OpenAI-compatible server. Must not include a port. Required for and only valid with OPENAI_COMPATIBLE.

        https://my-vllm.example.com
        
      • Optionalenvironment_name?: string | null

        Environment Name

        Baseten model environment to route to. Only valid with BASETEN. Omit or pass production to target production.

        staging
        
      • Optionalmodel_id?: string | null

        Model Id

        Baseten model to route to. Required for and only valid with BASETEN.

        3kZ9xqd
        
      • provider: components["schemas"]["GatewayEndpointProvider"]

        Upstream provider for this target.

        ANTHROPIC
        
        OPENAI
        
        OPENAI_COMPATIBLE
        
        BASETEN
        
      • Optionalsecret_id?: string | null

        Secret Id

        Secret holding the provider credential. Required for external providers.

        3kZ9xqd
        
      • Optionaltarget_model?: string | null

        Target Model

        Model name to send upstream. Required for external providers and optional for BASETEN targets.

        gpt-4o
        
      • Optionalvertex_config?: components["schemas"]["VertexTargetConfig"] | null

        Google Vertex configuration. Required for and only valid with VERTEX.

    • EndpointTombstone: { id: string; slug: string }

      EndpointTombstoneV1

      • id: string

        Id

        Identifier of the deleted endpoint.

      • slug: string

        Slug

        Slug of the deleted endpoint.

    • Environment: {
          autoscaling_schedules:
              | components["schemas"]["EnvironmentAutoscalingSchedules"]
              | null;
          autoscaling_settings: components["schemas"]["AutoscalingSettings"];
          candidate_deployment: components["schemas"]["Deployment"]
          | null;
          created_at: string;
          current_deployment: components["schemas"]["Deployment"] | null;
          in_progress_promotion: components["schemas"]["InProgressPromotion"] | null;
          instance_type: components["schemas"]["InstanceType"];
          model_id: string;
          name: string;
          promotion_settings: components["schemas"]["ModelPromotionSettings"];
          request_backpressure_settings: components["schemas"]["RequestBackpressureSettings"];
          traffic_routing: components["schemas"]["EnvironmentTrafficRouting"] | null;
      }

      EnvironmentV1

      Environment for oracles.

      • autoscaling_schedules: components["schemas"]["EnvironmentAutoscalingSchedules"] | null

        Autoscaling schedules and their evaluated state

        null
        
      • autoscaling_settings: components["schemas"]["AutoscalingSettings"]

        Autoscaling settings for the environment

      • candidate_deployment: components["schemas"]["Deployment"] | null

        Candidate deployment being promoted to the environment, if a promotion is in progress

        null
        
      • created_at: string

        Created At Format: date-time

        Time the environment was created in ISO 8601 format

      • current_deployment: components["schemas"]["Deployment"] | null

        Current deployment of the environment

      • in_progress_promotion: components["schemas"]["InProgressPromotion"] | null

        Details of the in-progress promotion, if any

        null
        
      • instance_type: components["schemas"]["InstanceType"]

        Instance type for the environment

      • model_id: string

        Model Id

        Unique identifier of the model

      • name: string

        Name

        Name of the environment

      • promotion_settings: components["schemas"]["ModelPromotionSettings"]

        Promotion settings for the environment

      • request_backpressure_settings: components["schemas"]["RequestBackpressureSettings"]

        Request backpressure settings for the environment.

      • traffic_routing: components["schemas"]["EnvironmentTrafficRouting"] | null

        The environment's traffic routing rules. In development.

        null
        
    • EnvironmentAutoscalingSchedules: {
          applied_state: components["schemas"]["AutoscalingScheduleState"] | null;
          schedules: (
              | components["schemas"]["AutoscalingSchedule"]
              | components["schemas"]["OneTimeAutoscalingSchedule"]
          )[];
          timezone: string
          | null;
      }

      EnvironmentAutoscalingSchedulesV1

      • applied_state: components["schemas"]["AutoscalingScheduleState"] | null

        Autoscaling state on the current serving deployment, or null when no deployment exists

      • schedules: (
            | components["schemas"]["AutoscalingSchedule"]
            | components["schemas"]["OneTimeAutoscalingSchedule"]
        )[]

        Schedules

        Autoscaling schedules ordered by creation time and stable identifier

      • timezone: string | null

        Timezone

        IANA timezone shared by all schedules. Omitted when no schedules exist.

        null
        
    • EnvironmentGroup: {
          manage_access: components["schemas"]["EnvironmentGroupManageAccess"];
          name: string;
          team_id: string;
          team_name: string;
      }

      EnvironmentGroupV1

      A team-scoped grouping of same-named environments (e.g. "production", "staging").

      Restricting an environment group limits who can manage the environment of that name
      across every model and chain in the team.
      
      • manage_access: components["schemas"]["EnvironmentGroupManageAccess"]

        Settings controlling who can manage this environment group.

      • name: string

        Name

        Name of the environment group, matching the environment name it governs.

        staging
        
      • team_id: string

        Team Id

        Unique identifier of the team the environment group belongs to.

      • team_name: string

        Team Name

        Name of the team the environment group belongs to.

    • EnvironmentGroupManageAccess: {
          is_restricted: boolean;
          users?: components["schemas"]["EnvironmentGroupUser"][];
      }

      EnvironmentGroupManageAccessV1

      Who is allowed to manage an environment group.

      • is_restricted: boolean

        Is Restricted

        Whether the environment is restricted to a specific set of users.

      • Optionalusers?: components["schemas"]["EnvironmentGroupUser"][]

        Users

        Users who can manage the environment while it is restricted, including organization and team admins who always have access. Empty when the environment is unrestricted.

    • EnvironmentGroups: {
          items: components["schemas"]["EnvironmentGroup"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      EnvironmentGroupsV1

      A page of environment groups.

      • items: components["schemas"]["EnvironmentGroup"][]

        Items

        Items in this page.

      • pagination: components["schemas"]["PaginationResponse"]

        Pagination metadata for the page.

    • EnvironmentGroupUser: { email: string | null; name: string | null; user_id: string }

      EnvironmentGroupUserV1

      A user referenced by an environment group's manage access.

      • email: string | null

        Email

        Email address of the user.

        null
        
      • name: string | null

        Name

        Display name of the user.

        null
        
      • user_id: string

        User Id

        Unique identifier for the user.

    • Environments: { environments: components["schemas"]["Environment"][] }

      EnvironmentsV1

      list of environments

    • EnvironmentTombstone: { deleted: boolean; model_id: string; name: string }

      EnvironmentTombstoneV1

      An environment tombstone.

      • deleted: boolean

        Deleted

        Whether the environment was deleted

      • model_id: string

        Model Id

        Unique identifier of the model

      • name: string

        Name

        Name of the environment

    • EnvironmentTrafficRouting: { rules: components["schemas"]["TrafficRoutingRule"][] }

      EnvironmentTrafficRoutingV1

      • rules: components["schemas"]["TrafficRoutingRule"][]

        Rules

        The environment's active rules

    • ExploreCost: {
          cache_read: number | null;
          cache_write: number | null;
          input: number | null;
          long_context: components["schemas"]["ExploreCostValues"] | null;
          output: number | null;
      }

      ExploreCostV1

      • cache_read: number | null

        Cache Read

        USD per 1M input tokens read from cache, when available.

        null
        
      • cache_write: number | null

        Cache Write

        USD per 1M input tokens written to cache, when available.

        null
        
      • input: number | null

        Input

        USD per 1M input tokens, when available.

        null
        
      • long_context: components["schemas"]["ExploreCostValues"] | null

        Prices for long-context requests, when the provider tiers by context length.

        null
        
      • output: number | null

        Output

        USD per 1M output tokens, when available.

        null
        
    • ExploreCostValues: {
          cache_read: number | null;
          cache_write: number | null;
          input: number | null;
          output: number | null;
      }

      ExploreCostValuesV1

      • cache_read: number | null

        Cache Read

        USD per 1M input tokens read from cache, when available.

        null
        
      • cache_write: number | null

        Cache Write

        USD per 1M input tokens written to cache, when available.

        null
        
      • input: number | null

        Input

        USD per 1M input tokens, when available.

        null
        
      • output: number | null

        Output

        USD per 1M output tokens, when available.

        null
        
    • ExploreMetadata: {
          context_window: number | null;
          cost: components["schemas"]["ExploreCost"] | null;
          display_name: string | null;
          input_modalities: string[];
          max_output_tokens: number | null;
          parallel_tool_calls: boolean | null;
          provider: string | null;
          reasoning_effort_levels: string[] | null;
          release_date: string | null;
          slug: string | null;
          supported_api_formats:
              | components["schemas"]["ExploreMetadataAPIFormats"]
              | null;
          tools: boolean
          | null;
      }

      ExploreMetadataV1

      • context_window: number | null

        Context Window

        Total context window in tokens.

      • cost: components["schemas"]["ExploreCost"] | null

        Provider list prices in USD per 1M tokens, when available.

      • display_name: string | null

        Display Name

        Model display name, when available.

      • input_modalities: string[]

        Input Modalities

        Accepted input modalities.

      • max_output_tokens: number | null

        Max Output Tokens

        Maximum output tokens per response.

      • parallel_tool_calls: boolean | null

        Parallel Tool Calls

        Whether the model supports parallel tool calls.

      • provider: string | null

        Provider

        Provider key derived from the slug prefix, e.g. 'anthropic'; null for unprefixed slugs.

      • reasoning_effort_levels: string[] | null

        Reasoning Effort Levels

        Reasoning effort levels the model supports.

      • release_date: string | null

        Release Date

        Model release date. Month-only source dates use the first day of that month.

      • slug: string | null

        Slug

        Metadata slug, e.g. 'anthropic/claude-opus-4'; null for rows without one.

      • supported_api_formats: components["schemas"]["ExploreMetadataAPIFormats"] | null

        API formats the model supports.

      • tools: boolean | null

        Tools

        Whether the model supports tool calling.

    • ExploreMetadataAPIFormats: { chat_completions: boolean; messages: boolean; responses: boolean }

      ExploreMetadataAPIFormatsV1

      • chat_completions: boolean

        Chat Completions

        OpenAI Chat Completions API support.

        false
        
      • messages: boolean

        Messages

        Anthropic Messages API support.

        false
        
      • responses: boolean

        Responses

        OpenAI Responses API support.

        false
        
    • ExploreMetadataResponse: {
          items: components["schemas"]["ExploreMetadata"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      ExploreMetadataResponseV1

    • FileSummary: {
          file_type: string;
          modified: string;
          path: string;
          permissions: string;
          size_bytes: number;
      }

      FileSummary

      Information about a file in the cache.

      • file_type: string

        File Type

        Type of the file

      • modified: string

        Modified

        Last modification time of the file

      • path: string

        Path

        Relative path of the file in the cache

      • permissions: string

        Permissions

        Permissions of the file

      • size_bytes: number

        Size Bytes

        Size of the file in bytes

    • GatewayEndpointProvider:
          | "ANTHROPIC"
          | "OPENAI"
          | "XAI"
          | "BASETEN"
          | "BASETEN_MODEL_API"
          | "VERTEX"
          | "OPENAI_COMPATIBLE"

      GatewayEndpointProviderV1

    • GatewayEvent: {
          apiKeyPrefix: string;
          externalEntityId: string;
          idempotencyKey: string;
          modelSlug: string;
          requestId: string;
          timestamp: string;
          tokens: components["schemas"]["GatewayEventTokens"];
          type: string;
      }

      GatewayEventV1

      • apiKeyPrefix: string

        Apikeyprefix

        API key prefix.

      • externalEntityId: string

        Externalentityid

        Calling group's external ID.

      • idempotencyKey: string

        Idempotencykey

        Deduplication key.

      • modelSlug: string

        Modelslug

        Served model.

      • requestId: string

        Requestid

        Inference request ID.

      • timestamp: string

        Timestamp

        Billing event time (ISO 8601, UTC).

      • tokens: components["schemas"]["GatewayEventTokens"]
      • type: string

        Type

        Event type.

        API_BILLING_USAGE
        
    • GatewayEventsResponse: {
          items: components["schemas"]["GatewayEvent"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      GatewayEventsResponseV1

    • GatewayEventTokens: { cachedInputTokens: number; inputTokens: number; outputTokens: number }

      GatewayEventTokensV1

      • cachedInputTokens: number

        Cachedinputtokens

        Cached input tokens.

      • inputTokens: number

        Inputtokens

        Cached and uncached input tokens.

      • outputTokens: number

        Outputtokens

        Output tokens.

    • GatewayKeyInfo: { name: string | null; prefix: string }

      GatewayKeyInfoV1

      • name: string | null

        Name

        Optional display name.

        null
        
      • prefix: string

        Prefix

        The prefix of the Model API key.

    • GcpOidcDockerAuth: { service_account: string; workload_identity_provider: string }

      GcpOidcDockerAuthV1

      GCP OIDC details for the registry.

      • service_account: string

        Service Account

        GCP service account name for OIDC authentication

      • workload_identity_provider: string

        Workload Identity Provider

        GCP workload identity provider for OIDC authentication

    • GcpServiceAccountJsonDockerAuth: { service_account_json_secret_ref: components["schemas"]["SecretReference"] }

      GcpServiceAccountJsonDockerAuthV1

      GCP details for the registry.

      • service_account_json_secret_ref: components["schemas"]["SecretReference"]

        Name of the service account secret

    • GetApiKeysParams: {
          created_by_me?: boolean;
          type?: components["schemas"]["APIKeyCategory"] | null;
      }
      • Optionalcreated_by_me?: boolean

        Created By Me

        Return only keys created by the authenticated user

      • Optionaltype?: components["schemas"]["APIKeyCategory"] | null

        Filter by API key type

    • GetAuditLogsParams: {
          chain_deployment_ids?: string[];
          cursor?: string | null;
          deployment_ids?: string[];
          direction?: components["schemas"]["AuditLogSortDirection"];
          end_epoch_millis?: number | null;
          environment_names?: string[];
          event_type_groups?: components["schemas"]["AuditLogEventTypeGroup"][];
          limit?: number;
          search?: string | null;
          sources?: components["schemas"]["AuditLogSource"][];
          start_epoch_millis?: number | null;
          user_ids?: string[];
      }
      • Optionalchain_deployment_ids?: string[]

        Chain Deployment Ids

        When set, returns only entries referencing one of these chain deployment IDs.

      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionaldeployment_ids?: string[]

        Deployment Ids

        When set, returns only entries referencing one of these model deployment IDs.

      • Optionaldirection?: components["schemas"]["AuditLogSortDirection"]

        Sort order by the time the action occurred. Defaults to DESC (newest first). Ignored when paginating with a cursor.

      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch milliseconds for the end of the window. Defaults to the current time.

      • Optionalenvironment_names?: string[]

        Environment Names

        When set, returns only entries for one of these environments.

      • Optionalevent_type_groups?: components["schemas"]["AuditLogEventTypeGroup"][]

        Event Type Groups

        When set, returns only entries whose event type falls in one of these groups.

      • Optionallimit?: number

        Limit

        Maximum number of entries to return per page. Defaults to 20, and must be between 1 and 200.

      • Optionalsearch?: string | null

        Search

        Case-insensitive substring matched against resource names and IDs in the entry.

      • Optionalsources?: components["schemas"]["AuditLogSource"][]

        Sources

        When set, returns only entries issued from one of these surfaces.

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch milliseconds for the start of the window. Defaults to the beginning of the audit-log history.

      • Optionaluser_ids?: string[]

        User Ids

        When set, returns only entries whose acting user is one of these IDs.

    • GetAuthCodesResponse: { auth_codes: components["schemas"]["AuthCode"][] }

      GetAuthCodesResponseV1

      Response containing auth codes for all nodes of a training job's interactive sessions.

      • auth_codes: components["schemas"]["AuthCode"][]

        Auth Codes

        List of auth codes for each node that has an active interactive session.

    • GetBillingModelApisParams: {
          api_key_prefixes?: string[];
          cursor?: string | null;
          end_date?: string | null;
          group_by?: components["schemas"]["ModelApiCostDimension"][];
          limit?: number;
          models?: string[];
          service_tiers?: string[];
          start_date?: string | null;
          team_ids?: string[];
          user_ids?: string[];
      }
      • Optionalapi_key_prefixes?: string[]

        Api Key Prefixes

        Return only costs for these exact API key prefixes, repeated once per prefix.

      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionalend_date?: string | null

        End Date

        Exclusive UTC calendar day at the end of the query range. Defaults to the day after the current UTC date so current-day usage is included. The date range cannot exceed 90 days.

      • Optionalgroup_by?: components["schemas"]["ModelApiCostDimension"][]

        Group By

        Dimensions to break costs down by, repeated once per dimension: api_key_prefix, user, model, service_tier, or team. Each result represents one observed combination of the requested dimensions within that day. For example, grouping by api_key_prefix and user returns each API-key and user pair that had usage. Combinations without usage are omitted, so result counts can differ between days. Omit for daily totals across all teams you can manage.

      • Optionallimit?: number

        Limit

        Number of daily cost buckets to return. Defaults to 7; maximum 31.

      • Optionalmodels?: string[]

        Models

        Return only costs for these exact model identifiers, repeated once per model.

      • Optionalservice_tiers?: string[]

        Service Tiers

        Return only costs for these exact service tiers, repeated once per tier.

      • Optionalstart_date?: string | null

        Start Date

        Inclusive UTC calendar day at the start of the query range. Defaults to the previous UTC date, cannot be before 2026-08-05, and is ignored when you pass a cursor.

      • Optionalteam_ids?: string[]

        Team Ids

        Return only costs attributed to these teams, repeated once per team. Defaults to all teams you can manage.

      • Optionaluser_ids?: string[]

        User Ids

        Return only costs attributed to these exact user IDs, repeated once per ID.

    • GetBillingToolCallUsageParams: {
          end_date?: string | null;
          group_by?: components["schemas"]["ToolCallUsageDimension"][];
          start_date: string;
          team_ids?: string[];
      }
      • Optionalend_date?: string | null

        End Date

        Exclusive UTC calendar day at the end of the query range. Defaults to the day after the current UTC date so current-day usage is included. The date range cannot exceed 90 days.

      • Optionalgroup_by?: components["schemas"]["ToolCallUsageDimension"][]

        Group By

        Pass TEAM to split daily rows by team. Defaults to aggregating across teams.

      • start_date: string

        Start Date Format: date

        Inclusive UTC calendar day at the start of the query range.

      • Optionalteam_ids?: string[]

        Team Ids

        Return only usage for these teams, repeated once per team. Defaults to all teams you can manage. An unauthorized team ID causes a 403 response.

    • GetBillingUsageSummaryParams: { end_date: string; start_date: string }
      • end_date: string

        End Date Format: date-time

        Exclusive end date (ISO 8601, normalized to midnight UTC). Date range cannot exceed 31 days.

      • start_date: string

        Start Date Format: date-time

        Inclusive start date (ISO 8601, normalized to midnight UTC). Earliest queryable: 2026-01-01.

    • GetBlobCredentialsResponse: {
          creds: components["schemas"]["AWSCredentials"];
          s3_bucket: string;
          s3_key: string;
      }

      GetBlobCredentialsResponseV1

      Response to create a new set of credentials for blob upload.

      • creds: components["schemas"]["AWSCredentials"]

        The credentials to upload the blob to

      • s3_bucket: string

        S3 Bucket

        The S3 bucket to upload the blob to

      • s3_key: string

        S3 Key

        The S3 key to upload the blob to

    • GetCacheSummaryResponse: {
          file_summaries: components["schemas"]["FileSummary"][];
          project_id: string;
          timestamp: string;
      }

      GetCacheSummaryResponseV1

      Response for getting cache summary.

      • file_summaries: components["schemas"]["FileSummary"][]

        File Summaries

        List of files in the cache

      • project_id: string

        Project Id

        Project ID associated with the cache

      • timestamp: string

        Timestamp

        Timestamp when the cache summary was captured

    • GetChainsAuditLogsParams: {
          chain_deployment_ids?: string[];
          cursor?: string | null;
          deployment_ids?: string[];
          direction?: components["schemas"]["AuditLogSortDirection"];
          end_epoch_millis?: number | null;
          environment_names?: string[];
          event_type_groups?: components["schemas"]["AuditLogEventTypeGroup"][];
          limit?: number;
          search?: string | null;
          sources?: components["schemas"]["AuditLogSource"][];
          start_epoch_millis?: number | null;
          user_ids?: string[];
      }
      • Optionalchain_deployment_ids?: string[]

        Chain Deployment Ids

        When set, returns only entries referencing one of these chain deployment IDs.

      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionaldeployment_ids?: string[]

        Deployment Ids

        When set, returns only entries referencing one of these model deployment IDs.

      • Optionaldirection?: components["schemas"]["AuditLogSortDirection"]

        Sort order by the time the action occurred. Defaults to DESC (newest first). Ignored when paginating with a cursor.

      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch milliseconds for the end of the window. Defaults to the current time.

      • Optionalenvironment_names?: string[]

        Environment Names

        When set, returns only entries for one of these environments.

      • Optionalevent_type_groups?: components["schemas"]["AuditLogEventTypeGroup"][]

        Event Type Groups

        When set, returns only entries whose event type falls in one of these groups.

      • Optionallimit?: number

        Limit

        Maximum number of entries to return per page. Defaults to 20, and must be between 1 and 200.

      • Optionalsearch?: string | null

        Search

        Case-insensitive substring matched against resource names and IDs in the entry.

      • Optionalsources?: components["schemas"]["AuditLogSource"][]

        Sources

        When set, returns only entries issued from one of these surfaces.

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch milliseconds for the start of the window. Defaults to the beginning of the audit-log history.

      • Optionaluser_ids?: string[]

        User Ids

        When set, returns only entries whose acting user is one of these IDs.

    • GetChainsDeploymentsChainletsLogsParams: {
          component?: string | null;
          direction?: components["schemas"]["SortOrder"] | null;
          end_epoch_millis?: number | null;
          excludes?: string[];
          includes?: string[];
          limit?: number | null;
          min_level?: components["schemas"]["LogLevel"] | null;
          replica?: string | null;
          request_id?: string | null;
          search_pattern?: string | null;
          start_epoch_millis?: number | null;
      }
      • Optionalcomponent?: string | null

        Component

        Only return logs from this component.

      • Optionaldirection?: components["schemas"]["SortOrder"] | null

        Sort order for logs

      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch milliseconds at which to stop fetching logs. Defaults to the current time.

      • Optionalexcludes?: string[]

        Excludes

        Case-sensitive substrings; lines containing any of these are dropped.

      • Optionalincludes?: string[]

        Includes

        Case-sensitive substrings that must all appear in the log message.

      • Optionallimit?: number | null

        Limit

        Limit of logs to fetch in a single request

      • Optionalmin_level?: components["schemas"]["LogLevel"] | null

        Minimum log severity to include. Omit to return all log lines, including lines that have no level. Any explicit value returns lines at or above that severity and drops lines without a level.

      • Optionalreplica?: string | null

        Replica

        Only return logs emitted by this replica (5-char short ID).

      • Optionalrequest_id?: string | null

        Request Id

        Only return logs tagged with this inference request ID.

      • Optionalsearch_pattern?: string | null

        Search Pattern

        RE2 regular expression matched against the log message. Prefer includes and excludes for plain substring matches.

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch milliseconds at which to start fetching logs. Defaults to 30 minutes before the end. The window from start to end must not exceed 7 days.

    • GetDeploymentLogsRequest: {
          component?: string | null;
          direction?: components["schemas"]["SortOrder"] | null;
          end_epoch_millis?: number | null;
          excludes?: string[];
          includes?: string[];
          limit?: number | null;
          min_level?: components["schemas"]["LogLevel"] | null;
          replica?: string | null;
          request_id?: string | null;
          search_pattern?: string | null;
          start_epoch_millis?: number | null;
      }

      GetDeploymentLogsRequestV1

      A request to fetch deployment logs.

      • Optionalcomponent?: string | null

        Component

        Only return logs from this component.

      • Optionaldirection?: components["schemas"]["SortOrder"] | null

        Sort order for logs

      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch milliseconds at which to stop fetching logs. Defaults to the current time.

      • Optionalexcludes?: string[]

        Excludes

        Case-sensitive substrings; lines containing any of these are dropped.

      • Optionalincludes?: string[]

        Includes

        Case-sensitive substrings that must all appear in the log message.

      • Optionallimit?: number | null

        Limit

        Limit of logs to fetch in a single request

      • Optionalmin_level?: components["schemas"]["LogLevel"] | null

        Minimum log severity to include. Omit to return all log lines, including lines that have no level. Any explicit value returns lines at or above that severity and drops lines without a level.

      • Optionalreplica?: string | null

        Replica

        Only return logs emitted by this replica (5-char short ID).

      • Optionalrequest_id?: string | null

        Request Id

        Only return logs tagged with this inference request ID.

      • Optionalsearch_pattern?: string | null

        Search Pattern

        RE2 regular expression matched against the log message. Prefer includes and excludes for plain substring matches.

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch milliseconds at which to start fetching logs. Defaults to 30 minutes before the end. The window from start to end must not exceed 7 days.

    • GetDeploymentPatchesStateResponse: {
          pending_patch_point:
              | components["schemas"]["DeploymentPatchPointWithHash"]
              | null;
          running_patch_point: components["schemas"]["DeploymentPatchPointWithHash"];
      }

      GetDeploymentPatchesStateResponseV1

      The patch state of the development deployment.

      The watch client computes its next patch off `pending_patch_point` when present,
      else `running_patch_point`.
      
      • pending_patch_point: components["schemas"]["DeploymentPatchPointWithHash"] | null

        The latest staged-but-unsynced patch point, or null when the deployment is recorded as caught up.

        null
        
      • running_patch_point: components["schemas"]["DeploymentPatchPointWithHash"]

        The patch point the deployment is recorded as running.

    • GetExploreMetadataParams: {
          cursor?: string | null;
          limit?: number;
          provider?: string | null;
          q?: string | null;
      }
      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionallimit?: number

        Limit

        Maximum number of items to return.

      • Optionalprovider?: string | null

        Provider

        Filter to a provider by slug prefix, e.g. 'anthropic'. Preserved by the cursor; if repeated, must match the original filter.

      • Optionalq?: string | null

        Q

        Case-insensitive substring search over metadata slugs. Preserved by the cursor; if repeated, must match the original filter.

    • GetGatewayEventsParams: {
          api_keys?: string[];
          cursor?: string | null;
          end_time?: string | null;
          external_entity_ids?: string[];
          limit?: number | null;
          start_time?: string | null;
      }
      • Optionalapi_keys?: string[]

        Api Keys

        Return only events for these API key prefixes, repeated once per prefix.

      • Optionalcursor?: string | null

        Cursor

        Next-page cursor. Other parameters are ignored.

      • Optionalend_time?: string | null

        End Time

        Exclusive end (ISO 8601, UTC). Defaults to now.

      • Optionalexternal_entity_ids?: string[]

        External Entity Ids

        Return only events for these external entity IDs, repeated once per ID.

      • Optionallimit?: number | null

        Limit

        Max events. Default 100, max 1000.

      • Optionalstart_time?: string | null

        Start Time

        Inclusive start (ISO 8601, UTC). Required without a cursor.

    • GetGridClassifiersParams: { cursor?: string | null; limit?: number }
      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionallimit?: number

        Limit

        Maximum number of items to return.

    • GetGridConnectionsParams: { cursor?: string | null; limit?: number; team_id?: string | null }
      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionallimit?: number

        Limit

        Maximum number of items to return.

      • Optionalteam_id?: string | null

        Team Id

        Limit connections to this team. Without it, connections from every team where you can invoke routes.

    • GetGridMachineUsersParams: { cursor?: string | null; limit?: number; team_id?: string | null }
      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionallimit?: number

        Limit

        Maximum number of items to return.

      • Optionalteam_id?: string | null

        Team Id

        Limit machine users to this team. Without it, every team you administer.

    • GetGridRouteClassifiersParams: { cursor?: string | null; limit?: number }
      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionallimit?: number

        Limit

        Maximum number of items to return.

    • GetGridRoutesParams: {
          cursor?: string | null;
          for_harnesses?: boolean;
          limit?: number;
          name?: string | null;
          team_id?: string | null;
      }
      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionalfor_harnesses?: boolean

        For Harnesses

        Set by harness setup and sync. Returns routes from exactly one team: team_id, else the team you belong to; when you belong to several and name none, the request fails with a 400.

      • Optionallimit?: number

        Limit

        Maximum number of items to return.

      • Optionalname?: string | null

        Name

        Filter by exact route name. Preserved by the cursor; if repeated, must match the original filter.

      • Optionalteam_id?: string | null

        Team Id

        Limit routes to this team. Without it, routes from every team where you can invoke routes.

    • GetGridRoutesUsageParams: {
          cursor?: string | null;
          end_date?: string | null;
          group_by?: components["schemas"]["GridRouteUsageDimension"][];
          harnesses?: components["schemas"]["GridRouteUsageHarness"][];
          limit?: number;
          models?: string[];
          providers?: components["schemas"]["GridProvider"][];
          start_date?: string | null;
          team_id?: string | null;
          user_ids?: string[];
      }
      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionalend_date?: string | null

        End Date

        Exclusive UTC calendar day at the end of the query range. Defaults to the day after the current UTC date so current-day usage is included.

      • Optionalgroup_by?: components["schemas"]["GridRouteUsageDimension"][]

        Group By

        Dimensions to break usage down by, repeated once per dimension: USER, TEAM, MODEL, PROVIDER, INTELLIGENT_ROUTE, or HARNESS. Each result represents one observed combination of the requested dimensions within that day, and results are sorted by those values. Combinations without usage are omitted, so result counts can differ between days. INTELLIGENT_ROUTE returns only usage sent through an intelligent route, one row per intelligent route, or per intelligent route and model with MODEL. These rows repeat usage already counted in other groupings, so don't add them to model totals. HARNESS includes usage with no recorded harness as a null group. Defaults to MODEL.

      • Optionalharnesses?: components["schemas"]["GridRouteUsageHarness"][]

        Harnesses

        Return only usage for these harnesses, repeated once per harness. Omit to include all usage, including usage with no recorded harness.

      • Optionallimit?: number

        Limit

        Number of daily buckets to return. Defaults to 7; maximum 31.

      • Optionalmodels?: string[]

        Models

        Return only usage for these exact model names, repeated once per model.

      • Optionalproviders?: components["schemas"]["GridProvider"][]

        Providers

        Return only usage for these providers, repeated once per provider.

      • Optionalstart_date?: string | null

        Start Date

        Inclusive UTC calendar day at the start of the query range. Defaults to the previous UTC date, and is ignored when you pass a cursor.

      • Optionalteam_id?: string | null

        Team Id

        Limit usage to a team you can access. Organization admins can view all usage in the team, team admins can view usage in teams they manage, and other members can view only their own usage. Without a team, organization admins see all organization usage, team admins see their managed teams, and other members see their own usage.

      • Optionaluser_ids?: string[]

        User Ids

        Return only usage from Routes keys created by these user IDs, repeated once per ID.

    • GetGridTeamSettingsParams: { team_id?: string | null }
      • Optionalteam_id?: string | null

        Team Id

        ID of the team. When omitted, the team you belong to; required when you belong to several.

        abc1234
        
    • GetGridTeamSettingsUsersParams: { cursor?: string | null; limit?: number; team_id?: string | null }
      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionallimit?: number

        Limit

        Maximum number of items to return.

      • Optionalteam_id?: string | null

        Team Id

        Limit the list to this team. Without it, the members of every team you administer, one row per team.

        abc1234
        
    • GetGridTeamSettingsUsersUserIdParams: { team_id?: string | null }
      • Optionalteam_id?: string | null

        Team Id

        ID of the team. When omitted, the team you belong to; required when you belong to several.

        abc1234
        
    • GetImageBuildLogsParams: {
          end_time?: string;
          limit?: number;
          offset?: number;
          start_time?: string;
          team_id?: string;
      }
      • Optionalend_time?: string

        Format: date-time

        RFC 3339 end time. Defaults to the current time.

      • Optionallimit?: number

        Maximum number of log entries to return.

      • Optionaloffset?: number

        Number of log entries to skip. Narrow the time range beyond 10000 entries.

      • Optionalstart_time?: string

        Format: date-time

        Inclusive RFC 3339 start time. Defaults to 24 hours before end_time.

      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • GetImageParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • GetLogsResponse: { logs: components["schemas"]["Log"][] }

      GetLogsResponseV1

      A response to querying logs.

    • GetLoopsCapabilitiesParams: {
          enabled?: boolean | null;
          max_seq_len?: number | null;
          model?: string | null;
          use_case?: components["schemas"]["LoopsUseCase"];
      }
      • Optionalenabled?: boolean | null

        Enabled

        Pass true to list only the models this workspace can run now, or false for only the ones it cannot. Omit to list both. With 'model', an empty list can also mean the model is supported but filtered out.

        true
        
      • Optionalmax_seq_len?: number | null

        Max Seq Len

        The sequence length the caller intends to train at — the same value they would pass as 'max_seq_len' when creating the run. Models that cannot serve it are reported as not enabled rather than returned with a ceiling the caller cannot use. Omit for the model's highest enabled sequence length.

        32768
        
      • Optionalmodel?: string | null

        Model

        Restrict the response to one model, identified by its HuggingFace repo id. A supported model comes back with its 'enabled' flag and, when false, its 'enablement_details'. Without 'enabled', an empty list means Baseten does not support that model. Omit to list every supported model.

        Qwen/Qwen3-8B
        
      • Optionaluse_case?: components["schemas"]["LoopsUseCase"]

        What the caller intends to run. Defaults to 'rl', the stricter of the two: an RL run needs both a trainer and a sampler, so anything enabled for 'rl' is also enabled for 'sft'.

        rl
        
    • GetLoopsCapabilitiesResponse: { supported_models: components["schemas"]["SupportedModel"][] }

      GetLoopsCapabilitiesResponseV1

      Response for GET /v1/loops/capabilities.

      A model Baseten does not support has no entry at all, so an empty list for
      a single-model request without ``enabled`` means exactly that.
      
      • supported_models: components["schemas"]["SupportedModel"][]

        Supported Models

        Models Baseten supports for this use case, each carrying an 'enabled' flag saying whether this workspace can run it now, and 'enablement_details' when it cannot. Models this workspace can run come first, then the rest, each group sorted by name.

    • GetLoopsCheckpointsFilesParams: { page_size?: number; page_token?: number }
      • Optionalpage_size?: number

        Page Size

        Max files per page (default 1000).

      • Optionalpage_token?: number

        Page Token

        Offset into the file list (default 0).

    • GetLoopsCheckpointsParams: {
          base_model?: string | null;
          checkpoint_path?: string | null;
          run_id?: string | null;
      }
      • Optionalbase_model?: string | null

        Base Model

        Filter by base model. Returns checkpoints across the caller's runs of this base model.

        Qwen/Qwen3-8B
        
      • Optionalcheckpoint_path?: string | null

        Checkpoint Path

        bt:// URI of a Loops checkpoint. Form: bt://loops:<run_id>/(weights|sampler_weights)/<checkpoint_name>.

        bt://loops:k4q95w5/sampler_weights/step-100
        
      • Optionalrun_id?: string | null

        Run Id

        Filter by run ID. Returns all checkpoints saved by the run.

        k4q95w5
        
    • GetLoopsDeploymentMetricsRequest: {
          end_epoch_millis?: number | null;
          start_epoch_millis?: number | null;
          step_seconds?: number | null;
          time_divisor_seconds?: number | null;
      }

      GetLoopsDeploymentMetricsRequestV1

      Time-range request for trainer deployment metrics.

      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch millis to end fetching metrics.

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch millis to start fetching metrics.

      • Optionalstep_seconds?: number | null

        Step Seconds

        Resolution of the returned series, in seconds. When omitted, a step is derived from the time range so large windows return fewer points.

      • Optionaltime_divisor_seconds?: number | null

        Time Divisor Seconds

        Unit of time for request-volume metrics, in seconds (e.g. 60 for requests/minute). Defaults to per-second.

    • GetLoopsDeploymentMetricsResponse: {
          deployment_id: string;
          metrics: components["schemas"]["LoopsDeploymentMetrics"];
      }

      GetLoopsDeploymentMetricsResponseV1

      Response for POST /v1/loops/deployments/<id>/metrics.

      • deployment_id: string

        Deployment Id

        The trainer deployment ID.

      • metrics: components["schemas"]["LoopsDeploymentMetrics"]

        Metrics for the deployment.

    • GetLoopsDeploymentResponse: { deployment: components["schemas"]["LoopsDeployment"] }

      GetLoopsDeploymentResponseV1

      Response for GET /v1/loops/deployments/<deployment_id>.

    • GetLoopsDeploymentsDebugArchiveFilesParams: { page_size?: number; page_token?: string | null }
      • Optionalpage_size?: number

        Page Size

        Max files per page (default and maximum 1000).

      • Optionalpage_token?: string | null

        Page Token

        Opaque token for the next page.

    • GetLoopsDeploymentsLogsParams: {
          direction?: components["schemas"]["SortOrder"] | null;
          end_epoch_millis?: number | null;
          limit?: number | null;
          min_level?: components["schemas"]["LogLevel"] | null;
          start_epoch_millis?: number | null;
      }
      • Optionaldirection?: components["schemas"]["SortOrder"] | null

        Sort order for logs

      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch milliseconds at which to stop fetching logs. Defaults to the current time.

      • Optionallimit?: number | null

        Limit

        Limit of logs to fetch in a single request

      • Optionalmin_level?: components["schemas"]["LogLevel"] | null

        Minimum log severity to include. Omit to return all log lines, including lines that have no level. Any explicit value returns lines at or above that severity and drops lines without a level.

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch milliseconds at which to start fetching logs. Defaults to 30 minutes before the end. The window from start to end must not exceed 7 days.

    • GetLoopsDeploymentsParams: { scope?: string | null }
      • Optionalscope?: string | null

        Scope

        Defaults to the caller's own deployments; pass 'org' to list every deployment in the caller's organization.

        org
        
    • GetLoopsRunResponse: { run: components["schemas"]["LoopsRun"] }

      GetLoopsRunResponseV1

      Response for GET /v1/loops/runs/<run_id>.

    • GetLoopsRunsParams: {
          base_model?: string | null;
          run_id?: string | null;
          scope?: string | null;
          session_id?: string | null;
      }
      • Optionalbase_model?: string | null

        Base Model

        Filter runs by base model name.

        Qwen/Qwen3-8B
        
      • Optionalrun_id?: string | null

        Run Id

        Filter by run ID.

        k4q95w5
        
      • Optionalscope?: string | null

        Scope

        Defaults to the caller's own runs; pass 'org' to list every run in the caller's organization.

        org
        
      • Optionalsession_id?: string | null

        Session Id

        Filter runs by the session that created them. An unknown or inaccessible session returns an empty list.

        k4q95w5
        
    • GetLoopsSamplerResponse: { sampler: components["schemas"]["LoopsSampler"] }

      GetLoopsSamplerResponseV1

      Response for GET /v1/loops/samplers/<sampler_id>.

    • GetLoopsSamplersParams: { scope?: string | null; session_id?: string | null }
      • Optionalscope?: string | null

        Scope

        Defaults to the caller's own samplers; pass 'org' to include samplers owned by other users in the caller's organization.

        org
        
      • Optionalsession_id?: string | null

        Session Id

        Filter samplers by the session that created them. An unknown or inaccessible session returns an empty list.

        k4q95w5
        
    • GetLoopsSessionResponse: { session: components["schemas"]["LoopsSession"] }

      GetLoopsSessionResponseV1

      Response for GET /v1/loops/sessions/<session_id>.

    • GetLoopsUserConfigResponse: { user_config: components["schemas"]["LoopsUserConfig"] }

      GetLoopsUserConfigResponseV1

      Response for GET /v1/loops/user_config.

      • user_config: components["schemas"]["LoopsUserConfig"]

        The caller's Loops user config.

    • GetMetricsResponse: {
          end_epoch_millis: number;
          metric_descriptors: components["schemas"]["MetricDescriptor"][];
          metric_values: components["schemas"]["MetricValueSet"][];
          mode: components["schemas"]["MetricMode"];
          start_epoch_millis: number;
          step_seconds: number | null;
      }

      GetMetricsResponseV1

      Model metrics over a time window, index-mapped: metric descriptors appear once in metric_descriptors; each value set's values are aligned to that order.

      • end_epoch_millis: number

        End Epoch Millis

        End of the returned window.

      • metric_descriptors: components["schemas"]["MetricDescriptor"][]

        Metric Descriptors

        Descriptors for each metric; position defines the values index.

      • metric_values: components["schemas"]["MetricValueSet"][]

        Metric Values

        Metric values per time step covering the window. In summary mode this always contains exactly one value set spanning the whole window.

      • mode: components["schemas"]["MetricMode"]

        The aggregation mode used.

      • start_epoch_millis: number

        Start Epoch Millis

        Start of the returned window.

      • step_seconds: number | null

        Step Seconds

        Seconds per step; populated only in SERIES mode, null otherwise.

    • GetModelApisMetricsParams: {
          end_epoch_millis?: number | null;
          metrics?: string[];
          mode?: components["schemas"]["MetricMode"];
          start_epoch_millis?: number | null;
      }
      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch millis timestamp to end fetching metrics. Defaults to the current time. The window between start and end must not exceed 7 days.

      • Optionalmetrics?: string[]

        Metrics

        Names of the metrics to return; see https://docs.baseten.co/observability/export-metrics/supported-metrics for the available names. When omitted, a default set is returned: baseten_model_api_inference_requests_total, baseten_model_api_incoming_inference_requests_total, and baseten_model_api_tokens_total. Unknown names are rejected; valid names that are not enabled for your organization are omitted from the response.

      • Optionalmode?: components["schemas"]["MetricMode"]

        'CURRENT': a single instantaneous snapshot at now; start/end must be omitted. 'SUMMARY': a single value set aggregating the whole window. 'SERIES': evenly-spaced value sets across the window, with the step derived from the window duration.

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch millis timestamp to start fetching metrics. Defaults to one hour before the end.

    • GetModelApisModelApiNameParams: { team_ids?: string[] }
      • Optionalteam_ids?: string[]

        Team Ids

        Select teams for added-model details, repeated once per team. Defaults to all teams where you can invoke Model APIs. Any unauthorized team causes a 403.

    • GetModelApisParams: {
          added_only?: boolean;
          cursor?: string | null;
          limit?: number;
          team_ids?: string[];
      }
      • Optionaladded_only?: boolean

        Added Only

        When true, restrict the result to Model APIs added by any team where you can invoke Model APIs. Explicit team_ids narrow this to the selected teams. Defaults to the full visible catalog.

      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionallimit?: number

        Limit

        Maximum number of items to return.

      • Optionalteam_ids?: string[]

        Team Ids

        Select teams for added-model details, filtering, and ordering, repeated once per team. Defaults to all teams where you can invoke Model APIs. Any unauthorized team causes a 403.

    • GetModelApisUsageParams: {
          api_keys?: string[];
          bucket_width?: components["schemas"]["BucketWidth"];
          cursor?: string | null;
          end_time?: string | null;
          group_by?: components["schemas"]["UsageDimension"][];
          limit?: number | null;
          models?: string[];
          start_time?: string | null;
          team_ids?: string[];
          user_ids?: string[];
      }
      • Optionalapi_keys?: string[]

        Api Keys

        Return only usage for these API key prefixes, repeated once per prefix.

      • Optionalbucket_width?: components["schemas"]["BucketWidth"]

        Width of each time bucket: 1m, 1h, or 1d. Defaults to 1d.

      • Optionalcursor?: string | null

        Cursor

        Opaque cursor from the pagination.cursor field of a previous response

      • Optionalend_time?: string | null

        End Time

        End of the query range (ISO 8601, UTC), exclusive. Defaults to the current time.

      • Optionalgroup_by?: components["schemas"]["UsageDimension"][]

        Group By

        Dimensions to break usage down by, repeated once per dimension: api_key, user, model, or team. Defaults to model.

      • Optionallimit?: number | null

        Limit

        Number of time buckets to return. Defaults and maximums depend on bucket_width: 1d defaults to 7 and allows 31, 1h defaults to 24 and allows 168, 1m defaults to 60 and allows 1440.

      • Optionalmodels?: string[]

        Models

        Return only usage for these models, repeated once per model.

      • Optionalstart_time?: string | null

        Start Time

        Start of the query range (ISO 8601, UTC), inclusive. Snapped down to the start of its bucket. Required on the first page, and ignored when you pass a cursor.

      • Optionalteam_ids?: string[]

        Team Ids

        Return only usage for these teams, repeated once per team. Defaults to all teams you can manage.

      • Optionaluser_ids?: string[]

        User Ids

        Return only usage attributed to these user IDs, repeated once per ID.

    • GetModelsAuditLogsParams: {
          chain_deployment_ids?: string[];
          cursor?: string | null;
          deployment_ids?: string[];
          direction?: components["schemas"]["AuditLogSortDirection"];
          end_epoch_millis?: number | null;
          environment_names?: string[];
          event_type_groups?: components["schemas"]["AuditLogEventTypeGroup"][];
          limit?: number;
          search?: string | null;
          sources?: components["schemas"]["AuditLogSource"][];
          start_epoch_millis?: number | null;
          user_ids?: string[];
      }
      • Optionalchain_deployment_ids?: string[]

        Chain Deployment Ids

        When set, returns only entries referencing one of these chain deployment IDs.

      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionaldeployment_ids?: string[]

        Deployment Ids

        When set, returns only entries referencing one of these model deployment IDs.

      • Optionaldirection?: components["schemas"]["AuditLogSortDirection"]

        Sort order by the time the action occurred. Defaults to DESC (newest first). Ignored when paginating with a cursor.

      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch milliseconds for the end of the window. Defaults to the current time.

      • Optionalenvironment_names?: string[]

        Environment Names

        When set, returns only entries for one of these environments.

      • Optionalevent_type_groups?: components["schemas"]["AuditLogEventTypeGroup"][]

        Event Type Groups

        When set, returns only entries whose event type falls in one of these groups.

      • Optionallimit?: number

        Limit

        Maximum number of entries to return per page. Defaults to 20, and must be between 1 and 200.

      • Optionalsearch?: string | null

        Search

        Case-insensitive substring matched against resource names and IDs in the entry.

      • Optionalsources?: components["schemas"]["AuditLogSource"][]

        Sources

        When set, returns only entries issued from one of these surfaces.

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch milliseconds for the start of the window. Defaults to the beginning of the audit-log history.

      • Optionaluser_ids?: string[]

        User Ids

        When set, returns only entries whose acting user is one of these IDs.

    • GetModelsDeploymentsConfigParams: { output_format?: components["schemas"]["DeploymentConfigOutputFormat"] }
      • Optionaloutput_format?: components["schemas"]["DeploymentConfigOutputFormat"]

        'raw': verbatim config.yaml with comments (not available for deployments created before 2026-04-30). 'parsed': dict with server-side defaults applied (always available). 'both': both fields populated.

    • GetModelsDeploymentsLogsParams: {
          component?: string | null;
          direction?: components["schemas"]["SortOrder"] | null;
          end_epoch_millis?: number | null;
          excludes?: string[];
          includes?: string[];
          limit?: number | null;
          min_level?: components["schemas"]["LogLevel"] | null;
          replica?: string | null;
          request_id?: string | null;
          search_pattern?: string | null;
          start_epoch_millis?: number | null;
      }
      • Optionalcomponent?: string | null

        Component

        Only return logs from this component.

      • Optionaldirection?: components["schemas"]["SortOrder"] | null

        Sort order for logs

      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch milliseconds at which to stop fetching logs. Defaults to the current time.

      • Optionalexcludes?: string[]

        Excludes

        Case-sensitive substrings; lines containing any of these are dropped.

      • Optionalincludes?: string[]

        Includes

        Case-sensitive substrings that must all appear in the log message.

      • Optionallimit?: number | null

        Limit

        Limit of logs to fetch in a single request

      • Optionalmin_level?: components["schemas"]["LogLevel"] | null

        Minimum log severity to include. Omit to return all log lines, including lines that have no level. Any explicit value returns lines at or above that severity and drops lines without a level.

      • Optionalreplica?: string | null

        Replica

        Only return logs emitted by this replica (5-char short ID).

      • Optionalrequest_id?: string | null

        Request Id

        Only return logs tagged with this inference request ID.

      • Optionalsearch_pattern?: string | null

        Search Pattern

        RE2 regular expression matched against the log message. Prefer includes and excludes for plain substring matches.

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch milliseconds at which to start fetching logs. Defaults to 30 minutes before the end. The window from start to end must not exceed 7 days.

    • GetModelsDeploymentsMetricsParams: {
          end_epoch_millis?: number | null;
          metrics?: string[];
          mode?: components["schemas"]["MetricMode"];
          start_epoch_millis?: number | null;
      }
      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch millis timestamp to end fetching metrics. Defaults to the current time. The window between start and end must not exceed 7 days.

      • Optionalmetrics?: string[]

        Metrics

        Names of the metrics to return; see https://docs.baseten.co/observability/export-metrics/supported-metrics for the available names. When omitted, a default set is returned: baseten_replicas_active, baseten_inference_requests_total, and baseten_end_to_end_response_time_seconds. Unknown names are rejected; valid names that do not apply are omitted from the response.

      • Optionalmode?: components["schemas"]["MetricMode"]

        'CURRENT': a single instantaneous snapshot at now; start/end must be omitted. 'SUMMARY': a single value set aggregating the whole window. 'SERIES': evenly-spaced value sets across the window, with the step derived from the window duration.

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch millis timestamp to start fetching metrics. Defaults to one hour before the end.

    • GetModelsDeploymentsParams: { name?: string | null }
      • Optionalname?: string | null

        Name

        When set, returns only the deployment with this exact name, if any.

    • GetModelsDeploymentsStartupsParams: {
          cursor?: string | null;
          direction?: components["schemas"]["SortOrder"] | null;
          end_epoch_millis: number;
          limit?: number;
          min_duration_ms?: number | null;
          outcomes?: components["schemas"]["StartupOutcome"][];
          phase?: components["schemas"]["StartupPhase"] | null;
          search?: string | null;
          sort_by?: components["schemas"]["StartupSortField"] | null;
          start_epoch_millis: number;
      }
      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page. Pass the same filters and sort as the request that returned it.

      • Optionaldirection?: components["schemas"]["SortOrder"] | null

        Sort direction. Defaults to desc.

      • end_epoch_millis: number

        End Epoch Millis

        End of the query window, in epoch milliseconds. Must be after the start.

      • Optionallimit?: number

        Limit

        Maximum number of attempts to return.

      • Optionalmin_duration_ms?: number | null

        Min Duration Ms

        Only include startups that lasted at least this many milliseconds.

      • Optionaloutcomes?: components["schemas"]["StartupOutcome"][]

        Outcomes

        Only include attempts with one of these outcomes. Repeat to pass several.

      • Optionalphase?: components["schemas"]["StartupPhase"] | null

        Only include attempts that spent longer than 0 ms in this phase.

      • Optionalsearch?: string | null

        Search

        Only include attempts whose replica ID matches exactly, or whose deployment name contains this text (case-insensitive).

      • Optionalsort_by?: components["schemas"]["StartupSortField"] | null

        Field to sort attempts by. Defaults to STARTED_AT.

      • start_epoch_millis: number

        Start Epoch Millis

        Start of the query window, in epoch milliseconds.

    • GetModelsDeploymentsStartupsSummaryParams: {
          end_epoch_millis: number;
          min_duration_ms?: number | null;
          start_epoch_millis: number;
      }
      • end_epoch_millis: number

        End Epoch Millis

        End of the query window, in epoch milliseconds. Must be after the start.

      • Optionalmin_duration_ms?: number | null

        Min Duration Ms

        Only include startups that lasted at least this many milliseconds.

      • start_epoch_millis: number

        Start Epoch Millis

        Start of the query window, in epoch milliseconds.

    • GetModelsEnvironmentsLogsParams: {
          component?: string | null;
          direction?: components["schemas"]["SortOrder"] | null;
          end_epoch_millis?: number | null;
          excludes?: string[];
          includes?: string[];
          limit?: number | null;
          min_level?: components["schemas"]["LogLevel"] | null;
          replica?: string | null;
          request_id?: string | null;
          search_pattern?: string | null;
          start_epoch_millis?: number | null;
      }
      • Optionalcomponent?: string | null

        Component

        Only return logs from this component.

      • Optionaldirection?: components["schemas"]["SortOrder"] | null

        Sort order for logs

      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch milliseconds at which to stop fetching logs. Defaults to the current time.

      • Optionalexcludes?: string[]

        Excludes

        Case-sensitive substrings; lines containing any of these are dropped.

      • Optionalincludes?: string[]

        Includes

        Case-sensitive substrings that must all appear in the log message.

      • Optionallimit?: number | null

        Limit

        Limit of logs to fetch in a single request

      • Optionalmin_level?: components["schemas"]["LogLevel"] | null

        Minimum log severity to include. Omit to return all log lines, including lines that have no level. Any explicit value returns lines at or above that severity and drops lines without a level.

      • Optionalreplica?: string | null

        Replica

        Only return logs emitted by this replica (5-char short ID).

      • Optionalrequest_id?: string | null

        Request Id

        Only return logs tagged with this inference request ID.

      • Optionalsearch_pattern?: string | null

        Search Pattern

        RE2 regular expression matched against the log message. Prefer includes and excludes for plain substring matches.

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch milliseconds at which to start fetching logs. Defaults to 30 minutes before the end. The window from start to end must not exceed 7 days.

    • GetModelsEnvironmentsMetricsParams: {
          end_epoch_millis?: number | null;
          metrics?: string[];
          mode?: components["schemas"]["MetricMode"];
          start_epoch_millis?: number | null;
      }
      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch millis timestamp to end fetching metrics. Defaults to the current time. The window between start and end must not exceed 7 days.

      • Optionalmetrics?: string[]

        Metrics

        Names of the metrics to return; see https://docs.baseten.co/observability/export-metrics/supported-metrics for the available names. When omitted, a default set is returned: baseten_replicas_active, baseten_inference_requests_total, and baseten_end_to_end_response_time_seconds. Unknown names are rejected; valid names that do not apply are omitted from the response.

      • Optionalmode?: components["schemas"]["MetricMode"]

        'CURRENT': a single instantaneous snapshot at now; start/end must be omitted. 'SUMMARY': a single value set aggregating the whole window. 'SERIES': evenly-spaced value sets across the window, with the step derived from the window duration.

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch millis timestamp to start fetching metrics. Defaults to one hour before the end.

    • GetModelsEnvironmentsStartupsParams: {
          cursor?: string | null;
          direction?: components["schemas"]["SortOrder"] | null;
          end_epoch_millis: number;
          limit?: number;
          min_duration_ms?: number | null;
          outcomes?: components["schemas"]["StartupOutcome"][];
          phase?: components["schemas"]["StartupPhase"] | null;
          search?: string | null;
          sort_by?: components["schemas"]["StartupSortField"] | null;
          start_epoch_millis: number;
      }
      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page. Pass the same filters and sort as the request that returned it.

      • Optionaldirection?: components["schemas"]["SortOrder"] | null

        Sort direction. Defaults to desc.

      • end_epoch_millis: number

        End Epoch Millis

        End of the query window, in epoch milliseconds. Must be after the start.

      • Optionallimit?: number

        Limit

        Maximum number of attempts to return.

      • Optionalmin_duration_ms?: number | null

        Min Duration Ms

        Only include startups that lasted at least this many milliseconds.

      • Optionaloutcomes?: components["schemas"]["StartupOutcome"][]

        Outcomes

        Only include attempts with one of these outcomes. Repeat to pass several.

      • Optionalphase?: components["schemas"]["StartupPhase"] | null

        Only include attempts that spent longer than 0 ms in this phase.

      • Optionalsearch?: string | null

        Search

        Only include attempts whose replica ID matches exactly, or whose deployment name contains this text (case-insensitive).

      • Optionalsort_by?: components["schemas"]["StartupSortField"] | null

        Field to sort attempts by. Defaults to STARTED_AT.

      • start_epoch_millis: number

        Start Epoch Millis

        Start of the query window, in epoch milliseconds.

    • GetModelsEnvironmentsStartupsSummaryParams: {
          end_epoch_millis: number;
          min_duration_ms?: number | null;
          start_epoch_millis: number;
      }
      • end_epoch_millis: number

        End Epoch Millis

        End of the query window, in epoch milliseconds. Must be after the start.

      • Optionalmin_duration_ms?: number | null

        Min Duration Ms

        Only include startups that lasted at least this many milliseconds.

      • start_epoch_millis: number

        Start Epoch Millis

        Start of the query window, in epoch milliseconds.

    • GetModelsParams: { name?: string | null }
      • Optionalname?: string | null

        Name

        When set, returns only models with this exact name, if any. On a team-scoped route this matches at most one model; on the org-wide route it may match models in multiple teams, since names are unique only within a team.

    • GetSandboxConfigurationResponse: { regions: components["schemas"]["SandboxRegion"][] }
      • regions: components["schemas"]["SandboxRegion"][]

        Available Carbon-compatible regions, sorted by name. Empty when none are available.

    • GetSandboxLogsParams: {
          cursor?: string;
          end_time: string;
          limit?: number;
          start_time: string;
          team_id?: string;
      }
      • Optionalcursor?: string

        Opaque next_cursor from the previous page. Omit for the first page.

      • end_time: string

        Format: date-time

      • Optionallimit?: number
      • start_time: string

        Format: date-time

      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • GetSandboxMetricsParams: {
          end_epoch_millis?: number;
          metrics?: components["schemas"]["SandboxMetricName"][];
          mode?: components["schemas"]["SandboxMetricMode"];
          start_epoch_millis?: number;
          team_id?: string;
      }
      • Optionalend_epoch_millis?: number

        Format: int64

        Exclusive end in Unix milliseconds, default now. Maximum aligned window is 7 days.

      • Optionalmetrics?: components["schemas"]["SandboxMetricName"][]

        Metric names in response order. Omit to request all three signals.

      • Optionalmode?: components["schemas"]["SandboxMetricMode"]

        Defaults to CURRENT, which rejects start_epoch_millis and end_epoch_millis. SERIES uses a server-selected step of 30 seconds up to 2 hours, 60 seconds up to 1 day, 600 seconds up to 3 days, and 3600 seconds beyond 3 days.

      • Optionalstart_epoch_millis?: number

        Format: int64

        Unix milliseconds. Defaults to one hour before end; SERIES snaps outward.

      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • GetSandboxParams: { show_secrets?: boolean; team_id?: string }
      • Optionalshow_secrets?: boolean

        Reveal environment variable values for workspace administrators. Defaults to false. Callers without the admin role receive masked values even when true.

      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • GetSandboxPreviewParams: { show_secrets?: boolean; team_id?: string }
      • Optionalshow_secrets?: boolean

        Reveal request header values for workspace administrators, for example to change one header and send the full set back in a PATCH. Defaults to false. Callers without the admin role receive masked values even when true.

      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • GetSandboxVolumeParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • GetTeamsLoopsRunsParams: {
          base_model?: string | null;
          run_id?: string | null;
          scope?: string | null;
          session_id?: string | null;
      }
      • Optionalbase_model?: string | null

        Base Model

        Filter runs by base model name.

        Qwen/Qwen3-8B
        
      • Optionalrun_id?: string | null

        Run Id

        Filter by run ID.

        k4q95w5
        
      • Optionalscope?: string | null

        Scope

        Defaults to the caller's own runs; pass 'org' to list every run in the caller's organization.

        org
        
      • Optionalsession_id?: string | null

        Session Id

        Filter runs by the session that created them. An unknown or inaccessible session returns an empty list.

        k4q95w5
        
    • GetTeamsLoopsSamplersParams: { scope?: string | null; session_id?: string | null }
      • Optionalscope?: string | null

        Scope

        Defaults to the caller's own samplers; pass 'org' to include samplers owned by other users in the caller's organization.

        org
        
      • Optionalsession_id?: string | null

        Session Id

        Filter samplers by the session that created them. An unknown or inaccessible session returns an empty list.

        k4q95w5
        
    • GetTeamsModelsParams: { name?: string | null }
      • Optionalname?: string | null

        Name

        When set, returns only models with this exact name, if any. On a team-scoped route this matches at most one model; on the org-wide route it may match models in multiple teams, since names are unique only within a team.

    • GetTeamsParams: { name?: string | null }
      • Optionalname?: string | null

        Name

        When set, returns only the team with this exact name, if any.

    • GetTrainingGpuCapacityResponse: {
          gpu_capacities: components["schemas"]["TrainingGpuCapacityItem"][];
          team_gpu_capacities?: components["schemas"]["TeamTrainingGpuCapacityItem"][];
      }

      GetTrainingGpuCapacityResponseV1

      Response for the training GPU capacity endpoint.

      • gpu_capacities: components["schemas"]["TrainingGpuCapacityItem"][]

        Gpu Capacities

        Org-level GPU capacity limits and current usage per GPU type

      • Optionalteam_gpu_capacities?: components["schemas"]["TeamTrainingGpuCapacityItem"][]

        Team Gpu Capacities

        Per-team GPU capacity limits and current usage per GPU type

    • GetTrainingJobCheckpointFilesResponse: {
          next_page_token: number | null;
          presigned_urls: components["schemas"]["CheckpointFile"][];
          total_count: number;
      }

      GetTrainingJobCheckpointFilesResponseV1

      A response to fetch presigned URLs for checkpoint files of a training job.

      • next_page_token: number | null

        Next Page Token

        Token to use for fetching the next page of results. None when there are no more results.

        null
        
      • presigned_urls: components["schemas"]["CheckpointFile"][]

        Presigned Urls

        List of presigned URLs for checkpoint files.

      • total_count: number

        Total Count

        Total number of checkpoint files available.

    • GetTrainingJobCheckpointsResponse: {
          checkpoints: components["schemas"]["TrainingJobCheckpoint"][];
          training_job: components["schemas"]["TrainingJob"];
      }

      GetTrainingJobCheckpointsResponseV1

      A response to fetch checkpoints for a training job.

      • checkpoints: components["schemas"]["TrainingJobCheckpoint"][]

        Checkpoints

        The checkpoints for the training job.

      • training_job: components["schemas"]["TrainingJob"]

        The training job.

    • GetTrainingJobLogsRequest: {
          direction?: components["schemas"]["SortOrder"] | null;
          end_epoch_millis?: number | null;
          limit?: number | null;
          min_level?: components["schemas"]["LogLevel"] | null;
          start_epoch_millis?: number | null;
      }

      GetTrainingJobLogsRequestV1

      A request to fetch training logs.

      • Optionaldirection?: components["schemas"]["SortOrder"] | null

        Sort order for logs

      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch milliseconds at which to stop fetching logs. Defaults to the current time.

      • Optionallimit?: number | null

        Limit

        Limit of logs to fetch in a single request

      • Optionalmin_level?: components["schemas"]["LogLevel"] | null

        Minimum log severity to include. Omit to return all log lines, including lines that have no level. Any explicit value returns lines at or above that severity and drops lines without a level.

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch milliseconds at which to start fetching logs. Defaults to 30 minutes before the end. The window from start to end must not exceed 7 days.

    • GetTrainingJobMetricsRequest: {
          end_epoch_millis?: number | null;
          start_epoch_millis?: number | null;
          step_seconds?: number | null;
      }

      GetTrainingJobMetricsRequestV1

      A request to fetch metrics. Allows the user to request metrics over a period of time.

      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch millis timestamp to end fetching metrics

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch millis timestamp to start fetching metrics.

      • Optionalstep_seconds?: number | null

        Step Seconds

        Resolution of the returned series, in seconds. When omitted, a step is derived from the time range so large windows return fewer points.

    • GetTrainingJobMetricsResponse: {
          cache: components["schemas"]["StorageMetrics"] | null;
          cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][];
          cpu_usage: components["schemas"]["TrainingJobMetric"][];
          ephemeral_storage: components["schemas"]["StorageMetrics"];
          gpu_memory_usage_bytes: {
              [key: string]: { timestamp: string; value: number }[];
          };
          gpu_utilization: { [key: string]: { timestamp: string; value: number }[] };
          per_node_metrics: components["schemas"]["TrainingJobNodeMetrics"][];
          training_job: components["schemas"]["TrainingJob"];
      }

      GetTrainingJobMetricsResponseV1

      A response to fetch training job metrics. The outer list for each metric represents that metric across time.

      • cache: components["schemas"]["StorageMetrics"] | null

        The storage usage for the read-write cache.

      • cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][]

        Cpu Memory Usage Bytes

        The CPU memory usage for the training job. For multinode jobs, this is the CPU memory usage of the leader unless specified otherwise.

      • cpu_usage: components["schemas"]["TrainingJobMetric"][]

        Cpu Usage

        The CPU usage measured in cores. For multinode jobs, this is the CPU usage of the leader unless specified otherwise.

      • ephemeral_storage: components["schemas"]["StorageMetrics"]

        The storage usage for the ephemeral storage. For multinode jobs, this is the ephemeral storage usage of the leader unless specified otherwise.

      • gpu_memory_usage_bytes: { [key: string]: { timestamp: string; value: number }[] }

        Gpu Memory Usage Bytes

        A map of GPU rank to memory usage for the training job. For multinode jobs, this is the memory usage of the leader unless specified otherwise.

      • gpu_utilization: { [key: string]: { timestamp: string; value: number }[] }

        Gpu Utilization

        A map of GPU rank to fractional GPU utilization. For multinode jobs, this is the GPU utilization of the leader unless specified otherwise.

      • per_node_metrics: components["schemas"]["TrainingJobNodeMetrics"][]

        Per Node Metrics

        The metrics for each node in the training job.

      • training_job: components["schemas"]["TrainingJob"]

        The training job.

    • GetTrainingJobQueueContextResponse: {
          active_at_submit: components["schemas"]["ActiveJobAtSubmit"][];
          events: components["schemas"]["QueueEvent"][];
          events_window_end: string;
          gpu_type: string;
          org_capacity: components["schemas"]["CapacityAtSubmit"] | null;
          pending_ahead_at_submit: components["schemas"]["PendingJobAheadAtSubmit"][];
          pending_seconds: number | null;
          released_at: string | null;
          requested_gpus: number;
          submitted_at: string;
          target_job_id: string;
          target_job_name: string | null;
          team_capacity: components["schemas"]["CapacityAtSubmit"] | null;
      }

      GetTrainingJobQueueContextResponseV1

      Read-only diagnostic for a training job's PENDING window.

      Returns the (org, gpu_type) capacity pool the job was gated by, jobs that
      were holding GPU capacity in that pool when this job was submitted, and
      every status event in [submitted_at, released_at] for those jobs (or up to
      "now" if the target is still PENDING).
      
      • active_at_submit: components["schemas"]["ActiveJobAtSubmit"][]

        Active At Submit

        Jobs in the same (org, gpu_type) pool that were holding capacity at submitted_at

      • events: components["schemas"]["QueueEvent"][]

        Events

        Every status event in [submitted_at, events_window_end] for the target job, every job in active_at_submit, and every job in pending_ahead_at_submit, oldest first.

      • events_window_end: string

        Events Window End Format: date-time

        released_at if set, else 'now' (events ongoing)

      • gpu_type: string

        Gpu Type

        GPU type the target requested

      • org_capacity: components["schemas"]["CapacityAtSubmit"] | null

        Org-level cap for (org, gpu_type). None if no cap is configured.

        null
        
      • pending_ahead_at_submit: components["schemas"]["PendingJobAheadAtSubmit"][]

        Pending Ahead At Submit

        PENDING jobs in the same (org, gpu_type) pool that were ahead of the target in dequeue FIFO order at submitted_at (priority DESC then created ASC). These also block the target's release.

      • pending_seconds: number | null

        Pending Seconds

        released_at - submitted_at in seconds. None if still PENDING.

        null
        
      • released_at: string | null

        Released At

        When the job's TRAINING_JOB_CREATED status was set, i.e. the moment it was released from PENDING. None if still PENDING.

        null
        
      • requested_gpus: number

        Requested Gpus

        GPUs the target requested (gpu_count * effective_node_count)

      • submitted_at: string

        Submitted At Format: date-time

        When the job row was inserted (= API POST time)

      • target_job_id: string

        Target Job Id

        Hashid of the target training job

      • target_job_name: string | null

        Target Job Name

        Target job's name

        null
        
      • team_capacity: components["schemas"]["CapacityAtSubmit"] | null

        Team-level cap for (team, gpu_type). None if no team cap is configured.

        null
        
    • GetTrainingJobResponse: {
          training_job: components["schemas"]["TrainingJob"];
          training_project: components["schemas"]["TrainingProject"];
      }

      GetTrainingJobResponseV1

      A response to fetch a training job.

    • GetTrainingProjectResponse: { training_project: components["schemas"]["TrainingProject"] }

      GetTrainingProjectResponseV1

      A response to getting a training project.

    • GetTrainingProjectsJobsCheckpointFilesParams: { page_size?: number; page_token?: number }
      • Optionalpage_size?: number

        Page Size

        Max files per page (default 1000).

      • Optionalpage_token?: number

        Page Token

        Offset into the file list (default 0).

    • GetTrainingProjectsJobsLogsParams: {
          direction?: components["schemas"]["SortOrder"] | null;
          end_epoch_millis?: number | null;
          limit?: number | null;
          min_level?: components["schemas"]["LogLevel"] | null;
          start_epoch_millis?: number | null;
      }
      • Optionaldirection?: components["schemas"]["SortOrder"] | null

        Sort order for logs

      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch milliseconds at which to stop fetching logs. Defaults to the current time.

      • Optionallimit?: number | null

        Limit

        Limit of logs to fetch in a single request

      • Optionalmin_level?: components["schemas"]["LogLevel"] | null

        Minimum log severity to include. Omit to return all log lines, including lines that have no level. Any explicit value returns lines at or above that severity and drops lines without a level.

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch milliseconds at which to start fetching logs. Defaults to 30 minutes before the end. The window from start to end must not exceed 7 days.

    • GetTrainingProjectsJobsMetricsParams: {
          end_epoch_millis?: number | null;
          start_epoch_millis?: number | null;
          step_seconds?: number | null;
      }
      • Optionalend_epoch_millis?: number | null

        End Epoch Millis

        Epoch millis timestamp to end fetching metrics

      • Optionalstart_epoch_millis?: number | null

        Start Epoch Millis

        Epoch millis timestamp to start fetching metrics.

      • Optionalstep_seconds?: number | null

        Step Seconds

        Resolution of the returned series, in seconds. When omitted, a step is derived from the time range so large windows return fewer points.

    • GetTrainingProjectsParams: { cursor?: string | null; limit?: number | null; name?: string | null }
      • Optionalcursor?: string | null

        Cursor

        Opaque cursor from the pagination.cursor field of a previous response. Omit both cursor and limit to get every project in one response.

      • Optionallimit?: number | null

        Limit

        Maximum number of projects to return, up to 1000.

      • Optionalname?: string | null

        Name

        Return only the project with this exact name.

    • GetUsersParams: { cursor?: string | null; email?: string | null; limit?: number }
      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionalemail?: string | null

        Email

        When set, returns only users with this exact email, if any.

      • Optionallimit?: number

        Limit

        Maximum number of items to return.

    • GetVolumesNamespacesParams: { cursor?: string | null; limit?: number }
      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionallimit?: number

        Limit

        Maximum number of namespaces to return.

    • GetVolumesParams: { cursor?: string | null; limit?: number; namespace: string }
      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionallimit?: number

        Limit

        Maximum number of volumes to return.

      • namespace: string

        Namespace

        Namespace to list volumes in. Required, because the volume service has no cross-namespace inventory.

    • GetVolumesSyncsParams: { cursor?: string | null; limit?: number; ref?: string | null }
      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionallimit?: number

        Limit

        Maximum number of items to return.

      • Optionalref?: string | null

        Ref

        Exact destination reference to match.

    • GetVolumesVersionsParams: { include_tombstoned?: boolean }
      • Optionalinclude_tombstoned?: boolean

        Include Tombstoned

        Whether to include deleted and expired versions. Such a version carries a TOMBSTONED lifecycle and stays restorable until its recovery deadline passes.

    • GitInfo: {
          commits_since_tag: number | null;
          has_uncommitted_changes: boolean;
          latest_commit_sha: string;
          latest_tag: string | null;
      }

      GitInfo

      • commits_since_tag: number | null

        Commits Since Tag

      • has_uncommitted_changes: boolean

        Has Uncommitted Changes

      • latest_commit_sha: string

        Latest Commit Sha

      • latest_tag: string | null

        Latest Tag

    • GridClassifier: { id: string; name: string }

      GridClassifierV1

      • id: string

        Id

        Stable classifier identifier.

        general-v1
        
      • name: string

        Name

        Display name of the classifier.

        General
        
    • GridClassifiersResponse: {
          items: components["schemas"]["GridClassifier"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      GridClassifiersResponseV1

    • GridConnection: {
          config:
              | components["schemas"]["GridConnectionConfigAnthropic"]
              | components["schemas"]["GridConnectionConfigOpenAI"]
              | components["schemas"]["GridConnectionConfigXAI"]
              | components["schemas"]["GridConnectionConfigVertex"]
              | components["schemas"]["GridConnectionConfigBedrock"];
          created_at: string;
          id: string;
          team_id: string;
          team_name: string;
          updated_at: string;
      }

      GridConnectionV1

      • config:
            | components["schemas"]["GridConnectionConfigAnthropic"]
            | components["schemas"]["GridConnectionConfigOpenAI"]
            | components["schemas"]["GridConnectionConfigXAI"]
            | components["schemas"]["GridConnectionConfigVertex"]
            | components["schemas"]["GridConnectionConfigBedrock"]

        Config

        Provider the connection authenticates with, and the team secret holding its API key.

      • created_at: string

        Created At Format: date-time

        Creation time, ISO 8601.

      • id: string

        Id

        Stable connection identifier.

      • team_id: string

        Team Id

        Identifier of the team that owns the connection.

      • team_name: string

        Team Name

        Name of the team that owns the connection.

      • updated_at: string

        Updated At Format: date-time

        Last update time, ISO 8601.

    • GridConnectionBedrockAccessKeysAuth: { method: "access_keys" }

      GridConnectionBedrockAccessKeysAuthV1

      • method: "access_keys"

        The secret holds the access keys of an IAM user, as the base64-encoded JSON object {"AccessKeyId": "...", "SecretAccessKey": "..."} (enum property replaced by openapi-typescript)

    • GridConnectionBedrockApiKeyAuth: { method: "api_key" }

      GridConnectionBedrockApiKeyAuthV1

      • method: "api_key"

        The secret holds a long-term Amazon Bedrock API key. (enum property replaced by openapi-typescript)

    • GridConnectionConfigAnthropic: { provider: "ANTHROPIC"; secret_id: string; secret_name: string }

      GridConnectionConfigAnthropicV1

      • provider: "ANTHROPIC"

        Provider kind for Anthropic. (enum property replaced by openapi-typescript)

      • secret_id: string

        Secret Id

        Identifier of the team secret holding the provider API key.

      • secret_name: string

        Secret Name

        Name of the team secret holding the provider API key.

    • GridConnectionConfigBedrock: {
          auth:
              | components["schemas"]["GridConnectionBedrockApiKeyAuth"]
              | components["schemas"]["GridConnectionBedrockAccessKeysAuth"];
          provider: "BEDROCK";
          region: string;
          secret_id: string;
          secret_name: string;
      }

      GridConnectionConfigBedrockV1

      • auth:
            | components["schemas"]["GridConnectionBedrockApiKeyAuth"]
            | components["schemas"]["GridConnectionBedrockAccessKeysAuth"]

        Auth

        How the connection's secret authenticates with Amazon Bedrock.

      • provider: "BEDROCK"

        Provider kind for Amazon Bedrock. (enum property replaced by openapi-typescript)

      • region: string

        Region

        AWS Region of the Amazon Bedrock endpoint.

      • secret_id: string

        Secret Id

        Identifier of the team secret holding the provider API key.

      • secret_name: string

        Secret Name

        Name of the team secret holding the provider API key.

    • GridConnectionConfigOpenAI: { provider: "OPENAI"; secret_id: string; secret_name: string }

      GridConnectionConfigOpenAIV1

      • provider: "OPENAI"

        Provider kind for OpenAI. (enum property replaced by openapi-typescript)

      • secret_id: string

        Secret Id

        Identifier of the team secret holding the provider API key.

      • secret_name: string

        Secret Name

        Name of the team secret holding the provider API key.

    • GridConnectionConfigVertex: {
          location: string;
          project_id: string;
          provider: "VERTEX";
          secret_id: string;
          secret_name: string;
      }

      GridConnectionConfigVertexV1

      • location: string

        Location

        Google Cloud region that serves the Vertex AI models, for example us-central1.

      • project_id: string

        Project Id

        Google Cloud project ID or number of a project with Vertex AI enabled.

      • provider: "VERTEX"

        Provider kind for Google Vertex. (enum property replaced by openapi-typescript)

      • secret_id: string

        Secret Id

        Identifier of the team secret holding the provider API key.

      • secret_name: string

        Secret Name

        Name of the team secret holding the provider API key.

    • GridConnectionConfigXAI: { provider: "XAI"; secret_id: string; secret_name: string }

      GridConnectionConfigXAIV1

      • provider: "XAI"

        Provider kind for xAI. (enum property replaced by openapi-typescript)

      • secret_id: string

        Secret Id

        Identifier of the team secret holding the provider API key.

      • secret_name: string

        Secret Name

        Name of the team secret holding the provider API key.

    • GridConnectionsResponse: {
          items: components["schemas"]["GridConnection"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      GridConnectionsResponseV1

    • GridConnectionTombstone: { id: string }

      GridConnectionTombstoneV1

      • id: string

        Id

        Stable identifier of the deleted connection.

    • GridEffectiveSpendLimit: {
          monthly_limit_usd: string | null;
          source: components["schemas"]["GridSettingSource"] | null;
      }

      GridEffectiveSpendLimitV1

      • monthly_limit_usd: string | null

        Monthly Limit Usd

        Spend limit in USD enforced for the current UTC calendar month: the user's own limit, else the team default. Null when no limit applies.

        200
        
      • source: components["schemas"]["GridSettingSource"] | null

        Where the limit comes from: user when it is set on the user, team when it is the team default. Null when no limit applies.

    • GridHarnessDefaults: {
          claude_code: components["schemas"]["GridHarnessModels"];
          codex: components["schemas"]["GridHarnessModels"];
          opencode: components["schemas"]["GridHarnessModels"];
          pi: components["schemas"]["GridHarnessModels"];
      }

      GridHarnessDefaultsV1

    • GridHarnessModel: {
          route: components["schemas"]["GridRoute"];
          source: components["schemas"]["GridSettingSource"];
      }

      GridHarnessModelV1

      • route: components["schemas"]["GridRoute"]

        Route to use for this role.

      • source: components["schemas"]["GridSettingSource"]

        Where this role's route comes from. team covers both a route a team admin set and the default chosen from the team's Model API routes.

    • GridHarnessModels: {
          background: components["schemas"]["GridHarnessModel"] | null;
          primary: components["schemas"]["GridHarnessModel"] | null;
      }

      GridHarnessModelsV1

      • background: components["schemas"]["GridHarnessModel"] | null

        Route for background tasks, such as session titles. Null when the team has no route to use.

      • primary: components["schemas"]["GridHarnessModel"] | null

        Route for the primary model, which new sessions use. Null when the team has no route to use.

    • GridMachineUser: {
          created_at: string;
          created_by: string | null;
          id: string;
          name: string;
          team_id: string;
          team_name: string;
      }

      GridMachineUserV1

      • created_at: string

        Created At Format: date-time

        Creation time, ISO 8601.

      • created_by: string | null

        Created By

        ID of the user who created the machine user. Null when unknown.

        null
        
      • id: string

        Id

        Stable machine user identifier. Grid usage and settings identify the machine user by this ID as its user_id.

      • name: string

        Name

        Name of the machine user, unique within its team.

      • team_id: string

        Team Id

        Identifier of the team that owns the machine user.

      • team_name: string

        Team Name

        Name of the team that owns the machine user.

    • GridMachineUsersResponse: {
          items: components["schemas"]["GridMachineUser"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      GridMachineUsersResponseV1

    • GridMachineUserTombstone: { id: string }

      GridMachineUserTombstoneV1

      • id: string

        Id

        Stable identifier of the deleted machine user.

    • GridProvider:
          | "BASETEN_MODEL_API"
          | "OPENAI"
          | "ANTHROPIC"
          | "XAI"
          | "VERTEX"
          | "OPENAI_COMPATIBLE"
          | "BEDROCK"

      GridProviderV1

      Upstream provider of a route target, named like the route target types.

    • GridRoute: {
          created_at: string;
          description: string;
          display_name: string;
          id: string;
          invoke_url: string;
          metadata: components["schemas"]["ExploreMetadata"] | null;
          name: string;
          target:
              | components["schemas"]["GridRouteTargetBasetenModelAPI"]
              | components["schemas"]["GridRouteTargetConnection"]
              | components["schemas"]["GridRouteTargetClassifier"]
              | components["schemas"]["GridRouteTargetIntelligent"];
          team_id: string;
          team_name: string;
      }

      GridRouteV1

      • created_at: string

        Created At Format: date-time

        Creation time, ISO 8601.

      • description: string

        Description

        Short description of the route, empty when unset.

      • display_name: string

        Display Name

        Display label, defaulting to the route name.

      • id: string

        Id

        Stable route identifier.

      • invoke_url: string

        Invoke Url

        Base URL for inference requests using this route.

      • metadata: components["schemas"]["ExploreMetadata"] | null

        Resolved model metadata; for a router, the envelope of its allowed routes' metadata. Null when nothing is linked.

      • name: string

        Name

        Name to send in the inference request's model field.

      • target:
            | components["schemas"]["GridRouteTargetBasetenModelAPI"]
            | components["schemas"]["GridRouteTargetConnection"]
            | components["schemas"]["GridRouteTargetClassifier"]
            | components["schemas"]["GridRouteTargetIntelligent"]

        Target

        Configured upstream target.

      • team_id: string

        Team Id

        Identifier of the owning team.

      • team_name: string

        Team Name

        Name of the owning team.

    • GridRouteClassifier: {
          decidable_models: string[];
          id: string;
          name: string;
          supported_tradeoffs: ("cost" | "balanced" | "intelligence")[];
      }

      GridRouteClassifierV1

      • decidable_models: string[]

        Decidable Models

        Model identities the route classifier picks from.

        [
        "zai-org/GLM-5.3",
        "anthropic/claude-opus-5-5"
        ]
      • id: string

        Id

        Stable route classifier identifier.

        general-v1
        
      • name: string

        Name

        Display name of the route classifier.

        General
        
      • supported_tradeoffs: ("cost" | "balanced" | "intelligence")[]

        Supported Tradeoffs

        Tradeoffs the route classifier supports. Empty when it supports all of them.

    • GridRouteClassifiersResponse: {
          items: components["schemas"]["GridRouteClassifier"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      GridRouteClassifiersResponseV1

      • items: components["schemas"]["GridRouteClassifier"][]

        Items

        Items in this page.

      • pagination: components["schemas"]["PaginationResponse"]

        Pagination metadata for the page.

    • GridRouteRef: { id: string; slug: string }

      GridRouteRefV1

      • id: string

        Id

        Stable route identifier.

      • slug: string

        Slug

        Name of the route to send in the inference request's model field.

    • GridRoutesResponse: {
          items: components["schemas"]["GridRoute"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      GridRoutesResponseV1

    • GridRouteTargetBasetenModelAPI: { model: string; type: "BASETEN_MODEL_API" }

      GridRouteTargetBasetenModelAPIV1

      • model: string

        Model

        Name of the target Model API.

      • type: "BASETEN_MODEL_API"

        Target kind for a Baseten Model API. (enum property replaced by openapi-typescript)

    • GridRouteTargetClassifier: {
          allowed_routes: components["schemas"]["GridRouteRef"][];
          classifier: components["schemas"]["GridClassifier"] | null;
          default_route: components["schemas"]["GridRouteRef"];
          type: "CLASSIFIER";
      }

      GridRouteTargetClassifierV1

      • allowed_routes: components["schemas"]["GridRouteRef"][]

        Allowed Routes

        Routes the classifier may pick, in creation order.

      • classifier: components["schemas"]["GridClassifier"] | null

        Classifier that picks a route for each request. Null for routers created before classifiers could be selected.

      • default_route: components["schemas"]["GridRouteRef"]

        Route used when the classifier picks none.

      • type: "CLASSIFIER"

        Target kind for a classifier-based route. (enum property replaced by openapi-typescript)

    • GridRouteTargetConnection: { connection_id: string; model: string; type: "CONNECTION" }

      GridRouteTargetConnectionV1

      • connection_id: string

        Connection Id

        Identifier of the team connection authenticating with the provider.

      • model: string

        Model

        Model name sent to the provider.

      • type: "CONNECTION"

        Target kind for a provider reached through a team connection. (enum property replaced by openapi-typescript)

    • GridRouteTargetIntelligent: {
          route_classifier: components["schemas"]["GridRouteClassifier"];
          tradeoff: "cost" | "balanced" | "intelligence";
          type: "INTELLIGENT";
      }

      GridRouteTargetIntelligentV1

      • route_classifier: components["schemas"]["GridRouteClassifier"]

        Route classifier that picks the model.

      • tradeoff: "cost" | "balanced" | "intelligence"

        GridRouteTradeoffV1

        How the classifier weighs cost against quality.

      • type: "INTELLIGENT"

        Target kind for an intelligent route: Baseten picks the model per request. (enum property replaced by openapi-typescript)

    • GridRouteTombstone: { id: string; name: string }

      GridRouteTombstoneV1

      • id: string

        Id

        Stable identifier of the deleted route.

      • name: string

        Name

        Name of the deleted route.

    • GridRouteUsageBucket: { date: string; results: components["schemas"]["GridRouteUsageResult"][] }

      GridRouteUsageBucketV1

      • date: string

        Date Format: date

        UTC calendar date for this bucket, from midnight inclusive to the next midnight exclusive.

      • results: components["schemas"]["GridRouteUsageResult"][]

        Results

        Usage broken down by the requested dimensions. Empty when there is no usage.

    • GridRouteUsageDimension: "USER" | "TEAM" | "MODEL" | "PROVIDER" | "INTELLIGENT_ROUTE" | "HARNESS"

      GridRouteUsageDimensionV1

    • GridRouteUsageHarness: "CLAUDE_CODE" | "OPENCODE" | "CODEX" | "PI"

      GridRouteUsageHarnessV1

    • GridRouteUsageResponse: {
          items: components["schemas"]["GridRouteUsageBucket"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      GridRouteUsageResponseV1

      • items: components["schemas"]["GridRouteUsageBucket"][]

        Items

        Items in this page.

      • pagination: components["schemas"]["PaginationResponse"]

        Pagination metadata for the page.

    • GridRouteUsageResult: {
          cached_input_tokens: number;
          cost_usd: string;
          harness: components["schemas"]["GridRouteUsageHarness"] | null;
          input_tokens: number;
          intelligent_route: string | null;
          model: string | null;
          output_tokens: number;
          provider: components["schemas"]["GridProvider"] | null;
          requests: number;
          team_id: string | null;
          team_name: string | null;
          uncached_input_tokens: number;
          user_id: string | null;
      }

      GridRouteUsageResultV1

      • cached_input_tokens: number

        Cached Input Tokens

        Input tokens read from the prompt cache.

      • cost_usd: string

        Cost Usd

        Estimated cost in USD, returned as an exact decimal string. Costs for OpenAI, Anthropic, and xAI estimate what you pay those providers; they are not Baseten charges.

        0.00035625
        
      • harness: components["schemas"]["GridRouteUsageHarness"] | null

        Coding harness. Null when not grouping by HARNESS, when no harness was recorded (including usage from before harness tracking), or when the recorded harness is not recognized by this API version.

        null
        
      • input_tokens: number

        Input Tokens

        Input tokens, including cached input tokens.

      • intelligent_route: string | null

        Intelligent Route

        Name of the intelligent route, as in GET /v1/grid/routes. Null when not grouping by INTELLIGENT_ROUTE.

        null
        
      • model: string | null

        Model

        Model name. For external providers, the model name sent to the provider. Null when not grouping by MODEL.

        null
        
      • output_tokens: number

        Output Tokens

        Output tokens.

      • provider: components["schemas"]["GridProvider"] | null

        Provider that served the requests. Null when not grouping by PROVIDER.

        null
        
      • requests: number

        Requests

        Number of requests; with INTELLIGENT_ROUTE, the requests sent through that route. Usage recorded before requests were counted adds zero.

      • team_id: string | null

        Team Id

        ID of the team the usage was metered in. Null when not grouping by TEAM, and for usage metered before it was attributed to teams.

        null
        
      • team_name: string | null

        Team Name

        Name of the team the usage was metered in. Null when team_id is null.

        null
        
      • uncached_input_tokens: number

        Uncached Input Tokens

        Input tokens not read from the prompt cache, including tokens written to the cache.

      • user_id: string | null

        User Id

        ID of the user who created the Routes key. Null when not grouping by USER.

        null
        
    • GridSettingSource: "user" | "team"

      GridSettingSourceV1

    • GridSpendBlockedBy: "member" | "team"

      GridSpendBlockedByV1

    • GridSpendLimitSetting: {
          effective: components["schemas"]["GridEffectiveSpendLimit"];
          month_override_usd: string | null;
          team_default: components["schemas"]["GridSpendLimitTeamDefault"] | null;
          team_wide_monthly_limit_usd: string | null;
          user_monthly_limit_usd: string | null;
      }

      GridSpendLimitSettingV1

      • effective: components["schemas"]["GridEffectiveSpendLimit"]

        The effective limit enforced for the current month.

      • month_override_usd: string | null

        Month Override Usd

        Spend limit in USD for the current UTC calendar month set on the user in the team, which supersedes their standing limit. Null when there is none.

        300
        
      • team_default: components["schemas"]["GridSpendLimitTeamDefault"] | null

        Per-member limit of the team. This limit applies when the user has no limit of their own. Null when there is none.

      • team_wide_monthly_limit_usd: string | null

        Team Wide Monthly Limit Usd

        Team-wide limit of the team in USD for each UTC calendar month. Once all members' spend in the team reaches it, the user's requests in the team are rejected whatever their own limit. Null when there is none.

        5000
        
      • user_monthly_limit_usd: string | null

        User Monthly Limit Usd

        Standing spend limit in USD for each UTC calendar month set on the user in the team. Null when the user has no limit of their own there.

        200
        
    • GridSpendLimitTeamDefault: { per_member_monthly_limit_usd: string; team_id: string; team_name: string }

      GridSpendLimitTeamDefaultV1

      • per_member_monthly_limit_usd: string

        Per Member Monthly Limit Usd

        The team's per-member spend limit in USD for each UTC calendar month.

        100
        
      • team_id: string

        Team Id

        ID of the team whose per-member limit this is.

        abc1234
        
      • team_name: string

        Team Name

        Name of the team.

        Engineering
        
    • GridTeamSettings: {
          harness_defaults: components["schemas"]["GridHarnessDefaults"];
          spend_limit: components["schemas"]["GridTeamSpendLimitSetting"];
          team_id: string;
          team_name: string;
      }

      GridTeamSettingsV1

      • harness_defaults: components["schemas"]["GridHarnessDefaults"]

        Route for each model role of each coding harness. A role with no route set by a team admin uses the default chosen from the team's Model API routes: the recommended model for primary and the lowest-priced model for background. These defaults never use external-provider routes.

      • spend_limit: components["schemas"]["GridTeamSpendLimitSetting"]

        Spend limits for Baseten Grid for members' spend in this team.

      • team_id: string

        Team Id

        ID of the team.

        abc1234
        
      • team_name: string

        Team Name

        Name of the team.

        Engineering
        
    • GridTeamSpendLimitSetting: {
          per_member_monthly_limit_usd: string | null;
          team_wide_monthly_limit_usd: string | null;
      }

      GridTeamSpendLimitSettingV1

      • per_member_monthly_limit_usd: string | null

        Per Member Monthly Limit Usd

        Spend limit in USD for each UTC calendar month that applies to each member's Grid spend in this team, unless the member has a limit of their own. Returned as an exact decimal string. Null when the team has no per-member limit.

        200
        
      • team_wide_monthly_limit_usd: string | null

        Team Wide Monthly Limit Usd

        Spend limit in USD for each UTC calendar month on the Grid spend of all members in this team together. Once it is reached, every member's requests in the team are rejected. Returned as an exact decimal string. Null when the team has no team-wide limit.

        5000
        
    • GridTeamUserSettings: {
          blocked_by: components["schemas"]["GridSpendBlockedBy"] | null;
          email: string | null;
          is_blocked: boolean;
          month_spend_usd: string;
          spend_limit: components["schemas"]["GridSpendLimitSetting"];
          team_id: string;
          team_name: string;
          user_id: string;
      }

      GridTeamUserSettingsV1

      • blocked_by: components["schemas"]["GridSpendBlockedBy"] | null

        member when the user's spend this month reached their limit, team when the team's spend reached its team-wide limit. Null when the user is not blocked.

      • email: string | null

        Email

        Email address of the user.

        dev@example.com
        
      • is_blocked: boolean

        Is Blocked

        Whether the user's spend this month reached their limit, or the team's spend reached its team-wide limit, so requests with Routes keys they created in the team are rejected.

      • month_spend_usd: string

        Month Spend Usd

        The user's metered Grid spend in USD in the team this UTC calendar month, returned as an exact decimal string.

        12.5
        
      • spend_limit: components["schemas"]["GridSpendLimitSetting"]

        Spend limit for Baseten Grid in the team. Applies to requests with Routes keys the user created in the team; personal API keys are not limited.

      • team_id: string

        Team Id

        ID of the team.

        abc1234
        
      • team_name: string

        Team Name

        Name of the team.

        Engineering
        
      • user_id: string

        User Id

        ID of the user.

        abc1234
        
    • GridTeamUserSettingsList: {
          items: components["schemas"]["GridTeamUserSettings"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      GridTeamUserSettingsListV1

      • items: components["schemas"]["GridTeamUserSettings"][]

        Items

        Items in this page.

      • pagination: components["schemas"]["PaginationResponse"]

        Pagination metadata for the page.

    • GridToken: { expires_at: string; team_id: string; team_name: string; token: string }

      GridTokenV1

      • expires_at: string

        Expires At Format: date-time

        Token expiry in ISO 8601 format. Tokens cannot be renewed; request a new one.

      • team_id: string

        Team Id

        ID of the team the token invokes Grid routes in.

        abc1234
        
      • team_name: string

        Team Name

        Name of that team.

        Engineering
        
      • token: string

        Token

        Short-lived bearer token for the Grid gateway, scoped to you and the team. Send it as Authorization: Bearer .

    • Group: {
          created_at: string;
          effective_models?: components["schemas"]["EffectiveModelConfig"][];
          hierarchy: components["schemas"]["GroupHierarchy"];
          id: string;
          metadata: components["schemas"]["GroupMetadata"];
          models?: components["schemas"]["ModelConfig"][];
      }

      GroupV1

      • created_at: string

        Created At Format: date-time

        When this group was created.

      • Optionaleffective_models?: components["schemas"]["EffectiveModelConfig"][]

        Effective Models

      • hierarchy: components["schemas"]["GroupHierarchy"]

        Parent linkage and limit enforcement mode. Parent is null for root groups.

      • id: string

        Id

        Internal Baseten ID for the group.

      • metadata: components["schemas"]["GroupMetadata"]

        Group identity + display metadata.

      • Optionalmodels?: components["schemas"]["ModelConfig"][]

        Models

    • GroupHierarchy: {
          limit_enforcement: components["schemas"]["LimitEnforcement"];
          parent_group_id: string | null;
      }

      GroupHierarchyV1

      • limit_enforcement: components["schemas"]["LimitEnforcement"]
        CASCADING
        
        INDEPENDENT
        
      • parent_group_id: string | null

        Parent Group Id

        null
        
        abc123
        
    • GroupMetadata: { external_entity_id: string; name?: string | null }

      GroupMetadataV1

      • external_entity_id: string

        External Entity Id

        External-system identifier for this group. Unique within the caller's org.

        cust_42
        
      • Optionalname?: string | null

        Name

        Optional display name for the group.

        Acme prod
        
    • GroupsResponse: {
          items: components["schemas"]["Group"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      GroupsResponseV1

    • InferenceVolumeByStatusDatapoint: {
          status_2xx: number;
          status_4xx: number;
          status_5xx: number;
          timestamp: string;
      }

      InferenceVolumeByStatusDatapointV1

      Request rate split by HTTP response code class.

      • status_2xx: number

        Status 2Xx

        2xx requests per second.

      • status_4xx: number

        Status 4Xx

        4xx requests per second.

      • status_5xx: number

        Status 5Xx

        5xx requests per second.

      • timestamp: string

        Timestamp Format: date-time

        ISO 8601 timestamp.

    • InProgressPromotion: {
          error_message: string | null;
          percent_traffic_to_new_version: number;
          rolling_deploy: boolean | null;
          status: components["schemas"]["InProgressPromotionStatus"];
      }

      InProgressPromotionV1

      Details of an in-progress promotion.

      • error_message: string | null

        Error Message

        Error message if promotion failed

        null
        
      • percent_traffic_to_new_version: number

        Percent Traffic To New Version

        Percentage of traffic routed to the candidate deployment

      • rolling_deploy: boolean | null

        Rolling Deploy

        Whether this is a rolling deploy

        null
        
      • status: components["schemas"]["InProgressPromotionStatus"]

        Status of the promotion

    • InProgressPromotionStatus:
          | "RELEASING"
          | "RAMPING_UP"
          | "RAMPING_DOWN"
          | "PAUSED"
          | "SUCCEEDED"
          | "FAILED"
          | "CANCELED"

      InProgressPromotionStatusV1

    • InstanceType: {
          gpu_count: number;
          gpu_memory_limit_mib: number | null;
          gpu_type: string | null;
          id: string;
          memory_limit_mib: number;
          millicpu_limit: number;
          name: string;
      }

      InstanceTypeV1

      An instance type.

      • gpu_count: number

        Gpu Count

        Number of GPUs on the instance type

      • gpu_memory_limit_mib: number | null

        Gpu Memory Limit Mib

        Memory limit of the GPU on the instance type in Mebibytes

      • gpu_type: string | null

        Gpu Type

        Type of GPU on the instance type

      • id: string

        Id

        Identifier string for the instance type

      • memory_limit_mib: number

        Memory Limit Mib

        Memory limit of the instance type in Mebibytes

      • millicpu_limit: number

        Millicpu Limit

        CPU limit of the instance type in millicpu

      • name: string

        Name

        Display name of the instance type

    • InstanceTypePrices: { instance_types: components["schemas"]["InstanceTypeWithPrice"][] }

      InstanceTypePricesV1

      A list of instance types.

    • InstanceTypes: { instance_types: components["schemas"]["InstanceType"][] }

      InstanceTypesV1

      A list of instance types.

    • InstanceTypeWithPrice: { instance_type: components["schemas"]["InstanceType"]; price: number }

      InstanceTypeWithPriceV1

      • instance_type: components["schemas"]["InstanceType"]

        Instance type properties.

      • price: number

        Price

        Usage price in USD / minute.

    • InteractiveSession: {
          auth_code: string | null;
          auth_code_generated_at: string | null;
          auth_provider: string;
          auth_url: string | null;
          authenticated_at: string | null;
          expires_at: string | null;
          id: string;
          pod_name: string;
          session_provider: string;
          timeout_minutes: number;
          trigger: string;
          tunnel_name: string | null;
          working_directory: string | null;
      }

      InteractiveSessionV1

      Representation of a training job interactive session.

      • auth_code: string | null

        Auth Code

        The device authentication code.

        null
        
      • auth_code_generated_at: string | null

        Auth Code Generated At

        When the auth code was generated.

        null
        
      • auth_provider: string

        Auth Provider

        The authentication provider for the session.

      • auth_url: string | null

        Auth Url

        URL where the user should enter the auth code.

        null
        
      • authenticated_at: string | null

        Authenticated At

        When the session was authenticated.

        null
        
      • expires_at: string | null

        Expires At

        When the session expires, in ISO 8601 format.

        null
        
      • id: string

        Id

        Unique identifier of the interactive session.

      • pod_name: string

        Pod Name

        Pod name / node rank for the session.

      • session_provider: string

        Session Provider

        The IDE client for the session.

      • timeout_minutes: number

        Timeout Minutes

        Minutes before the session times out.

      • trigger: string

        Trigger

        When the interactive session is created.

      • tunnel_name: string | null

        Tunnel Name

        The tunnel name for the session.

        null
        
      • working_directory: string | null

        Working Directory

        The working directory of the session.

        null
        
    • InteractiveSessionConfig: {
          auth_provider?: components["schemas"]["V1InteractiveSessionAuthProvider"];
          session_provider?: components["schemas"]["V1InteractiveSessionProvider"];
          timeout_minutes?: number;
          trigger?: components["schemas"]["V1InteractiveSessionTrigger"];
      }

      InteractiveSessionConfigV1

      Configuration for interactive debugging sessions on training jobs.

      • Optionalauth_provider?: components["schemas"]["V1InteractiveSessionAuthProvider"]

        The authentication provider for the interactive session.

      • Optionalsession_provider?: components["schemas"]["V1InteractiveSessionProvider"]

        The IDE client for the interactive session.

      • Optionaltimeout_minutes?: number

        Timeout Minutes

        Number of minutes before the interactive session times out.

        480
        
        1440
        
        10080
        
      • Optionaltrigger?: components["schemas"]["V1InteractiveSessionTrigger"]

        When to create the interactive session. 'on_startup' creates on job start, 'on_failure' creates on job failure, 'on_demand' bypasses automatic session creation.

    • KeysForGroupResponse: {
          items: components["schemas"]["GatewayKeyInfo"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      KeysForGroupResponseV1

    • LibraryListing: {
          closed_source: boolean;
          created_at: string;
          display_name: string;
          is_listed: boolean;
          is_public: boolean;
          metadata: components["schemas"]["LibraryListingMetadata"] | null;
          modified_at: string;
          trending: boolean | null;
          user_defined_id: string;
      }

      LibraryListingV1

      A library listing.

      • closed_source: boolean

        Closed Source

        Whether the listing is closed source (deployers cannot view or download the Truss, and forks copy mirrored weights instead of re-mirroring from upstream)

      • created_at: string

        Created At Format: date-time

        Time the listing was created in ISO 8601 format

      • display_name: string

        Display Name

        Display name of the library listing

      • is_listed: boolean

        Is Listed

        Whether the listing appears in catalogs; unlisted listings still deploy from a direct link

      • is_public: boolean

        Is Public

        Whether the listing is publicly accessible

      • metadata: components["schemas"]["LibraryListingMetadata"] | null

        Model-level metadata for this listing, if it has been uploaded.

        null
        
      • modified_at: string

        Modified At Format: date-time

        Time the listing was last modified

      • trending: boolean | null

        Trending

        Whether the listing is trending

      • user_defined_id: string

        User Defined Id

        User-defined identifier of the library listing

    • LibraryListingMetadata: {
          base_model?: string | null;
          context_length?: number | null;
          description?: string | null;
          input_modalities?: components["schemas"]["LibraryListingModality"][];
          license: string;
          model_api_slug?: string | null;
          model_family?: string | null;
          output_modalities?: components["schemas"]["LibraryListingModality"][];
          parameter_count?: number | null;
          publisher?: string | null;
          release_date?: string | null;
          trending?: boolean;
          variant?: string | null;
      }

      LibraryListingMetadataV1

      • Optionalbase_model?: string | null

        Base Model

      • Optionalcontext_length?: number | null

        Context Length

      • Optionaldescription?: string | null

        Description

      • Optionalinput_modalities?: components["schemas"]["LibraryListingModality"][]

        Input Modalities

      • license: string

        License

      • Optionalmodel_api_slug?: string | null

        Model Api Slug

      • Optionalmodel_family?: string | null

        Model Family

      • Optionaloutput_modalities?: components["schemas"]["LibraryListingModality"][]

        Output Modalities

      • Optionalparameter_count?: number | null

        Parameter Count

      • Optionalpublisher?: string | null

        Publisher

      • Optionalrelease_date?: string | null

        Release Date

      • Optionaltrending?: boolean

        Trending

      • Optionalvariant?: string | null

        Variant

    • LibraryListingModality: "text" | "image" | "audio" | "video" | "embedding" | "rerank" | "decision"

      LibraryListingModality

    • LibraryListings: { listings: components["schemas"]["LibraryListing"][] }

      LibraryListingsV1

      A list of library listings.

    • LibraryListingSource: {
          deployed_model_name?: string | null;
          kind: "library_listing";
          lab_display_name: string;
          user_defined_listing_id: string;
      }

      LibraryListingSourceV1

      Create a model by forking a library listing accessible to the caller's organization.

      • Optionaldeployed_model_name?: string | null

        Deployed Model Name

        Optional name for the new deployed model. Defaults to the listing's configured name.

      • kind: "library_listing"

        discriminator enum property added by openapi-typescript

      • lab_display_name: string

        Lab Display Name

        Identifier of the publishing organization, as returned by GET /v1/library_models.

      • user_defined_listing_id: string

        User Defined Listing Id

        Listing identifier within the publishing organization.

    • LibraryListingTombstone: { deleted: boolean; user_defined_id: string }

      LibraryListingTombstoneV1

      A library listing tombstone.

      • deleted: boolean

        Deleted

        Whether the library listing was deleted

      • user_defined_id: string

        User Defined Id

        User-defined identifier of the library listing

    • LibraryListingVersion: {
          allow_truss_download: boolean;
          benchmark: components["schemas"]["BenchmarkSnapshot"] | null;
          created_at: string;
          is_live: boolean;
          modified_at: string;
          oracle_version_id: string;
          version_tag: string;
      }

      LibraryListingVersionV1

      A library listing version.

      • allow_truss_download: boolean

        Allow Truss Download

        Whether users deploying this model can download the Truss

      • benchmark: components["schemas"]["BenchmarkSnapshot"] | null

        Benchmark snapshot for this version, if one has been uploaded.

        null
        
      • created_at: string

        Created At Format: date-time

        Time the version was created in ISO 8601 format

      • is_live: boolean

        Is Live

        Whether this version is the live version

      • modified_at: string

        Modified At Format: date-time

        Time the version was last modified

      • oracle_version_id: string

        Oracle Version Id

        Id of the source model version

      • version_tag: string

        Version Tag

        Human-readable tag for this version

    • LibraryListingVersions: { versions: components["schemas"]["LibraryListingVersion"][] }

      LibraryListingVersionsV1

      A list of library listing versions.

    • LibraryListingVersionTombstone: { deleted: boolean; version_tag: string }

      LibraryListingVersionTombstoneV1

      A library listing version tombstone.

      • deleted: boolean

        Deleted

        Whether the library listing version was deleted

      • version_tag: string

        Version Tag

        Human-readable tag for this version

    • LimitEnforcement: "CASCADING" | "INDEPENDENT"

      LimitEnforcementV1

    • LimitType:
          | "REQUEST"
          | "TOKEN"
          | "CONCURRENT_REQUEST"
          | "UNCACHED_INPUT_TOKEN"
          | "OUTPUT_TOKEN"

      LimitTypeV1

    • ListAuditLogsResponse: {
          items: components["schemas"]["AuditLogEntry"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      ListAuditLogsResponseV1

      A page of audit-log entries, newest first by default.

    • ListImagesParams: { cursor?: string; limit?: number; q?: string; sort?: string; team_id?: string }
      • Optionalcursor?: string

        Opaque cursor from the previous page; omit for the first page.

        eyJ2IjoxLCJsYXN0X2tleSI6ImJhc2V0ZW4tYXBpLXJldmlldy0wOTE2Iiwic29ydCI6ImRlc2MifQ
        
      • Optionallimit?: number

        Maximum number of items to return.

        20
        
      • Optionalq?: string

        Case-sensitive repository name prefix. Search is applied before pagination.

      • Optionalsort?: string

        Sort by repository name or creation time: name:asc, name:desc, createdAt:asc, or createdAt:desc. Keep the same sort when following a cursor.

      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • ListImageTagsParams: {
          cursor?: string;
          limit?: number;
          name?: string;
          q?: string;
          sort?: string;
          team_id?: string;
      }
      • Optionalcursor?: string

        Opaque cursor from the previous page; omit for the first page.

        eyJ2IjoxLCJsYXN0X2tleSI6ImJhc2V0ZW4tYXBpLXJldmlldy0wOTE2Iiwic29ydCI6ImRlc2MifQ
        
      • Optionallimit?: number

        Maximum number of items to return.

        20
        
      • Optionalname?: string

        Exact tag name. Cannot be combined with q. Forces ascending name order.

      • Optionalq?: string

        Case-sensitive tag name prefix. Cannot be combined with name. Forces ascending name order.

      • Optionalsort?: string

        Sort by tag name: name:asc or name:desc. Keep the same sort when following a cursor.

      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • ListLoopsCheckpointsResponse: { checkpoints: components["schemas"]["LoopsCheckpoint"][] }

      ListLoopsCheckpointsResponseV1

      Checkpoints matching the query filter.

      • checkpoints: components["schemas"]["LoopsCheckpoint"][]

        Checkpoints

        Matching checkpoints.

    • ListLoopsDeploymentsResponse: { deployments: components["schemas"]["LoopsDeployment"][] }

      ListLoopsDeploymentsResponseV1

      Response for GET /v1/loops/deployments.

      Defaults to the caller's own; pass ``?scope=org`` to list every deployment in
      the caller's organization. Returns every deployment regardless of status;
      clients filter terminal states.
      
      • deployments: components["schemas"]["LoopsDeployment"][]

        Deployments

        Active Loops deployments.

    • ListLoopsRunsResponse: { runs: components["schemas"]["LoopsRun"][] }

      ListLoopsRunsResponseV1

      Runs matching the query filters.

    • ListLoopsSamplersResponse: { samplers: components["schemas"]["LoopsSampler"][] }

      ListLoopsSamplersResponseV1

      Response for GET /v1/loops/samplers.

      Returns the caller's samplers, including those paired to runs and
      standalone samplers. Ordered newest-first.
      
    • ListSandboxesParams: {
          cursor?: string;
          external_id?: string;
          limit?: number;
          q?: string;
          status?: string[];
          team_id?: string;
      }
      • Optionalcursor?: string

        Opaque cursor from the previous page; omit for the first page.

        eyJ2IjoxLCJsYXN0X2tleSI6ImJhc2V0ZW4tYXBpLXJldmlldy0wOTE2Iiwic29ydCI6ImRlc2MifQ
        
      • Optionalexternal_id?: string

        Filter by a caller-owned external identifier. Cannot be combined with status.

        api-review-20260916-001
        
      • Optionallimit?: number

        Maximum number of items to return.

        20
        
      • Optionalq?: string

        Search indexed sandbox names and labels. Search is applied before pagination.

        api-review
        
      • Optionalstatus?: string[]

        Deployment statuses. Repeat the query parameter for each status, for example status=DEPLOYED&status=FAILED. Unknown values are rejected. Cannot be combined with external_id.

        [
        "DEPLOYED",
        "FAILED"
        ]
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • ListSandboxesResponse: {
          items: components["schemas"]["Sandbox"][];
          pagination: components["schemas"]["SandboxApiPagination"];
      }

      One page of sandboxes.

      {
      * "items": [
      * {
      * "lifecycle": {
      * "expiration_policies": [
      * {
      * "action": "DELETE",
      * "type": "TTL_IDLE",
      * "value": "24h"
      * },
      * {
      * "action": "DELETE",
      * "type": "TTL_MAX_AGE",
      * "value": "7d"
      * },
      * {
      * "action": "DELETE",
      * "type": "DATE",
      * "value": "2026-09-23T21:26:58Z"
      * }
      * ],
      * "terminated_retention": "24h"
      * },
      * "region": "us-pdx-1",
      * "envs": [
      * {
      * "name": "NODE_ENV",
      * "secret": false,
      * "value": "production"
      * },
      * {
      * "name": "PORT",
      * "secret": false,
      * "value": "3000"
      * }
      * ],
      * "image": "baseten/base-image:latest",
      * "memory": 4096,
      * "cpu": 2,
      * "ports": [
      * {
      * "name": "http",
      * "protocol": "HTTP",
      * "target": 3000
      * }
      * ],
      * "external_id": "api-review-20260916-001",
      * "labels": {
      * "env": "development",
      * "project": "api-review",
      * "team": "engineering"
      * },
      * "name": "baseten-api-review-0916",
      * "url": "https://sbx-baseten-api-review-0916-esb1qo.us-pdx-1.b10.run",
      * "status": "DEPLOYED",
      * "created_at": "2026-09-16T21:26:58.545765901Z",
      * "updated_at": "2026-09-16T21:31:13Z",
      * "created_by": "sandbox-automation",
      * "updated_by": "sandbox-automation",
      * "last_used_at": "2026-09-16T21:31:13Z",
      * "expires_in": 86400
      * }
      * ],
      * "pagination": {
      * "has_more": true,
      * "cursor": "eyJ2IjoxLCJsYXN0X2tleSI6ImJhc2V0ZW4tYXBpLXJldmlldy0wOTE2Iiwic29ydCI6ImRlc2MifQ"
      * }
      * }
      • items: components["schemas"]["Sandbox"][]

        Resources on this page.

        [
        {
        "lifecycle": {
        "expiration_policies": [
        {
        "action": "DELETE",
        "type": "TTL_IDLE",
        "value": "24h"
        },
        {
        "action": "DELETE",
        "type": "TTL_MAX_AGE",
        "value": "7d"
        },
        {
        "action": "DELETE",
        "type": "DATE",
        "value": "2026-09-23T21:26:58Z"
        }
        ],
        "terminated_retention": "24h"
        },
        "region": "us-pdx-1",
        "envs": [
        {
        "name": "NODE_ENV",
        "secret": false,
        "value": "production"
        },
        {
        "name": "PORT",
        "secret": false,
        "value": "3000"
        }
        ],
        "image": "baseten/base-image:latest",
        "memory": 4096,
        "cpu": 2,
        "ports": [
        {
        "name": "http",
        "protocol": "HTTP",
        "target": 3000
        }
        ],
        "external_id": "api-review-20260916-001",
        "labels": {
        "env": "development",
        "project": "api-review",
        "team": "engineering"
        },
        "name": "baseten-api-review-0916",
        "url": "https://sbx-baseten-api-review-0916-esb1qo.us-pdx-1.b10.run",
        "status": "DEPLOYED",
        "created_at": "2026-09-16T21:26:58.545765901Z",
        "updated_at": "2026-09-16T21:31:13Z",
        "created_by": "sandbox-automation",
        "updated_by": "sandbox-automation",
        "last_used_at": "2026-09-16T21:31:13Z",
        "expires_in": 86400
        }
        ]
      • pagination: components["schemas"]["SandboxApiPagination"]

        Cursor pagination information. The cursor is present only when another page is available.

        {
        * "has_more": true,
        * "cursor": "eyJ2IjoxLCJsYXN0X2tleSI6ImJhc2V0ZW4tYXBpLXJldmlldy0wOTE2Iiwic29ydCI6ImRlc2MifQ"
        * }
    • ListSandboxImagesResponse: {
          items: components["schemas"]["SandboxImage"][];
          pagination: components["schemas"]["SandboxApiPagination"];
      }

      One page of image repository summaries. Fetch tags through the separate tag listing endpoint.

    • ListSandboxImageTagsResponse: {
          items: components["schemas"]["SandboxImageTag"][];
          pagination: components["schemas"]["SandboxApiPagination"];
      }

      One page of image tags.

    • ListSandboxLibraryImagesResponse: { items: components["schemas"]["SandboxLibraryImage"][] }

      Built-in sandbox images.

    • ListSandboxPreviewsParams: { cursor?: string; limit?: number; team_id?: string }
      • Optionalcursor?: string

        Opaque cursor from the previous page; omit for the first page.

        eyJ2IjoxLCJsYXN0X2tleSI6ImJhc2V0ZW4tYXBpLXJldmlldy0wOTE2Iiwic29ydCI6ImRlc2MifQ
        
      • Optionallimit?: number

        Maximum number of items to return.

        20
        
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • ListSandboxPreviewsResponse: {
          items: components["schemas"]["SandboxPreview"][];
          pagination: components["schemas"]["SandboxApiPagination"];
      }

      One page of previews of a sandbox.

    • ListSandboxPreviewTokensParams: { cursor?: string; limit?: number; team_id?: string }
      • Optionalcursor?: string

        Opaque cursor from the previous page; omit for the first page.

        eyJ2IjoxLCJsYXN0X2tleSI6ImJhc2V0ZW4tYXBpLXJldmlldy0wOTE2Iiwic29ydCI6ImRlc2MifQ
        
      • Optionallimit?: number

        Maximum number of items to return.

        20
        
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • ListSandboxPreviewTokensResponse: {
          items: components["schemas"]["SandboxPreviewToken"][];
          pagination: components["schemas"]["SandboxApiPagination"];
      }

      One page of tokens of a preview.

    • ListSandboxVolumesParams: {
          cursor?: string;
          limit?: number;
          q?: string;
          status?: components["schemas"]["SandboxVolumeStatus"][];
          team_id?: string;
      }
      • Optionalcursor?: string

        Opaque cursor from the previous page; omit for the first page.

        eyJ2IjoxLCJsYXN0X2tleSI6ImJhc2V0ZW4tYXBpLXJldmlldy0wOTE2Iiwic29ydCI6ImRlc2MifQ
        
      • Optionallimit?: number

        Maximum number of items to return.

        20
        
      • Optionalq?: string

        Search volume names. Search is applied before pagination.

        datasets
        
      • Optionalstatus?: components["schemas"]["SandboxVolumeStatus"][]

        Volume statuses. Repeat the query parameter for each status, for example status=DEPLOYED&status=FAILED. Unknown values are rejected.

      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • ListSandboxVolumesResponse: {
          items: components["schemas"]["SandboxVolume"][];
          pagination: components["schemas"]["SandboxApiPagination"];
      }

      One page of volumes.

    • ListTrainingJobsResponse: {
          training_jobs: components["schemas"]["TrainingJob"][];
          training_project: components["schemas"]["TrainingProject"];
      }

      ListTrainingJobsResponseV1

      A response to list training jobs.

      • training_jobs: components["schemas"]["TrainingJob"][]

        Training Jobs

        List of training jobs.

      • training_project: components["schemas"]["TrainingProject"]

        The training project.

    • ListTrainingProjectsResponse: {
          pagination: components["schemas"]["PaginationResponse"];
          training_projects: components["schemas"]["TrainingProject"][];
      }

      ListTrainingProjectsResponseV1

      A response to list training projects.

      • pagination: components["schemas"]["PaginationResponse"]

        Pagination metadata for the page.

      • training_projects: components["schemas"]["TrainingProject"][]

        Training Projects

        List of training projects.

    • ListVolumeNamespacesResponse: { items: string[]; pagination: components["schemas"]["PaginationResponse"] }

      ListVolumeNamespacesResponseV1

      A page of namespaces the caller can read.

      • items: string[]

        Items

        Items in this page.

      • pagination: components["schemas"]["PaginationResponse"]

        Pagination metadata for the page.

    • ListVolumesResponse: {
          items: components["schemas"]["Volume"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      ListVolumesResponseV1

      A page of volumes in one namespace.

    • ListVolumeVersionsResponse: { versions: components["schemas"]["VolumeVersion"][]; volume_sequence: number }

      ListVolumeVersionsResponseV1

      Every version of a volume, newest first.

      Unpaginated: `limit` and `cursor` are absent rather than accepted and
      ignored, so adding them once the volume service pages this listing is a
      purely additive change.
      
      • versions: components["schemas"]["VolumeVersion"][]

        Versions

        Versions of the volume, newest first.

      • volume_sequence: number

        Volume Sequence

        Revision of the volume as a whole when the versions were read. Pass it as expected_sequence on a later delete to make that delete conditional on the volume not having changed since. Distinct from the per-version sequence, which is the revision a version was committed at.

    • LLMBenchmarkMetrics: {
          cost_per_1m_tokens_usd?: number | null;
          max_concurrent_users_at_50ms_tpot?: number | null;
          output_tokens_per_sec_per_user_p50?: number | null;
          requests_per_sec_p50?: number | null;
          ttft_ms_p50?: number | null;
      }

      LLMBenchmarkMetricsV1

      • Optionalcost_per_1m_tokens_usd?: number | null

        Cost Per 1M Tokens Usd

      • Optionalmax_concurrent_users_at_50ms_tpot?: number | null

        Max Concurrent Users At 50Ms Tpot

      • Optionaloutput_tokens_per_sec_per_user_p50?: number | null

        Output Tokens Per Sec Per User P50

      • Optionalrequests_per_sec_p50?: number | null

        Requests Per Sec P50

      • Optionalttft_ms_p50?: number | null

        Ttft Ms P50

    • LLMModelHandle: {
          hostname: string;
          instance_type_name: string | null;
          model_id: string;
          version_id: string;
      }

      LLMModelHandleV1

      Handle for a BIS-LLM model deployment.

      • hostname: string

        Hostname

        Hostname used to invoke the model

      • instance_type_name: string | null

        Instance Type Name

        Name of the instance type the model deployment is running on

        null
        
      • model_id: string

        Model Id

        Unique identifier of the model

      • version_id: string

        Version Id

        Unique identifier of the model version

    • LLMRuntime: { oidc?: components["schemas"]["RuntimeOidc"] | null }

      LLMRuntimeV1

      • Optionaloidc?: components["schemas"]["RuntimeOidc"] | null

        Runtime OIDC token mounting configuration

    • LoadCheckpointConfig: {
          checkpoints?: (
              | components["schemas"]["BasetenLatestCheckpointConfig"]
              | components["schemas"]["BasetenNamedCheckpointConfig"]
              | components["schemas"]["LoopsCheckpointConfig"]
          )[];
          download_folder?: string;
          enabled?: boolean;
      }

      LoadCheckpointConfig

      • Optionalcheckpoints?: (
            | components["schemas"]["BasetenLatestCheckpointConfig"]
            | components["schemas"]["BasetenNamedCheckpointConfig"]
            | components["schemas"]["LoopsCheckpointConfig"]
        )[]

        Checkpoints

        List of checkpoint configurations

      • Optionaldownload_folder?: string

        Download Folder

        Folder where checkpoints will be downloaded

      • Optionalenabled?: boolean

        Enabled

        Whether checkpoint loading is enabled

    • Log: {
          level: components["schemas"]["LogLevel"] | null;
          message: string;
          replica: string | null;
          request_id: string | null;
          timestamp: string;
      }

      LogV1

      • level: components["schemas"]["LogLevel"] | null

        Severity of the log line, if one was detected. null when unknown.

        null
        
      • message: string

        Message

        The contents of the log message. When the logger captured an exception, the traceback is appended after the message.

      • replica: string | null

        Replica

        The replica the log line was emitted from.

      • request_id: string | null

        Request Id

        The request ID associated with an inference request.

        null
        
      • timestamp: string

        Timestamp

        Epoch nanosecond timestamp of the log message.

    • LogLevel: "DEBUG" | "INFO" | "WARNING" | "ERROR"

      LogLevelV1

      A log severity level.

    • LoopsBaseModelItem: {
          base_model: string;
          breakdown?: components["schemas"]["LoopsResourceItem"][];
          cached_prefill: components["schemas"]["LoopsMeterUsage"];
          daily?: components["schemas"]["DailyLoopsUsage"][];
          sample: components["schemas"]["LoopsMeterUsage"];
          subtotal: number | string;
          train: components["schemas"]["LoopsMeterUsage"];
          uncached_prefill: components["schemas"]["LoopsMeterUsage"];
      }

      LoopsBaseModelItemV1

      • base_model: string

        Base Model

        Base model the usage is priced by

      • Optionalbreakdown?: components["schemas"]["LoopsResourceItem"][]

        Breakdown

        Usage per run and standalone sampler on this base model

      • cached_prefill: components["schemas"]["LoopsMeterUsage"]

        Prompt tokens served from the prefix cache

      • Optionaldaily?: components["schemas"]["DailyLoopsUsage"][]

        Daily

        Daily usage breakdown

      • sample: components["schemas"]["LoopsMeterUsage"]

        Tokens generated by sampling

      • subtotal: number | string

        Subtotal

        Cost in dollars across all four meters

      • train: components["schemas"]["LoopsMeterUsage"]

        Tokens processed by forward and forward-backward training calls

      • uncached_prefill: components["schemas"]["LoopsMeterUsage"]

        Prompt tokens that missed the prefix cache

    • LoopsCheckpoint: {
          base_model: string | null;
          checkpoint_id: string;
          checkpoint_type: string;
          created_at: string;
          id: string;
          lora_adapter_config: { [key: string]: unknown } | null;
          lora_config: components["schemas"]["LoopsLoRAConfig"] | null;
          run_id: string;
          size_bytes: number;
          sync_status: string | null;
          target: components["schemas"]["TrainerCheckpointTarget"];
      }

      LoopsCheckpointV1

      A checkpoint saved by a Loops run.

      • base_model: string | null

        Base Model

        The base model of the checkpoint.

      • checkpoint_id: string

        Checkpoint Id

        The ID of the checkpoint.

      • checkpoint_type: string

        Checkpoint Type

        The type of checkpoint.

      • created_at: string

        Created At Format: date-time

        The timestamp of the checkpoint in ISO 8601 format.

      • id: string

        Id

        The checkpoint ID.

      • lora_adapter_config: { [key: string]: unknown } | null

        Lora Adapter Config

        The adapter config of the checkpoint.

      • lora_config: components["schemas"]["LoopsLoRAConfig"] | null

        The immutable LoRA config used to save this checkpoint. Null means the checkpoint is unsupported and cannot be loaded.

      • run_id: string

        Run Id

        The ID of the run that produced the checkpoint.

      • size_bytes: number

        Size Bytes

        The size of the checkpoint in bytes.

      • sync_status: string | null

        Sync Status

        Sync state of the checkpoint: SYNCING or COMPLETE.

        null
        
      • target: components["schemas"]["TrainerCheckpointTarget"]

        Whether this checkpoint is loadable by the sampler or by the run.

    • LoopsCheckpointConfig: {
          checkpoint_name: string;
          run_id: string;
          target?: "trainer" | "sampler";
          typ: "loops_checkpoint";
      }

      LoopsCheckpointConfig

      • checkpoint_name: string

        Checkpoint Name

        Name of the checkpoint to load

      • run_id: string

        Run Id

        ID of the Loops run to load the checkpoint from

      • Optionaltarget?: "trainer" | "sampler"

        Target

        Which checkpoint target to load: 'trainer' (full training state) or 'sampler' (inference weights)

      • typ: "loops_checkpoint"

        discriminator enum property added by openapi-typescript

    • LoopsCheckpointFilesResponse: {
          next_page_token: number | null;
          presigned_urls: components["schemas"]["CheckpointFile"][];
          total_count: number;
      }

      LoopsCheckpointFilesResponseV1

      Response with presigned URLs for files under a Loops checkpoint.

      • next_page_token: number | null

        Next Page Token

        Token to use for fetching the next page of results. None when there are no more results.

        null
        
      • presigned_urls: components["schemas"]["CheckpointFile"][]

        Presigned Urls

        List of presigned URLs for checkpoint files.

      • total_count: number

        Total Count

        Total number of checkpoint files available.

    • LoopsCheckpointS3Source: { kind: "s3" }

      LoopsCheckpointS3SourceV1

      The checkpoint's files are fetched as presigned URLs, page by page.

      • kind: "s3"

        discriminator enum property added by openapi-typescript

    • LoopsCheckpointSourceResponse: {
          source:
              | components["schemas"]["LoopsCheckpointS3Source"]
              | components["schemas"]["LoopsCheckpointVolumeSource"];
      }

      LoopsCheckpointSourceResponseV1

      Where a checkpoint's files are fetched from, and how.

      • source:
            | components["schemas"]["LoopsCheckpointS3Source"]
            | components["schemas"]["LoopsCheckpointVolumeSource"]

        Source

        s3 means the files endpoint serves presigned URLs for this checkpoint; volume carries the ref to pull instead.

    • LoopsCheckpointVolumeSource: { kind: "volume"; path: string; volume_ref: string }

      LoopsCheckpointVolumeSourceV1

      The checkpoint's files are pulled from a Baseten volume.

      • kind: "volume"

        discriminator enum property added by openapi-typescript

      • path: string

        Path

        Directory inside that version holding the checkpoint's files. Empty when the checkpoint is the whole version.

      • volume_ref: string

        Volume Ref

        Ref of the volume version holding the checkpoint, as bdn:<namespace>/<volume>:<tag>.

    • LoopsDebugArchiveFilesResponse: {
          next_page_token: string | null;
          presigned_urls: components["schemas"]["CheckpointFile"][];
      }

      LoopsDebugArchiveFilesResponseV1

      Response with presigned URLs for a Loops deployment's debug archive.

      • next_page_token: string | null

        Next Page Token

        null
        
      • presigned_urls: components["schemas"]["CheckpointFile"][]

        Presigned Urls

    • LoopsDeployment: {
          active_run_id: string | null;
          availability_model: components["schemas"]["AvailabilityModel"];
          base_checkpoint: string | null;
          base_model: string;
          base_url: string;
          created_at: string;
          id: string;
          instance_type: components["schemas"]["InstanceType"];
          latest_run_id: string | null;
          node_count: number;
          sampler: components["schemas"]["LoopsSampler"] | null;
          status: components["schemas"]["LoopsDeploymentStatus"];
          user: components["schemas"]["User"];
      }

      LoopsDeploymentV1

      A Loops deployment — the long-lived run + sampler pair owned by a user.

      The deployment's current sampler is included inline. The full list of
      samplers visible to the caller (across all deployments) lives at
      ``GET /v1/loops/samplers``.
      
      • active_run_id: string | null

        Active Run Id

        The ID of the run currently active on this deployment, if any. Null when the deployment's runs have been marked inactive (e.g. scale-to-zero) without a successor.

        null
        
      • availability_model: components["schemas"]["AvailabilityModel"]

        Capacity the trainer was scheduled on.

        standard
        
      • base_checkpoint: string | null

        Base Checkpoint

        The custom base checkpoint the deployment's trainer loaded, pinned to a commit (hf:///@). Null when it uses the base model's own weights.

        null
        
      • base_model: string

        Base Model

        The HuggingFace base model the deployment is fine-tuning.

      • base_url: string

        Base Url

        The run's base URL.

      • created_at: string

        Created At Format: date-time

        Time the deployment was created in ISO 8601 format.

      • id: string

        Id

        The Loops deployment ID.

      • instance_type: components["schemas"]["InstanceType"]

        Instance type backing the trainer.

      • latest_run_id: string | null

        Latest Run Id

        The ID of the most recent run on this deployment, active or not, so idle deployments still expose a usable run handle. Null only if the deployment has no runs.

        null
        
      • node_count: number

        Node Count

        Number of nodes backing the trainer.

        1
        
      • sampler: components["schemas"]["LoopsSampler"] | null

        The sampler bound to this deployment.

        null
        
      • status: components["schemas"]["LoopsDeploymentStatus"]

        Latest deployment status.

      • user: components["schemas"]["User"]

        The user who owns the Loops deployment.

    • LoopsDeploymentMetrics: {
          concurrent_requests: components["schemas"]["TrainingJobMetric"][];
          cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][];
          cpu_usage: components["schemas"]["TrainingJobMetric"][];
          ephemeral_storage: components["schemas"]["StorageMetrics"];
          gpu_memory_usage_bytes: {
              [key: string]: { timestamp: string; value: number }[];
          };
          gpu_utilization: { [key: string]: { timestamp: string; value: number }[] };
          inference_volume: components["schemas"]["TrainingJobMetric"][];
          inference_volume_by_status: components["schemas"]["InferenceVolumeByStatusDatapoint"][];
          per_node_metrics: components["schemas"]["LoopsDeploymentNodeMetrics"][];
          response_time_stats: components["schemas"]["ResponseTimeDatapoint"][];
      }

      LoopsDeploymentMetricsV1

      Metrics for a trainer (Loops) deployment.

      Service-level fields summarize HTTP traffic into the trainer pods (the
      Knative queue-proxy is the source). Compute fields are the leader-pod
      aggregate; ``per_node_metrics`` carries the full multinode breakdown.
      
      • concurrent_requests: components["schemas"]["TrainingJobMetric"][]

        Concurrent Requests

        Number of in-progress concurrent inference requests. Source: the queue-proxy revision_queue_depth gauge on http-usermetric.

      • cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][]

        Cpu Memory Usage Bytes

        Leader-pod CPU memory usage bytes.

      • cpu_usage: components["schemas"]["TrainingJobMetric"][]

        Cpu Usage

        Leader-pod CPU usage in cores.

      • ephemeral_storage: components["schemas"]["StorageMetrics"]

        Leader-pod ephemeral storage usage.

      • gpu_memory_usage_bytes: { [key: string]: { timestamp: string; value: number }[] }

        Gpu Memory Usage Bytes

        Leader-pod GPU memory bytes per GPU rank.

      • gpu_utilization: { [key: string]: { timestamp: string; value: number }[] }

        Gpu Utilization

        Leader-pod fractional GPU utilization per GPU rank.

      • inference_volume: components["schemas"]["TrainingJobMetric"][]

        Inference Volume

        Number of inference requests per unit time (requests per second).

      • inference_volume_by_status: components["schemas"]["InferenceVolumeByStatusDatapoint"][]

        Inference Volume By Status

        Request rate split by response code class.

      • per_node_metrics: components["schemas"]["LoopsDeploymentNodeMetrics"][]

        Per Node Metrics

        Per-node compute breakdown for multinode trainer deployments.

      • response_time_stats: components["schemas"]["ResponseTimeDatapoint"][]

        Response Time Stats

        Percentiles of the response time distribution.

    • LoopsDeploymentNodeMetrics: {
          cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][];
          cpu_usage: components["schemas"]["TrainingJobMetric"][];
          ephemeral_storage: components["schemas"]["StorageMetrics"];
          gpu_memory_usage_bytes: {
              [key: string]: { timestamp: string; value: number }[];
          };
          gpu_utilization: { [key: string]: { timestamp: string; value: number }[] };
          node_id: string;
      }

      LoopsDeploymentNodeMetricsV1

      Per-node compute metrics for a multinode trainer deployment.

      • cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][]

        Cpu Memory Usage Bytes

        CPU memory usage bytes.

      • cpu_usage: components["schemas"]["TrainingJobMetric"][]

        Cpu Usage

        CPU usage in cores.

      • ephemeral_storage: components["schemas"]["StorageMetrics"]

        Ephemeral storage usage.

      • gpu_memory_usage_bytes: { [key: string]: { timestamp: string; value: number }[] }

        Gpu Memory Usage Bytes

        GPU memory usage bytes per GPU rank.

      • gpu_utilization: { [key: string]: { timestamp: string; value: number }[] }

        Gpu Utilization

        Fractional GPU utilization per GPU rank.

      • node_id: string

        Node Id

        Identifier for the node.

    • LoopsDeploymentStatus: { name: components["schemas"]["Name"] }

      LoopsDeploymentStatusV1

      Latest deployment status for a Loops deployment.

    • LoopsLoRAConfig: {
          config_version: string;
          expert_layout: "per_expert" | "shared_outer" | "shared_adapter" | null;
          targets: string[];
      }

      LoopsLoRAConfigV1

      A published LoRA config: which modules the adapter targets and how experts are laid out.

      • config_version: string

        Config Version

        The config version, like v1.

      • expert_layout: "per_expert" | "shared_outer" | "shared_adapter" | null

        Expert Layout

        How routed-expert LoRA weights are laid out. Null when no experts are targeted.

        null
        
      • targets: string[]

        Targets

        The module names the LoRA adapter targets.

    • LoopsMeterUsage: { subtotal: number | string; tokens: number }

      LoopsMeterUsageV1

      • subtotal: number | string

        Subtotal

        Cost of those tokens in dollars

      • tokens: number

        Tokens

        Tokens billed on this meter

    • LoopsPlacementScope: "default" | "serverless" | "dedicated"

      LoopsPlacementScopeV1

      Where a Loops run's trainer or a standalone sampler runs.

    • LoopsResourceItem: {
          billable_resource: components["schemas"]["BillableResource"];
          cached_prefill: components["schemas"]["LoopsMeterUsage"];
          daily?: components["schemas"]["DailyLoopsUsage"][];
          sample: components["schemas"]["LoopsMeterUsage"];
          subtotal: number | string;
          train: components["schemas"]["LoopsMeterUsage"];
          uncached_prefill: components["schemas"]["LoopsMeterUsage"];
      }

      LoopsResourceItemV1

      • billable_resource: components["schemas"]["BillableResource"]

        The Loops run (LOOPS_RUN) or standalone sampler (LOOPS_SAMPLER). A resource that no longer exists has only its ID and kind set.

      • cached_prefill: components["schemas"]["LoopsMeterUsage"]

        Prompt tokens served from the prefix cache

      • Optionaldaily?: components["schemas"]["DailyLoopsUsage"][]

        Daily

        Daily usage breakdown

      • sample: components["schemas"]["LoopsMeterUsage"]

        Tokens generated by sampling

      • subtotal: number | string

        Subtotal

        Cost in dollars across all four meters

      • train: components["schemas"]["LoopsMeterUsage"]

        Tokens processed by forward and forward-backward training calls

      • uncached_prefill: components["schemas"]["LoopsMeterUsage"]

        Prompt tokens that missed the prefix cache

    • LoopsRun: {
          base_checkpoint: string | null;
          base_model: string;
          base_url: string;
          created_at: string;
          deployment_id: string | null;
          id: string;
          lora_config_version: string | null;
          name: string;
          sampler: components["schemas"]["LoopsSampler"] | null;
          session_id: string;
          status: components["schemas"]["LoopsRunStatus"];
          user: components["schemas"]["User"];
      }

      LoopsRunV1

      • base_checkpoint: string | null

        Base Checkpoint

        The custom base checkpoint the run started from, pinned to a commit (hf:///@). Null when it uses the base model's own weights.

        null
        
      • base_model: string

        Base Model

        The HuggingFace base model the run is fine-tuning.

      • base_url: string

        Base Url

        The run's base URL.

      • created_at: string

        Created At Format: date-time

        Time the run was created in ISO 8601 format

      • deployment_id: string | null

        Deployment Id

        The ID of the Loops deployment the run executes on, if it has one.

        null
        
      • id: string

        Id

        The run ID.

      • lora_config_version: string | null

        Lora Config Version

        The run's immutable LoRA config version.

        null
        
      • name: string

        Name

        The run's display name.

      • sampler: components["schemas"]["LoopsSampler"] | null

        The sampler bound to this run, or null for a trainer-only run that has not yet created a sampler.

        null
        
      • session_id: string

        Session Id

        The session ID this run belongs to.

      • status: components["schemas"]["LoopsRunStatus"]

        The run's current status.

      • user: components["schemas"]["User"]

        The user who owns the run.

    • LoopsRunStatus: { name: components["schemas"]["LoopsRunStatusName"] }

      LoopsRunStatusV1

      The current status of a Loops run.

      • name: components["schemas"]["LoopsRunStatusName"]

        ACTIVE while the run is live; INACTIVE once replaced by a newer run or shut down.

    • LoopsRunStatusName: "ACTIVE" | "INACTIVE"

      LoopsRunStatusNameV1

      A Loops run's lifecycle state: ACTIVE or INACTIVE.

    • LoopsSampler: {
          base_checkpoint: string | null;
          base_model: string;
          base_url: string;
          created_at: string;
          deployment_id: string | null;
          id: string;
          instance_type: components["schemas"]["InstanceType"] | null;
          model_id: string | null;
          node_count: number;
          session_id: string;
          status: components["schemas"]["LoopsSamplerStatus"];
          user: components["schemas"]["User"];
      }

      LoopsSamplerV1

      • base_checkpoint: string | null

        Base Checkpoint

        The custom base checkpoint the sampler serves, pinned to a commit (hf:///@). Null when it uses the base model's own weights.

        null
        
      • base_model: string

        Base Model

        The HuggingFace base model the sampler is serving.

      • base_url: string

        Base Url

      • created_at: string

        Created At Format: date-time

        Time the sampler was created in ISO 8601 format

      • deployment_id: string | null

        Deployment Id

        Hashid of the specific model deployment (version). Null for a serverless sampler.

        null
        
      • id: string

        Id

      • instance_type: components["schemas"]["InstanceType"] | null

        Instance type serving the sampler.

        null
        
      • model_id: string | null

        Model Id

        Hashid of the underlying Baseten model. Null for a serverless sampler.

        null
        
      • node_count: number

        Node Count

        Number of nodes serving the sampler.

        1
        
      • session_id: string

        Session Id

        The session ID this sampler belongs to.

      • status: components["schemas"]["LoopsSamplerStatus"]

        The sampler's current status.

      • user: components["schemas"]["User"]

        The user who owns the sampler.

    • LoopsSamplerStatus: { name: components["schemas"]["DeploymentStatus"] }

      LoopsSamplerStatusV1

      The current status of a Loops sampler.

      • name: components["schemas"]["DeploymentStatus"]

        The current status of the Loops sampler.

    • LoopsSession: { id: string }

      LoopsSessionV1

      • id: string

        Id

    • LoopsUsage: {
          breakdown?: components["schemas"]["LoopsBaseModelItem"][];
          credits_used: number | string;
          subtotal: number | string;
          total: number | string;
      }

      LoopsUsageV1

      • Optionalbreakdown?: components["schemas"]["LoopsBaseModelItem"][]

        Breakdown

        Per-base-model usage breakdown

      • credits_used: number | string

        Credits Used

        Credits applied in dollars

      • subtotal: number | string

        Subtotal

        Cost in dollars before credits

      • total: number | string

        Total

        Total cost in dollars

    • LoopsUseCase: "rl" | "sft"

      LoopsUseCaseV1

      What the caller intends to run.

      Reinforcement learning runs a trainer and a sampler; supervised
      fine-tuning runs a trainer alone. A model can therefore be enabled for one
      and not the other, and the same model can support a longer sequence length
      for SFT than for RL.
      
    • LoopsUserConfig: {
          sampler_accelerator_priority: string[] | null;
          trainer_accelerator_priority: string[] | null;
      }

      LoopsUserConfigV1

      The caller's Loops user-level config (accelerator priorities).

      • sampler_accelerator_priority: string[] | null

        Sampler Accelerator Priority

        Ordered allowlist of GPU types for your Loops sampler deployments, highest priority first. Intersected with the org-level allowlist (org acts as a ceiling). Null means 'inherit the org-level allowlist'.

        [
        "H100",
        "H200"
        ]
      • trainer_accelerator_priority: string[] | null

        Trainer Accelerator Priority

        Ordered allowlist of GPU types for your Loops trainer deployments, highest priority first. Intersected with the org-level allowlist (org acts as a ceiling). Null means 'inherit the org-level allowlist'.

        [
        "H100",
        "H200"
        ]
    • MetricDescriptor: {
          kind: components["schemas"]["MetricKind"];
          label_sets: { [key: string]: string }[];
          name: string;
          unit_hint: components["schemas"]["MetricUnitHint"];
      }

      MetricDescriptorV1

      Describes one metric. Its position in the response metric_descriptors list is the index used to read that metric out of each value set's values.

      A metric may break down into multiple labeled series (e.g. latency quantiles,
      or volume by status). ``label_sets`` enumerates those series in order; each
      value set's value for this metric is a list aligned to that order.
      
      • kind: components["schemas"]["MetricKind"]

        Semantic hint for how the metric behaves (GAUGE, COUNTER, HISTOGRAM).

      • label_sets: { [key: string]: string }[]

        Label Sets

        The metric's series, in order. Each entry is the set of labels identifying one series; the value at the same index in each value set's values is that series' value. A plain metric has a single entry with no labels ({}). A histogram has one entry per quantile plus an average, e.g. {'quantile': '0.5'} … {'quantile': '0.99'}, {'stat': 'avg'}.

      • name: string

        Name

        Canonical metric name.

      • unit_hint: components["schemas"]["MetricUnitHint"]

        Advisory unit of the metric's values.

    • MetricKind: "GAUGE" | "COUNTER" | "HISTOGRAM"

      MetricKindV1

      Semantic hint for how a metric behaves, to aid client rendering and aggregation. It does not describe the value's shape (that is carried by the descriptor's label_sets; a metric may break down into multiple series).

      - ``GAUGE``: an instantaneous value (e.g. queue size, running requests).
      - ``COUNTER``: a cumulative total over the step (e.g. tokens, restarts).
      - ``HISTOGRAM``: a distribution, exposed as quantile/average series.
      
    • MetricMode: "CURRENT" | "SUMMARY" | "SERIES"

      MetricModeV1

      How metric values are aggregated over the request.

    • MetricUnitHint:
          | "PER_SECOND"
          | "SECONDS"
          | "BYTES"
          | "MEBIBYTES"
          | "COUNT"
          | "RATIO"
          | "CELSIUS"
          | "WATTS"

      MetricUnitHintV1

      Advisory unit of a metric's values. Values are reported as scraped, so the hint describes the raw value (e.g. GPU memory is reported in mebibytes).

      - ``PER_SECOND``: a rate per second.
      - ``SECONDS``: a duration in seconds.
      - ``BYTES``: a size in bytes.
      - ``MEBIBYTES``: a size in mebibytes (MiB).
      - ``COUNT``: a dimensionless tally of discrete things.
      - ``RATIO``: a dimensionless ratio. Usually in ``[0, 1]`` but may exceed 1
        (e.g. CPU usage in cores = cpu-seconds/second).
      - ``CELSIUS``: a temperature in degrees Celsius.
      - ``WATTS``: power draw in watts.
      
    • MetricValueSet: { start_epoch_millis: number; values: (number | null)[][] }

      MetricValueSetV1

      The metric values for one time step. values is aligned by index to the response metric_descriptors list.

      • start_epoch_millis: number

        Start Epoch Millis

        Start of the step. The step spans until the next value set's start, or the window end for the last one; a summary has a single value set starting at the window start.

      • values: (number | null)[][]

        Values

        Metric values aligned to the metric_descriptors index. Each entry is a list aligned to that descriptor's label_sets (a single-element list for a plain metric). A series with no data in this step is null.

    • Model: {
          created_at: string;
          deployments_count: number;
          development_deployment_id: string | null;
          id: string;
          instance_type_name: string;
          name: string;
          production_deployment_id: string | null;
          team_name: string;
      }

      ModelV1

      A model.

      • created_at: string

        Created At Format: date-time

        Time the model was created in ISO 8601 format

      • deployments_count: number

        Deployments Count

        Number of deployments of the model

      • development_deployment_id: string | null

        Development Deployment Id

        Unique identifier of the development deployment of the model

      • id: string

        Id

        Unique identifier of the model

      • instance_type_name: string

        Instance Type Name

        Name of the instance type for the production deployment of the model

      • name: string

        Name

        Name of the model

      • production_deployment_id: string | null

        Production Deployment Id

        Unique identifier of the production deployment of the model

      • team_name: string

        Team Name

        Name of the team associated with the model.

    • ModelAPI: {
          context_length: number;
          cost_per_million_cached_input_tokens: number | string | null;
          cost_per_million_input_tokens: number | string | null;
          cost_per_million_output_tokens: number | string | null;
          description: string;
          display_name: string;
          invoke_url: string;
          model_family: string | null;
          name: string;
          org_details: components["schemas"]["ModelAPIOrgDetails"] | null;
          rate_limits: components["schemas"]["ModelAPIRateLimit"][];
          release_date: string;
          team_details?: components["schemas"]["ModelAPITeamDetails"][];
      }

      ModelAPIV1

      Model metadata and authorized team details, with retained legacy fields.

      • context_length: number

        Context Length

        The model's context window length, in tokens.

        8192
        
      • cost_per_million_cached_input_tokens: number | string | null

        Cost Per Million Cached Input Tokens

        Effective cost per million cached input tokens, in dollars. Null when pricing is unavailable or the Model API has no cached input price.

        0.03
        
      • cost_per_million_input_tokens: number | string | null

        Cost Per Million Input Tokens

        Deprecated and will be removed in a future version. Legacy effective input-token price. Use team_details pricing instead. Retained during migration; null when pricing is unavailable.

        0.13
        
      • cost_per_million_output_tokens: number | string | null

        Cost Per Million Output Tokens

        Deprecated and will be removed in a future version. Legacy effective output-token price. Use team_details pricing instead. Retained during migration; null when pricing is unavailable.

        0.50
        
      • description: string

        Description

        Description of the Model API.

      • display_name: string

        Display Name

        Human-readable name of the Model API.

        Llama 3.3 70B Instruct
        
      • invoke_url: string

        Invoke Url

        Base URL for invoking the Model API. OpenAI-shaped routes (e.g. /v1/chat/completions) live underneath this host.

        https://inference.baseten.co
        
      • model_family: string | null

        Model Family

        Family the underlying model belongs to.

        null
        
        Meta
        
        DeepSeek
        
        Qwen
        
      • name: string

        Name

        Identifier of the Model API. Stable, URL-safe slug used as the public identifier.

        llama-3-3-70b-instruct
        
      • org_details: components["schemas"]["ModelAPIOrgDetails"] | null

        Deprecated and will be removed in a future version. Legacy Default Team state, independent of team_ids. Use team_details instead. Null when not added or unauthorized.

        null
        
      • rate_limits: components["schemas"]["ModelAPIRateLimit"][]

        Rate Limits

        Deprecated and will be removed in a future version. Legacy Default Team effective limits, independent of team_ids, or catalog defaults when not added or unauthorized. Use team_details for team limits; this field is not the org-pool limit view.

      • release_date: string

        Release Date Format: date

        Date the Model API was made available.

      • Optionalteam_details?: components["schemas"]["ModelAPITeamDetails"][]

        Team Details

        Added Model API details for authorized teams, ordered by team ID. Empty when no team in the selected scope has added this Model API.

    • ModelApiCostDimension: "api_key_prefix" | "user" | "model" | "service_tier" | "team"

      ModelApiCostDimensionV1

    • ModelApiItem: {
          cached_input_tokens: number;
          daily?: components["schemas"]["DailyModelApiUsage"][];
          input_tokens: number;
          model_family: string | null;
          model_name: string;
          output_tokens: number;
          subtotal: number | string;
      }

      ModelApiItemV1

      • cached_input_tokens: number

        Cached Input Tokens

        Total cached input tokens for this model

      • Optionaldaily?: components["schemas"]["DailyModelApiUsage"][]

        Daily

        Daily usage breakdown

      • input_tokens: number

        Input Tokens

        Total input tokens for this model

      • model_family: string | null

        Model Family

        Model family (e.g., Meta, DeepSeek)

        null
        
      • model_name: string

        Model Name

        Model name

      • output_tokens: number

        Output Tokens

        Total output tokens for this model

      • subtotal: number | string

        Subtotal

        Subtotal cost in dollars for this model

    • ModelAPIOrgDetails: { added_at: string; last_used_at: string | null }

      ModelAPIOrgDetailsV1

      Team-specific state for an added Model API.

      • added_at: string

        Added At Format: date-time

        When the team first added this Model API.

      • last_used_at: string | null

        Last Used At

        When the team last invoked this Model API. Null if the team has never invoked it.

        null
        
    • ModelAPIRateLimit: {
          baseline_threshold: number;
          is_pooled: boolean;
          service_tier: components["schemas"]["ModelAPIServiceTier"];
          threshold: number;
          type: components["schemas"]["LimitType"];
          unit: components["schemas"]["RateLimitUnit"];
      }

      ModelAPIRateLimitV1

      • baseline_threshold: number

        Baseline Threshold

        Configured baseline threshold for the rate limit, before any adaptive increase. Equal to threshold when no adaptive increase is in effect.

        1000
        
        50000
        
      • is_pooled: boolean

        Is Pooled

        Whether this limit uses the organization-wide pool. The threshold is the effective limit, including any adaptive grant.

      • service_tier: components["schemas"]["ModelAPIServiceTier"]

        Service tier the rate limit applies to.

        DEFAULT
        
        FLEX
        
      • threshold: number

        Threshold

        The threshold for the rate limit

        1000
        
        50000
        
      • type: components["schemas"]["LimitType"]

        The type of the rate limit

        TOKEN
        
        REQUEST
        
      • unit: components["schemas"]["RateLimitUnit"]

        The unit of the rate limit

        SECOND
        
        MINUTE
        
    • ModelApisCostBucket: { date: string; results?: components["schemas"]["ModelApisCostResult"][] }

      ModelApisCostBucketV1

      One daily bucket and the costs attributed to it.

      • date: string

        Date Format: date

        UTC calendar date for this bucket, from midnight inclusive to the next midnight exclusive.

      • Optionalresults?: components["schemas"]["ModelApisCostResult"][]

        Results

        Cost totals for the observed combinations of requested dimensions in this bucket, ordered by those dimensions. Empty when the day has no matching usage.

    • ModelApisCostResult: {
          api_key_prefixes: string[] | null;
          model: string | null;
          service_tier: string | null;
          subtotal: string;
          team_id: string | null;
          user_id: string | null;
      }

      ModelApisCostResultV1

      • api_key_prefixes: string[] | null

        Api Key Prefixes

        The single attributed API key prefix for this result. Null when not grouping by api_key_prefix or when attribution is unavailable.

        null
        
      • model: string | null

        Model

        Model identifier. Null when not grouping by model.

        null
        
      • service_tier: string | null

        Service Tier

        Service tier. Null when not grouping by service_tier or when attribution is unavailable.

        null
        
      • subtotal: string

        Subtotal

        Model API cost in USD for this day and grouping combination, returned as an exact decimal string preserving fractional-cent amounts. This amount may differ from finalized invoice amounts.

        0.00000123
        
      • team_id: string | null

        Team Id

        Team the cost is attributed to. Null when not grouping by team or when team attribution is unavailable.

        null
        
      • user_id: string | null

        User Id

        Attributed user ID. Null when not grouping by user or when attribution is unavailable.

        null
        
    • ModelApisCostsResponse: {
          items: components["schemas"]["ModelApisCostBucket"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      ModelApisCostsResponseV1

      One non-overlapping bucket per UTC day, ordered oldest first with no gaps.

      Days without matching usage are included with an empty results list.
      
      • items: components["schemas"]["ModelApisCostBucket"][]

        Items

        Items in this page.

      • pagination: components["schemas"]["PaginationResponse"]

        Pagination metadata for the page.

    • ModelAPIServiceTier: "DEFAULT" | "FLEX" | "PRIORITY"

      ModelAPIServiceTierV1

    • ModelAPIsResponse: {
          items: components["schemas"]["ModelAPI"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      ModelAPIsResponseV1

      Page of Model APIs visible to the caller.

    • ModelApisUsage: {
          breakdown?: components["schemas"]["ModelApiItem"][];
          credits_used: number | string;
          subtotal: number | string;
          total: number | string;
      }

      ModelApisUsageV1

      • Optionalbreakdown?: components["schemas"]["ModelApiItem"][]

        Breakdown

        Per-model usage breakdown

      • credits_used: number | string

        Credits Used

        Credits applied in dollars

      • subtotal: number | string

        Subtotal

        Subtotal cost in dollars after applying credits used

      • total: number | string

        Total

        Total cost in dollars

    • ModelApisUsageBucket: {
          end_time: string;
          results?: components["schemas"]["ModelApisUsageResult"][];
          start_time: string;
      }

      ModelApisUsageBucketV1

      One time bucket and the usage recorded in it.

      • end_time: string

        End Time Format: date-time

        End of the bucket (exclusive), UTC

      • Optionalresults?: components["schemas"]["ModelApisUsageResult"][]

        Results

        Usage totals for this bucket, ordered by total tokens descending

      • start_time: string

        Start Time Format: date-time

        Start of the bucket (inclusive), UTC

    • ModelApisUsageResponse: {
          items: components["schemas"]["ModelApisUsageBucket"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      ModelApisUsageResponseV1

      A page of Model APIs token usage: contiguous time buckets, ordered oldest first.

      • items: components["schemas"]["ModelApisUsageBucket"][]

        Items

        Items in this page.

      • pagination: components["schemas"]["PaginationResponse"]

        Pagination metadata for the page.

    • ModelApisUsageResult: {
          api_key_prefix: string | null;
          cached_input_tokens: number;
          input_tokens: number;
          model: string | null;
          output_tokens: number;
          request_count: number;
          team_id: string | null;
          uncached_input_tokens: number;
          user_id: string | null;
      }

      ModelApisUsageResultV1

      Usage totals for one combination of the requested dimensions, within one bucket.

      • api_key_prefix: string | null

        Api Key Prefix

        Prefix of the API key the usage is attributed to. Null when not grouping by api_key or when the request was not authenticated with an API key.

        null
        
      • cached_input_tokens: number

        Cached Input Tokens

        Input tokens served from the prompt cache.

      • input_tokens: number

        Input Tokens

        Total input tokens, cached and uncached combined.

      • model: string | null

        Model

        Model that served the usage. Null when not grouping by model.

        null
        
      • output_tokens: number

        Output Tokens

        Total output tokens.

      • request_count: number

        Request Count

        Total number of requests.

      • team_id: string | null

        Team Id

        Team the usage is attributed to. Null when not grouping by team or when team attribution is unavailable.

        null
        
      • uncached_input_tokens: number

        Uncached Input Tokens

        Input tokens not served from the prompt cache.

      • user_id: string | null

        User Id

        User the usage is attributed to. Null when not grouping by user or when the credential is not user-scoped.

        null
        
    • ModelAPITeamDetails: {
          added_at: string;
          cost_per_million_input_tokens: number | string | null;
          cost_per_million_output_tokens: number | string | null;
          id: string;
          last_used_at: string | null;
          rate_limits: components["schemas"]["ModelAPIRateLimit"][];
          team_id: string;
          team_name: string;
      }

      ModelAPITeamDetailsV1

      • added_at: string

        Added At Format: date-time

        When the team first added this Model API.

      • cost_per_million_input_tokens: number | string | null

        Cost Per Million Input Tokens

        Effective cost per million input tokens, in dollars. Null if unavailable.

      • cost_per_million_output_tokens: number | string | null

        Cost Per Million Output Tokens

        Effective cost per million output tokens, in dollars. Null if unavailable.

      • id: string

        Id

        Organization Shared Endpoint ID.

      • last_used_at: string | null

        Last Used At

        When the team last invoked this Model API. Null if never invoked.

      • rate_limits: components["schemas"]["ModelAPIRateLimit"][]

        Rate Limits

        Effective rate limits for this team's Model API, at most one per type, unit, and service tier.

      • team_id: string

        Team Id

        Team that has added this Model API.

      • team_name: string

        Team Name

        Name of the team that has added this Model API.

    • ModelArchiveSource: {
          deployment: components["schemas"]["DeploymentArchivePayload"];
          disable_archive_download?: boolean;
          kind: "model_archive";
          name: string;
          s3_key?: string | null;
      }

      ModelArchiveSourceV1

      Create a model from an archive previously uploaded via the credentials issued by POST /v1/prepare_model_upload.

      • deployment: components["schemas"]["DeploymentArchivePayload"]

        Deployment-level configuration for the model's first deployment.

      • Optionaldisable_archive_download?: boolean

        Disable Archive Download

        If true, the uploaded archive is not downloadable after creation. Locked at model creation; cannot be changed by subsequent deployments.

      • kind: "model_archive"

        discriminator enum property added by openapi-typescript

      • name: string

        Name

        Name of the new model.

      • Optionals3_key?: string | null

        S3 Key

        S3 key of the uploaded archive, from the credentials returned by POST /v1/prepare_model_upload. Omit for model formats that are not built from an archive (for example, BIS-LLM), where prepare issues no upload target.

    • ModelConfig: {
          rate_limits?: components["schemas"]["RateLimit"][];
          slug: string;
          usage_limits?: components["schemas"]["UsageLimit"][];
      }

      ModelConfigV1

      • Optionalrate_limits?: components["schemas"]["RateLimit"][]

        Rate Limits

      • slug: string

        Slug

        Shared endpoint slug.

      • Optionalusage_limits?: components["schemas"]["UsageLimit"][]

        Usage Limits

    • ModelPromotionSettings: {
          promotion_cleanup_strategy:
              | components["schemas"]["PromotionCleanupStrategy"]
              | null;
          ramp_up_duration_seconds: number
          | null;
          ramp_up_while_promoting: boolean | null;
          redeploy_on_promotion: boolean | null;
          rolling_deploy: boolean | null;
          rolling_deploy_config: components["schemas"]["RollingDeployConfig"] | null;
      }

      ModelPromotionSettingsV1

      Promotion settings for promoting models

      • promotion_cleanup_strategy: components["schemas"]["PromotionCleanupStrategy"] | null

        The cleanup strategy to use after a promotion completes.

        SCALE_TO_ZERO
        
        SCALE_TO_ZERO
        
      • ramp_up_duration_seconds: number | null

        Ramp Up Duration Seconds

        Deprecated: models don't support canary promotions.

        600
        
      • ramp_up_while_promoting: boolean | null

        Ramp Up While Promoting

        Deprecated: models don't support canary promotions. Use rolling_deploy.

        false
        
      • redeploy_on_promotion: boolean | null

        Redeploy On Promotion

        Whether to deploy on all promotions. Enabling this flag allows model code to safely handle environment-specific logic. When a deployment is promoted, a new deployment will be created with a copy of the image.

        false
        
        true
        
      • rolling_deploy: boolean | null

        Rolling Deploy

        Whether the environment should rely on rolling deploy orchestration.

        false
        
        true
        
      • rolling_deploy_config: components["schemas"]["RollingDeployConfig"] | null

        Rolling deploy configuration for promotions

        null
        
    • Models: { models: components["schemas"]["Model"][] }

      ModelsV1

      A list of models.

    • ModelTombstone: { deleted: boolean; id: string }

      ModelTombstoneV1

      A model tombstone.

      • deleted: boolean

        Deleted

        Whether the model was deleted

      • id: string

        Id

        Unique identifier of the model

    • Name:
          | "CREATED"
          | "DEPLOYING"
          | "RUNNING"
          | "SCALED_TO_ZERO"
          | "FAILED"
          | "STOPPED"
          | "PREEMPTED"

      LoopsDeploymentStatus

    • OneTimeAutoscalingSchedule: {
          autoscaling_settings: components["schemas"]["AutoscalingScheduleSettings"];
          cadence: "ONE_TIME";
          enabled: boolean;
          end_at: string;
          id: string;
          name: string;
          start_at: string;
      }

      OneTimeAutoscalingScheduleV1

      • autoscaling_settings: components["schemas"]["AutoscalingScheduleSettings"]

        Raw autoscaling overrides applied during the schedule window

      • cadence: "ONE_TIME"

        One-time schedule cadence (enum property replaced by openapi-typescript)

      • enabled: boolean

        Enabled

        Whether the schedule is enabled

      • end_at: string

        End At Format: date-time

        Exclusive end of the schedule window

      • id: string

        Id

        Stable unique identifier of the schedule

      • name: string

        Name

        Name of the schedule

      • start_at: string

        Start At Format: date-time

        Inclusive start of the schedule window

    • OneTimeAutoscalingScheduleUpsert: {
          autoscaling_settings: components["schemas"]["AutoscalingScheduleSettingsRequest"];
          cadence: "ONE_TIME";
          enabled: boolean;
          end_at: string;
          id?: string | null;
          name: string;
          start_at: string;
      }

      OneTimeAutoscalingScheduleUpsertV1

      A complete one-time schedule submitted for create or replacement.

      • autoscaling_settings: components["schemas"]["AutoscalingScheduleSettingsRequest"]

        Complete raw autoscaling overrides for the schedule. Every field is required; nullable fields store no schedule override and follow the current environment value.

      • cadence: "ONE_TIME"

        One-time schedule cadence (enum property replaced by openapi-typescript)

      • enabled: boolean

        Enabled

        Whether the schedule is enabled

      • end_at: string

        End At Format: date-time

        Exclusive end of the schedule window in ISO 8601 format

      • Optionalid?: string | null

        Id

        Stable schedule identifier. Omit this field to create a schedule.

      • name: string

        Name

        Name of the schedule

      • start_at: string

        Start At Format: date-time

        Inclusive start of the schedule window in ISO 8601 format. New schedules must start in the future.

    • OrderBy: { field: string; order: string }

      OrderByV1

      A request to order training jobs.

      • field: string

        Field

        The field to order by.

        created_at
        
      • order: string

        Order

        The direction to order by.

        asc
        
        desc
        
    • OrganizationInfo: {
          aws_assume_role: components["schemas"]["AwsAssumeRole"] | null;
          created_at: string;
          name: string | null;
          org_id: string;
      }

      OrganizationInfoV1

      The caller's organization.

      • aws_assume_role: components["schemas"]["AwsAssumeRole"] | null

        AWS AssumeRole trust-policy inputs; null while the method is not enabled for the organization

        null
        
      • created_at: string

        Created At Format: date-time

        Time the organization was created in ISO 8601 format

      • name: string | null

        Name

        Display name of the organization

        null
        
      • org_id: string

        Org Id

        Unique identifier for the organization

    • PaginationResponse: { cursor: string | null; has_more: boolean }

      PaginationResponseV1

      • cursor: string | null

        Cursor

        Opaque cursor to pass into the next request. Null when there is no next page.

        null
        
      • has_more: boolean

        Has More

        Whether more items exist after this page.

    • PatchInteractiveSessionRequest: {
          timeout_minutes?: number | null;
          trigger?: components["schemas"]["V1InteractiveSessionTrigger"] | null;
      }

      PatchInteractiveSessionRequestV1

      Request to patch an interactive session.

      Only fields that are provided (non-None) will be applied.
      
      • Optionaltimeout_minutes?: number | null

        Timeout Minutes

        For on_startup sessions, minutes to add to the expiration. For on_demand/on_failure sessions, minutes to add to the timeout. Use -1 for infinite timeout (bumps by 10 years).

      • Optionaltrigger?: components["schemas"]["V1InteractiveSessionTrigger"] | null

        Update when the interactive session is created. Cannot be changed if the session trigger is 'on_startup'.

    • PatchInteractiveSessionResponse: {
          interactive_session: components["schemas"]["InteractiveSession"];
          message: string;
      }

      PatchInteractiveSessionResponseV1

      Response after patching an interactive session.

      • interactive_session: components["schemas"]["InteractiveSession"]

        The updated interactive session.

      • message: string

        Message

        Human-readable summary of what was updated.

    • PatchLoopsUserConfigRequest: {
          sampler_accelerator_priority?: string[] | null;
          trainer_accelerator_priority?: string[] | null;
      }

      PatchLoopsUserConfigRequestV1

      Request body for PATCH /v1/loops/user_config.

      Follows JSON Merge Patch (RFC 7396) semantics per field: omit the field
      to leave it unchanged, send ``null`` to clear and inherit the org-level
      allowlist, send a list to set the allowlist. Empty lists are rejected
      because the storage layer normalizes ``null`` and ``[]`` identically, so
      accepting both would create two ways to spell the same intent.
      
      • Optionalsampler_accelerator_priority?: string[] | null

        Sampler Accelerator Priority

        Ordered list of GPU types for sampler deployments, highest priority first. Send a list to set; send null to clear (inherit org allowlist); omit to leave unchanged. Empty list is rejected.

        [
        "H100",
        "H200"
        ]
      • Optionaltrainer_accelerator_priority?: string[] | null

        Trainer Accelerator Priority

        Ordered list of GPU types for trainer deployments, highest priority first. Send a list to set; send null to clear (inherit org allowlist); omit to leave unchanged. Empty list is rejected.

        [
        "H100",
        "H200"
        ]
    • PatchLoopsUserConfigResponse: { user_config: components["schemas"]["LoopsUserConfig"] }

      PatchLoopsUserConfigResponseV1

      Response for PATCH /v1/loops/user_config.

      • user_config: components["schemas"]["LoopsUserConfig"]

        The updated Loops user config.

    • PatchTeamTrainingGpuCapacityRequest: { gpu_type: string; max_gpus: number; team_id: string }

      PatchTeamTrainingGpuCapacityRequestV1

      A request to set the GPU capacity ceiling for a (team, gpu_type) pair.

      Creates the limit if one doesn't already exist for this team and GPU type,
      otherwise updates it in place.
      
      • gpu_type: string

        Gpu Type

        GPU type identifier (e.g. H100, A100-40GB)

      • max_gpus: number

        Max Gpus

        Max concurrent GPUs of this type the team may use

        8
        
        16
        
        32
        
      • team_id: string

        Team Id

        Team identifier

    • PatchTeamTrainingGpuCapacityResponse: { team_gpu_capacity: components["schemas"]["TeamTrainingGpuCapacityItem"] }

      PatchTeamTrainingGpuCapacityResponseV1

      Response for setting a team's GPU capacity ceiling.

      • team_gpu_capacity: components["schemas"]["TeamTrainingGpuCapacityItem"]

        The updated per-team GPU capacity limit

    • PatchVolumeRequest: { expected_sequence?: number | null; expires_at?: string | null }

      PatchVolumeRequestV1

      • Optionalexpected_sequence?: number | null

        Expected Sequence

        Revision the volume is expected to be at. When set, the update fails with a conflict if the volume has changed since. Take the value from a volume's sequence, or from volume_sequence.

      • Optionalexpires_at?: string | null

        Expires At

        Time at which the volume expires, in ISO 8601 format, with a UTC offset. It must be in the future and at most ten years ahead. Set it to null to clear the expiration time. A body that sets no field is rejected. When the volume expires, all live versions are deleted, all tags are removed, and the volume disappears from listings. Clearing the expiration time afterward does not restore deleted versions. Each deleted version can be restored until its delete_after time. Setting or clearing the expiration time requires the same permission as deleting the volume.

        2030-01-01T00:00:00Z
        
    • PatchVolumeResponse: {
          expires_at: string | null;
          namespace: string;
          volume: string;
          volume_sequence: number;
      }

      PatchVolumeResponseV1

      • expires_at: string | null

        Expires At

        Volume expiration time in ISO 8601 format. Null when no expiration time is set.

      • namespace: string

        Namespace

        Namespace the volume belongs to, in lowercase.

      • volume: string

        Volume

        Name of the volume, in lowercase.

      • volume_sequence: number

        Volume Sequence

        Revision of the volume after the update.

    • PendingJobAheadAtSubmit: {
          instance_type_name: string;
          priority: number;
          requested_gpus: number;
          submitted_at: string;
          training_job_id: string;
          training_job_name: string | null;
      }

      PendingJobAheadAtSubmitV1

      A PENDING job in the same (org, gpu_type) pool that was ahead of the target in dequeue FIFO order at submitted_at — higher priority, or same priority and earlier submission.

      • instance_type_name: string

        Instance Type Name

        Instance type of the other job

      • priority: number

        Priority

        Effective priority (NULL coalesced to 0)

      • requested_gpus: number

        Requested Gpus

        gpu_count * effective_node_count

      • submitted_at: string

        Submitted At Format: date-time

        The other job's submission time

      • training_job_id: string

        Training Job Id

        Hashid of the other training job

      • training_job_name: string | null

        Training Job Name

        Other job's name

        null
        
    • PrepareModelUploadRequest: {
          deployment: components["schemas"]["DeploymentArchivePayload"];
          dry_run?: boolean;
          model_id?: string | null;
          name?: string | null;
          team_id?: string | null;
      }

      PrepareModelUploadRequestV1

      Body for POST /v1/prepare_model_upload.

      Validates the same payload the commit endpoint will validate, and on
      `dry_run=false` issues STS upload credentials. Exactly one of `name` or
      `model_id` is required: `name` validates the new-model path (`POST
      /v1/models`); `model_id` validates the add-deployment path (`POST
      /v1/models/{model_id}/deployments`).
      
      • deployment: components["schemas"]["DeploymentArchivePayload"]

        Deployment-level payload, identical to the payload sent at commit.

      • Optionaldry_run?: boolean

        Dry Run

        If true, validate the payload only and do not issue upload credentials. The response sets creds, s3_bucket, and s3_key to null.

      • Optionalmodel_id?: string | null

        Model Id

        Set to validate an add-deployment push to an existing model. Exactly one of name or model_id is required.

      • Optionalname?: string | null

        Name

        Set to validate a new-model push. Exactly one of name or model_id is required.

      • Optionalteam_id?: string | null

        Team Id

        Team the new model will belong to. Only valid when name is set; defaults to the organization's default team when omitted. Must not be set when model_id is set (the existing model already has a team).

    • PrepareModelUploadResponse: {
          creds: components["schemas"]["AWSCredentials"] | null;
          s3_bucket: string | null;
          s3_key: string | null;
          s3_region: string | null;
      }

      PrepareModelUploadResponseV1

      Response from POST /v1/prepare_model_upload.

      Returns STS upload credentials when the push requires an archive upload. All
      four fields (`creds`, `s3_bucket`, `s3_key`, `s3_region`) are `null` when no
      upload is needed: either `dry_run=true` (validation only) or a model format
      that is not built from an uploaded archive (for example, BIS-LLM, which is
      built from its config alone).
      
      • creds: components["schemas"]["AWSCredentials"] | null

        STS credentials to upload the model archive. Null when no archive upload is required.

        null
        
      • s3_bucket: string | null

        S3 Bucket

        S3 bucket the credentials are scoped to. Null when no archive upload is required.

        null
        
      • s3_key: string | null

        S3 Key

        S3 key the credentials are scoped to. Pass this to POST /v1/models (in the model_archive source) once the upload completes. Null when no archive upload is required.

        null
        
      • s3_region: string | null

        S3 Region

        AWS region the S3 bucket resides in. Null when no archive upload is required.

        null
        
    • PromoteRequest: {
          environment_settings_update?:
              | components["schemas"]["PromotionEnvironmentSettingsUpdate"]
              | null;
          preserve_env_instance_type?: boolean;
          promotion_settings_override?: | components["schemas"]["UpdatePromotionSettings"]
          | null;
          scale_down_previous_production?: boolean;
      }

      PromoteRequestV1

      A request to promote a deployment to production.

      • Optionalenvironment_settings_update?: components["schemas"]["PromotionEnvironmentSettingsUpdate"] | null

        Changes to the environment's settings. Omitted fields are unchanged. The promoted deployment uses the environment's current settings with these changes applied, and the environment keeps the result when the promotion completes.

        {
        * "autoscaling_settings": {
        * "max_replica": 4,
        * "min_replica": 2
        * }
        * }
      • Optionalpreserve_env_instance_type?: boolean

        Preserve Env Instance Type

        Whether to use the promoting deployment's instance type or preserve target environment's instance type

        true
        
      • Optionalpromotion_settings_override?: components["schemas"]["UpdatePromotionSettings"] | null

        Promotion settings for this promotion only. Omitted fields keep the environment's values, and the environment's promotion settings are unchanged.

        {
        * "rolling_deploy_config": {
        * "max_surge_percent": 50
        * }
        * }
      • Optionalscale_down_previous_production?: boolean

        Scale Down Previous Production

        Whether to scale down the previous production deployment after promoting

        true
        
    • PromoteToChainEnvironmentRequest: { deployment_id: string; scale_down_previous_deployment?: boolean }

      PromoteToChainEnvironmentRequestV1

      A request to promote a deployment to a environment.

      • deployment_id: string

        Deployment Id

        The id of the chain deployment to promote

      • Optionalscale_down_previous_deployment?: boolean

        Scale Down Previous Deployment

        Whether to scale down the previous deployment after promoting

        true
        
    • PromoteToEnvironmentRequest: {
          deployment_id: string;
          environment_settings_update?:
              | components["schemas"]["PromotionEnvironmentSettingsUpdate"]
              | null;
          preserve_env_instance_type?: boolean;
          promotion_settings_override?: | components["schemas"]["UpdatePromotionSettings"]
          | null;
          scale_down_previous_deployment?: boolean;
      }

      PromoteToEnvironmentRequestV1

      A request to promote a deployment to a environment.

      • deployment_id: string

        Deployment Id

        The id of the deployment to promote

      • Optionalenvironment_settings_update?: components["schemas"]["PromotionEnvironmentSettingsUpdate"] | null

        Changes to the environment's settings. Omitted fields are unchanged. The promoted deployment uses the environment's current settings with these changes applied, and the environment keeps the result when the promotion completes.

        {
        * "autoscaling_settings": {
        * "max_replica": 4,
        * "min_replica": 2
        * }
        * }
      • Optionalpreserve_env_instance_type?: boolean

        Preserve Env Instance Type

        Whether to use the promoting deployment's instance type or preserve target environment's instance type

        true
        
      • Optionalpromotion_settings_override?: components["schemas"]["UpdatePromotionSettings"] | null

        Promotion settings for this promotion only. Omitted fields keep the environment's values, and the environment's promotion settings are unchanged.

        {
        * "rolling_deploy_config": {
        * "max_surge_percent": 50
        * }
        * }
      • Optionalscale_down_previous_deployment?: boolean

        Scale Down Previous Deployment

        Whether to scale down the previous deployment after promoting

        true
        
    • PromotionCleanupStrategy: "KEEP" | "SCALE_TO_ZERO" | "DEACTIVATE"

      PromotionCleanupStrategyV1

      The promotion cleanup strategy.

    • PromotionEnvironmentSettingsUpdate: {
          autoscaling_schedule_settings?:
              | components["schemas"]["UpdateAutoscalingScheduleSettings"]
              | null;
          autoscaling_settings?: | components["schemas"]["UpdateAutoscalingSettings"]
          | null;
          instance_type_id?: string
          | null;
          promotion_settings?:
              | components["schemas"]["UpdatePromotionSettings"]
              | null;
          region?: string
          | null;
          request_backpressure_settings?:
              | components["schemas"]["UpdateRequestBackpressureSettings"]
              | null;
      }

      PromotionEnvironmentSettingsUpdateV1

      Changes to an environment's settings, applied to a promoted deployment.

      • Optionalautoscaling_schedule_settings?: components["schemas"]["UpdateAutoscalingScheduleSettings"] | null

        Autoscaling schedule changes for the environment, applied when the promotion completes.

      • Optionalautoscaling_settings?: components["schemas"]["UpdateAutoscalingSettings"] | null

        Autoscaling settings for the promoted deployment.

      • Optionalinstance_type_id?: string | null

        Instance Type Id

        Instance type for the promoted deployment, from GET /v1/instance_types. A different instance type than the deployment's creates a new deployment on it. Cannot be set with preserve_env_instance_type: true.

      • Optionalpromotion_settings?: components["schemas"]["UpdatePromotionSettings"] | null

        Promotion settings for the environment, also used for this promotion.

      • Optionalregion?: string | null

        Region

        Region for the promoted deployment, from GET /v1/teams/{team_id}/regions. Use an empty string for Global. If omitted, the deployment keeps its region. Regional environments only accept Global deployments.

      • Optionalrequest_backpressure_settings?: components["schemas"]["UpdateRequestBackpressureSettings"] | null

        Request backpressure settings for the promoted deployment. A null policy clears it.

    • PromotionSettings: {
          promotion_cleanup_strategy:
              | components["schemas"]["PromotionCleanupStrategy"]
              | null;
          ramp_up_duration_seconds: number
          | null;
          ramp_up_while_promoting: boolean | null;
          redeploy_on_promotion: boolean | null;
          rolling_deploy: boolean | null;
          rolling_deploy_config: components["schemas"]["RollingDeployConfig"] | null;
      }

      PromotionSettingsV1

      Promotion settings for promoting chains and oracles

      • promotion_cleanup_strategy: components["schemas"]["PromotionCleanupStrategy"] | null

        The cleanup strategy to use after a promotion completes.

        SCALE_TO_ZERO
        
        SCALE_TO_ZERO
        
      • ramp_up_duration_seconds: number | null

        Ramp Up Duration Seconds

        Duration of the ramp up in seconds

        600
        
        600
        
      • ramp_up_while_promoting: boolean | null

        Ramp Up While Promoting

        Whether to ramp up traffic while promoting

        false
        
        true
        
      • redeploy_on_promotion: boolean | null

        Redeploy On Promotion

        Whether to deploy on all promotions. Enabling this flag allows model code to safely handle environment-specific logic. When a deployment is promoted, a new deployment will be created with a copy of the image.

        false
        
        true
        
      • rolling_deploy: boolean | null

        Rolling Deploy

        Whether the environment should rely on rolling deploy orchestration.

        false
        
        true
        
      • rolling_deploy_config: components["schemas"]["RollingDeployConfig"] | null

        Rolling deploy configuration for promotions

        null
        
    • PushImageParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • PushSandboxImageRequest: {
          docker_config?: string;
          image?: string;
          memory?: number;
          name: string;
          volume?: number;
      }

      Push a sandbox image from a source archive or an existing registry image.

      {
      * "name": "base-image",
      * "image": "docker.io/b10/base-image:latest",
      * "docker_config": "{\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"YjEwLXJldmlldzpkZW1vLW5vdC1hLXZhbGlkLXJlZ2lzdHJ5LXRva2Vu\"}}}",
      * "memory": 16384,
      * "volume": 32768
      * }
      • Optionaldocker_config?: string

        Optional serialized registry authentication configuration for importing a private image. Used only when image is supplied; never returned.

        {"auths":{"https://index.docker.io/v1/":{"auth":"YjEwLXJldmlldzpkZW1vLW5vdC1hLXZhbGlkLXJlZ2lzdHJ5LXRva2Vu"}}}
        
      • Optionalimage?: string

        Optional source registry image reference including a registry hostname. When omitted, the response provides an archive upload URL. The uploaded ZIP archive must not exceed 5 GB.

        docker.io/b10/base-image:latest
        
      • Optionalmemory?: number

        Memory in megabytes of the temporary environment that builds the source archive or imports the registry image. Omit it to use the default size. Does not change the memory of sandboxes created from the image.

        16384
        
      • name: string

        Target image repository name. Reusing a name pushes a new version to the existing repository.

        base-image
        
      • Optionalvolume?: number

        Scratch disk in megabytes attached to the temporary build environment for intermediate layers. Set it for large images that run out of space while building or importing. 0 builds in memory, which is the default. Teams with HIPAA compliance enabled accept only 0.

        32768
        
    • PushSandboxImageResponse: {
          image?: string;
          name: string;
          status: components["schemas"]["SandboxImageStatus"];
          upload_headers?: { [key: string]: string };
          upload_url?: string;
      }

      Accepted image push. Acceptance does not imply readiness; poll GET /sandboxes/images/{image_name} until status is BUILT or FAILED.

      {
      * "name": "base-image",
      * "status": "BUILDING",
      * "image": "b10/base-image:latest"
      * }
      • Optionalimage?: string

        Registered image reference including its tag, when available. Tags are assigned by the service; GET /sandboxes/images/{image_name}/tags returns the available tags once processing completes.

        b10/base-image:latest
        
      • name: string

        Target image repository name.

        base-image
        
      • status: components["schemas"]["SandboxImageStatus"]

        Image processing status. Only BUILT images are ready to use.

        BUILDING
        
      • Optionalupload_headers?: { [key: string]: string }

        Headers the source archive upload must send, in addition to Content-Type, with exactly these names and values. Present only with upload_url, when memory or volume was set. upload_url is signed for these headers, so storage rejects an upload that omits or changes them. Treat names and values as opaque.

      • Optionalupload_url?: string

        Format: uri

        Temporary signed URL for uploading the source ZIP archive with HTTP PUT. Present only when no source image was supplied. The uploaded ZIP archive must not exceed 5 GB. Uploading starts asynchronous processing. This storage upload is separate from the API endpoints.

        https://uploads.b10.run/images/base-image/20260916212658/source.zip?expires=2026-09-16T22%3A26%3A58Z&signature=demo-not-a-valid-upload-signature
        
    • QueueEvent: {
          created: string;
          event_message: string | null;
          exit_code: number | null;
          status: string;
          training_job_id: string;
          training_job_name: string | null;
      }

      QueueEventV1

      A single TrainingJobStatus row inside the queue-context window.

      • created: string

        Created Format: date-time

        When the status row was inserted

      • event_message: string | null

        Event Message

        Human-readable event message from the status metadata

        null
        
      • exit_code: number | null

        Exit Code

        Exit code from the status metadata, if any

        null
        
      • status: string

        Status

        TrainingJobStatus.Name value

      • training_job_id: string

        Training Job Id

        Hashid of the training job this event is for

      • training_job_name: string | null

        Training Job Name

        Job name

        null
        
    • RateLimit: {
          threshold: number;
          type: components["schemas"]["LimitType"];
          unit: components["schemas"]["RateLimitUnit"];
      }

      RateLimitV1

      • threshold: number

        Threshold

        The threshold for the rate limit

        1000
        
        50000
        
      • type: components["schemas"]["LimitType"]

        The type of the rate limit

        TOKEN
        
        REQUEST
        
      • unit: components["schemas"]["RateLimitUnit"]

        The unit of the rate limit

        SECOND
        
        MINUTE
        
    • RateLimitUnit: "SECOND" | "MINUTE"

      RateLimitUnitV1

    • RecreateTrainingJobResponse: { training_job: components["schemas"]["TrainingJob"] }

      RecreateTrainingJobResponseV1

      A response that sends the new training job

    • Region: { display_name: string; slug: string }

      RegionV1

      A region that deployments can be placed in.

      • display_name: string

        Display Name

        Human-readable name of the region.

        United States
        
      • slug: string

        Slug

        Stable identifier for the region, used when selecting a deployment region.

        us
        
    • Regions: { regions: components["schemas"]["Region"][] }

      RegionsV1

      A list of regions.

    • RegisterAPIKeyRequest: { key: string; name?: string | null }

      RegisterAPIKeyRequestV1

      Request to register a caller-supplied API key against an existing FederatedGroup.

      • key: string

        Key

        Value of the API key to register

        my-secure-api-key-value
        
      • Optionalname?: string | null

        Name

        Optional name for the Model API key

        my-model-api-key
        
    • RegisterAPIKeyResponse: { ok: boolean }

      RegisterAPIKeyResponseV1

      • ok: boolean

        Ok

        Whether the registration was successful

    • RegistrySecretDockerAuth: { secret_ref: components["schemas"]["SecretReference"] }

      RegistrySecretDockerAuthV1

      Authentication via a Baseten secret for any Docker registry (Docker Hub, GHCR, NGC, etc.). The referenced secret must contain credentials in the format 'username:password'. For Docker Hub, set registry to 'https://index.docker.io/v1/'. For GHCR, use 'ghcr.io'.

      • secret_ref: components["schemas"]["SecretReference"]

        Reference to a Baseten secret containing credentials in the format 'username:password'

    • RequestBackpressurePolicy: "QUEUE_ON_FULL" | "REJECT_ON_FULL"

      RequestBackpressurePolicyV1

    • RequestBackpressureSettings: { policy: components["schemas"]["RequestBackpressurePolicy"] | null }

      RequestBackpressureSettingsV1

      Request backpressure settings for a deployment or environment.

      • policy: components["schemas"]["RequestBackpressurePolicy"] | null

        Backpressure policy. Null when no policy is set.

        null
        
    • ResourceKind:
          | "LOOPS_RUN"
          | "LOOPS_SAMPLER"
          | "LOOPS_TRAINER"
          | "MODEL_DEPLOYMENT"
          | "TRAINING_JOB"
          | "CHAINLET"

      ResourceKind

    • ResponseTimeDatapoint: {
          p50: number | null;
          p95: number | null;
          p99: number | null;
          timestamp: string;
      }

      ResponseTimeDatapointV1

      Latency quantile datapoint. Values are reported in milliseconds.

      • p50: number | null

        P50

        50th percentile request latency (milliseconds).

        null
        
      • p95: number | null

        P95

        95th percentile request latency (milliseconds).

        null
        
      • p99: number | null

        P99

        99th percentile request latency (milliseconds).

        null
        
      • timestamp: string

        Timestamp Format: date-time

        ISO 8601 timestamp.

    • RestoreVolumeVersionRequest: { expected_sequence?: number | null }

      RestoreVolumeVersionRequestV1

      • Optionalexpected_sequence?: number | null

        Expected Sequence

        Revision the volume is expected to be at. When set, the restore fails with a conflict if the volume has changed since. Take the value from volume_sequence.

    • RestoreVolumeVersionResponse: {
          digest: string;
          lifecycle: string;
          namespace: string;
          version_ref: string;
          volume: string;
          volume_sequence: number;
      }

      RestoreVolumeVersionResponseV1

      • digest: string

        Digest

        Content digest of the restored version, as b3:<hex>.

      • lifecycle: string

        Lifecycle

        Lifecycle state of the version after the restore.

      • namespace: string

        Namespace

        Namespace the volume belongs to, in lowercase.

      • version_ref: string

        Version Ref

        Full address of the restored version, as bdn:<namespace>/<volume>@<digest>.

      • volume: string

        Volume

        Name of the volume, in lowercase.

      • volume_sequence: number

        Volume Sequence

        Revision of the volume after the restore.

    • RetryDeploymentResponse: {
          deployment: components["schemas"]["Deployment"];
          reason: string | null;
          retried: boolean;
      }

      RetryDeploymentResponseV1

      The response to a request to retry a deployment.

      • deployment: components["schemas"]["Deployment"]

        The deployment that was retried

      • reason: string | null

        Reason

        Explanation of the result. Provided when retried is false to explain why retry was not possible.

        null
        
      • retried: boolean

        Retried

        Whether the retry was successfully initiated

    • RollingDeployConfig: {
          max_surge_percent: number;
          max_unavailable_percent: number;
          replica_overhead_percent: number;
          rolling_deploy_strategy: components["schemas"]["RollingDeployStrategy"];
          stabilization_time_seconds: number;
      }

      RollingDeployConfigV1

      Rolling deploy config for promoting chains and oracles

      • max_surge_percent: number

        Max Surge Percent

        The maximum surge percentage for rolling deploys.

        25
        
        25
        
      • max_unavailable_percent: number

        Max Unavailable Percent

        The maximum unavailable percentage for rolling deploys.

        0
        
        10
        
      • replica_overhead_percent: number

        Replica Overhead Percent

        The replica overhead percentage for rolling deploys.

        0
        
        0
        
      • rolling_deploy_strategy: components["schemas"]["RollingDeployStrategy"]

        The rolling deploy strategy to use for promotions.

        REPLICA
        
        REPLICA
        
      • stabilization_time_seconds: number

        Stabilization Time Seconds

        The stabilization time in seconds for rolling deploys.

        0
        
        300
        
    • RollingDeployStrategy: "REPLICA"

      RollingDeployStrategyV1

      The rolling deploy strategy.

    • RuntimeOidc: { byok?: { [key: string]: unknown } | null; enabled?: boolean | null }

      RuntimeOidcV1

      • Optionalbyok?: { [key: string]: unknown } | null

        Byok

        BYOK configuration for envelope-encrypted BDN weights in BIS-LLM deployments. Requires runtime.oidc.enabled to be true.

      • Optionalenabled?: boolean | null

        Enabled

        If true, mounts an OIDC bearer token for the deployment to access at runtime. If unset, the platform default applies.

    • Sandbox: components["schemas"]["SandboxConfiguration"] & {
          created_at: string;
          created_by?: string;
          expires_in?: number;
          last_used_at?: string;
          name: string;
          status: components["schemas"]["SandboxStatus"];
          updated_at?: string;
          updated_by?: string;
          url: string;
      }

      Sandbox resource with configuration and server-managed fields at the root. No metadata, spec, or runtime wrapper.

      {
      * "lifecycle": {
      * "expiration_policies": [
      * {
      * "action": "DELETE",
      * "type": "TTL_IDLE",
      * "value": "24h"
      * },
      * {
      * "action": "DELETE",
      * "type": "TTL_MAX_AGE",
      * "value": "7d"
      * },
      * {
      * "action": "DELETE",
      * "type": "DATE",
      * "value": "2026-09-23T21:26:58Z"
      * }
      * ],
      * "terminated_retention": "24h"
      * },
      * "region": "us-pdx-1",
      * "envs": [
      * {
      * "name": "NODE_ENV",
      * "secret": false,
      * "value": "production"
      * },
      * {
      * "name": "PORT",
      * "secret": false,
      * "value": "3000"
      * }
      * ],
      * "image": "baseten/base-image:latest",
      * "memory": 4096,
      * "cpu": 2,
      * "ports": [
      * {
      * "name": "http",
      * "protocol": "HTTP",
      * "target": 3000
      * }
      * ],
      * "external_id": "api-review-20260916-001",
      * "labels": {
      * "env": "development",
      * "project": "api-review",
      * "team": "engineering"
      * },
      * "name": "baseten-api-review-0916",
      * "url": "https://sbx-baseten-api-review-0916-esb1qo.us-pdx-1.b10.run",
      * "status": "DEPLOYED",
      * "created_at": "2026-09-16T21:26:58.545765901Z",
      * "updated_at": "2026-09-16T21:31:13Z",
      * "created_by": "sandbox-automation",
      * "updated_by": "sandbox-automation",
      * "last_used_at": "2026-09-16T21:31:13Z",
      * "expires_in": 86400
      * }
    • SandboxApiPagination: { cursor?: string; has_more: boolean }

      Cursor pagination information. The cursor is present only when another page is available.

      {
      * "has_more": true,
      * "cursor": "eyJ2IjoxLCJsYXN0X2tleSI6ImJhc2V0ZW4tYXBpLXJldmlldy0wOTE2Iiwic29ydCI6ImRlc2MifQ"
      * }
      • Optionalcursor?: string

        Opaque cursor to pass to the next list request. Keep the same filters.

        eyJ2IjoxLCJsYXN0X2tleSI6ImJhc2V0ZW4tYXBpLXJldmlldy0wOTE2Iiwic29ydCI6ImRlc2MifQ
        
      • has_more: boolean

        Whether another page is available.

        true
        
    • SandboxConfiguration: {
          cpu?: number;
          envs?: components["schemas"]["SandboxEnv"][];
          external_id?: string;
          filesystem?: components["schemas"]["SandboxFilesystem"];
          image?: string;
          labels?: components["schemas"]["SandboxMetadataLabels"];
          lifecycle?: components["schemas"]["SandboxLifecycle"];
          memory?: number;
          ports?: components["schemas"]["SandboxPorts"];
          region?: string;
          volumes?: components["schemas"]["SandboxVolumeAttachment"][];
      }

      Writable sandbox configuration. Fields are serialized at the root of the request or resource.

      {
      * "lifecycle": {
      * "expiration_policies": [
      * {
      * "action": "DELETE",
      * "type": "TTL_IDLE",
      * "value": "24h"
      * },
      * {
      * "action": "DELETE",
      * "type": "TTL_MAX_AGE",
      * "value": "7d"
      * },
      * {
      * "action": "DELETE",
      * "type": "DATE",
      * "value": "2026-09-23T21:26:58Z"
      * }
      * ],
      * "terminated_retention": "24h"
      * },
      * "region": "us-pdx-1",
      * "envs": [
      * {
      * "name": "NODE_ENV",
      * "secret": false,
      * "value": "production"
      * },
      * {
      * "name": "PORT",
      * "secret": false,
      * "value": "3000"
      * }
      * ],
      * "image": "baseten/base-image:latest",
      * "memory": 4096,
      * "cpu": 2,
      * "ports": [
      * {
      * "name": "http",
      * "protocol": "HTTP",
      * "target": 3000
      * }
      * ],
      * "external_id": "api-review-20260916-001",
      * "labels": {
      * "env": "development",
      * "project": "api-review",
      * "team": "engineering"
      * }
      * }
      • Optionalcpu?: number

        Number of vCPUs the sandbox runs with. Always returned, including for sandboxes created without cpu, whose CPU allocation was derived from memory. Set at creation only.

        2
        
      • Optionalenvs?: components["schemas"]["SandboxEnv"][]

        Environment variables injected into the sandbox.

        [
        {
        "name": "NODE_ENV",
        "secret": false,
        "value": "production"
        },
        {
        "name": "PORT",
        "secret": false,
        "value": "3000"
        }
        ]
      • Optionalexternal_id?: string

        Caller-owned identifier for external lookups. Max 64 chars, alphanumeric + dash.

        api-review-20260916-001
        
      • Optionalfilesystem?: components["schemas"]["SandboxFilesystem"]

        Filesystem configuration. Set at creation only.

        {
        * "max_memory_usage": "80%"
        * }
      • Optionalimage?: string

        Image reference including its tag. Built-in image references are returned in the canonical baseten/ namespace. Use baseten/base-image:latest to get started with the built-in sandbox execution API. This image is available directly without building, pushing, or listing images through GET /v1/sandboxes/images.

        baseten/base-image:latest
        
      • Optionallabels?: components["schemas"]["SandboxMetadataLabels"]

        Key-value pairs for organizing and filtering resources. Labels can be used to categorize resources by environment, project, team, or any custom taxonomy.

        {
        * "env": "development",
        * "project": "api-review",
        * "team": "engineering"
        * }
      • Optionallifecycle?: components["schemas"]["SandboxLifecycle"]

        Lifecycle configuration controlling automatic sandbox deletion based on idle time, max age, or specific dates

        {
        * "expiration_policies": [
        * {
        * "action": "DELETE",
        * "type": "TTL_IDLE",
        * "value": "24h"
        * },
        * {
        * "action": "DELETE",
        * "type": "TTL_MAX_AGE",
        * "value": "7d"
        * },
        * {
        * "action": "DELETE",
        * "type": "DATE",
        * "value": "2026-09-23T21:26:58Z"
        * }
        * ],
        * "terminated_retention": "24h"
        * }
      • Optionalmemory?: number

        Memory allocation in megabytes. Must be between 1024 and 262144. When cpu is not set at creation, memory also determines the CPU allocation (by default 2048 MB = 1 vCPU, 4096 MB = 2, 8192 MB = 4, 16384 MB = 6, 32768 MB = 8, 65536 MB = 16, 131072 MB or more = 32).

        4096
        
      • Optionalports?: components["schemas"]["SandboxPorts"]

        Set of ports for a resource

        [
        {
        "name": "http",
        "protocol": "HTTP",
        "target": 3000
        }
        ]
      • Optionalregion?: string

        Region where the sandbox runs (for example us-pdx-1 or eu-lon-1). When omitted at creation, the default sandbox region is used.

        us-pdx-1
        
      • Optionalvolumes?: components["schemas"]["SandboxVolumeAttachment"][]

        Volumes mounted in the sandbox. Set at creation only.

    • SandboxDateExpirationPolicy: { action: "DELETE"; type: "DATE"; value: string }

      Delete at the specified absolute timestamp.

      • action: "DELETE"
      • type: "DATE"

        discriminator enum property added by openapi-typescript

      • value: string

        Format: date-time

        2026-09-23T21:26:58Z
        
    • SandboxDuration: string

      Duration using seconds, minutes, hours, or composite durations such as 1h30m. Whole days and weeks are also supported, for example 7d or 2w, where d is 24h and w is 7 × 24h. Days and weeks cannot be combined with other units, so 1d12h is rejected; use 36h instead. Values are returned exactly as sent, without normalization.

      24h
      
    • SandboxEnv: { name?: string; secret?: boolean; value?: string }

      Environment variable with name and value

      {
      * "name": "NODE_ENV",
      * "secret": false,
      * "value": "production"
      * }
      • Optionalname?: string

        Name of the environment variable. Must start with a letter or underscore and contain only letters, digits and underscores (^[A-Za-z_][A-Za-z0-9_]*$); create and update reject other names.

        NODE_ENV
        
      • Optionalsecret?: boolean

        Whether the value is a secret. Defaults to true; secret values are returned as "****". Set false explicitly to return the original value.

        false
        
      • Optionalvalue?: string

        Value of the environment variable

        production
        
    • SandboxExpirationPolicy:
          | components["schemas"]["SandboxTTLIdleExpirationPolicy"]
          | components["schemas"]["SandboxTTLMaxAgeExpirationPolicy"]
          | components["schemas"]["SandboxDateExpirationPolicy"]

      Expiration policy. The type determines whether value is a duration or an absolute timestamp.

    • SandboxFilesystem: { max_memory_usage?: string | number }

      Filesystem configuration of a sandbox. The sandbox filesystem is held in memory, so files written count against the sandbox memory.

      • Optionalmax_memory_usage?: string | number

        Maximum memory the filesystem can use, as a percentage of the sandbox memory (e.g. "80%"), a size (e.g. "2Gi") or a number of Mi (e.g. 2048). Defaults to 50%.

        80%
        
    • SandboxImage: {
          created_at?: string;
          last_deployed_at?: string;
          name: string;
          size?: number;
          status: components["schemas"]["SandboxImageStatus"];
          tag_count?: number;
          updated_at?: string;
      }

      Sandbox image repository summary. Fetch tags through GET /sandboxes/images/{image_name}/tags.

      {
      * "name": "base-image",
      * "status": "BUILT",
      * "created_at": "2026-09-15T21:20:00Z",
      * "updated_at": "2026-09-16T21:25:00Z",
      * "last_deployed_at": "2026-09-16T21:26:58.545765901Z",
      * "size": 260046848,
      * "tag_count": 2
      * }
      • Optional Readonlycreated_at?: string

        Format: date-time

        Time the image was created.

        2026-09-15T21:20:00Z
        
      • Optional Readonlylast_deployed_at?: string

        Format: date-time

        Most recent deployment time across all tags, if deployed.

        2026-09-16T21:26:58.545765901Z
        
      • name: string

        Stable repository name supplied when pushing the image.

        base-image
        
      • Optional Readonlysize?: number

        Format: int64

        Total repository size in bytes.

        260046848
        
      • status: components["schemas"]["SandboxImageStatus"]

        Image processing status. Only BUILT images are ready to use.

        BUILT
        
      • Optional Readonlytag_count?: number

        Format: int64

        Number of image versions in the repository.

        2
        
      • Optional Readonlyupdated_at?: string

        Format: date-time

        Time the image was last updated.

        2026-09-16T21:25:00Z
        
    • SandboxImageBuildLog: { message: string; severity: number; timestamp: string }
      • message: string
      • severity: number

        Numeric OpenTelemetry severity level.

      • timestamp: string

        Format: date-time

    • SandboxImageBuildLogsResponse: { logs: components["schemas"]["SandboxImageBuildLog"][]; total_count: number }
      • logs: components["schemas"]["SandboxImageBuildLog"][]
      • total_count: number

        Format: int64

        Number of matching log entries in the requested time range.

    • SandboxImageStatus: "UPLOADING" | "BUILDING" | "BUILT" | "FAILED"

      Image processing status. Only BUILT images are ready to use.

      BUILT
      @enum {string}
    • SandboxImageTag: { created_at?: string; name: string; size?: number; updated_at?: string }

      A tag identifying a version of a sandbox image.

      {
      * "name": "latest",
      * "created_at": "2026-09-16T21:20:00Z",
      * "updated_at": "2026-09-16T21:25:00Z",
      * "size": 134217728
      * }
      • Optional Readonlycreated_at?: string

        Format: date-time

        Time the tag was created.

        2026-09-16T21:20:00Z
        
      • name: string

        Image tag name.

        latest
        
      • Optional Readonlysize?: number

        Format: int64

        Image size in bytes.

        134217728
        
      • Optional Readonlyupdated_at?: string

        Format: date-time

        Time the tag was last updated.

        2026-09-16T21:25:00Z
        
    • SandboxLibraryImage: {
          categories?: string[];
          coming_soon?: boolean;
          creation_options?: components["schemas"]["SandboxLibraryImageCreationOptions"];
          description?: string;
          display_name?: string;
          enterprise?: boolean;
          hidden?: boolean;
          icon?: string;
          icon_dark?: string;
          icon_light?: string;
          image: string;
          long_description?: string;
          memory?: number;
          name: string;
          ports?: components["schemas"]["SandboxPorts"];
          tags?: string[];
          url?: string;
      }

      Built-in sandbox image usable directly as a sandbox image.

      • Optionalcategories?: string[]

        Categories of the image.

      • Optionalcoming_soon?: boolean

        Whether the image is not yet available. Always false in listings.

        false
        
      • Optionalcreation_options?: components["schemas"]["SandboxLibraryImageCreationOptions"]
      • Optionaldescription?: string

        Short description.

        A minimal sandbox environment with the sandbox execution API.
        
      • Optionaldisplay_name?: string

        Human-readable name.

        Base Image
        
      • Optionalenterprise?: boolean

        Whether the image requires an enterprise plan.

        false
        
      • Optionalhidden?: boolean

        Whether the image is hidden. Always false in listings.

        false
        
      • Optionalicon?: string

        Icon URL.

      • Optionalicon_dark?: string

        Dark-mode icon URL.

      • Optionalicon_light?: string

        Light-mode icon URL.

      • image: string

        Image reference including its tag, usable as the image of a sandbox.

        baseten/base-image:latest
        
      • Optionallong_description?: string

        Detailed description.

      • Optionalmemory?: number

        Recommended memory allocation in megabytes.

        4096
        
      • name: string

        Stable identifier of the built-in image.

        base-image
        
      • Optionalports?: components["schemas"]["SandboxPorts"]
      • Optionaltags?: string[]

        Tags of the image.

      • Optionalurl?: string

        Documentation URL.

    • SandboxLibraryImageCreationOptions: {
          extra_args?: { [key: string]: string };
          volumes?: components["schemas"]["SandboxLibraryImageVolume"][];
      }

      Optional settings suggested when creating a sandbox from this image.

      • Optionalextra_args?: { [key: string]: string }

        Kernel selection arguments.

      • Optionalvolumes?: components["schemas"]["SandboxLibraryImageVolume"][]

        Volume attachments.

    • SandboxLibraryImageVolume: { mount_path: string; name: string; read_only?: boolean }

      Volume attachment suggested by a built-in image.

      • mount_path: string

        Absolute filesystem path where the volume is mounted.

        /mnt/data
        
      • name: string

        Volume name, used in volume_name path parameters and sandbox volumes.

        datasets
        
      • Optionalread_only?: boolean

        Whether the volume is mounted read-only.

        false
        
    • SandboxLifecycle: {
          expiration_policies?: components["schemas"]["SandboxExpirationPolicy"][];
          terminated_retention?: components["schemas"]["SandboxDuration"];
      }

      Lifecycle configuration controlling automatic sandbox deletion based on idle time, max age, or specific dates

      {
      * "expiration_policies": [
      * {
      * "action": "DELETE",
      * "type": "TTL_IDLE",
      * "value": "24h"
      * },
      * {
      * "action": "DELETE",
      * "type": "TTL_MAX_AGE",
      * "value": "7d"
      * },
      * {
      * "action": "DELETE",
      * "type": "DATE",
      * "value": "2026-09-23T21:26:58Z"
      * }
      * ],
      * "terminated_retention": "24h"
      * }
      • Optionalexpiration_policies?: components["schemas"]["SandboxExpirationPolicy"][]

        List of expiration policies. Multiple policies can be combined; whichever condition is met first triggers the action.

        [
        {
        "action": "DELETE",
        "type": "TTL_IDLE",
        "value": "24h"
        },
        {
        "action": "DELETE",
        "type": "TTL_MAX_AGE",
        "value": "7d"
        },
        {
        "action": "DELETE",
        "type": "DATE",
        "value": "2026-09-23T21:26:58Z"
        }
        ]
      • Optionalterminated_retention?: components["schemas"]["SandboxDuration"]

        Duration to keep the sandbox record after termination for log access (e.g., '1h', '24h', '7d'). Defaults to 5m. Subject to maximum quota limits.

        24h
        
    • SandboxLogEntry: {
          action?: string;
          message: string;
          severity: number;
          timestamp: string;
          trace_id: string;
      }
      • Optionalaction?: string

        Action or command when present on the log entry.

      • message: string
      • severity: number

        Numeric log severity.

      • timestamp: string

        Format: date-time

      • trace_id: string

        Associated trace identifier, or an empty string when unavailable.

    • SandboxLogs: {
          end_time: string;
          logs: components["schemas"]["SandboxLogEntry"][];
          next_cursor: string | null;
          sandbox_name: string;
          start_time: string;
      }
      • end_time: string

        Format: date-time

      • logs: components["schemas"]["SandboxLogEntry"][]
      • next_cursor: string | null

        Opaque cursor for the next page; null when there are no more entries.

      • sandbox_name: string
      • start_time: string

        Format: date-time

    • SandboxMetadataLabels: { [key: string]: string }

      Key-value pairs for organizing and filtering resources. Labels can be used to categorize resources by environment, project, team, or any custom taxonomy.

      {
      * "env": "development",
      * "project": "api-review",
      * "team": "engineering"
      * }
    • SandboxMetricDescriptor: {
          kind: "GAUGE" | "COUNTER";
          label_sets: { [key: string]: string }[];
          name: components["schemas"]["SandboxMetricName"];
          unit_hint: "COUNT" | "CORES" | "BYTES";
      }
      • kind: "GAUGE" | "COUNTER"
      • label_sets: { [key: string]: string }[]

        Requests use status=2xx,4xx,5xx; CPU and memory use stat=avg,max.

      • name: components["schemas"]["SandboxMetricName"]
      • unit_hint: "COUNT" | "CORES" | "BYTES"

        Requests use COUNT, CPU uses CORES (1 means one fully used core), and memory uses BYTES.

    • SandboxMetricMode: "CURRENT" | "SUMMARY" | "SERIES"
    • SandboxMetricName:
          | "baseten_sandbox_requests_total"
          | "baseten_sandbox_cpu_usage_cores"
          | "baseten_sandbox_memory_bytes"
    • SandboxMetrics: {
          end_epoch_millis: number;
          metric_descriptors: components["schemas"]["SandboxMetricDescriptor"][];
          metric_values: components["schemas"]["SandboxMetricValueSet"][];
          mode: components["schemas"]["SandboxMetricMode"];
          start_epoch_millis: number;
          step_seconds: number | null;
      }
      • end_epoch_millis: number

        Format: int64

        Returned exclusive window end, snapped outward in SERIES. Snapshot timestamp for CURRENT.

      • metric_descriptors: components["schemas"]["SandboxMetricDescriptor"][]
      • metric_values: components["schemas"]["SandboxMetricValueSet"][]
      • mode: components["schemas"]["SandboxMetricMode"]
      • start_epoch_millis: number

        Format: int64

        Returned window start, snapped outward in SERIES. Equal to end for CURRENT.

      • step_seconds: number | null

        Seconds per SERIES interval; null in CURRENT and SUMMARY.

    • SandboxMetricValueSet: { start_epoch_millis: number; values: (number | null)[][] }
      • start_epoch_millis: number

        Format: int64

        Start of the SERIES interval or SUMMARY window; snapshot timestamp in CURRENT.

      • values: (number | null)[][]

        Values indexed first by metric_descriptors, then by that descriptor's label_sets. Null means no sample.

    • SandboxPort: { name?: string; protocol?: "HTTP" | "TCP" | "UDP" | "TLS"; target: number }

      A port for a resource

      {
      * "name": "http",
      * "protocol": "HTTP",
      * "target": 3000
      * }
      • Optionalname?: string

        The name of the port

        http
        
      • Optionalprotocol?: "HTTP" | "TCP" | "UDP" | "TLS"

        The protocol of the port

        HTTP
        @enum {string}
      • target: number

        The target port of the port

        3000
        
    • SandboxPorts: components["schemas"]["SandboxPort"][]

      Set of ports for a resource

      [
      {
      "name": "http",
      "protocol": "HTTP",
      "target": 3000
      }
      ]
    • SandboxPreview: components["schemas"]["SandboxPreviewConfiguration"] & {
          created_at?: string;
          created_by?: string;
          name: string;
          port: number;
          region?: string;
          status: components["schemas"]["SandboxPreviewStatus"];
          updated_at?: string;
          updated_by?: string;
          url: string;
      }

      Sandbox preview with configuration and server-managed fields at the root.

    • SandboxPreviewConfiguration: {
          expires_at?: string;
          public?: boolean;
          request_headers?: components["schemas"]["SandboxPreviewHeaders"];
          response_headers?: components["schemas"]["SandboxPreviewHeaders"];
      }

      Mutable preview configuration.

      • Optionalexpires_at?: string

        Format: date-time

        Time at which the preview is deleted. Must be in the future.

        2026-10-19T12:00:00Z
        
      • Optionalpublic?: boolean

        Whether the URL is reachable without a preview token. Defaults to false on creation; a PATCH without it keeps the current value.

        true
        
      • Optionalrequest_headers?: components["schemas"]["SandboxPreviewHeaders"]

        Headers added to every request forwarded to the sandbox, for example an Authorization header expected by the application. Responses return each name with the value "", except a GET with show_secrets=true by a workspace administrator. Sending "" back as a value returns 400. A PATCH replaces the whole set. Some header names are reserved by the platform.

        {
        * "Authorization": "Bearer app-internal-token"
        * }
      • Optionalresponse_headers?: components["schemas"]["SandboxPreviewHeaders"]

        Headers added to every response served by the preview, for example CORS headers.

    • SandboxPreviewHeaders: { [key: string]: string }

      HTTP headers as name-value pairs. At most 20 headers and 8 KiB of names and values in total unless your quota allows more.

      {
      * "Access-Control-Allow-Origin": "*"
      * }
    • SandboxPreviewStatus: "DEPLOYING" | "DEPLOYED" | "FAILED" | "DELETING" | "TERMINATED"

      Preview status, always uppercase.

      DEPLOYED
      @enum {string}
    • SandboxPreviewToken: { expired: boolean; expires_at: string; name: string; token: string }

      Access token for a private preview.

      • expired: boolean

        Whether expires_at has passed.

        false
        
      • expires_at: string

        Format: date-time

        2026-10-13T12:00:00Z
        
      • name: string

        Token name, used in token_name path parameters.

        7f3k2m9q1x8c4v6b0n5z
        
      • token: string

        Value to send as the preview_token query parameter.

        7f3k2m9q1x8c4v6b0n5z
        
    • SandboxPreviewTtl: string

      Lifetime counted from the request, using seconds, minutes, hours or composite durations such as 1h30m. Whole days are also supported, for example 7d; days cannot be combined with other units. The preview is deleted when it elapses.

      24h
      
    • SandboxRegion: {
          continent: string;
          country: string;
          info_generation: "CARBON";
          location: string;
          name: string;
      }
      • continent: string

        Continent code.

        na
        
      • country: string

        Country code.

        us
        
      • info_generation: "CARBON"

        Runtime generation supported by this region, using the public name CARBON. Actual runtime selection depends on the team and sandbox configuration.

      • location: string

        Region location.

        Washington
        
      • name: string

        Public region identifier to use when creating a sandbox.

        us-was-1
        
    • SandboxStatus:
          | "DEPLOYING"
          | "DEPLOYED"
          | "FAILED"
          | "DEACTIVATING"
          | "DEACTIVATED"
          | "DELETING"
          | "TERMINATED"
          | "ARCHIVING"
          | "ARCHIVED"
          | "UNARCHIVING"
          | "BUILDING"
          | "UPLOADING"

      Sandbox deployment status, always uppercase. This tracks provisioning and differs from the execution API state, whose values such as running are lowercase.

      DEPLOYED
      @enum {string}
    • SandboxTTLIdleExpirationPolicy: {
          action: "DELETE";
          type: "TTL_IDLE";
          value: components["schemas"]["SandboxDuration"];
      }

      Delete after the specified period of inactivity.

      • action: "DELETE"
      • type: "TTL_IDLE"

        discriminator enum property added by openapi-typescript

      • value: components["schemas"]["SandboxDuration"]
    • SandboxTTLMaxAgeExpirationPolicy: {
          action: "DELETE";
          type: "TTL_MAX_AGE";
          value: components["schemas"]["SandboxDuration"];
      }

      Delete after the specified total lifetime.

      • action: "DELETE"
      • type: "TTL_MAX_AGE"

        discriminator enum property added by openapi-typescript

      • value: components["schemas"]["SandboxDuration"]
    • SandboxVolume: {
          attached_to?: string;
          created_at?: string;
          created_by?: string;
          labels?: components["schemas"]["SandboxMetadataLabels"];
          name: string;
          region: string;
          size: string | number;
          status: components["schemas"]["SandboxVolumeStatus"];
          updated_at?: string;
          updated_by?: string;
      }

      Persistent volume.

      • Optional Readonlyattached_to?: string

        Name of the sandbox the volume is mounted in. Absent when not mounted.

        baseten-api-review-0916
        
      • Optional Readonlycreated_at?: string

        Format: date-time

        2026-10-12T12:00:00Z
        
      • Optional Readonlycreated_by?: string

        User or service account that created the volume.

        sandbox-automation
        
      • Optionallabels?: components["schemas"]["SandboxMetadataLabels"]

        Labels. Omitted from list responses.

      • Readonlyname: string

        Volume name, used in volume_name path parameters and sandbox volumes.

        datasets
        
      • region: string

        Region of the volume.

        us-pdx-1
        
      • size: string | number

        Capacity, as a size (e.g. "10Gi", "512Mi") or a number of Mi (e.g. 1024).

        10Gi
        
      • status: components["schemas"]["SandboxVolumeStatus"]
      • Optional Readonlyupdated_at?: string

        Format: date-time

        2026-10-12T12:00:00Z
        
      • Optional Readonlyupdated_by?: string

        User or service account that last updated the volume.

        sandbox-automation
        
    • SandboxVolumeAttachment: { mount_path: string; name: string; read_only?: boolean }

      A persistent volume mounted in the sandbox. The volume must exist, be in the sandbox's region and not be mounted elsewhere. A sandbox mounts at most one persistent volume.

      {
      * "name": "datasets",
      * "mount_path": "/data",
      * "read_only": false
      * }
      • mount_path: string

        Absolute path where the volume is mounted in the sandbox.

        /data
        
      • name: string

        Name of the volume to mount.

        datasets
        
      • Optionalread_only?: boolean

        Mount the volume read-only. Defaults to false.

        false
        
    • SandboxVolumeStatus: "DEPLOYING" | "DEPLOYED" | "FAILED" | "DELETING"

      Volume status, always uppercase.

      DEPLOYED
      @enum {string}
    • SearchTrainingJobsRequest: {
          cursor?: string | null;
          job_id?: string | null;
          limit?: number;
          order_by?: components["schemas"]["OrderBy"][];
          project_id?: string | null;
          statuses?: string[] | null;
      }

      SearchTrainingJobsRequestV1

      A request to search training jobs.

      • Optionalcursor?: string | null

        Cursor

        Opaque cursor returned by a previous page. Omit to fetch the first page.

      • Optionaljob_id?: string | null

        Job Id

        Filter the training jobs by job ID.

        p7qr9qv
        
      • Optionallimit?: number

        Limit

        Maximum number of items to return.

      • Optionalorder_by?: components["schemas"]["OrderBy"][]

        Order By

        Order the training jobs by a field. Currently supports created_at

      • Optionalproject_id?: string | null

        Project Id

        Filter the training jobs by project ID.

        n4q95w5
        
      • Optionalstatuses?: string[] | null

        Statuses

        Filter the training jobs by status.

        [
        "TRAINING_JOB_RUNNING",
        "TRAINING_JOB_COMPLETED"
        ]
    • SearchTrainingJobsResponse: {
          pagination: components["schemas"]["PaginationResponse"];
          training_jobs: components["schemas"]["TrainingJob"][];
      }

      SearchTrainingJobsResponseV1

      A response to search training jobs.

      • pagination: components["schemas"]["PaginationResponse"]

        Pagination metadata for the page.

      • training_jobs: components["schemas"]["TrainingJob"][]

        Training Jobs

        List of training jobs.

    • Secret: { created_at: string; id: string; name: string; team_name: string }

      SecretV1

      A Baseten secret. Note that we do not support retrieving secret values.

      • created_at: string

        Created At Format: date-time

        Time the secret was created in ISO 8601 format

      • id: string

        Id

        Stable identifier for the secret. Unchanged across rotation.

        3kZ9xqd
        
      • name: string

        Name

        Name of the secret

      • team_name: string

        Team Name

        Name of the team the secret belongs to

    • SecretReference: { name: string }

      SecretReferenceV1

      • name: string

        Name

        Name of the secret to reference.

        hf_token
        
    • Secrets: { secrets: components["schemas"]["Secret"][] }

      SecretsV1

      A list of Baseten secrets.

    • SecretTombstone: { name: string }

      SecretTombstoneV1

      A secret tombstone.

      • name: string

        Name

        Name of the deleted secret

    • SetVolumeTagRequest: {
          expected_sequence?: number | null;
          expires_at?: string | null;
          tag: string;
          version: string;
      }

      SetVolumeTagRequestV1

      • Optionalexpected_sequence?: number | null

        Expected Sequence

        Revision the volume is expected to be at. When set, the request fails with a conflict if the volume has changed since. Take the value from volume_sequence.

      • Optionalexpires_at?: string | null

        Expires At

        Time at which the tag expires, in ISO 8601 format, with a UTC offset. It must be in the future and at most ten years ahead. Omit it for a tag with no expiration time of its own. Omitting it also clears the expiration time of an existing tag. Version or volume expiration still deletes the tag. Do not specify it when setting head.

      • tag: string

        Tag

        Name of the tag to set. Tags are case-sensitive. Setting a tag that already exists overwrites it, and the version it pointed at before stays reachable by digest.

        nightly
        
      • version: string

        Version

        Version to set the tag on. Address it with :<tag> for a tag, @<digest> for a full content digest or a prefix of at least 12 hexadecimal characters, or head for the version a reference with no tag or digest resolves to.

        head
        
    • SetVolumeTagResponse: {
          digest: string;
          expires_at: string | null;
          namespace: string;
          tag: string;
          version_ref: string;
          volume: string;
          volume_sequence: number;
      }

      SetVolumeTagResponseV1

      • digest: string

        Digest

        Content digest of the version the tag points at, as b3:<hex>.

      • expires_at: string | null

        Expires At

        Tag expiration time in ISO 8601 format. Null when the tag has no expiration time of its own.

      • namespace: string

        Namespace

        Namespace the volume belongs to, in lowercase.

      • tag: string

        Tag

        Name of the tag that was set, with its original capitalization.

      • version_ref: string

        Version Ref

        Full address of the tagged version, as bdn:<namespace>/<volume>@<digest>. Paste it into a config.yaml to pin this version, even if the tag is later set on another version.

      • volume: string

        Volume

        Name of the volume, in lowercase.

      • volume_sequence: number

        Volume Sequence

        Revision of the volume after the tag was set.

    • SharedEndpointRegion: "UNRESTRICTED" | "EU"

      SharedEndpointRegionV1

    • SignalPromotionResponse: { success: boolean }

      SignalPromotionResponseV1

      The response to a request to signal a rolling promotion.

      • success: boolean

        Success

        Whether the signal was successfully sent

    • SignSSHCertificateRequest: { public_key: string; replica_id?: string | null }

      SignSSHCertificateRequestV1

      Request to sign an SSH certificate for accessing a workload pod.

      • public_key: string

        Public Key

        The user's SSH public key (e.g., 'ssh-ed25519 AAAA... user@host').

      • Optionalreplica_id?: string | null

        Replica Id

        The replica to connect to. Required for training jobs (e.g. '0'). Optional for inference (server picks a running replica if omitted).

    • SignSSHCertificateResponse: {
          jwt: string;
          proxy_address: string;
          ssh_cert_expires_at: string;
          ssh_certificate: string;
      }

      SignSSHCertificateResponseV1

      Response containing a signed SSH certificate for proxy authentication.

      • jwt: string

        Jwt

        Signed JWT (ES256) for SSH proxy authorization.

      • proxy_address: string

        Proxy Address

        Address of the SSH proxy to connect to (host:port).

      • ssh_cert_expires_at: string

        Ssh Cert Expires At Format: date-time

        When the certificate expires, in ISO 8601 format.

      • ssh_certificate: string

        Ssh Certificate

        The signed SSH certificate in OpenSSH format.

    • SortOrder: "asc" | "desc"

      SortOrderV1

    • StartupAttempt: {
          deployment_id: string | null;
          deployment_name: string;
          duration_ms: number;
          environment_name: string | null;
          model_id: string;
          outcome: components["schemas"]["StartupOutcome"];
          phase_summary: components["schemas"]["StartupPhaseSummary"][];
          ready_at_epoch_millis: number | null;
          replica_id: string | null;
          started_at_epoch_millis: number;
      }

      StartupAttemptV1

      One startup attempt of a replica.

      • deployment_id: string | null

        Deployment Id

        Unique identifier of the deployment.

      • deployment_name: string

        Deployment Name

        Name of the deployment.

      • duration_ms: number

        Duration Ms

        Duration of the attempt, in milliseconds.

      • environment_name: string | null

        Environment Name

        Name of the environment. Null when querying a deployment.

      • model_id: string

        Model Id

        Unique identifier of the model.

      • outcome: components["schemas"]["StartupOutcome"]

        Outcome of the attempt.

      • phase_summary: components["schemas"]["StartupPhaseSummary"][]

        Phase Summary

        Phases recorded during the attempt.

      • ready_at_epoch_millis: number | null

        Ready At Epoch Millis

        Time the replica became ready, in epoch milliseconds. Null if it never did.

      • replica_id: string | null

        Replica Id

        Identifier of the replica that started.

      • started_at_epoch_millis: number

        Started At Epoch Millis

        Time the attempt started, in epoch milliseconds.

    • StartupAttempts: {
          items: components["schemas"]["StartupAttempt"][];
          pagination: components["schemas"]["PaginationResponse"];
          total_count: number;
      }

      StartupAttemptsV1

      A page of startup attempts, newest first by default.

      • items: components["schemas"]["StartupAttempt"][]

        Items

        Items in this page.

      • pagination: components["schemas"]["PaginationResponse"]

        Pagination metadata for the page.

      • total_count: number

        Total Count

        Number of attempts matching the filters, counted within the 1,000 most recent startups in the window.

    • StartupOutcome: "SUCCESS" | "FAILED" | "STALLED"

      StartupOutcomeV1

      Outcome of a whole startup attempt.

    • StartupPercentiles: {
          mean_ms: number | null;
          p50_ms: number | null;
          p90_ms: number | null;
          p95_ms: number | null;
          p99_ms: number | null;
          sample_count: number;
      }

      StartupPercentilesV1

      A distribution of startup durations.

      Statistics cover only samples longer than 0 ms and are null when there are none.
      
      • mean_ms: number | null

        Mean Ms

        Mean duration, in milliseconds.

      • p50_ms: number | null

        P50 Ms

        50th percentile duration, in milliseconds.

      • p90_ms: number | null

        P90 Ms

        90th percentile duration, in milliseconds.

      • p95_ms: number | null

        P95 Ms

        95th percentile duration, in milliseconds.

      • p99_ms: number | null

        P99 Ms

        99th percentile duration, in milliseconds.

      • sample_count: number

        Sample Count

        Number of startups in the distribution, including those that took 0 ms. A phase that finishes within a second can record 0 ms.

    • StartupPhase:
          | "SCHEDULING"
          | "IMAGE_PULL"
          | "WEIGHT_DOWNLOAD"
          | "CONTAINER_CREATE"
          | "CONTAINER_START"
          | "READINESS"

      StartupPhaseV1

      A stage of a replica startup.

      - ``SCHEDULING``: waiting for the replica to be placed on a node.
      - ``IMAGE_PULL``: pulling the container image.
      - ``WEIGHT_DOWNLOAD``: downloading model weights.
      - ``CONTAINER_CREATE``: creating and starting the model container, including
        ``CONTAINER_START`` and ``READINESS``.
      - ``CONTAINER_START``: starting the model container.
      - ``READINESS``: waiting for the model to pass its readiness check.
      
      ``CONTAINER_START`` and ``READINESS`` are accepted as filters but are reported only as
      part of ``CONTAINER_CREATE``.
      
    • StartupPhasePercentiles: {
          duration_ms: components["schemas"]["StartupPercentiles"];
          phase: components["schemas"]["StartupPhase"];
      }

      StartupPhasePercentilesV1

      The duration distribution of one startup phase.

    • StartupPhaseStatus: "COMPLETED" | "FAILED"

      StartupPhaseStatusV1

      Outcome of one phase, independent of the outcome of the whole startup.

    • StartupPhaseSummary: {
          duration_ms: number | null;
          offset_ms: number;
          phase: components["schemas"]["StartupPhase"];
          status: components["schemas"]["StartupPhaseStatus"];
      }

      StartupPhaseSummaryV1

      One phase recorded during a startup attempt.

      • duration_ms: number | null

        Duration Ms

        Duration of the phase, in milliseconds. Can be 0 for a phase that finished within a second. Null if the phase did not finish.

      • offset_ms: number

        Offset Ms

        Time from the start of the attempt to the start of the phase, in milliseconds.

      • phase: components["schemas"]["StartupPhase"]

        The phase.

      • status: components["schemas"]["StartupPhaseStatus"]

        Outcome of the phase.

    • StartupSortField: "OUTCOME" | "STARTED_AT" | "READY_AT" | "DURATION"

      StartupSortFieldV1

      Field to sort startup attempts by.

    • StartupSummary: {
          end_epoch_millis: number;
          phase_duration_ms: components["schemas"]["StartupPhasePercentiles"][];
          start_epoch_millis: number;
          total_duration_ms: components["schemas"]["StartupPercentiles"];
      }

      StartupSummaryV1

      Startup duration distributions over a time window.

      • end_epoch_millis: number

        End Epoch Millis

        End of the returned window.

      • phase_duration_ms: components["schemas"]["StartupPhasePercentiles"][]

        Phase Duration Ms

        Durations of each phase that was recorded in the window.

      • start_epoch_millis: number

        Start Epoch Millis

        Start of the returned window.

      • total_duration_ms: components["schemas"]["StartupPercentiles"]

        Durations of whole startups, sampled from the 1,000 most recent in the window.

    • StopTrainingJobRequest: Record<string, unknown>

      StopTrainingJobRequestV1

      A request to stop a training job.

    • StopTrainingJobResponse: { training_job: components["schemas"]["TrainingJob"] }

      StopTrainingJobResponseV1

      A response to stopping a training job.

    • StorageMetrics: {
          usage_bytes: components["schemas"]["TrainingJobMetric"][];
          utilization: components["schemas"]["TrainingJobMetric"][];
      }

      StorageMetricsV1

      A metric for a training job.

      • usage_bytes: components["schemas"]["TrainingJobMetric"][]

        Usage Bytes

        The number of bytes used on the storage entity.

      • utilization: components["schemas"]["TrainingJobMetric"][]

        Utilization

        The utilization of the storage entity as a decimal percentage.

    • SupportedModel: {
          enabled: boolean;
          enablement_details: components["schemas"]["EnablementDetails"] | null;
          max_context_length: number;
          max_enabled_seq_len: number;
          max_seq_len: number;
          model_name: string;
          serverless: boolean | null;
          supports_vision_language: boolean;
      }

      SupportedModelV1

      A model supported by the Loops server.

      • enabled: boolean

        Enabled

        Whether this workspace can start a run with this model now. False means Baseten supports it but the workspace cannot use it yet; 'not_enabled' says why. Capacity is resolved when the run is created, so true is not a guarantee that GPUs are free.

        true
        
      • enablement_details: components["schemas"]["EnablementDetails"] | null

        Why the model is not enabled, and what would change it. Present only when 'enabled' is false — an enabled model has nothing to explain. Read 'enabled' for the state; this is the detail behind it.

        null
        
      • max_context_length: number

        Max Context Length

        Deprecated. Use 'max_seq_len', which carries the same value. Kept so existing clients keep working.

      • max_enabled_seq_len: number

        Max Enabled Seq Len

        The longest sequence length this workspace can train at. Lower than 'max_seq_len' when the longer configurations need hardware the workspace is not approved for — a model's longer sequence lengths often need a bigger SKU of the same GPU. Zero when the workspace cannot run the model at all, so a client can compare against a required length without a null case.

        0
        
      • max_seq_len: number

        Max Seq Len

        The longest sequence length Baseten supports for this model. Independent of the caller: see 'max_enabled_seq_len' for what this workspace can actually train at. Named to match the 'max_seq_len' query parameter and the field of the same name on run creation, so one name follows the value through the API.

      • model_name: string

        Model Name

        The name of the supported model.

      • serverless: boolean | null

        Serverless

        Early access only. Whether this workspace can use serverless Loops for this model.

        null
        
      • supports_vision_language: boolean

        Supports Vision Language

        Whether the model accepts image inputs alongside text.

    • SyncDeploymentPatchesRequest: Record<string, unknown>

      SyncDeploymentPatchesRequestV1

      Triggers a sync of any staged patches to the running deployment. Takes no fields: the deployment and its staged patches fully determine the sync.

    • SyncDeploymentPatchesResponse: { needs_full_deploy_reason: string | null }

      SyncDeploymentPatchesResponseV1

      The outcome of a sync that ran.

      Operational failures (a transient patch failure, an invalid patch sequence)
      are surfaced as HTTP errors rather than fields here, so a 2xx means the sync
      reached a verdict.
      
      • needs_full_deploy_reason: string | null

        Needs Full Deploy Reason

        If set, the change cannot be patched and a full push is required; the value explains why. If null, the deployment is now in sync.

        null
        
    • Team: { created_at: string; default: boolean; id: string; name: string }

      TeamV1

      A team.

      • created_at: string

        Created At Format: date-time

        Time the team was created in ISO 8601 format

      • default: boolean

        Default

        Whether this is the default team for the organization

      • id: string

        Id

        Unique identifier of the team

      • name: string

        Name

        Name of the team

    • Teams: { teams: components["schemas"]["Team"][] }

      TeamsV1

      A list of teams.

    • TeamTrainingGpuCapacityItem: {
          baseline: number;
          dedicated_usage_count: number;
          gpu_type: string;
          limit: number;
          spot_usage_count: number;
          team_id: string;
          team_name: string;
          usage_count: number;
      }

      TeamTrainingGpuCapacityItemV1

      Per-team GPU capacity and current usage for one GPU type.

      • baseline: number

        Baseline

        Baseline GPU allocation for the team. 0 if not configured.

      • dedicated_usage_count: number

        Dedicated Usage Count

        Portion of usage_count from standard (non-spot) jobs.

        0
        
      • gpu_type: string

        Gpu Type

        GPU type identifier (e.g. H100, A100-40GB)

      • limit: number

        Limit

        Maximum concurrent GPUs of this type for this team

      • spot_usage_count: number

        Spot Usage Count

        Portion of usage_count from spot jobs.

        0
        
      • team_id: string

        Team Id

        Team identifier

      • team_name: string

        Team Name

        Team name

      • usage_count: number

        Usage Count

        GPUs currently in use by the team's active training jobs

    • TerminateReplicaResponse: { success: boolean }

      TerminateReplicaResponseV1

      The response to a request to terminate a replica in a deployment.

      • success: boolean

        Success

        Whether the replica was successfully terminated

        true
        
    • Token: { expires_at: string; token: string }

      TokenV1

      • expires_at: string

        Expires At Format: date-time

        Token expiry in ISO 8601 format. Tokens cannot be renewed; request a new one.

      • token: string

        Token

        Short-lived bearer token for the sandbox API. Send it as Authorization: Bearer .

    • TokenScope: "sandboxes"

      TokenScopeV1

      What a token minted by POST /v1/token grants access to.

    • ToolCallUsageBucket: {
          calls: number;
          date: string;
          model: string;
          provider: string;
          quantity: number;
          sku: string;
          team_id: string | null;
      }

      ToolCallUsageBucketV1

      Server-side tool call usage for one day, provider, charge unit, and model.

      • calls: number

        Calls

        Number of tool calls.

      • date: string

        Date Format: date

        UTC day the usage was recorded on.

      • model: string

        Model

        Model that made the tool calls.

      • provider: string

        Provider

        Tool provider, such as exa or parallel.

      • quantity: number

        Quantity

        Billable quantity in the provider's sku unit, summed over the calls.

      • sku: string

        Sku

        Charge unit, as <provider>/<unit>. The unit is what the provider reported, or the tool name when it reported none. Its meaning varies by provider.

      • team_id: string | null

        Team Id

        Team attributed to the usage. Null when not grouping by team or when historical team attribution is unavailable.

        null
        
    • ToolCallUsageDimension: "TEAM"

      ToolCallUsageDimensionV1

    • ToolCallUsageResponse: { items?: components["schemas"]["ToolCallUsageBucket"][] }

      ToolCallUsageResponseV1

      Daily server-side tool call usage, ordered by day, provider, sku, and model.

    • TrafficRoutingRule: {
          expires_at: string;
          id: string;
          percent_traffic: number;
          propagate_client_cancellation: boolean;
          sampling_mode: components["schemas"]["TrafficRoutingRuleShadowSamplingMode"];
          targets: components["schemas"]["TrafficRoutingTarget"][];
          type: "SHADOW";
      }

      TrafficRoutingRuleV1

      A traffic routing rule on an environment.

      • expires_at: string

        Expires At Format: date-time

        When the rule stops, in ISO 8601 format

      • id: string

        Id

        Unique identifier of the rule

      • percent_traffic: number

        Percent Traffic

        Percentage of the environment's traffic shadowed

      • propagate_client_cancellation: boolean

        Propagate Client Cancellation

        Whether a shadow request is cancelled when the original client disconnects

      • sampling_mode: components["schemas"]["TrafficRoutingRuleShadowSamplingMode"]

        How requests are picked for shadowing

      • targets: components["schemas"]["TrafficRoutingTarget"][]

        Targets

        Where the rule sends traffic. Empty if the target has been deleted.

      • type: "SHADOW"

        Type

        Rule type. A shadow rule sends a copy of the environment's traffic to its target.

    • TrafficRoutingRuleShadowSamplingMode: "RANDOM" | "USER_SESSION"

      TrafficRoutingRuleShadowSamplingModeV1

      How a shadow rule picks which requests to shadow. RANDOM picks each request independently. USER_SESSION keeps a whole session together, so every request in a sampled session is shadowed.

    • TrafficRoutingRuleUpsert: {
          expires_at: string;
          id?: string | null;
          percent_traffic: number;
          propagate_client_cancellation: boolean;
          sampling_mode: components["schemas"]["TrafficRoutingRuleShadowSamplingMode"];
          targets: components["schemas"]["TrafficRoutingTargetUpsert"][];
          type: "SHADOW";
      }

      TrafficRoutingRuleUpsertV1

      A complete rule to create or replace.

      • expires_at: string

        Expires At Format: date-time

        When the rule stops, in ISO 8601 format with a timezone, at most 7 days out

      • Optionalid?: string | null

        Id

        Omit to create a rule, or pass an existing rule's ID to replace it. A replace can't change the target: delete the rule and create a new one instead.

      • percent_traffic: number

        Percent Traffic

        Percentage of the environment's traffic to shadow

      • propagate_client_cancellation: boolean

        Propagate Client Cancellation

        Whether a shadow request is cancelled when the original client disconnects

      • sampling_mode: components["schemas"]["TrafficRoutingRuleShadowSamplingMode"]

        How requests are picked for shadowing

      • targets: components["schemas"]["TrafficRoutingTargetUpsert"][]

        Targets

        Where the rule sends traffic. Exactly one target.

      • type: "SHADOW"

        Type

        Rule type. A shadow rule sends a copy of the environment's traffic to its target.

    • TrafficRoutingTarget: { deployment_id: string | null; environment: string | null; model_id: string }

      TrafficRoutingTargetV1

      Where a rule sends traffic. Exactly one of deployment_id and environment is set.

      • deployment_id: string | null

        Deployment Id

        ID of the target deployment

        null
        
      • environment: string | null

        Environment

        Name of the target environment. Traffic goes to whichever deployment the environment is serving.

        null
        
      • model_id: string

        Model Id

        ID of the target's model

    • TrafficRoutingTargetUpsert: { deployment_id?: string | null; environment?: string | null }

      TrafficRoutingTargetUpsertV1

      Where a rule sends traffic. Set exactly one of deployment_id and environment.

      • Optionaldeployment_id?: string | null

        Deployment Id

        ID of the target deployment

      • Optionalenvironment?: string | null

        Environment

        Name of the target environment. Traffic goes to whichever deployment the environment is serving.

    • TrainerCheckpointTarget: "sampler" | "trainer"

      TrainerCheckpointTarget

      Whether a TrainerServerCheckpoint is loadable by the sampler or the trainer.

      SAMPLER checkpoints are consumed by the sampling server for inference;
      TRAINER checkpoints capture full trainer state for resuming training.
      Mirrored in the bt:// URI as
      ``bt://loops:<trainer_id>/(sampler_weights|weights)/<name>``.
      
    • TrainingGpuCapacityItem: {
          baseline: number;
          dedicated_usage_count: number;
          gpu_type: string;
          limit: number;
          spot_usage_count: number;
          usage_count: number;
      }

      TrainingGpuCapacityItemV1

      GPU capacity and current usage for one GPU type.

      • baseline: number

        Baseline

        Baseline GPU allocation; jobs below this threshold are expected to run immediately. 0 if not configured.

      • dedicated_usage_count: number

        Dedicated Usage Count

        Portion of usage_count from standard (non-spot) jobs, which run against the baseline.

        0
        
      • gpu_type: string

        Gpu Type

        GPU type identifier (e.g. H100, A100-40GB)

      • limit: number

        Limit

        Maximum concurrent GPUs of this type for this org

      • spot_usage_count: number

        Spot Usage Count

        Portion of usage_count from spot jobs, which burst into the peak and may push usage above the limit.

        0
        
      • usage_count: number

        Usage Count

        GPUs currently in use by active training jobs

    • TrainingItem: {
          billable_resource: components["schemas"]["BillableResource"];
          daily?: components["schemas"]["DailyTrainingUsage"][];
          minutes: number;
          subtotal: number | string;
      }

      TrainingItemV1

      • billable_resource: components["schemas"]["BillableResource"]

        The training job resource

      • Optionaldaily?: components["schemas"]["DailyTrainingUsage"][]

        Daily

        Daily usage breakdown

      • minutes: number

        Minutes

        Total minutes used for this billable resource

      • subtotal: number | string

        Subtotal

        Subtotal cost in dollars for this billable resource

    • TrainingJob: {
          availability_model: components["schemas"]["AvailabilityModel"];
          checkpoint_sync_status:
              | components["schemas"]["CheckpointSyncStatus"]
              | null;
          created_at: string;
          current_status: string;
          error_message: string
          | null;
          id: string;
          instance_type: components["schemas"]["InstanceType"];
          name: string | null;
          node_count: number;
          priority: number;
          training_project: components["schemas"]["TrainingProjectSummary"];
          training_project_id: string;
          updated_at: string;
          user: components["schemas"]["User"] | null;
      }

      TrainingJobV1

      • availability_model: components["schemas"]["AvailabilityModel"]

        Capacity guarantee for the job. 'standard' runs on capacity that is not preempted. 'spot' runs on interruptible capacity that may be preempted; you are responsible for checkpointing your own progress.

        standard
        
      • checkpoint_sync_status: components["schemas"]["CheckpointSyncStatus"] | null

        Checkpoint sync status of the training job.

        null
        
      • created_at: string

        Created At Format: date-time

        Time the job was created in ISO 8601 format.

      • current_status: string

        Current Status

        Current status of the training job.

      • error_message: string | null

        Error Message

        Error message if the training job failed. While the job is pending, a hint when switching it to spot capacity would let it start sooner.

        null
        
      • id: string

        Id

        Unique identifier of the training job.

      • instance_type: components["schemas"]["InstanceType"]

        Instance type of the training job.

      • name: string | null

        Name

        Name of the training job.

        null
        
        gpt-oss-job
        
      • node_count: number

        Node Count

        Number of nodes the job runs on. The instance type describes a single node, so the job's total GPU count is gpu_count multiplied by node_count.

        1
        
        2
        
      • priority: number

        Priority

        Queue priority. Higher values are dequeued first. NULL is treated as 0.

        0
        
      • training_project: components["schemas"]["TrainingProjectSummary"]

        Summary of the training project.

      • training_project_id: string

        Training Project Id

        ID of the training project.

      • updated_at: string

        Updated At Format: date-time

        Time the job was updated in ISO 8601 format.

      • user: components["schemas"]["User"] | null

        The user who created the training job.

        null
        
    • TrainingJobCheckpoint: {
          base_model: string | null;
          checkpoint_id: string;
          checkpoint_type: string;
          created_at: string;
          lora_adapter_config: { [key: string]: unknown } | null;
          size_bytes: number;
          sync_status: string | null;
          training_job_id: string;
      }

      TrainingJobCheckpointV1

      A checkpoint for a training job.

      • base_model: string | null

        Base Model

        The base model of the checkpoint.

      • checkpoint_id: string

        Checkpoint Id

        The ID of the checkpoint.

      • checkpoint_type: string

        Checkpoint Type

        The type of checkpoint.

      • created_at: string

        Created At Format: date-time

        The timestamp of the checkpoint in ISO 8601 format.

      • lora_adapter_config: { [key: string]: unknown } | null

        Lora Adapter Config

        The adapter config of the checkpoint.

      • size_bytes: number

        Size Bytes

        The size of the checkpoint in bytes.

      • sync_status: string | null

        Sync Status

        Sync state of the checkpoint: SYNCING or COMPLETE.

        null
        
      • training_job_id: string

        Training Job Id

        The ID of the training job.

    • TrainingJobMetric: { timestamp: string; value: number }

      TrainingJobMetricV1

      A metric for a training job.

      • timestamp: string

        Timestamp Format: date-time

        The timestamp of the metric in ISO 8601 format.

      • value: number

        Value

        The value of the metric.

    • TrainingJobMetrics: {
          cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][];
          cpu_usage: components["schemas"]["TrainingJobMetric"][];
          ephemeral_storage: components["schemas"]["StorageMetrics"];
          gpu_memory_usage_bytes: {
              [key: string]: { timestamp: string; value: number }[];
          };
          gpu_utilization: { [key: string]: { timestamp: string; value: number }[] };
      }

      TrainingJobMetricsV1

      • cpu_memory_usage_bytes: components["schemas"]["TrainingJobMetric"][]

        Cpu Memory Usage Bytes

        The CPU memory usage for the training job. For multinode jobs, this is the CPU memory usage of the leader unless specified otherwise.

      • cpu_usage: components["schemas"]["TrainingJobMetric"][]

        Cpu Usage

        The CPU usage measured in cores. For multinode jobs, this is the CPU usage of the leader unless specified otherwise.

      • ephemeral_storage: components["schemas"]["StorageMetrics"]

        The storage usage for the ephemeral storage. For multinode jobs, this is the ephemeral storage usage of the leader unless specified otherwise.

      • gpu_memory_usage_bytes: { [key: string]: { timestamp: string; value: number }[] }

        Gpu Memory Usage Bytes

        A map of GPU rank to memory usage for the training job. For multinode jobs, this is the memory usage of the leader unless specified otherwise.

      • gpu_utilization: { [key: string]: { timestamp: string; value: number }[] }

        Gpu Utilization

        A map of GPU rank to fractional GPU utilization. For multinode jobs, this is the GPU utilization of the leader unless specified otherwise.

    • TrainingJobNodeMetrics: { metrics: components["schemas"]["TrainingJobMetrics"]; node_id: string }

      TrainingJobNodeMetricsV1

      A set of metrics for a training job node.

      • metrics: components["schemas"]["TrainingJobMetrics"]

        The metrics for the node.

      • node_id: string

        Node Id

        The name of the node.

    • TrainingJobTombstone: { deleted: boolean; id: string; training_project_id: string }

      TrainingJobTombstoneV1

      A training job tombstone.

      • deleted: boolean

        Deleted

        Whether the training job was deleted

      • id: string

        Id

        Unique identifier of the training job

      • training_project_id: string

        Training Project Id

        Unique identifier of the training project

    • TrainingProject: {
          created_at: string;
          id: string;
          latest_job: components["schemas"]["TrainingJob"] | null;
          name: string;
          project_accelerator: string | null;
          team_name: string | null;
          updated_at: string;
      }

      TrainingProjectV1

      • created_at: string

        Created At Format: date-time

        Time the training project was created in ISO 8601 format.

      • id: string

        Id

        Unique identifier of the training project

      • latest_job: components["schemas"]["TrainingJob"] | null

        Most recently created training job for the training project.

      • name: string

        Name

        Name of the training project.

      • project_accelerator: string | null

        Project Accelerator

        Default GPU type for cache-enabled CPU job placement.

        null
        
      • team_name: string | null

        Team Name

        Name of the team associated with the training project.

        null
        
      • updated_at: string

        Updated At Format: date-time

        Time the training project was updated in ISO 8601 format.

    • TrainingProjectSummary: { id: string; name: string }

      TrainingProjectSummaryV1

      A summary of a training project.

      • id: string

        Id

        Unique identifier of the training project.

      • name: string

        Name

        Name of the training project.

    • TrainingProjectTombstone: { deleted: boolean; id: string }

      TrainingProjectTombstoneV1

      A training project tombstone.

      • deleted: boolean

        Deleted

        Whether the training project was deleted

      • id: string

        Id

        Unique identifier of the training project

    • TrainingUsage: {
          breakdown?: components["schemas"]["TrainingItem"][];
          credits_used: number | string;
          minutes: number;
          subtotal: number | string;
          total: number | string;
      }

      TrainingUsageV1

      • Optionalbreakdown?: components["schemas"]["TrainingItem"][]

        Breakdown

        Per-job usage breakdown

      • credits_used: number | string

        Credits Used

        Credits applied in dollars

      • minutes: number

        Minutes

        Total minutes used

      • subtotal: number | string

        Subtotal

        Subtotal cost in dollars after applying credits used

      • total: number | string

        Total

        Total cost in dollars

    • TrainingWeightAuth: {
          auth_method: components["schemas"]["AuthMethod"];
          auth_secret_name?: string | null;
          aws_assume_role_arn?: string | null;
          aws_assume_role_region?: string | null;
          aws_oidc_region?: string | null;
          aws_oidc_role_arn?: string | null;
          gcp_oidc_service_account?: string | null;
          gcp_oidc_workload_id_provider?: string | null;
      }

      TrainingWeightAuthV1

      Authentication configuration for a training weight source.

      • auth_method: components["schemas"]["AuthMethod"]

        Method used to authenticate the weight source.

      • Optionalauth_secret_name?: string | null

        Auth Secret Name

        Name of the workspace secret used for custom-secret authentication.

      • Optionalaws_assume_role_arn?: string | null

        Aws Assume Role Arn

        AWS IAM role ARN that Baseten assumes to access the weight source.

      • Optionalaws_assume_role_region?: string | null

        Aws Assume Role Region

        AWS region used for assume-role authentication.

      • Optionalaws_oidc_region?: string | null

        Aws Oidc Region

        AWS region used for OIDC authentication.

      • Optionalaws_oidc_role_arn?: string | null

        Aws Oidc Role Arn

        AWS IAM role ARN used for OIDC authentication.

      • Optionalgcp_oidc_service_account?: string | null

        Gcp Oidc Service Account

        GCP service account used for OIDC authentication.

      • Optionalgcp_oidc_workload_id_provider?: string | null

        Gcp Oidc Workload Id Provider

        GCP workload identity provider used for OIDC authentication.

    • TrussUserEnv: {
          git_info?: components["schemas"]["GitInfo"] | null;
          is_frontend_deployment?: boolean;
          is_library_deployment?: boolean;
          mypy_version?: string | null;
          pydantic_version?: string | null;
          python_version?: string | null;
          truss_client_version?: string | null;
      }

      TrussUserEnv

      This data models is used to flexibly store info alongside oracle versions.

      There is a corresponding data model in the truss client.
      In contrast, here all fields are optional for backwards compatibility with old
      clients.
      
      • Optionalgit_info?: components["schemas"]["GitInfo"] | null
      • Optionalis_frontend_deployment?: boolean

        Is Frontend Deployment

      • Optionalis_library_deployment?: boolean

        Is Library Deployment

      • Optionalmypy_version?: string | null

        Mypy Version

      • Optionalpydantic_version?: string | null

        Pydantic Version

      • Optionalpython_version?: string | null

        Python Version

      • Optionaltruss_client_version?: string | null

        Truss Client Version

    • TTSBenchmarkMetrics: {
          cost_per_audio_minute_usd?: number | null;
          max_concurrent_streams_at_rtf1?: number | null;
          ttft_ms_p50?: number | null;
          ttft_ms_p50_at_max_concurrency?: number | null;
      }

      TTSBenchmarkMetricsV1

      • Optionalcost_per_audio_minute_usd?: number | null

        Cost Per Audio Minute Usd

      • Optionalmax_concurrent_streams_at_rtf1?: number | null

        Max Concurrent Streams At Rtf1

      • Optionalttft_ms_p50?: number | null

        Ttft Ms P50

      • Optionalttft_ms_p50_at_max_concurrency?: number | null

        Ttft Ms P50 At Max Concurrency

    • UpdateAutoscalingScheduleSettings: {
          delete_schedules?: string[];
          schedules?: (
              | components["schemas"]["AutoscalingScheduleUpsert"]
              | components["schemas"]["OneTimeAutoscalingScheduleUpsert"]
          )[];
          timezone?: string
          | null;
      }

      UpdateAutoscalingScheduleSettingsV1

      Partial mutation of an environment's autoscaling schedule collection.

      • Optionaldelete_schedules?: string[]

        Delete Schedules

        Stable identifiers of schedules to delete. To clear all schedules, include every existing schedule identifier.

      • Optionalschedules?: (
            | components["schemas"]["AutoscalingScheduleUpsert"]
            | components["schemas"]["OneTimeAutoscalingScheduleUpsert"]
        )[]

        Schedules

        Complete schedules to create or replace. Existing schedules omitted from this list are unchanged.

      • Optionaltimezone?: string | null

        Timezone

        IANA timezone shared by the resulting collection. Omission preserves the current timezone; null is allowed only when deleting every schedule.

    • UpdateAutoscalingSettings: {
          autoscaling_window?: number | null;
          concurrency_target?: number | null;
          max_replica?: number | null;
          max_scale_down_rate?: number | null;
          min_replica?: number | null;
          scale_down_delay?: number | null;
          target_in_flight_tokens?: number | null;
          target_utilization_percentage?: number | null;
      }

      UpdateAutoscalingSettingsV1

      A request to update autoscaling settings for a deployment. All fields are optional, and we only update ones passed in.

      • Optionalautoscaling_window?: number | null

        Autoscaling Window

        Timeframe of traffic considered for autoscaling decisions

        600
        
      • Optionalconcurrency_target?: number | null

        Concurrency Target

        Number of requests per replica before scaling up

        2
        
      • Optionalmax_replica?: number | null

        Max Replica

        Maximum number of replicas

        7
        
      • Optionalmax_scale_down_rate?: number | null

        Max Scale Down Rate

        Maximum percentage of replicas that can be removed per autoscaling window (1–50). E.g. 20 means at most 20% of replicas are removed per window.

        20
        
      • Optionalmin_replica?: number | null

        Min Replica

        Minimum number of replicas

        0
        
      • Optionalscale_down_delay?: number | null

        Scale Down Delay

        Waiting period before scaling down any active replica

        120
        
      • Optionaltarget_in_flight_tokens?: number | null

        Target In Flight Tokens

        Target number of in-flight tokens for autoscaling decisions. Early access only.

        40000
        
      • Optionaltarget_utilization_percentage?: number | null

        Target Utilization Percentage

        Target utilization percentage for scaling up/down.

        70
        
    • UpdateAutoscalingSettingsResponse: {
          message: string;
          status: components["schemas"]["UpdateAutoscalingSettingsStatus"];
      }

      UpdateAutoscalingSettingsResponseV1

      The response to a request to update autoscaling settings.

      • message: string

        Message

        A message describing the status of the request to update autoscaling settings

      • status: components["schemas"]["UpdateAutoscalingSettingsStatus"]

        Status of the request to update autoscaling settings

    • UpdateAutoscalingSettingsStatus: "ACCEPTED" | "QUEUED" | "UNCHANGED"

      UpdateAutoscalingSettingsStatusV1

      The status of a request to update autoscaling settings.

    • UpdateChainEnvironmentRequest: { promotion_settings?: components["schemas"]["UpdatePromotionSettings"] | null }

      UpdateChainEnvironmentRequestV1

      A request to update a chain environment.

      • Optionalpromotion_settings?: components["schemas"]["UpdatePromotionSettings"] | null

        Promotion settings for the environment

        {
        * "promotion_cleanup_strategy": null,
        * "ramp_up_duration_seconds": 600,
        * "ramp_up_while_promoting": true,
        * "redeploy_on_promotion": null,
        * "rolling_deploy": null,
        * "rolling_deploy_config": null
        * }
    • UpdateChainEnvironmentResponse: { ok: boolean }

      UpdateChainEnvironmentResponseV1

      A response to update a chain environment.

      • ok: boolean

        Ok

        Whether the update was successful

    • UpdateChainletEnvironmentAutoscalingSettingsRequest: {
          updates: components["schemas"]["ChainletEnvironmentAutoscalingSettingsUpdate"][];
      }

      UpdateChainletEnvironmentAutoscalingSettingsRequestV1

      A request to update the autoscaling settings for a multiple chainlets in an environment. If a chainlet name doesn't exist, an error is returned.

      • updates: components["schemas"]["ChainletEnvironmentAutoscalingSettingsUpdate"][]

        Updates

        Mapping of chainlet name to the desired chainlet autoscaling settings. If the chainlet name doesn't exist, an error is returned.

        [
        {
        "autoscaling_settings": {
        "autoscaling_window": 800,
        "concurrency_target": 4,
        "max_replica": 3,
        "max_scale_down_rate": null,
        "min_replica": 2,
        "scale_down_delay": 63,
        "target_in_flight_tokens": null,
        "target_utilization_percentage": null
        },
        "chainlet_name": "HelloWorld"
        }
        ]
        [
        {
        "autoscaling_settings": {
        "autoscaling_window": null,
        "concurrency_target": null,
        "max_replica": null,
        "max_scale_down_rate": null,
        "min_replica": 0,
        "scale_down_delay": null,
        "target_in_flight_tokens": null,
        "target_utilization_percentage": null
        },
        "chainlet_name": "HelloWorld"
        },
        {
        "autoscaling_settings": {
        "autoscaling_window": null,
        "concurrency_target": null,
        "max_replica": null,
        "max_scale_down_rate": null,
        "min_replica": 0,
        "scale_down_delay": null,
        "target_in_flight_tokens": null,
        "target_utilization_percentage": null
        },
        "chainlet_name": "RandInt"
        }
        ]
    • UpdateChainletEnvironmentInstanceTypeRequest: { updates: components["schemas"]["ChainletEnvironmentInstanceTypeUpdate"][] }

      UpdateChainletEnvironmentInstanceTypeRequestV1

      A request to update the instance types for chainlets in an environment. Multiples updates can be made in one request. The updates will be processed in batch and a new deployment will be created, deployed and promoted into the environment.

      • updates: components["schemas"]["ChainletEnvironmentInstanceTypeUpdate"][]

        Updates

        Mapping of chainlet name to the desired chainlet instance type. If the chainlet name doesn't exist, an error is returned.

        [
        {
        "chainlet_name": "HelloWorld",
        "instance_type_id": "1x4"
        },
        {
        "chainlet_name": "RandInt",
        "instance_type_id": "A10G:2x24x96"
        }
        ]
    • UpdateChainletEnvironmentInstanceTypeResponse: {
          chain_deployment: components["schemas"]["ChainDeployment"] | null;
          chainlet_environment_settings: components["schemas"]["ChainletEnvironmentSettings"][];
          requires_redeployment: boolean;
      }

      UpdateChainletEnvironmentInstanceTypeResponseV1

      A response to update the environment settings for a chainlet. If updating the instance type resulted in a re-deployment, requires_redeployment will be True and the resulting deployment will be returned in the chain_deployment field.

      • chain_deployment: components["schemas"]["ChainDeployment"] | null

        The chain deployment resulting from the resource update, if any.

      • chainlet_environment_settings: components["schemas"]["ChainletEnvironmentSettings"][]

        Chainlet Environment Settings

        The updated chainlet environment settings

      • requires_redeployment: boolean

        Requires Redeployment

        Whether the resource update requires a re-deployment to update the instance type.

    • UpdateDeploymentRequest: { name?: string | null }

      UpdateDeploymentRequestV1

      A request to update a deployment.

      • Optionalname?: string | null

        Name

        New name for the deployment, unique among the model's deployments. Only alphanumeric characters, hyphens, underscores, and periods are allowed.

        my-deployment
        
    • UpdateEndpointRequest: { targets?: components["schemas"]["EndpointTargetRequest"][] | null }

      UpdateEndpointRequestV1

      PATCH body. Replaces the endpoint's full target list. The slug is immutable after creation; to change it, create a new endpoint and delete this one.

      • Optionaltargets?: components["schemas"]["EndpointTargetRequest"][] | null

        Targets

        The endpoint's upstream targets. Exactly one target is supported at this time.

        [
        {
        "environment_name": "staging",
        "model_id": "3kZ9xqd",
        "provider": "BASETEN",
        "target_model": "custom/model-name"
        }
        ]
        [
        {
        "provider": "OPENAI",
        "secret_id": "3kZ9xqd",
        "target_model": "gpt-4o"
        }
        ]
        [
        {
        "base_url": "https://my-vllm.example.com",
        "provider": "OPENAI_COMPATIBLE",
        "secret_id": "3kZ9xqd",
        "target_model": "my-model"
        }
        ]
    • UpdateEnvironmentGroupManageAccess: { is_restricted: boolean; user_ids?: string[] }

      UpdateEnvironmentGroupManageAccessV1

      Manage-access settings to apply to an environment group.

      • is_restricted: boolean

        Is Restricted

        Whether to restrict this environment to a specific set of users.

      • Optionaluser_ids?: string[]

        User Ids

        IDs of users granted manage access while restricted. Only meaningful when is_restricted is true.

    • UpdateEnvironmentGroupRequest: {
          manage_access?:
              | components["schemas"]["UpdateEnvironmentGroupManageAccess"]
              | null;
      }

      UpdateEnvironmentGroupRequestV1

      A request to update an existing environment group.

      • Optionalmanage_access?: components["schemas"]["UpdateEnvironmentGroupManageAccess"] | null

        Manage-access settings to apply. Omit to leave manage access unchanged.

    • UpdateEnvironmentRequest: {
          autoscaling_schedule_settings?:
              | components["schemas"]["UpdateAutoscalingScheduleSettings"]
              | null;
          autoscaling_settings?: | components["schemas"]["UpdateAutoscalingSettings"]
          | null;
          promotion_settings?: | components["schemas"]["UpdateModelPromotionSettings"]
          | null;
          request_backpressure_settings?: | components["schemas"]["UpdateRequestBackpressureSettings"]
          | null;
          traffic_routing_settings?: | components["schemas"]["UpdateTrafficRoutingSettings"]
          | null;
      }

      UpdateEnvironmentRequestV1

      A request to update an environment.

      • Optionalautoscaling_schedule_settings?: components["schemas"]["UpdateAutoscalingScheduleSettings"] | null

        Partial autoscaling schedule collection update. Omitted collection fields and existing schedules are unchanged; each submitted schedule is a complete create or replacement.

        {
        * "schedules": [
        * {
        * "autoscaling_settings": {
        * "autoscaling_window": null,
        * "concurrency_target": null,
        * "max_replica": 8,
        * "max_scale_down_rate": null,
        * "min_replica": 2,
        * "scale_down_delay": null,
        * "target_in_flight_tokens": null,
        * "target_utilization_percentage": null
        * },
        * "cadence": "DAILY",
        * "enabled": true,
        * "end_hour": 10,
        * "end_minute": 0,
        * "name": "weekday-peak",
        * "start_hour": 8,
        * "start_minute": 0,
        * "weekdays": [
        * "MONDAY",
        * "TUESDAY",
        * "WEDNESDAY",
        * "THURSDAY",
        * "FRIDAY"
        * ]
        * }
        * ],
        * "timezone": "America/Los_Angeles"
        * }
        {
        * "delete_schedules": [
        * "schedule-id"
        * ]
        * }
      • Optionalautoscaling_settings?: components["schemas"]["UpdateAutoscalingSettings"] | null

        Autoscaling settings for the environment

        {
        * "autoscaling_window": 800,
        * "concurrency_target": 3,
        * "max_replica": 2,
        * "max_scale_down_rate": null,
        * "min_replica": 1,
        * "scale_down_delay": 60,
        * "target_in_flight_tokens": null,
        * "target_utilization_percentage": null
        * }
      • Optionalpromotion_settings?: components["schemas"]["UpdateModelPromotionSettings"] | null

        Promotion settings for the environment

        {
        * "promotion_cleanup_strategy": null,
        * "ramp_up_duration_seconds": null,
        * "ramp_up_while_promoting": null,
        * "redeploy_on_promotion": true,
        * "rolling_deploy": true,
        * "rolling_deploy_config": null
        * }
      • Optionalrequest_backpressure_settings?: components["schemas"]["UpdateRequestBackpressureSettings"] | null

        Request backpressure settings for the environment.

        {
        * "policy": "REJECT_ON_FULL"
        * }
      • Optionaltraffic_routing_settings?: components["schemas"]["UpdateTrafficRoutingSettings"] | null

        Partial traffic routing rule update. Each submitted rule is a complete create or replace. Deletes are applied first. In development.

        {
        * "rules": [
        * {
        * "expires_at": "2026-10-13T18:00:00Z",
        * "percent_traffic": 25,
        * "propagate_client_cancellation": true,
        * "sampling_mode": "USER_SESSION",
        * "targets": [
        * {
        * "deployment_id": "abc123"
        * }
        * ],
        * "type": "SHADOW"
        * }
        * ]
        * }
        {
        * "delete_rules": [
        * "rule-id"
        * ]
        * }
    • UpdateEnvironmentResponse: {
          environment: components["schemas"]["Environment"];
          message: string;
          status: components["schemas"]["UpdateAutoscalingSettingsStatus"];
      }

      UpdateEnvironmentResponseV1

      The response to a request to update an environment's settings.

      • environment: components["schemas"]["Environment"]

        The environment after the update, matching the shape returned by GET.

      • message: string

        Message

        Deprecated. Kept for legacy autoscaling-only update operation behavior.

      • status: components["schemas"]["UpdateAutoscalingSettingsStatus"]

        Deprecated. Kept for legacy autoscaling-only update operation behavior.

    • UpdateGridConnectionRequest: {
          config:
              | components["schemas"]["UpsertGridConnectionConfigAnthropic"]
              | components["schemas"]["UpsertGridConnectionConfigOpenAI"]
              | components["schemas"]["UpsertGridConnectionConfigXAI"]
              | components["schemas"]["UpsertGridConnectionConfigVertex"]
              | components["schemas"]["UpsertGridConnectionConfigBedrock"];
      }

      UpdateGridConnectionRequestV1

      • config:
            | components["schemas"]["UpsertGridConnectionConfigAnthropic"]
            | components["schemas"]["UpsertGridConnectionConfigOpenAI"]
            | components["schemas"]["UpsertGridConnectionConfigXAI"]
            | components["schemas"]["UpsertGridConnectionConfigVertex"]
            | components["schemas"]["UpsertGridConnectionConfigBedrock"]

        Config

        Complete new connection configuration, replacing the current one. The provider must match the connection and is immutable.

        {
        * "provider": "ANTHROPIC",
        * "secret_name": "anthropic-key"
        * }
    • UpdateGridHarnessDefaults: {
          claude_code?: components["schemas"]["UpdateGridHarnessModels"] | null;
          codex?: components["schemas"]["UpdateGridHarnessModels"] | null;
          opencode?: components["schemas"]["UpdateGridHarnessModels"] | null;
          pi?: components["schemas"]["UpdateGridHarnessModels"] | null;
      }

      UpdateGridHarnessDefaultsV1

      • Optionalclaude_code?: components["schemas"]["UpdateGridHarnessModels"] | null

        Route IDs for the model roles to change; roles left out are unchanged. Every route must belong to the team. Pass null to clear every role, or omit to leave the harness unchanged.

      • Optionalcodex?: components["schemas"]["UpdateGridHarnessModels"] | null

        Route IDs for the model roles to change; roles left out are unchanged. Every route must belong to the team. Pass null to clear every role, or omit to leave the harness unchanged.

      • Optionalopencode?: components["schemas"]["UpdateGridHarnessModels"] | null

        Route IDs for the model roles to change; roles left out are unchanged. Every route must belong to the team. Pass null to clear every role, or omit to leave the harness unchanged.

      • Optionalpi?: components["schemas"]["UpdateGridHarnessModels"] | null

        Route IDs for the model roles to change; roles left out are unchanged. Every route must belong to the team. Pass null to clear every role, or omit to leave the harness unchanged.

    • UpdateGridHarnessModels: { background?: string | null; primary?: string | null }

      UpdateGridHarnessModelsV1

      • Optionalbackground?: string | null

        Background

        Route ID for background tasks, such as session titles. Omit to keep the current route, or pass null to use the team's default.

        def5678
        
      • Optionalprimary?: string | null

        Primary

        Route ID for the primary model, which new sessions use. Omit to keep the current route, or pass null to use the team's default.

        abc1234
        
    • UpdateGridMachineUserRequest: { name?: string | null }

      UpdateGridMachineUserRequestV1

      • Optionalname?: string | null

        Name

        Name of the machine user, unique within its team. At most 255 characters. Omit to keep it.

    • UpdateGridRouteRequest: {
          description?: string | null;
          display_name?: string | null;
          target?:
              | | components["schemas"]["UpsertGridRouteTargetBasetenModelAPI"]
              | components["schemas"]["UpsertGridRouteTargetConnection"]
              | components["schemas"]["UpsertGridRouteTargetClassifier"]
              | null;
      }

      UpdateGridRouteRequestV1

      • Optionaldescription?: string | null

        Description

        New description. Omit to keep the current description; use an empty string to clear it. Null is not accepted.

        Assistant for code review and debugging.
        
      • Optionaldisplay_name?: string | null

        Display Name

        New display label. Omit to keep the current label; null is not accepted.

        Assistant
        
      • Optionaltarget?:
            | | components["schemas"]["UpsertGridRouteTargetBasetenModelAPI"]
            | components["schemas"]["UpsertGridRouteTargetConnection"]
            | components["schemas"]["UpsertGridRouteTargetClassifier"]
            | null

        Target

        Complete new target configuration. Omit to keep the current configuration; null is not accepted. Only the CLASSIFIER configuration of a router route is mutable.

    • UpdateGridSpendLimitSetting: { month_override_usd?: string | null; user_monthly_limit_usd?: string | null }

      UpdateGridSpendLimitSettingV1

      • Optionalmonth_override_usd?: string | null

        Month Override Usd

        Spend limit in USD for the current UTC calendar month, which supersedes the standing limit. Send null to remove it; omit to leave it unchanged.

        300
        
      • Optionaluser_monthly_limit_usd?: string | null

        User Monthly Limit Usd

        Standing spend limit in USD for each UTC calendar month. Send null to remove the limit; omit to leave it unchanged.

        200
        
    • UpdateGridTeamSettingsRequest: {
          harness_defaults?:
              | components["schemas"]["UpdateGridHarnessDefaults"]
              | null;
          spend_limit?: | components["schemas"]["UpdateGridTeamSpendLimitSetting"]
          | null;
          team_id?: string
          | null;
      }

      UpdateGridTeamSettingsRequestV1

      • Optionalharness_defaults?: components["schemas"]["UpdateGridHarnessDefaults"] | null

        Harnesses to change; harnesses left out are unchanged. Pass null to clear every harness, so each role uses the team's default.

      • Optionalspend_limit?: components["schemas"]["UpdateGridTeamSpendLimitSetting"] | null

        Spend limit fields to change. Pass null to remove the team's limits; omit to leave them unchanged.

      • Optionalteam_id?: string | null

        Team Id

        ID of the team. When omitted, the team you belong to; required when you belong to several.

        abc1234
        
    • UpdateGridTeamSpendLimitSetting: {
          per_member_monthly_limit_usd?: string | null;
          team_wide_monthly_limit_usd?: string | null;
      }

      UpdateGridTeamSpendLimitSettingV1

      • Optionalper_member_monthly_limit_usd?: string | null

        Per Member Monthly Limit Usd

        Spend limit in USD for each UTC calendar month that applies to each member's Grid spend in this team, unless the member has a limit of their own. Send null to remove it; omit to leave it unchanged.

        200
        
      • Optionalteam_wide_monthly_limit_usd?: string | null

        Team Wide Monthly Limit Usd

        Spend limit in USD for each UTC calendar month on the Grid spend of all members in this team together. Send null to remove it; omit to leave it unchanged.

        5000
        
    • UpdateGridUserSettingsRequest: {
          spend_limit?:
              | components["schemas"]["UpdateGridSpendLimitSetting"]
              | null;
          team_id?: string
          | null;
      }

      UpdateGridUserSettingsRequestV1

      • Optionalspend_limit?: components["schemas"]["UpdateGridSpendLimitSetting"] | null

        Spend limit fields to change. Pass null to remove the user's limit; omit to leave it unchanged.

      • Optionalteam_id?: string | null

        Team Id

        ID of the team. When omitted, the team you belong to; required when you belong to several.

        abc1234
        
    • UpdateGroupMetadata: { name?: string | null }

      UpdateGroupMetadataV1

      • Optionalname?: string | null

        Name

        Optional display name for the group.

        Acme prod
        
    • UpdateGroupRequest: {
          metadata?: components["schemas"]["UpdateGroupMetadata"] | null;
          models?: components["schemas"]["ModelConfig"][] | null;
      }

      UpdateGroupRequestV1

      • Optionalmetadata?: components["schemas"]["UpdateGroupMetadata"] | null

        Mutable group metadata.

        {
        * "name": "Acme Prod"
        * }
      • Optionalmodels?: components["schemas"]["ModelConfig"][] | null

        Models

        Per-model rate and usage limit configuration.

    • UpdateLibraryListingRequest: {
          display_name?: string | null;
          is_listed?: boolean | null;
          is_public?: boolean | null;
          metadata?: components["schemas"]["LibraryListingMetadata"] | null;
          trending?: boolean | null;
      }

      UpdateLibraryListingRequestV1

      Request to update a library listing.

      • Optionaldisplay_name?: string | null

        Display Name

        New display name for the library listing

      • Optionalis_listed?: boolean | null

        Is Listed

        Whether the listing appears in catalogs; unlisted listings still deploy from a direct link

      • Optionalis_public?: boolean | null

        Is Public

        Whether the listing is publicly accessible

      • Optionalmetadata?: components["schemas"]["LibraryListingMetadata"] | null

        Model-level metadata for the listing. When provided, replaces the stored metadata.

      • Optionaltrending?: boolean | null

        Trending

        Whether the listing is trending

    • UpdateLibraryListingVersionRequest: {
          allow_truss_download?: boolean | null;
          benchmark?: components["schemas"]["BenchmarkSnapshot"] | null;
          is_live?: boolean | null;
      }

      UpdateLibraryListingVersionRequestV1

      Request to update a library listing version.

      • Optionalallow_truss_download?: boolean | null

        Allow Truss Download

        Whether users deploying this model can download the Truss

      • Optionalbenchmark?: components["schemas"]["BenchmarkSnapshot"] | null

        Benchmark snapshot for this version. When provided, replaces the stored benchmark.

      • Optionalis_live?: boolean | null

        Is Live

        Whether this version should be the live version. Setting to true demotes the current live version.

    • UpdateModelPromotionSettings: {
          promotion_cleanup_strategy?:
              | components["schemas"]["PromotionCleanupStrategy"]
              | null;
          ramp_up_duration_seconds?: number
          | null;
          ramp_up_while_promoting?: boolean | null;
          redeploy_on_promotion?: boolean | null;
          rolling_deploy?: boolean | null;
          rolling_deploy_config?:
              | components["schemas"]["UpdateRollingDeployConfig"]
              | null;
      }

      UpdateModelPromotionSettingsV1

      Promotion settings to update for a model environment

      • Optionalpromotion_cleanup_strategy?: components["schemas"]["PromotionCleanupStrategy"] | null

        The cleanup strategy to use after a promotion completes.

        SCALE_TO_ZERO
        
      • Optionalramp_up_duration_seconds?: number | null

        Ramp Up Duration Seconds

        Deprecated: models don't support canary promotions.

      • Optionalramp_up_while_promoting?: boolean | null

        Ramp Up While Promoting

        Deprecated: models don't support canary promotions, and true is rejected. Use rolling_deploy.

      • Optionalredeploy_on_promotion?: boolean | null

        Redeploy On Promotion

        Whether to deploy on all promotions. Enabling this flag allows model code to safely handle environment-specific logic. When a deployment is promoted, a new deployment will be created with a copy of the image.

        true
        
      • Optionalrolling_deploy?: boolean | null

        Rolling Deploy

        Whether the environment should rely on rolling deploy orchestration.

        true
        
      • Optionalrolling_deploy_config?: components["schemas"]["UpdateRollingDeployConfig"] | null

        Rolling deploy configuration for promotions

    • UpdateModelRequest: { name?: string | null }

      UpdateModelRequestV1

      A request to update a model.

      • Optionalname?: string | null

        Name

        New name for the model, unique within its team. Renaming does not change the model ID, endpoints, or deployments. Pushes that still use the old model_name create another model or target a model that now uses that name, so update config.yaml after renaming.

        my-model
        
    • UpdatePromotionSettings: {
          promotion_cleanup_strategy?:
              | components["schemas"]["PromotionCleanupStrategy"]
              | null;
          ramp_up_duration_seconds?: number
          | null;
          ramp_up_while_promoting?: boolean | null;
          redeploy_on_promotion?: boolean | null;
          rolling_deploy?: boolean | null;
          rolling_deploy_config?:
              | components["schemas"]["UpdateRollingDeployConfig"]
              | null;
      }

      UpdatePromotionSettingsV1

      Promotion settings for model promotion

      • Optionalpromotion_cleanup_strategy?: components["schemas"]["PromotionCleanupStrategy"] | null

        The cleanup strategy to use after a promotion completes.

        SCALE_TO_ZERO
        
      • Optionalramp_up_duration_seconds?: number | null

        Ramp Up Duration Seconds

        Duration of the ramp up in seconds

        600
        
      • Optionalramp_up_while_promoting?: boolean | null

        Ramp Up While Promoting

        Whether to ramp up traffic while promoting

        true
        
      • Optionalredeploy_on_promotion?: boolean | null

        Redeploy On Promotion

        Whether to deploy on all promotions. Enabling this flag allows model code to safely handle environment-specific logic. When a deployment is promoted, a new deployment will be created with a copy of the image.

        true
        
      • Optionalrolling_deploy?: boolean | null

        Rolling Deploy

        Whether the environment should rely on rolling deploy orchestration.

        true
        
      • Optionalrolling_deploy_config?: components["schemas"]["UpdateRollingDeployConfig"] | null

        Rolling deploy configuration for promotions

    • UpdateRequestBackpressureSettings: { policy?: components["schemas"]["RequestBackpressurePolicy"] | null }

      UpdateRequestBackpressureSettingsV1

      A request to update request backpressure settings.

      • Optionalpolicy?: components["schemas"]["RequestBackpressurePolicy"] | null

        Backpressure policy to apply. Null indicates no policy (on update, clears an existing one).

        REJECT_ON_FULL
        
    • UpdateRollingDeployConfig: {
          max_surge_percent?: number | null;
          max_unavailable_percent?: number | null;
          replica_overhead_percent?: number | null;
          rolling_deploy_strategy?:
              | components["schemas"]["RollingDeployStrategy"]
              | null;
          stabilization_time_seconds?: number
          | null;
      }

      UpdateRollingDeployConfigV1

      Rolling deploy config for promoting chains and oracles

      • Optionalmax_surge_percent?: number | null

        Max Surge Percent

        The maximum surge percentage for rolling deploys.

        25
        
      • Optionalmax_unavailable_percent?: number | null

        Max Unavailable Percent

        The maximum unavailable percentage for rolling deploys.

        10
        
      • Optionalreplica_overhead_percent?: number | null

        Replica Overhead Percent

        The replica overhead percentage for rolling deploys.

        0
        
      • Optionalrolling_deploy_strategy?: components["schemas"]["RollingDeployStrategy"] | null

        The rolling deploy strategy to use for promotions.

        REPLICA
        
      • Optionalstabilization_time_seconds?: number | null

        Stabilization Time Seconds

        The stabilization time in seconds for rolling deploys.

        300
        
    • UpdateSandboxParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • UpdateSandboxPreviewParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • UpdateSandboxPreviewRequest: components["schemas"]["SandboxPreviewConfiguration"] & {
          ttl?: components["schemas"]["SandboxPreviewTtl"];
      }

      Preview fields to change. name and port cannot be changed. ttl and expires_at are mutually exclusive; supplying both returns 400.

    • UpdateSandboxRequest: {
          envs?: components["schemas"]["SandboxEnv"][];
          external_id?: string;
          labels?: components["schemas"]["SandboxMetadataLabels"];
          lifecycle?: components["schemas"]["SandboxLifecycle"];
      }

      Partial sandbox update. Omitted fields remain unchanged. Supplied arrays and maps (including labels) replace their previous values; supplied structured objects update only their supplied fields. Null is not accepted. The name, memory, cpu, region, image, ports, filesystem, and volumes are immutable after creation. Supplying any of these fields returns 400, including unchanged, empty, or null values.

      {
      * "lifecycle": {
      * "expiration_policies": [
      * {
      * "action": "DELETE",
      * "type": "TTL_IDLE",
      * "value": "24h"
      * },
      * {
      * "action": "DELETE",
      * "type": "TTL_MAX_AGE",
      * "value": "7d"
      * },
      * {
      * "action": "DELETE",
      * "type": "DATE",
      * "value": "2026-09-23T21:26:58Z"
      * }
      * ],
      * "terminated_retention": "24h"
      * },
      * "envs": [
      * {
      * "name": "NODE_ENV",
      * "secret": false,
      * "value": "production"
      * },
      * {
      * "name": "PORT",
      * "secret": false,
      * "value": "3000"
      * }
      * ],
      * "external_id": "api-review-20260916-001",
      * "labels": {
      * "env": "development",
      * "project": "api-review",
      * "team": "engineering",
      * "revision": "2"
      * }
      * }
      • Optionalenvs?: components["schemas"]["SandboxEnv"][]

        Environment variables injected into the sandbox.

        [
        {
        "name": "NODE_ENV",
        "secret": false,
        "value": "production"
        },
        {
        "name": "PORT",
        "secret": false,
        "value": "3000"
        }
        ]
      • Optionalexternal_id?: string

        Caller-owned identifier for external lookups. Max 64 chars, alphanumeric + dash.

        api-review-20260916-001
        
      • Optionallabels?: components["schemas"]["SandboxMetadataLabels"]

        Key-value pairs for organizing and filtering resources. Labels can be used to categorize resources by environment, project, team, or any custom taxonomy.

        {
        * "env": "development",
        * "project": "api-review",
        * "team": "engineering",
        * "revision": "2"
        * }
      • Optionallifecycle?: components["schemas"]["SandboxLifecycle"]

        Lifecycle configuration controlling automatic sandbox deletion based on idle time, max age, or specific dates

        {
        * "expiration_policies": [
        * {
        * "action": "DELETE",
        * "type": "TTL_IDLE",
        * "value": "24h"
        * },
        * {
        * "action": "DELETE",
        * "type": "TTL_MAX_AGE",
        * "value": "7d"
        * },
        * {
        * "action": "DELETE",
        * "type": "DATE",
        * "value": "2026-09-23T21:26:58Z"
        * }
        * ],
        * "terminated_retention": "24h"
        * }
    • UpdateSandboxVolumeParams: { team_id?: string }
      • Optionalteam_id?: string

        Optional team ID. Must match X-Team-Id when both are supplied. If neither selector is supplied, defaults to the caller's only accessible team. Callers with multiple accessible teams must select a team. Requests without access to any team are forbidden.

    • UpdateSandboxVolumeRequest: {
          labels?: components["schemas"]["SandboxMetadataLabels"];
          size?: string | number;
      }

      Volume fields to change. name and region cannot be changed.

      • Optionallabels?: components["schemas"]["SandboxMetadataLabels"]

        Labels replacing all current labels, not merged with them. Omit to keep them.

      • Optionalsize?: string | number

        New capacity, as a size (e.g. "20Gi") or a number of Mi, greater than or equal to the current size.

        20Gi
        
    • UpdateTrafficRoutingSettings: {
          delete_rules?: string[];
          rules?: components["schemas"]["TrafficRoutingRuleUpsert"][];
      }

      UpdateTrafficRoutingSettingsV1

      Partial update of an environment's traffic routing rules.

      • Optionaldelete_rules?: string[]

        Delete Rules

        IDs of rules to delete

      • Optionalrules?: components["schemas"]["TrafficRoutingRuleUpsert"][]

        Rules

        Complete rules to create or replace. Existing rules omitted here are unchanged.

    • UpdateTrainingJobRequest: {
          availability_model?: components["schemas"]["AvailabilityModel"] | null;
          priority?: number | null;
      }

      UpdateTrainingJobRequestV1

      A request to update mutable fields on a training job.

      Every field is optional so a caller can patch one without the other, but at least
      one must be provided: an empty body has nothing to apply.
      
      • Optionalavailability_model?: components["schemas"]["AvailabilityModel"] | null

        New capacity guarantee for a PENDING training job. 'standard' runs on capacity that is not preempted. 'spot' runs on interruptible capacity that may be preempted; you are responsible for checkpointing your own progress. Only jobs in the PENDING state can have their availability model changed.

        spot
        
      • Optionalpriority?: number | null

        Priority

        New queue priority for a PENDING training job. Higher values are dequeued first. Only jobs in the PENDING state can have their priority changed.

        0
        
        10
        
        100
        
    • UpdateTrainingJobResponse: { training_job: components["schemas"]["TrainingJob"] }

      UpdateTrainingJobResponseV1

      A response to updating a training job.

    • UpsertGridConnectionBedrockAccessKeysAuth: { method: "access_keys" }

      UpsertGridConnectionBedrockAccessKeysAuthV1

      • method: "access_keys"

        The secret holds the access keys of an IAM user, as the base64-encoded JSON object {"AccessKeyId": "...", "SecretAccessKey": "..."} (enum property replaced by openapi-typescript)

    • UpsertGridConnectionBedrockApiKeyAuth: { method: "api_key" }

      UpsertGridConnectionBedrockApiKeyAuthV1

      • method: "api_key"

        The secret holds a long-term Amazon Bedrock API key. (enum property replaced by openapi-typescript)

    • UpsertGridConnectionConfigAnthropic: { provider: "ANTHROPIC"; secret_name: string }

      UpsertGridConnectionConfigAnthropicV1

      • provider: "ANTHROPIC"

        Provider kind for Anthropic. (enum property replaced by openapi-typescript)

      • secret_name: string

        Secret Name

        Name of an existing secret, owned by the same team, that holds the provider API key.

        anthropic-key
        
    • UpsertGridConnectionConfigBedrock: {
          auth:
              | components["schemas"]["UpsertGridConnectionBedrockApiKeyAuth"]
              | components["schemas"]["UpsertGridConnectionBedrockAccessKeysAuth"];
          provider: "BEDROCK";
          region: string;
          secret_name: string;
      }

      UpsertGridConnectionConfigBedrockV1

      • auth:
            | components["schemas"]["UpsertGridConnectionBedrockApiKeyAuth"]
            | components["schemas"]["UpsertGridConnectionBedrockAccessKeysAuth"]

        Auth

        How the connection's secret authenticates with Amazon Bedrock.

      • provider: "BEDROCK"

        Provider kind for Amazon Bedrock. Claude models (anthropic.*) use the Anthropic Messages API, and other models use the OpenAI-compatible APIs. (enum property replaced by openapi-typescript)

      • region: string

        Region

        AWS Region of the Amazon Bedrock endpoint, for example us-east-1.

        us-east-1
        
      • secret_name: string

        Secret Name

        Name of an existing secret, owned by the same team, that holds the provider API key.

        anthropic-key
        
    • UpsertGridConnectionConfigOpenAI: { provider: "OPENAI"; secret_name: string }

      UpsertGridConnectionConfigOpenAIV1

      • provider: "OPENAI"

        Provider kind for OpenAI. (enum property replaced by openapi-typescript)

      • secret_name: string

        Secret Name

        Name of an existing secret, owned by the same team, that holds the provider API key.

        anthropic-key
        
    • UpsertGridConnectionConfigVertex: {
          location: string;
          project_id: string;
          provider: "VERTEX";
          secret_name: string;
      }

      UpsertGridConnectionConfigVertexV1

      • location: string

        Location

        Google Cloud region that serves the Vertex AI models, for example us-central1.

        us-central1
        
      • project_id: string

        Project Id

        Google Cloud project ID or number of a project with Vertex AI enabled.

        my-gcp-project
        
      • provider: "VERTEX"

        Provider kind for Google Vertex. (enum property replaced by openapi-typescript)

      • secret_name: string

        Secret Name

        Name of an existing secret, owned by the same team, that holds the provider API key.

        anthropic-key
        
    • UpsertGridConnectionConfigXAI: { provider: "XAI"; secret_name: string }

      UpsertGridConnectionConfigXAIV1

      • provider: "XAI"

        Provider kind for xAI. (enum property replaced by openapi-typescript)

      • secret_name: string

        Secret Name

        Name of an existing secret, owned by the same team, that holds the provider API key.

        anthropic-key
        
    • UpsertGridRouteTargetBasetenModelAPI: { model: string; type: "BASETEN_MODEL_API" }

      UpsertGridRouteTargetBasetenModelAPIV1

      • model: string

        Model

        Name of the target Model API.

      • type: "BASETEN_MODEL_API"

        Target kind for a Baseten Model API. (enum property replaced by openapi-typescript)

    • UpsertGridRouteTargetClassifier: {
          allowed_route_ids: string[];
          classifier_id: string;
          default_route_id: string;
          type: "CLASSIFIER";
      }

      UpsertGridRouteTargetClassifierV1

      • allowed_route_ids: string[]

        Allowed Route Ids

        IDs of the routes the classifier may pick. All must belong to the route's team and must not be routers themselves.

        [
        "abc1234",
        "def5678"
        ]
      • classifier_id: string

        Classifier Id

        ID of the classifier that picks a route for each request.

        general-v1
        
      • default_route_id: string

        Default Route Id

        ID of the allowed route used when the classifier picks none.

        abc1234
        
      • type: "CLASSIFIER"

        Target kind for a classifier-based route. (enum property replaced by openapi-typescript)

    • UpsertGridRouteTargetConnection: { connection_id: string; model: string; type: "CONNECTION" }

      UpsertGridRouteTargetConnectionV1

      • connection_id: string

        Connection Id

        Identifier of a connection owned by the route's team. Its provider serves the route.

        abc1234
        
      • model: string

        Model

        Model name sent to the provider.

      • type: "CONNECTION"

        Target kind for a provider reached through a team connection. (enum property replaced by openapi-typescript)

    • UpsertSecretRequest: { name: string; value: string }

      UpsertSecretRequestV1

      A request to create or update a Baseten secret by name.

      • name: string

        Name

        Name of the new or existing secret

        my_secret
        
      • value: string

        Value

        Value of the secret

        my_secret_value
        
    • UpsertTrainingProject: { name: string; project_accelerator?: string | null }

      UpsertTrainingProjectV1

      Fields that can be upserted on a training project.

      • name: string

        Name

        Name of the training project.

        My Training Project
        
      • Optionalproject_accelerator?: string | null

        Project Accelerator

        Optional default GPU type for cache-enabled CPU job placement, such as H100. GPU jobs use their requested GPU type; uncached CPU jobs use normal CPU routing. Omitting this field preserves the stored default; providing a value updates it. Existing cache-affinity requirements still apply.

        H100
        
    • UpsertTrainingProjectRequest: { training_project: components["schemas"]["UpsertTrainingProject"] }

      UpsertTrainingProjectRequestV1

      A request to upsert a training project.

      • training_project: components["schemas"]["UpsertTrainingProject"]

        The training project to upsert.

    • UpsertTrainingProjectResponse: { training_project: components["schemas"]["TrainingProject"] }

      UpsertTrainingProjectResponseV1

      A response to upserting a training project.

      • training_project: components["schemas"]["TrainingProject"]

        The upserted training project.

    • UsageDimension: "api_key" | "user" | "model" | "team"

      UsageDimensionV1

    • UsageLimit: {
          threshold: number;
          type: components["schemas"]["LimitType"];
          unit: components["schemas"]["UsageLimitUnit"];
      }

      UsageLimitV1

      • threshold: number

        Threshold

        The threshold for the usage limit

        10000000
        
      • type: components["schemas"]["LimitType"]

        The type of the usage limit

        REQUEST
        
        TOKEN
        
      • unit: components["schemas"]["UsageLimitUnit"]

        The unit of the usage limit

        DAY
        
    • UsageLimitUnit: "DAY"

      UsageLimitUnitV1

    • UsageSummary: {
          dedicated_usage: components["schemas"]["DedicatedUsage"] | null;
          loops_usage: components["schemas"]["LoopsUsage"] | null;
          model_apis_usage: components["schemas"]["ModelApisUsage"] | null;
          training_usage: components["schemas"]["TrainingUsage"] | null;
      }

      UsageSummaryV1

      Billing usage summary for the requested date range.

      • dedicated_usage: components["schemas"]["DedicatedUsage"] | null

        Dedicated model serving usage

        null
        
      • loops_usage: components["schemas"]["LoopsUsage"] | null

        Serverless Loops usage, billed per token. Loops usage on dedicated trainers and samplers is billed by the minute and is part of training usage.

        null
        
      • model_apis_usage: components["schemas"]["ModelApisUsage"] | null

        Model APIs usage

        null
        
      • training_usage: components["schemas"]["TrainingUsage"] | null

        Training usage

        null
        
    • User: { email: string | null }

      UserV1

      A user.

      • email: string | null

        Email

        Email of the user.

        null
        
    • UserInfo: {
          email: string | null;
          name: string | null;
          user_id: string;
          workspace_name: string | null;
      }

      UserInfoV1

      A Baseten user.

      • email: string | null

        Email

        Email address of the user

        null
        
      • name: string | null

        Name

        Display name of the user

        null
        
      • user_id: string

        User Id

        Unique identifier for the user

      • workspace_name: string | null

        Workspace Name

        Name of the user's workspace

        null
        
    • UsersResponse: {
          items: components["schemas"]["UserInfo"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      UsersResponseV1

      A page of users in the caller's workspace.

    • V1InteractiveSessionAuthProvider: "github" | "microsoft"

      V1InteractiveSessionAuthProvider

    • V1InteractiveSessionProvider: "vs_code" | "cursor" | "ssh"

      V1InteractiveSessionProvider

    • V1InteractiveSessionTrigger: "on_startup" | "on_failure" | "on_demand"

      V1InteractiveSessionTrigger

    • ValidateLoopsCheckpointRequest: { checkpoint_path: string; run_id?: string | null }

      ValidateLoopsCheckpointRequestV1

      Request body for POST /v1/loops/checkpoints/validate.

      • checkpoint_path: string

        Checkpoint Path

        bt:// URI of a sampler checkpoint. Form: bt://loops:<run_id>/sampler_weights/<checkpoint_name>.

        bt://loops:k4q95w5/sampler_weights/step-100
        
      • Optionalrun_id?: string | null

        Run Id

        Loops run whose sampler will load the checkpoint. The checkpoint must use the run's LoRA config.

        k4q95w5
        
    • ValidateLoopsCheckpointResponse: Record<string, unknown>

      ValidateLoopsCheckpointResponseV1

      Response for POST /v1/loops/checkpoints/validate. Empty on success; inaccessible or malformed paths, and checkpoints of another LoRA config than run_id's, raise 400.

    • VertexTargetConfig: { location: string; project_id: string }

      VertexTargetConfigV1

      • location: string

        Location

        Google Cloud location.

        global
        
      • project_id: string

        Project Id

        Google Cloud project ID or project number.

        my-gcp-project
        
        464036093014
        
    • Volume: {
          expires_at: string | null;
          head: components["schemas"]["VolumeVersionSummary"] | null;
          name: string;
          namespace: string;
          sequence: number;
          tag_count: number;
          tags: components["schemas"]["VolumeTag"][];
          updated_at: string;
          version_ref: string;
          versions_alive: number;
          versions_earliest_expires_at: string | null;
          versions_expiring: number;
          versions_tombstoned: number;
          versions_untagged: number;
      }

      VolumeV1

      • expires_at: string | null

        Expires At

        When the whole volume expires, in ISO 8601 format. At that instant every live version is deleted, every tag drops, and the volume leaves the volume listing; each version then stays restorable until its recovery deadline passes. Null for a volume that never expires.

      • head: components["schemas"]["VolumeVersionSummary"] | null

        Version that the reserved head tag points at, which a reference with no tag or digest resolves to. Never an expiring version. Null when the volume has no head, or when your API key cannot read it.

      • name: string

        Name

        Name of the volume, in lowercase.

      • namespace: string

        Namespace

        Namespace the volume belongs to, in lowercase.

      • sequence: number

        Sequence

        Revision counter for the volume, incremented on every commit, tag change, delete, and restore. A tag or version that expires leaves without changing it; the next write then increments it once. Use it to detect that a volume was written to.

      • tag_count: number

        Tag Count

        Total number of tags on the volume, which can exceed the length of tags when your API key cannot read all of them. Counts only tags that have not expired.

      • tags: components["schemas"]["VolumeTag"][]

        Tags

        Tags on the volume that your API key can read. A tag with expires_at leaves this list at that instant.

      • updated_at: string

        Updated At Format: date-time

        When the volume was last written to, in ISO 8601 format. An expiry does not update it.

      • version_ref: string

        Version Ref

        Full address of the volume, as bdn:<namespace>/<volume>. Paste this into the bdn.mounts section of a config.yaml.

      • versions_alive: number

        Versions Alive

        Number of versions that have not been deleted or expired.

      • versions_earliest_expires_at: string | null

        Versions Earliest Expires At

        Earliest expiry among the live versions, in ISO 8601 format. Null when no live version is scheduled to expire.

      • versions_expiring: number

        Versions Expiring

        Number of live versions with an expiry still ahead of them. A version that has already expired counts in versions_tombstoned instead.

      • versions_tombstoned: number

        Versions Tombstoned

        Number of versions that have been deleted or expired and are still within their recovery window.

      • versions_untagged: number

        Versions Untagged

        Number of live versions that no tag points at.

    • VolumeSync: {
          completed_at: string | null;
          content_digest: string | null;
          created_at: string;
          destination: components["schemas"]["VolumeSyncDestination"];
          error: components["schemas"]["VolumeSyncError"] | null;
          source:
              | components["schemas"]["VolumeSyncSourceHuggingFace"]
              | components["schemas"]["VolumeSyncSourceS3"]
              | components["schemas"]["VolumeSyncSourceGCS"]
              | components["schemas"]["VolumeSyncSourceAzure"]
              | components["schemas"]["VolumeSyncSourceR2"]
              | components["schemas"]["VolumeSyncSourceCoreWeave"]
              | components["schemas"]["VolumeSyncSourceBasetenTraining"];
          status: components["schemas"]["VolumeSyncStatus"];
          sync_id: string;
          total_size_bytes: number
          | null;
          version_ref: string | null;
          volume_version_id: string | null;
      }

      VolumeSyncV1

      Current state and result of a volume sync.

      • completed_at: string | null

        Completed At

        Time at which the sync reached a terminal state.

        null
        
      • content_digest: string | null

        Content Digest

        BLAKE3 digest of the synced content; null until available.

        null
        
      • created_at: string

        Created At Format: date-time

        Time at which the sync was created.

      • destination: components["schemas"]["VolumeSyncDestination"]

        BDN volume being populated.

      • error: components["schemas"]["VolumeSyncError"] | null

        Redacted failure details; null unless the sync failed.

        null
        
      • source:
            | components["schemas"]["VolumeSyncSourceHuggingFace"]
            | components["schemas"]["VolumeSyncSourceS3"]
            | components["schemas"]["VolumeSyncSourceGCS"]
            | components["schemas"]["VolumeSyncSourceAzure"]
            | components["schemas"]["VolumeSyncSourceR2"]
            | components["schemas"]["VolumeSyncSourceCoreWeave"]
            | components["schemas"]["VolumeSyncSourceBasetenTraining"]

        Source

        Remote source being synced.

      • status: components["schemas"]["VolumeSyncStatus"]

        Current lifecycle state of the sync.

      • sync_id: string

        Sync Id

        Identifier of this sync operation.

      • total_size_bytes: number | null

        Total Size Bytes

        Total size of the synced content in bytes; null until available.

        null
        
      • version_ref: string | null

        Version Ref

        Immutable BDN reference; null until the sync is ready.

        null
        
      • volume_version_id: string | null

        Volume Version Id

        Produced artifact identifier; null until the sync is ready.

        null
        
    • VolumeSyncAuthenticationAWSAssumeRole: { region: string; role_arn: string }

      VolumeSyncAuthenticationAWSAssumeRoleV1

      Authentication using an AWS IAM role assumed by Baseten.

      • region: string

        Region

        AWS region for the assumed role session.

      • role_arn: string

        Role Arn

        AWS IAM role ARN to assume.

    • VolumeSyncAuthenticationAWSOIDC: { region: string; role_arn: string }

      VolumeSyncAuthenticationAWSOIDCV1

      Authentication using an AWS IAM role and Baseten workload identity.

      • region: string

        Region

        AWS region for the OIDC role session.

      • role_arn: string

        Role Arn

        AWS IAM role ARN to assume through OIDC.

    • VolumeSyncAuthenticationGCPOIDC: { service_account: string; workload_identity_provider: string }

      VolumeSyncAuthenticationGCPOIDCV1

      Authentication using GCP Workload Identity Federation.

      • service_account: string

        Service Account

        GCP service account to impersonate through OIDC.

      • workload_identity_provider: string

        Workload Identity Provider

        Full resource name of the GCP workload identity provider.

    • VolumeSyncAuthenticationHuggingFaceOIDC: { resource: string }

      VolumeSyncAuthenticationHuggingFaceOIDCV1

      Authentication using a Hugging Face trusted publisher and Baseten workload identity.

      • resource: string

        Resource

        Hugging Face username for an account CI/CD identity, or namespace/repository for a repository trusted publisher. Configure trust in Hugging Face before starting the sync.

        hf-user
        
        organization/private-model
        
    • VolumeSyncDestination: { ref: string }

      VolumeSyncDestinationV1

      BDN destination for a volume sync.

      • ref: string

        Ref

        Destination as bdn:/ with an optional tag.

    • VolumeSyncError: { code: string; message: string }

      VolumeSyncErrorV1

      Public failure details for a volume sync.

      • code: string

        Code

        Stable machine-readable failure classification.

      • message: string

        Message

        Redacted user-facing failure message.

    • VolumeSyncs: {
          items: components["schemas"]["VolumeSync"][];
          pagination: components["schemas"]["PaginationResponse"];
      }

      VolumeSyncsV1

      A page of volume syncs in the active workspace.

    • VolumeSyncSourceAzure: {
          auth_secret_name?: string | null;
          exclude?: string[];
          include?: string[];
          type: "AZURE";
          uri: string;
      }

      VolumeSyncSourceAzureV1

      Azure Blob Storage source.

      • Optionalauth_secret_name?: string | null

        Auth Secret Name

        Optional workspace secret containing credentials for this source.

      • Optionalexclude?: string[]

        Exclude

        Glob patterns selecting files to exclude.

      • Optionalinclude?: string[]

        Include

        Glob patterns selecting files to include.

      • type: "AZURE"

        Azure Blob Storage source type. (enum property replaced by openapi-typescript)

      • uri: string

        Uri

        Remote source URI to materialize into the destination volume.

    • VolumeSyncSourceBasetenTraining: {
          exclude?: string[];
          include?: string[];
          type: "BASETEN_TRAINING";
          uri: string;
      }

      VolumeSyncSourceBasetenTrainingV1

      Baseten training artifact source.

      • Optionalexclude?: string[]

        Exclude

        Glob patterns selecting files to exclude.

      • Optionalinclude?: string[]

        Include

        Glob patterns selecting files to include.

      • type: "BASETEN_TRAINING"

        Baseten training artifact source type. (enum property replaced by openapi-typescript)

      • uri: string

        Uri

        Remote source URI to materialize into the destination volume.

    • VolumeSyncSourceCoreWeave: {
          auth_secret_name?: string | null;
          exclude?: string[];
          include?: string[];
          type: "COREWEAVE";
          uri: string;
      }

      VolumeSyncSourceCoreWeaveV1

      CoreWeave object storage source.

      • Optionalauth_secret_name?: string | null

        Auth Secret Name

        Optional workspace secret containing credentials for this source.

      • Optionalexclude?: string[]

        Exclude

        Glob patterns selecting files to exclude.

      • Optionalinclude?: string[]

        Include

        Glob patterns selecting files to include.

      • type: "COREWEAVE"

        CoreWeave object storage source type. (enum property replaced by openapi-typescript)

      • uri: string

        Uri

        Remote source URI to materialize into the destination volume.

    • VolumeSyncSourceGCS: {
          auth_secret_name?: string | null;
          exclude?: string[];
          gcp_oidc?: components["schemas"]["VolumeSyncAuthenticationGCPOIDC"] | null;
          include?: string[];
          type: "GCS";
          uri: string;
      }

      VolumeSyncSourceGCSV1

      Google Cloud Storage source.

      • Optionalauth_secret_name?: string | null

        Auth Secret Name

        Optional workspace secret containing credentials for this source.

      • Optionalexclude?: string[]

        Exclude

        Glob patterns selecting files to exclude.

      • Optionalgcp_oidc?: components["schemas"]["VolumeSyncAuthenticationGCPOIDC"] | null

        GCP OIDC authentication for this source. Cannot be combined with auth_secret_name.

      • Optionalinclude?: string[]

        Include

        Glob patterns selecting files to include.

      • type: "GCS"

        Google Cloud Storage source type. (enum property replaced by openapi-typescript)

      • uri: string

        Uri

        Remote source URI to materialize into the destination volume.

    • VolumeSyncSourceHuggingFace: {
          auth_secret_name?: string | null;
          exclude?: string[];
          hf_oidc?:
              | components["schemas"]["VolumeSyncAuthenticationHuggingFaceOIDC"]
              | null;
          include?: string[];
          type: "HUGGING_FACE";
          uri: string;
      }

      VolumeSyncSourceHuggingFaceV1

      Hugging Face source.

      • Optionalauth_secret_name?: string | null

        Auth Secret Name

        Optional workspace secret containing credentials for this source.

      • Optionalexclude?: string[]

        Exclude

        Glob patterns selecting files to exclude.

      • Optionalhf_oidc?: components["schemas"]["VolumeSyncAuthenticationHuggingFaceOIDC"] | null

        Hugging Face OIDC authentication for this source. Cannot be combined with auth_secret_name.

      • Optionalinclude?: string[]

        Include

        Glob patterns selecting files to include.

      • type: "HUGGING_FACE"

        Hugging Face source type. (enum property replaced by openapi-typescript)

      • uri: string

        Uri

        Remote source URI to materialize into the destination volume.

    • VolumeSyncSourceR2: {
          auth_secret_name?: string | null;
          exclude?: string[];
          include?: string[];
          type: "R2";
          uri: string;
      }

      VolumeSyncSourceR2V1

      Cloudflare R2 source.

      • Optionalauth_secret_name?: string | null

        Auth Secret Name

        Optional workspace secret containing credentials for this source.

      • Optionalexclude?: string[]

        Exclude

        Glob patterns selecting files to exclude.

      • Optionalinclude?: string[]

        Include

        Glob patterns selecting files to include.

      • type: "R2"

        Cloudflare R2 source type. (enum property replaced by openapi-typescript)

      • uri: string

        Uri

        Remote source URI to materialize into the destination volume.

    • VolumeSyncSourceS3: {
          auth_secret_name?: string | null;
          aws_assume_role?:
              | components["schemas"]["VolumeSyncAuthenticationAWSAssumeRole"]
              | null;
          aws_oidc?: components["schemas"]["VolumeSyncAuthenticationAWSOIDC"]
          | null;
          exclude?: string[];
          include?: string[];
          type: "S3";
          uri: string;
      }

      VolumeSyncSourceS3V1

      Amazon S3 source.

      • Optionalauth_secret_name?: string | null

        Auth Secret Name

        Optional workspace secret containing credentials for this source.

      • Optionalaws_assume_role?: components["schemas"]["VolumeSyncAuthenticationAWSAssumeRole"] | null

        AWS AssumeRole authentication for this source. Cannot be combined with auth_secret_name.

      • Optionalaws_oidc?: components["schemas"]["VolumeSyncAuthenticationAWSOIDC"] | null

        AWS OIDC authentication for this source. Cannot be combined with other authentication fields.

      • Optionalexclude?: string[]

        Exclude

        Glob patterns selecting files to exclude.

      • Optionalinclude?: string[]

        Include

        Glob patterns selecting files to include.

      • type: "S3"

        Amazon S3 source type. (enum property replaced by openapi-typescript)

      • uri: string

        Uri

        Remote source URI to materialize into the destination volume.

    • VolumeSyncStatus: "PENDING" | "SYNCING" | "READY" | "FAILED" | "CANCELED"

      VolumeSyncStatusV1

    • VolumeTag: { digest: string; expires_at: string | null; name: string }

      VolumeTagV1

      • digest: string

        Digest

        Digest of the version the tag points at, as b3:<hex>.

      • expires_at: string | null

        Expires At

        When the tag stops resolving and leaves the volume, in ISO 8601 format. Null for a tag that never expires. The version it points at is not affected.

      • name: string

        Name

        Tag name. Tags are case-sensitive.

    • VolumeTokenScope: "PULL" | "INSPECT" | "PUSH" | "TAG"

      VolumeTokenScopeV1

      Capability a volume token grants.

      - ``PULL``: read volume data.
      - ``INSPECT``: read volume metadata without data access.
      - ``PUSH``: upload and commit volume versions.
      - ``TAG``: move or remove tags.
      
    • VolumeVersion: {
          created_at: string;
          delete_after: string | null;
          digest: string;
          expires_at: string | null;
          is_head: boolean;
          lifecycle: string;
          namespace: string;
          sequence: number | null;
          tags: string[];
          tombstoned_at: string | null;
          total_size_bytes: number | null;
          version_ref: string;
          volume: string;
      }

      VolumeVersionV1

      • created_at: string

        Created At Format: date-time

        When the version was committed, in ISO 8601 format.

      • delete_after: string | null

        Delete After

        When the version stops being restorable, in ISO 8601 format. Null unless the lifecycle is TOMBSTONED.

      • digest: string

        Digest

        Content digest of the version, as b3:<hex>.

      • expires_at: string | null

        Expires At

        When the version expires, in ISO 8601 format. At that instant it becomes TOMBSTONED with tombstoned_at set to this value, and every tag pointing at it drops. Null for a version that never expires, and null once the lifecycle is TOMBSTONED.

      • is_head: boolean

        Is Head

        Whether the reserved head tag points at this version.

      • lifecycle: string

        Lifecycle

        Lifecycle state of the version: ALIVE, or TOMBSTONED once it has been deleted or has expired.

      • namespace: string

        Namespace

        Namespace the volume belongs to, in lowercase.

      • sequence: number | null

        Sequence

        Revision the version was committed at. Null for versions committed before the volume service recorded it.

      • tags: string[]

        Tags

        Tags pointing at this version that your API key can read.

      • tombstoned_at: string | null

        Tombstoned At

        When the version was deleted or expired, in ISO 8601 format. Null unless the lifecycle is TOMBSTONED.

      • total_size_bytes: number | null

        Total Size Bytes

        Total size of the version's files in bytes. Null when not recorded.

      • version_ref: string

        Version Ref

        Full address of this version, as bdn:<namespace>/<volume>@<digest>. Paste this into the bdn.mounts section of a config.yaml to pin to it.

      • volume: string

        Volume

        Name of the volume, in lowercase.

    • VolumeVersionDetail: {
          created_at: string;
          delete_after: string | null;
          digest: string;
          entry_count: number | null;
          expires_at: string | null;
          is_head: boolean;
          lifecycle: string;
          namespace: string;
          sequence: number | null;
          tags: string[];
          tombstoned_at: string | null;
          total_size_bytes: number | null;
          version_ref: string;
          volume: string;
          volume_sequence: number;
      }

      VolumeVersionDetailV1

      One version, with the fields only a single-version read reports.

      • created_at: string

        Created At Format: date-time

        When the version was committed, in ISO 8601 format.

      • delete_after: string | null

        Delete After

        When the version stops being restorable, in ISO 8601 format. Null unless the lifecycle is TOMBSTONED.

      • digest: string

        Digest

        Content digest of the version, as b3:<hex>.

      • entry_count: number | null

        Entry Count

        Number of files in the version. Null when not recorded.

      • expires_at: string | null

        Expires At

        When the version expires, in ISO 8601 format. At that instant it becomes TOMBSTONED with tombstoned_at set to this value, and every tag pointing at it drops. Null for a version that never expires, and null once the lifecycle is TOMBSTONED.

      • is_head: boolean

        Is Head

        Whether the reserved head tag points at this version.

      • lifecycle: string

        Lifecycle

        Lifecycle state of the version: ALIVE, or TOMBSTONED once it has been deleted or has expired.

      • namespace: string

        Namespace

        Namespace the volume belongs to, in lowercase.

      • sequence: number | null

        Sequence

        Revision the version was committed at. Null for versions committed before the volume service recorded it.

      • tags: string[]

        Tags

        Tags pointing at this version that your API key can read.

      • tombstoned_at: string | null

        Tombstoned At

        When the version was deleted or expired, in ISO 8601 format. Null unless the lifecycle is TOMBSTONED.

      • total_size_bytes: number | null

        Total Size Bytes

        Total size of the version's files in bytes. Null when not recorded.

      • version_ref: string

        Version Ref

        Full address of this version, as bdn:<namespace>/<volume>@<digest>. Paste this into the bdn.mounts section of a config.yaml to pin to it.

      • volume: string

        Volume

        Name of the volume, in lowercase.

      • volume_sequence: number

        Volume Sequence

        Revision of the volume as a whole when this version was read. Pass it as expected_sequence on a later delete to make that delete conditional on the volume not having changed since.

    • VolumeVersionSummary: { created_at: string; digest: string; total_size_bytes: number }

      VolumeVersionSummaryV1

      • created_at: string

        Created At Format: date-time

        When the version was committed, in ISO 8601 format.

      • digest: string

        Digest

        Content digest of the version, as b3:<hex>.

      • total_size_bytes: number

        Total Size Bytes

        Total size of the version's files in bytes.