> ## Documentation Index
> Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Get chain audit logs

> Returns audit-log entries for a single chain, newest first.

Related guide: [Audit logs](https://docs.baseten.co/organization/audit-logs.md).


## OpenAPI

````yaml get /v1/chains/{chain_id}/audit_logs
openapi: 3.1.0
info:
  description: REST API for management of Baseten resources
  title: Baseten management API
  version: 1.0.0
servers:
  - url: https://api.baseten.co
security:
  - BearerAuth: []
paths:
  /v1/chains/{chain_id}/audit_logs:
    parameters:
      - $ref: '#/components/parameters/chain_id'
    get:
      summary: Gets the audit log for a chain
      description: >-
        Returns audit-log entries for a single chain, newest first. Use the
        filters to narrow by event type, actor, chain deployment, environment,
        source, or time window, and the cursor to page.
      parameters:
        - name: cursor
          in: query
          required: false
          description: >-
            Opaque cursor returned by a previous page. Omit to fetch the first
            page.
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
            title: Cursor
        - name: limit
          in: query
          required: false
          description: >-
            Maximum number of entries to return per page. Defaults to 20, and
            must be between 1 and 200.
          schema:
            default: 20
            maximum: 200
            minimum: 1
            title: Limit
            type: integer
        - name: direction
          in: query
          required: false
          description: >-
            Sort order by the time the action occurred. Defaults to DESC (newest
            first). Ignored when paginating with a cursor.
          schema:
            $ref: '#/components/schemas/AuditLogSortDirectionV1'
            default: DESC
        - name: search
          in: query
          required: false
          description: >-
            Case-insensitive substring matched against resource names and IDs in
            the entry.
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
            title: Search
        - name: event_type_groups
          in: query
          required: false
          description: >-
            When set, returns only entries whose event type falls in one of
            these groups.
          schema:
            items:
              $ref: '#/components/schemas/AuditLogEventTypeGroupV1'
            title: Event Type Groups
            type: array
        - name: user_ids
          in: query
          required: false
          description: >-
            When set, returns only entries whose acting user is one of these
            IDs.
          schema:
            items:
              type: string
            title: User Ids
            type: array
        - name: deployment_ids
          in: query
          required: false
          description: >-
            When set, returns only entries referencing one of these model
            deployment IDs.
          schema:
            items:
              type: string
            title: Deployment Ids
            type: array
        - name: chain_deployment_ids
          in: query
          required: false
          description: >-
            When set, returns only entries referencing one of these chain
            deployment IDs.
          schema:
            items:
              type: string
            title: Chain Deployment Ids
            type: array
        - name: environment_names
          in: query
          required: false
          description: When set, returns only entries for one of these environments.
          schema:
            items:
              type: string
            title: Environment Names
            type: array
        - name: sources
          in: query
          required: false
          description: When set, returns only entries issued from one of these surfaces.
          schema:
            items:
              $ref: '#/components/schemas/AuditLogSourceV1'
            title: Sources
            type: array
        - name: start_epoch_millis
          in: query
          required: false
          description: >-
            Epoch milliseconds for the start of the window. Defaults to the
            beginning of the audit-log history.
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            default: null
            title: Start Epoch Millis
        - name: end_epoch_millis
          in: query
          required: false
          description: >-
            Epoch milliseconds for the end of the window. Defaults to the
            current time.
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            default: null
            title: End Epoch Millis
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAuditLogsResponseV1'
      x-codeSamples:
        - lang: bash
          source: |
            curl --request GET \
            --url https://api.baseten.co/v1/chains/{chain_id}/audit_logs \
            --header "Authorization: Bearer $BASETEN_API_KEY"
        - lang: python
          source: |-
            import requests
            import os
            API_KEY = os.environ.get("BASETEN_API_KEY", "<YOUR_API_KEY>")
            url = "https://api.baseten.co/v1/chains/{chain_id}/audit_logs"

            headers = {"Authorization": f"Bearer {API_KEY}"}

            response = requests.request(
                "GET",
                url,
                headers=headers,
                params={'cursor': None, 'direction': 'DESC', 'search': None, 'start_epoch_millis': None, 'end_epoch_millis': None}
            )

            print(response.text)
components:
  parameters:
    chain_id:
      schema:
        type: string
      name: chain_id
      in: path
      required: true
  schemas:
    AuditLogSortDirectionV1:
      description: Sort order of returned entries, by creation time.
      enum:
        - DESC
        - ASC
      title: AuditLogSortDirectionV1
      type: string
    AuditLogEventTypeGroupV1:
      description: Coarse grouping of event types, used to filter the audit log.
      enum:
        - 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
        - WORKLOAD_IDENTITY
      title: AuditLogEventTypeGroupV1
      type: string
    AuditLogSourceV1:
      description: Surface that issued the audited action.
      enum:
        - UI
        - API
        - MCP
        - SYSTEM
        - OTHER
      title: AuditLogSourceV1
      type: string
    ListAuditLogsResponseV1:
      description: A page of audit-log entries, newest first by default.
      properties:
        items:
          description: Items in this page.
          items:
            $ref: '#/components/schemas/AuditLogEntryV1'
          title: Items
          type: array
        pagination:
          $ref: '#/components/schemas/PaginationResponseV1'
          description: Pagination metadata for the page.
      required:
        - items
        - pagination
      title: ListAuditLogsResponseV1
      type: object
    AuditLogEntryV1:
      description: A single audit-log entry.
      properties:
        id:
          description: Unique identifier of the audit-log entry.
          title: Id
          type: string
        created:
          description: Time the action occurred, in ISO 8601 format.
          format: date-time
          title: Created
          type: string
        event_type:
          $ref: '#/components/schemas/AuditLogEventTypeV1'
          description: Type of action that was recorded.
        event_data:
          description: Structured details of the action, discriminated by `event_type`.
          discriminator:
            mapping:
              API_KEY_CREATED: '#/components/schemas/AuditLogEventApiKeyCreatedV1'
              API_KEY_DELETED: '#/components/schemas/AuditLogEventApiKeyDeletedV1'
              API_KEY_LIFETIME_LIMITS_UPDATED: '#/components/schemas/AuditLogEventApiKeyLifetimeLimitsUpdatedV1'
              CHAINLET_AUTOSCALING_SETTINGS_CHANGED: >-
                #/components/schemas/AuditLogEventChainletAutoscalingSettingsChangedV1
              CHAINLET_INSTANCE_TYPE_CHANGED: '#/components/schemas/AuditLogEventChainletInstanceTypeChangedV1'
              CHAIN_DELETED: '#/components/schemas/AuditLogEventChainDeletedV1'
              CHAIN_DEPLOYED: '#/components/schemas/AuditLogEventChainDeployedV1'
              CHAIN_DEPLOYMENT_ACTIVATED: '#/components/schemas/AuditLogEventChainDeploymentActivatedV1'
              CHAIN_DEPLOYMENT_DEACTIVATED: '#/components/schemas/AuditLogEventChainDeploymentDeactivatedV1'
              CHAIN_DEPLOYMENT_DELETED: '#/components/schemas/AuditLogEventChainDeploymentDeletedV1'
              CHAIN_DEPLOYMENT_PROMOTED: '#/components/schemas/AuditLogEventChainDeploymentPromotedV1'
              CHAIN_ENVIRONMENT_CREATED: '#/components/schemas/AuditLogEventChainEnvironmentCreatedV1'
              CHAIN_ENVIRONMENT_UPDATED: '#/components/schemas/AuditLogEventChainEnvironmentUpdatedV1'
              DIRECTORY_GROUP_ROLE_UPDATED: '#/components/schemas/AuditLogEventDirectoryGroupRoleUpdatedV1'
              ENVIRONMENT_CREATED: '#/components/schemas/AuditLogEventEnvironmentCreatedV1'
              ENVIRONMENT_DELETED: '#/components/schemas/AuditLogEventEnvironmentDeletedV1'
              ENVIRONMENT_UPDATED: '#/components/schemas/AuditLogEventEnvironmentUpdatedV1'
              GATEWAY_ENDPOINT_CREATED: '#/components/schemas/AuditLogEventGatewayEndpointCreatedV1'
              GATEWAY_ENDPOINT_DELETED: '#/components/schemas/AuditLogEventGatewayEndpointDeletedV1'
              GATEWAY_ENDPOINT_UPDATED: '#/components/schemas/AuditLogEventGatewayEndpointUpdatedV1'
              GRID_MACHINE_USER_CREATED: '#/components/schemas/AuditLogEventGridMachineUserCreatedV1'
              GRID_MACHINE_USER_DELETED: '#/components/schemas/AuditLogEventGridMachineUserDeletedV1'
              GRID_MACHINE_USER_UPDATED: '#/components/schemas/AuditLogEventGridMachineUserUpdatedV1'
              IDENTITY_PROVIDER_CREATED: '#/components/schemas/AuditLogEventIdentityProviderCreatedV1'
              IDENTITY_PROVIDER_DELETED: '#/components/schemas/AuditLogEventIdentityProviderDeletedV1'
              IDENTITY_PROVIDER_UPDATED: '#/components/schemas/AuditLogEventIdentityProviderUpdatedV1'
              MODEL_DELETED: '#/components/schemas/AuditLogEventModelDeletedV1'
              MODEL_DEPLOYED: '#/components/schemas/AuditLogEventModelDeployedV1'
              MODEL_DEPLOYMENT_ACTIVATED: '#/components/schemas/AuditLogEventModelDeploymentActivatedV1'
              MODEL_DEPLOYMENT_AUTOSCALING_SETTINGS_CHANGED: >-
                #/components/schemas/AuditLogEventModelDeploymentAutoscalingSettingsChangedV1
              MODEL_DEPLOYMENT_DEACTIVATED: '#/components/schemas/AuditLogEventModelDeploymentDeactivatedV1'
              MODEL_DEPLOYMENT_DELETED: '#/components/schemas/AuditLogEventModelDeploymentDeletedV1'
              MODEL_DEPLOYMENT_INSTANCE_TYPE_CHANGED: >-
                #/components/schemas/AuditLogEventModelDeploymentInstanceTypeChangedV1
              MODEL_DEPLOYMENT_PROMOTED: '#/components/schemas/AuditLogEventModelDeploymentPromotedV1'
              MODEL_DEPLOYMENT_REQUEST_BACKPRESSURE_SETTINGS_CHANGED: >-
                #/components/schemas/AuditLogEventModelDeploymentRequestBackpressureSettingsChangedV1
              MODEL_DEPLOYMENT_RETRIED: '#/components/schemas/AuditLogEventModelDeploymentRetriedV1'
              MODEL_PROMOTION_CONTROL_ACTION: '#/components/schemas/AuditLogEventModelPromotionControlActionV1'
              MODEL_RENAMED: '#/components/schemas/AuditLogEventModelRenamedV1'
              ORGANIZATION_API_KEY_SETTINGS_UPDATED: >-
                #/components/schemas/AuditLogEventOrganizationApiKeySettingsUpdatedV1
              PROVIDER_CONNECTION_CREATED: '#/components/schemas/AuditLogEventProviderConnectionCreatedV1'
              PROVIDER_CONNECTION_DELETED: '#/components/schemas/AuditLogEventProviderConnectionDeletedV1'
              PROVIDER_CONNECTION_UPDATED: '#/components/schemas/AuditLogEventProviderConnectionUpdatedV1'
              REPLICA_TERMINATED: '#/components/schemas/AuditLogEventReplicaTerminatedV1'
              REQUIRE_GROUP_BASED_ADMINS_ENABLED: >-
                #/components/schemas/AuditLogEventRequireGroupBasedAdminsEnabledV1
              SECRET_DELETED: '#/components/schemas/AuditLogEventSecretDeletedV1'
              SECRET_UPDATED: '#/components/schemas/AuditLogEventSecretUpdatedV1'
              SERVICE_ACCOUNT_CREATED: '#/components/schemas/AuditLogEventServiceAccountCreatedV1'
              SERVICE_ACCOUNT_DELETED: '#/components/schemas/AuditLogEventServiceAccountDeletedV1'
              SERVICE_ACCOUNT_UPDATED: '#/components/schemas/AuditLogEventServiceAccountUpdatedV1'
              SSH_CERTIFICATE_SIGNED: '#/components/schemas/AuditLogEventSshCertificateSignedV1'
              TELEMETRY_EXPORT_CREATED: '#/components/schemas/AuditLogEventTelemetryExportCreatedV1'
              TELEMETRY_EXPORT_DELETED: '#/components/schemas/AuditLogEventTelemetryExportDeletedV1'
              TELEMETRY_EXPORT_UPDATED: '#/components/schemas/AuditLogEventTelemetryExportUpdatedV1'
              TRUST_RULE_CREATED: '#/components/schemas/AuditLogEventTrustRuleCreatedV1'
              TRUST_RULE_DELETED: '#/components/schemas/AuditLogEventTrustRuleDeletedV1'
              TRUST_RULE_UPDATED: '#/components/schemas/AuditLogEventTrustRuleUpdatedV1'
              USER_INVITED: '#/components/schemas/AuditLogEventUserInvitedV1'
              USER_JOINED_ORGANIZATION: '#/components/schemas/AuditLogEventUserJoinedOrganizationV1'
              USER_REMOVED: '#/components/schemas/AuditLogEventUserRemovedV1'
              USER_ROLE_UPDATED: '#/components/schemas/AuditLogEventUserRoleUpdatedV1'
              USER_TEAM_ROLE_UPDATED: '#/components/schemas/AuditLogEventUserTeamRoleUpdatedV1'
              VOLUME_DELETED: '#/components/schemas/AuditLogEventVolumeDeletedV1'
              VOLUME_TAG_DELETED: '#/components/schemas/AuditLogEventVolumeTagDeletedV1'
              VOLUME_TAG_SET: '#/components/schemas/AuditLogEventVolumeTagSetV1'
              VOLUME_UPDATED: '#/components/schemas/AuditLogEventVolumeUpdatedV1'
              VOLUME_VERSION_DELETED: '#/components/schemas/AuditLogEventVolumeVersionDeletedV1'
              VOLUME_VERSION_RESTORED: '#/components/schemas/AuditLogEventVolumeVersionRestoredV1'
              WEBHOOK_SIGNING_SECRET_CREATED: '#/components/schemas/AuditLogEventWebhookSigningSecretCreatedV1'
              WEBHOOK_SIGNING_SECRET_DELETED: '#/components/schemas/AuditLogEventWebhookSigningSecretDeletedV1'
              WEBHOOK_SIGNING_SECRET_ROTATED: '#/components/schemas/AuditLogEventWebhookSigningSecretRotatedV1'
            propertyName: event_type
          oneOf:
            - $ref: '#/components/schemas/AuditLogEventModelDeployedV1'
            - $ref: '#/components/schemas/AuditLogEventModelDeploymentActivatedV1'
            - $ref: '#/components/schemas/AuditLogEventModelDeploymentDeactivatedV1'
            - $ref: '#/components/schemas/AuditLogEventModelDeploymentRetriedV1'
            - $ref: '#/components/schemas/AuditLogEventModelDeploymentPromotedV1'
            - $ref: >-
                #/components/schemas/AuditLogEventModelDeploymentAutoscalingSettingsChangedV1
            - $ref: >-
                #/components/schemas/AuditLogEventModelDeploymentRequestBackpressureSettingsChangedV1
            - $ref: >-
                #/components/schemas/AuditLogEventModelDeploymentInstanceTypeChangedV1
            - $ref: '#/components/schemas/AuditLogEventModelDeploymentDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventModelDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventModelRenamedV1'
            - $ref: '#/components/schemas/AuditLogEventChainDeployedV1'
            - $ref: '#/components/schemas/AuditLogEventChainDeploymentActivatedV1'
            - $ref: '#/components/schemas/AuditLogEventChainDeploymentDeactivatedV1'
            - $ref: '#/components/schemas/AuditLogEventChainDeploymentPromotedV1'
            - $ref: >-
                #/components/schemas/AuditLogEventChainletAutoscalingSettingsChangedV1
            - $ref: '#/components/schemas/AuditLogEventChainletInstanceTypeChangedV1'
            - $ref: '#/components/schemas/AuditLogEventChainDeploymentDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventChainDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventChainEnvironmentCreatedV1'
            - $ref: '#/components/schemas/AuditLogEventChainEnvironmentUpdatedV1'
            - $ref: '#/components/schemas/AuditLogEventSecretUpdatedV1'
            - $ref: '#/components/schemas/AuditLogEventSecretDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventApiKeyCreatedV1'
            - $ref: '#/components/schemas/AuditLogEventApiKeyDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventApiKeyLifetimeLimitsUpdatedV1'
            - $ref: >-
                #/components/schemas/AuditLogEventOrganizationApiKeySettingsUpdatedV1
            - $ref: '#/components/schemas/AuditLogEventGatewayEndpointCreatedV1'
            - $ref: '#/components/schemas/AuditLogEventGatewayEndpointUpdatedV1'
            - $ref: '#/components/schemas/AuditLogEventGatewayEndpointDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventProviderConnectionCreatedV1'
            - $ref: '#/components/schemas/AuditLogEventProviderConnectionUpdatedV1'
            - $ref: '#/components/schemas/AuditLogEventProviderConnectionDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventGridMachineUserCreatedV1'
            - $ref: '#/components/schemas/AuditLogEventGridMachineUserUpdatedV1'
            - $ref: '#/components/schemas/AuditLogEventGridMachineUserDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventUserInvitedV1'
            - $ref: '#/components/schemas/AuditLogEventUserJoinedOrganizationV1'
            - $ref: '#/components/schemas/AuditLogEventWebhookSigningSecretCreatedV1'
            - $ref: '#/components/schemas/AuditLogEventWebhookSigningSecretRotatedV1'
            - $ref: '#/components/schemas/AuditLogEventWebhookSigningSecretDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventUserRoleUpdatedV1'
            - $ref: '#/components/schemas/AuditLogEventUserTeamRoleUpdatedV1'
            - $ref: '#/components/schemas/AuditLogEventUserRemovedV1'
            - $ref: '#/components/schemas/AuditLogEventDirectoryGroupRoleUpdatedV1'
            - $ref: >-
                #/components/schemas/AuditLogEventRequireGroupBasedAdminsEnabledV1
            - $ref: '#/components/schemas/AuditLogEventEnvironmentCreatedV1'
            - $ref: '#/components/schemas/AuditLogEventEnvironmentUpdatedV1'
            - $ref: '#/components/schemas/AuditLogEventEnvironmentDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventReplicaTerminatedV1'
            - $ref: '#/components/schemas/AuditLogEventModelPromotionControlActionV1'
            - $ref: '#/components/schemas/AuditLogEventSshCertificateSignedV1'
            - $ref: '#/components/schemas/AuditLogEventVolumeDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventVolumeVersionDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventVolumeVersionRestoredV1'
            - $ref: '#/components/schemas/AuditLogEventVolumeTagSetV1'
            - $ref: '#/components/schemas/AuditLogEventVolumeTagDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventVolumeUpdatedV1'
            - $ref: '#/components/schemas/AuditLogEventTelemetryExportCreatedV1'
            - $ref: '#/components/schemas/AuditLogEventTelemetryExportUpdatedV1'
            - $ref: '#/components/schemas/AuditLogEventTelemetryExportDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventServiceAccountCreatedV1'
            - $ref: '#/components/schemas/AuditLogEventServiceAccountUpdatedV1'
            - $ref: '#/components/schemas/AuditLogEventServiceAccountDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventIdentityProviderCreatedV1'
            - $ref: '#/components/schemas/AuditLogEventIdentityProviderUpdatedV1'
            - $ref: '#/components/schemas/AuditLogEventIdentityProviderDeletedV1'
            - $ref: '#/components/schemas/AuditLogEventTrustRuleCreatedV1'
            - $ref: '#/components/schemas/AuditLogEventTrustRuleUpdatedV1'
            - $ref: '#/components/schemas/AuditLogEventTrustRuleDeletedV1'
          title: Event Data
        source:
          anyOf:
            - $ref: '#/components/schemas/AuditLogSourceV1'
            - type: 'null'
          default: null
          description: Surface that issued the action, if known.
        actor:
          $ref: '#/components/schemas/AuditLogActorV1'
          description: The actor that performed the action.
        client_name:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Name of the client that issued the action, if known.
          title: Client Name
        client_version:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Version of the client that issued the action, if known.
          title: Client Version
        client_session_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Opaque identifier grouping actions from the same client session, if
            known.
          title: Client Session Id
      required:
        - id
        - created
        - event_type
        - event_data
        - actor
      title: AuditLogEntryV1
      type: object
    PaginationResponseV1:
      properties:
        has_more:
          description: Whether more items exist after this page.
          title: Has More
          type: boolean
        cursor:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Opaque cursor to pass into the next request. Null when there is no
            next page.
          title: Cursor
      required:
        - has_more
      title: PaginationResponseV1
      type: object
    AuditLogEventTypeV1:
      description: Type of action recorded by an audit-log entry.
      enum:
        - 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
        - SERVICE_ACCOUNT_CREATED
        - SERVICE_ACCOUNT_UPDATED
        - SERVICE_ACCOUNT_DELETED
        - IDENTITY_PROVIDER_CREATED
        - IDENTITY_PROVIDER_UPDATED
        - IDENTITY_PROVIDER_DELETED
        - TRUST_RULE_CREATED
        - TRUST_RULE_UPDATED
        - TRUST_RULE_DELETED
        - ORGANIZATION_API_KEY_SETTINGS_UPDATED
      title: AuditLogEventTypeV1
      type: string
    AuditLogEventApiKeyCreatedV1:
      description: An API key was created.
      properties:
        event_type:
          const: API_KEY_CREATED
          title: Event Type
          type: string
        api_key_id:
          title: Api Key Id
          type: string
        api_key_type:
          $ref: '#/components/schemas/AuditLogApiKeyTypeV1'
        prefix:
          title: Prefix
          type: string
      required:
        - event_type
        - api_key_id
        - api_key_type
        - prefix
      title: AuditLogEventApiKeyCreatedV1
      type: object
    AuditLogEventApiKeyDeletedV1:
      description: An API key was revoked.
      properties:
        event_type:
          const: API_KEY_DELETED
          title: Event Type
          type: string
        api_key_id:
          title: Api Key Id
          type: string
        api_key_type:
          $ref: '#/components/schemas/AuditLogApiKeyTypeV1'
        prefix:
          title: Prefix
          type: string
        revocation_reason:
          anyOf:
            - $ref: '#/components/schemas/AuditLogApiKeyRevocationReasonV1'
            - type: 'null'
          default: null
      required:
        - event_type
        - api_key_id
        - api_key_type
        - prefix
      title: AuditLogEventApiKeyDeletedV1
      type: object
    AuditLogEventApiKeyLifetimeLimitsUpdatedV1:
      description: An administrator updated the organization's API key lifetime limits.
      properties:
        event_type:
          const: API_KEY_LIFETIME_LIMITS_UPDATED
          title: Event Type
          type: string
        organization_id:
          title: Organization Id
          type: string
        previous_personal_limit_days:
          anyOf:
            - type: integer
            - type: 'null'
          title: Previous Personal Limit Days
        new_personal_limit_days:
          anyOf:
            - type: integer
            - type: 'null'
          title: New Personal Limit Days
        previous_team_limit_days:
          anyOf:
            - type: integer
            - type: 'null'
          title: Previous Team Limit Days
        new_team_limit_days:
          anyOf:
            - type: integer
            - type: 'null'
          title: New Team Limit Days
      required:
        - event_type
        - organization_id
        - previous_personal_limit_days
        - new_personal_limit_days
        - previous_team_limit_days
        - new_team_limit_days
      title: AuditLogEventApiKeyLifetimeLimitsUpdatedV1
      type: object
    AuditLogEventChainletAutoscalingSettingsChangedV1:
      description: A chainlet's autoscaling settings were changed.
      properties:
        min_replica:
          title: Min Replica
          type: integer
        max_replica:
          title: Max Replica
          type: integer
        concurrency_target:
          title: Concurrency Target
          type: integer
        autoscaling_window:
          anyOf:
            - type: integer
            - type: 'null'
          title: Autoscaling Window
        scale_down_delay:
          anyOf:
            - type: integer
            - type: 'null'
          title: Scale Down Delay
        target_utilization_percentage:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target Utilization Percentage
        target_in_flight_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target In Flight Tokens
        max_scale_down_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Max Scale Down Rate
        event_type:
          const: CHAINLET_AUTOSCALING_SETTINGS_CHANGED
          title: Event Type
          type: string
        chain_id:
          title: Chain Id
          type: string
        chain_name:
          title: Chain Name
          type: string
        chain_deployment_id:
          title: Chain Deployment Id
          type: string
        chain_deployment_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Chain Deployment Name
        chainlet_name:
          title: Chainlet Name
          type: string
        chainlet_id:
          title: Chainlet Id
          type: string
        previous_settings:
          anyOf:
            - $ref: '#/components/schemas/AuditLogEventAutoscalingSettingsV1'
            - type: 'null'
      required:
        - min_replica
        - max_replica
        - concurrency_target
        - autoscaling_window
        - scale_down_delay
        - target_utilization_percentage
        - target_in_flight_tokens
        - max_scale_down_rate
        - event_type
        - chain_id
        - chain_name
        - chain_deployment_id
        - chain_deployment_name
        - chainlet_name
        - chainlet_id
        - previous_settings
      title: AuditLogEventChainletAutoscalingSettingsChangedV1
      type: object
    AuditLogEventChainletInstanceTypeChangedV1:
      description: A chainlet's instance type was changed.
      properties:
        event_type:
          const: CHAINLET_INSTANCE_TYPE_CHANGED
          title: Event Type
          type: string
        chain_id:
          title: Chain Id
          type: string
        chain_name:
          title: Chain Name
          type: string
        chain_deployment_id:
          title: Chain Deployment Id
          type: string
        chain_deployment_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Chain Deployment Name
        chainlet_name:
          title: Chainlet Name
          type: string
        chainlet_id:
          title: Chainlet Id
          type: string
        instance_type_name:
          title: Instance Type Name
          type: string
      required:
        - event_type
        - chain_id
        - chain_name
        - chain_deployment_id
        - chain_deployment_name
        - chainlet_name
        - chainlet_id
        - instance_type_name
      title: AuditLogEventChainletInstanceTypeChangedV1
      type: object
    AuditLogEventChainDeletedV1:
      description: A chain was deleted.
      properties:
        event_type:
          const: CHAIN_DELETED
          title: Event Type
          type: string
        chain_id:
          title: Chain Id
          type: string
        chain_name:
          title: Chain Name
          type: string
        chain_deployment_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Chain Deployment Name
      required:
        - event_type
        - chain_id
        - chain_name
        - chain_deployment_name
      title: AuditLogEventChainDeletedV1
      type: object
    AuditLogEventChainDeployedV1:
      description: A chain deployment was created.
      properties:
        event_type:
          const: CHAIN_DEPLOYED
          title: Event Type
          type: string
        chain_id:
          title: Chain Id
          type: string
        chain_name:
          title: Chain Name
          type: string
        chain_deployment_id:
          title: Chain Deployment Id
          type: string
        chain_deployment_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Chain Deployment Name
        is_primary:
          title: Is Primary
          type: boolean
        publish:
          title: Publish
          type: boolean
      required:
        - event_type
        - chain_id
        - chain_name
        - chain_deployment_id
        - chain_deployment_name
        - is_primary
        - publish
      title: AuditLogEventChainDeployedV1
      type: object
    AuditLogEventChainDeploymentActivatedV1:
      description: A chain deployment was activated.
      properties:
        event_type:
          const: CHAIN_DEPLOYMENT_ACTIVATED
          title: Event Type
          type: string
        chain_id:
          title: Chain Id
          type: string
        chain_name:
          title: Chain Name
          type: string
        chain_deployment_id:
          title: Chain Deployment Id
          type: string
        chain_deployment_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Chain Deployment Name
      required:
        - event_type
        - chain_id
        - chain_name
        - chain_deployment_id
        - chain_deployment_name
      title: AuditLogEventChainDeploymentActivatedV1
      type: object
    AuditLogEventChainDeploymentDeactivatedV1:
      description: A chain deployment was deactivated.
      properties:
        event_type:
          const: CHAIN_DEPLOYMENT_DEACTIVATED
          title: Event Type
          type: string
        chain_id:
          title: Chain Id
          type: string
        chain_name:
          title: Chain Name
          type: string
        chain_deployment_id:
          title: Chain Deployment Id
          type: string
        chain_deployment_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Chain Deployment Name
      required:
        - event_type
        - chain_id
        - chain_name
        - chain_deployment_id
        - chain_deployment_name
      title: AuditLogEventChainDeploymentDeactivatedV1
      type: object
    AuditLogEventChainDeploymentDeletedV1:
      description: A chain deployment was deleted.
      properties:
        event_type:
          const: CHAIN_DEPLOYMENT_DELETED
          title: Event Type
          type: string
        chain_id:
          title: Chain Id
          type: string
        chain_name:
          title: Chain Name
          type: string
        chain_deployment_id:
          title: Chain Deployment Id
          type: string
        deployment_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Deployment Name
      required:
        - event_type
        - chain_id
        - chain_name
        - chain_deployment_id
        - deployment_name
      title: AuditLogEventChainDeploymentDeletedV1
      type: object
    AuditLogEventChainDeploymentPromotedV1:
      description: A chain deployment was promoted to an environment.
      properties:
        event_type:
          const: CHAIN_DEPLOYMENT_PROMOTED
          title: Event Type
          type: string
        chain_id:
          title: Chain Id
          type: string
        chain_name:
          title: Chain Name
          type: string
        chain_deployment_id:
          title: Chain Deployment Id
          type: string
        chain_deployment_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Chain Deployment Name
        environment_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Environment Name
        environment_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Environment Id
      required:
        - event_type
        - chain_id
        - chain_name
        - chain_deployment_id
        - chain_deployment_name
        - environment_name
        - environment_id
      title: AuditLogEventChainDeploymentPromotedV1
      type: object
    AuditLogEventChainEnvironmentCreatedV1:
      description: A chain environment was created.
      properties:
        event_type:
          const: CHAIN_ENVIRONMENT_CREATED
          title: Event Type
          type: string
        chain_id:
          title: Chain Id
          type: string
        chain_name:
          title: Chain Name
          type: string
        environment_name:
          title: Environment Name
          type: string
        redeploy_on_promotion:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Redeploy On Promotion
        ramp_up_while_promoting:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Ramp Up While Promoting
        ramp_up_duration_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ramp Up Duration Seconds
      required:
        - event_type
        - chain_id
        - chain_name
        - environment_name
        - redeploy_on_promotion
        - ramp_up_while_promoting
        - ramp_up_duration_seconds
      title: AuditLogEventChainEnvironmentCreatedV1
      type: object
    AuditLogEventChainEnvironmentUpdatedV1:
      description: A chain environment was updated.
      properties:
        event_type:
          const: CHAIN_ENVIRONMENT_UPDATED
          title: Event Type
          type: string
        chain_id:
          title: Chain Id
          type: string
        chain_name:
          title: Chain Name
          type: string
        environment_name:
          title: Environment Name
          type: string
        redeploy_on_promotion:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Redeploy On Promotion
        ramp_up_while_promoting:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Ramp Up While Promoting
        ramp_up_duration_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ramp Up Duration Seconds
      required:
        - event_type
        - chain_id
        - chain_name
        - environment_name
        - redeploy_on_promotion
        - ramp_up_while_promoting
        - ramp_up_duration_seconds
      title: AuditLogEventChainEnvironmentUpdatedV1
      type: object
    AuditLogEventDirectoryGroupRoleUpdatedV1:
      description: A directory group's role was updated.
      properties:
        event_type:
          const: DIRECTORY_GROUP_ROLE_UPDATED
          title: Event Type
          type: string
        directory_group_id:
          title: Directory Group Id
          type: string
        directory_group_name:
          title: Directory Group Name
          type: string
        new_role_name:
          title: New Role Name
          type: string
        team_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Team Id
        team_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Team Name
      required:
        - event_type
        - directory_group_id
        - directory_group_name
        - new_role_name
        - team_id
        - team_name
      title: AuditLogEventDirectoryGroupRoleUpdatedV1
      type: object
    AuditLogEventEnvironmentCreatedV1:
      description: A model environment was created.
      properties:
        redeploy_on_promotion:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Redeploy On Promotion
        rolling_deploy:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Rolling Deploy
        rolling_deploy_strategy:
          anyOf:
            - type: string
            - type: 'null'
          title: Rolling Deploy Strategy
        max_unavailable_percent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Unavailable Percent
        max_surge_percent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Surge Percent
        stabilization_time_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Stabilization Time Seconds
        replica_overhead_percent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Replica Overhead Percent
        promotion_cleanup_strategy:
          anyOf:
            - type: string
            - type: 'null'
          title: Promotion Cleanup Strategy
        min_replica:
          title: Min Replica
          type: integer
        max_replica:
          title: Max Replica
          type: integer
        concurrency_target:
          title: Concurrency Target
          type: integer
        autoscaling_window:
          anyOf:
            - type: integer
            - type: 'null'
          title: Autoscaling Window
        scale_down_delay:
          anyOf:
            - type: integer
            - type: 'null'
          title: Scale Down Delay
        target_utilization_percentage:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target Utilization Percentage
        target_in_flight_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target In Flight Tokens
        max_scale_down_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Max Scale Down Rate
        ramp_up_while_promoting:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Ramp Up While Promoting
        ramp_up_duration_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ramp Up Duration Seconds
        ramp_up_step_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ramp Up Step Size
        request_backpressure_policy:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Backpressure Policy
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
        environment_name:
          title: Environment Name
          type: string
        deployment_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Deployment Type
        event_type:
          const: ENVIRONMENT_CREATED
          title: Event Type
          type: string
      required:
        - redeploy_on_promotion
        - rolling_deploy
        - rolling_deploy_strategy
        - max_unavailable_percent
        - max_surge_percent
        - stabilization_time_seconds
        - replica_overhead_percent
        - promotion_cleanup_strategy
        - min_replica
        - max_replica
        - concurrency_target
        - autoscaling_window
        - scale_down_delay
        - target_utilization_percentage
        - target_in_flight_tokens
        - max_scale_down_rate
        - ramp_up_while_promoting
        - ramp_up_duration_seconds
        - ramp_up_step_size
        - model_id
        - model_name
        - environment_name
        - deployment_type
        - event_type
      title: AuditLogEventEnvironmentCreatedV1
      type: object
    AuditLogEventEnvironmentDeletedV1:
      description: A model environment was deleted.
      properties:
        event_type:
          const: ENVIRONMENT_DELETED
          title: Event Type
          type: string
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
        environment_name:
          title: Environment Name
          type: string
      required:
        - event_type
        - model_id
        - model_name
        - environment_name
      title: AuditLogEventEnvironmentDeletedV1
      type: object
    AuditLogEventEnvironmentUpdatedV1:
      description: A model environment's settings were updated.
      properties:
        schedules:
          anyOf:
            - items:
                $ref: '#/components/schemas/AuditLogEventAutoscalingScheduleChangeV1'
              type: array
            - type: 'null'
          title: Schedules
        redeploy_on_promotion:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Redeploy On Promotion
        rolling_deploy:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Rolling Deploy
        rolling_deploy_strategy:
          anyOf:
            - type: string
            - type: 'null'
          title: Rolling Deploy Strategy
        max_unavailable_percent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Unavailable Percent
        max_surge_percent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Surge Percent
        stabilization_time_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Stabilization Time Seconds
        replica_overhead_percent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Replica Overhead Percent
        promotion_cleanup_strategy:
          anyOf:
            - type: string
            - type: 'null'
          title: Promotion Cleanup Strategy
        min_replica:
          title: Min Replica
          type: integer
        max_replica:
          title: Max Replica
          type: integer
        concurrency_target:
          title: Concurrency Target
          type: integer
        autoscaling_window:
          anyOf:
            - type: integer
            - type: 'null'
          title: Autoscaling Window
        scale_down_delay:
          anyOf:
            - type: integer
            - type: 'null'
          title: Scale Down Delay
        target_utilization_percentage:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target Utilization Percentage
        target_in_flight_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target In Flight Tokens
        max_scale_down_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Max Scale Down Rate
        ramp_up_while_promoting:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Ramp Up While Promoting
        ramp_up_duration_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ramp Up Duration Seconds
        ramp_up_step_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ramp Up Step Size
        request_backpressure_policy:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Backpressure Policy
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
        environment_name:
          title: Environment Name
          type: string
        deployment_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Deployment Type
        event_type:
          const: ENVIRONMENT_UPDATED
          title: Event Type
          type: string
        previous_settings:
          anyOf:
            - $ref: '#/components/schemas/AuditLogEventEnvironmentSettingsV1'
            - type: 'null'
      required:
        - schedules
        - redeploy_on_promotion
        - rolling_deploy
        - rolling_deploy_strategy
        - max_unavailable_percent
        - max_surge_percent
        - stabilization_time_seconds
        - replica_overhead_percent
        - promotion_cleanup_strategy
        - min_replica
        - max_replica
        - concurrency_target
        - autoscaling_window
        - scale_down_delay
        - target_utilization_percentage
        - target_in_flight_tokens
        - max_scale_down_rate
        - ramp_up_while_promoting
        - ramp_up_duration_seconds
        - ramp_up_step_size
        - model_id
        - model_name
        - environment_name
        - deployment_type
        - event_type
        - previous_settings
      title: AuditLogEventEnvironmentUpdatedV1
      type: object
    AuditLogEventGatewayEndpointCreatedV1:
      description: A Frontier Gateway endpoint was created.
      properties:
        event_type:
          const: GATEWAY_ENDPOINT_CREATED
          title: Event Type
          type: string
        gateway_endpoint_id:
          title: Gateway Endpoint Id
          type: string
        slug:
          title: Slug
          type: string
      required:
        - event_type
        - gateway_endpoint_id
        - slug
      title: AuditLogEventGatewayEndpointCreatedV1
      type: object
    AuditLogEventGatewayEndpointDeletedV1:
      description: A Frontier Gateway endpoint was deleted.
      properties:
        event_type:
          const: GATEWAY_ENDPOINT_DELETED
          title: Event Type
          type: string
        gateway_endpoint_id:
          title: Gateway Endpoint Id
          type: string
        slug:
          title: Slug
          type: string
      required:
        - event_type
        - gateway_endpoint_id
        - slug
      title: AuditLogEventGatewayEndpointDeletedV1
      type: object
    AuditLogEventGatewayEndpointUpdatedV1:
      description: A Frontier Gateway endpoint was updated.
      properties:
        event_type:
          const: GATEWAY_ENDPOINT_UPDATED
          title: Event Type
          type: string
        gateway_endpoint_id:
          title: Gateway Endpoint Id
          type: string
        slug:
          title: Slug
          type: string
        previous_slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Previous Slug
      required:
        - event_type
        - gateway_endpoint_id
        - slug
        - previous_slug
      title: AuditLogEventGatewayEndpointUpdatedV1
      type: object
    AuditLogEventGridMachineUserCreatedV1:
      description: A Grid machine user was created.
      properties:
        event_type:
          const: GRID_MACHINE_USER_CREATED
          title: Event Type
          type: string
        machine_user_id:
          title: Machine User Id
          type: string
        machine_user_name:
          title: Machine User Name
          type: string
        team_id:
          title: Team Id
          type: string
        team_name:
          title: Team Name
          type: string
      required:
        - event_type
        - machine_user_id
        - machine_user_name
        - team_id
        - team_name
      title: AuditLogEventGridMachineUserCreatedV1
      type: object
    AuditLogEventGridMachineUserDeletedV1:
      description: A Grid machine user was deleted, revoking its API keys.
      properties:
        event_type:
          const: GRID_MACHINE_USER_DELETED
          title: Event Type
          type: string
        machine_user_id:
          title: Machine User Id
          type: string
        machine_user_name:
          title: Machine User Name
          type: string
        team_id:
          title: Team Id
          type: string
        team_name:
          title: Team Name
          type: string
      required:
        - event_type
        - machine_user_id
        - machine_user_name
        - team_id
        - team_name
      title: AuditLogEventGridMachineUserDeletedV1
      type: object
    AuditLogEventGridMachineUserUpdatedV1:
      description: A Grid machine user was renamed.
      properties:
        event_type:
          const: GRID_MACHINE_USER_UPDATED
          title: Event Type
          type: string
        machine_user_id:
          title: Machine User Id
          type: string
        machine_user_name:
          title: Machine User Name
          type: string
        previous_machine_user_name:
          title: Previous Machine User Name
          type: string
        team_id:
          title: Team Id
          type: string
        team_name:
          title: Team Name
          type: string
      required:
        - event_type
        - machine_user_id
        - machine_user_name
        - previous_machine_user_name
        - team_id
        - team_name
      title: AuditLogEventGridMachineUserUpdatedV1
      type: object
    AuditLogEventIdentityProviderCreatedV1:
      description: An identity provider was added.
      properties:
        event_type:
          const: IDENTITY_PROVIDER_CREATED
          title: Event Type
          type: string
        identity_provider_id:
          title: Identity Provider Id
          type: string
        name:
          title: Name
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Null when the provider was added without one.
          title: Description
        predefined:
          $ref: '#/components/schemas/AuditLogEventPredefinedIdentityProviderConfigV1'
          description: >-
            The provider's settings, as the identity provider resource returns
            them.
      required:
        - event_type
        - identity_provider_id
        - name
        - predefined
      title: AuditLogEventIdentityProviderCreatedV1
      type: object
    AuditLogEventIdentityProviderDeletedV1:
      description: An identity provider was deleted.
      properties:
        event_type:
          const: IDENTITY_PROVIDER_DELETED
          title: Event Type
          type: string
        identity_provider_id:
          title: Identity Provider Id
          type: string
        name:
          title: Name
          type: string
      required:
        - event_type
        - identity_provider_id
        - name
      title: AuditLogEventIdentityProviderDeletedV1
      type: object
    AuditLogEventIdentityProviderUpdatedV1:
      description: An identity provider was updated.
      properties:
        event_type:
          const: IDENTITY_PROVIDER_UPDATED
          title: Event Type
          type: string
        identity_provider_id:
          title: Identity Provider Id
          type: string
        name:
          title: Name
          type: string
        changes:
          additionalProperties:
            $ref: '#/components/schemas/AuditFieldChangeV1'
          description: The fields the update changed, keyed by field name.
          title: Changes
          type: object
      required:
        - event_type
        - identity_provider_id
        - name
        - changes
      title: AuditLogEventIdentityProviderUpdatedV1
      type: object
    AuditLogEventModelDeletedV1:
      description: A model was deleted.
      properties:
        event_type:
          const: MODEL_DELETED
          title: Event Type
          type: string
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
      required:
        - event_type
        - model_id
        - model_name
      title: AuditLogEventModelDeletedV1
      type: object
    AuditLogEventModelDeployedV1:
      description: A model deployment was created.
      properties:
        event_type:
          const: MODEL_DEPLOYED
          title: Event Type
          type: string
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
        deployment_id:
          title: Deployment Id
          type: string
        deployment_name:
          title: Deployment Name
          type: string
        scale_previous_to_zero:
          title: Scale Previous To Zero
          type: boolean
        trusted:
          title: Trusted
          type: boolean
        publish:
          title: Publish
          type: boolean
        environment_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Environment Name
        region_update:
          anyOf:
            - type: string
            - type: 'null'
          title: Region Update
        instance_type_id_update:
          anyOf:
            - type: string
            - type: 'null'
          title: Instance Type Id Update
        promotion_settings_override:
          anyOf:
            - $ref: '#/components/schemas/AuditLogEventPromotionSettingsOverrideV1'
            - type: 'null'
        autoscaling_settings_update:
          anyOf:
            - $ref: '#/components/schemas/AuditLogEventAutoscalingSettingsUpdateV1'
            - type: 'null'
        request_backpressure_settings_update:
          anyOf:
            - $ref: >-
                #/components/schemas/AuditLogEventRequestBackpressureSettingsUpdateV1
            - type: 'null'
        autoscaling_schedule_settings_update:
          anyOf:
            - $ref: >-
                #/components/schemas/AuditLogEventAutoscalingScheduleOperationsV1
            - type: 'null'
      required:
        - event_type
        - model_id
        - model_name
        - deployment_id
        - deployment_name
        - scale_previous_to_zero
        - trusted
        - publish
        - environment_name
        - region_update
        - instance_type_id_update
        - promotion_settings_override
        - autoscaling_settings_update
        - request_backpressure_settings_update
        - autoscaling_schedule_settings_update
      title: AuditLogEventModelDeployedV1
      type: object
    AuditLogEventModelDeploymentActivatedV1:
      description: A model deployment was activated.
      properties:
        event_type:
          const: MODEL_DEPLOYMENT_ACTIVATED
          title: Event Type
          type: string
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
        deployment_id:
          title: Deployment Id
          type: string
        deployment_name:
          title: Deployment Name
          type: string
      required:
        - event_type
        - model_id
        - model_name
        - deployment_id
        - deployment_name
      title: AuditLogEventModelDeploymentActivatedV1
      type: object
    AuditLogEventModelDeploymentAutoscalingSettingsChangedV1:
      description: A model deployment's autoscaling settings were changed.
      properties:
        schedules:
          anyOf:
            - items:
                $ref: '#/components/schemas/AuditLogEventAutoscalingScheduleChangeV1'
              type: array
            - type: 'null'
          title: Schedules
        min_replica:
          title: Min Replica
          type: integer
        max_replica:
          title: Max Replica
          type: integer
        concurrency_target:
          title: Concurrency Target
          type: integer
        autoscaling_window:
          anyOf:
            - type: integer
            - type: 'null'
          title: Autoscaling Window
        scale_down_delay:
          anyOf:
            - type: integer
            - type: 'null'
          title: Scale Down Delay
        target_utilization_percentage:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target Utilization Percentage
        target_in_flight_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target In Flight Tokens
        max_scale_down_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Max Scale Down Rate
        event_type:
          const: MODEL_DEPLOYMENT_AUTOSCALING_SETTINGS_CHANGED
          title: Event Type
          type: string
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
        deployment_id:
          title: Deployment Id
          type: string
        deployment_name:
          title: Deployment Name
          type: string
        deployment_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Deployment Type
        previous_settings:
          anyOf:
            - $ref: '#/components/schemas/AuditLogEventAutoscalingSettingsV1'
            - type: 'null'
      required:
        - schedules
        - min_replica
        - max_replica
        - concurrency_target
        - autoscaling_window
        - scale_down_delay
        - target_utilization_percentage
        - target_in_flight_tokens
        - max_scale_down_rate
        - event_type
        - model_id
        - model_name
        - deployment_id
        - deployment_name
        - deployment_type
        - previous_settings
      title: AuditLogEventModelDeploymentAutoscalingSettingsChangedV1
      type: object
    AuditLogEventModelDeploymentDeactivatedV1:
      description: A model deployment was deactivated.
      properties:
        event_type:
          const: MODEL_DEPLOYMENT_DEACTIVATED
          title: Event Type
          type: string
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
        deployment_id:
          title: Deployment Id
          type: string
        deployment_name:
          title: Deployment Name
          type: string
      required:
        - event_type
        - model_id
        - model_name
        - deployment_id
        - deployment_name
      title: AuditLogEventModelDeploymentDeactivatedV1
      type: object
    AuditLogEventModelDeploymentDeletedV1:
      description: A model deployment was deleted.
      properties:
        event_type:
          const: MODEL_DEPLOYMENT_DELETED
          title: Event Type
          type: string
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
        deployment_id:
          title: Deployment Id
          type: string
        deployment_name:
          title: Deployment Name
          type: string
      required:
        - event_type
        - model_id
        - model_name
        - deployment_id
        - deployment_name
      title: AuditLogEventModelDeploymentDeletedV1
      type: object
    AuditLogEventModelDeploymentInstanceTypeChangedV1:
      description: A model deployment's instance type was changed.
      properties:
        event_type:
          const: MODEL_DEPLOYMENT_INSTANCE_TYPE_CHANGED
          title: Event Type
          type: string
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
        deployment_id:
          title: Deployment Id
          type: string
        deployment_name:
          title: Deployment Name
          type: string
        instance_type_name:
          title: Instance Type Name
          type: string
      required:
        - event_type
        - model_id
        - model_name
        - deployment_id
        - deployment_name
        - instance_type_name
      title: AuditLogEventModelDeploymentInstanceTypeChangedV1
      type: object
    AuditLogEventModelDeploymentPromotedV1:
      description: A model deployment was promoted to an environment.
      properties:
        event_type:
          const: MODEL_DEPLOYMENT_PROMOTED
          title: Event Type
          type: string
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
        deployment_id:
          title: Deployment Id
          type: string
        deployment_name:
          title: Deployment Name
          type: string
        environment_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Environment Name
        environment_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Environment Id
        region_update:
          anyOf:
            - type: string
            - type: 'null'
          title: Region Update
        instance_type_id_update:
          anyOf:
            - type: string
            - type: 'null'
          title: Instance Type Id Update
        promotion_settings_override:
          anyOf:
            - $ref: '#/components/schemas/AuditLogEventPromotionSettingsOverrideV1'
            - type: 'null'
        autoscaling_settings_update:
          anyOf:
            - $ref: '#/components/schemas/AuditLogEventAutoscalingSettingsUpdateV1'
            - type: 'null'
        request_backpressure_settings_update:
          anyOf:
            - $ref: >-
                #/components/schemas/AuditLogEventRequestBackpressureSettingsUpdateV1
            - type: 'null'
        autoscaling_schedule_settings_update:
          anyOf:
            - $ref: >-
                #/components/schemas/AuditLogEventAutoscalingScheduleOperationsV1
            - type: 'null'
      required:
        - event_type
        - model_id
        - model_name
        - deployment_id
        - deployment_name
        - environment_name
        - environment_id
        - region_update
        - instance_type_id_update
        - promotion_settings_override
        - autoscaling_settings_update
        - request_backpressure_settings_update
        - autoscaling_schedule_settings_update
      title: AuditLogEventModelDeploymentPromotedV1
      type: object
    AuditLogEventModelDeploymentRequestBackpressureSettingsChangedV1:
      description: A model deployment's request backpressure settings were changed.
      properties:
        event_type:
          const: MODEL_DEPLOYMENT_REQUEST_BACKPRESSURE_SETTINGS_CHANGED
          title: Event Type
          type: string
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
        deployment_id:
          title: Deployment Id
          type: string
        deployment_name:
          title: Deployment Name
          type: string
        policy:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Policy
        previous_policy:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Previous Policy
      required:
        - event_type
        - model_id
        - model_name
        - deployment_id
        - deployment_name
      title: AuditLogEventModelDeploymentRequestBackpressureSettingsChangedV1
      type: object
    AuditLogEventModelDeploymentRetriedV1:
      description: A model deployment build was retried.
      properties:
        event_type:
          const: MODEL_DEPLOYMENT_RETRIED
          title: Event Type
          type: string
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
        deployment_id:
          title: Deployment Id
          type: string
        deployment_name:
          title: Deployment Name
          type: string
        retried:
          title: Retried
          type: boolean
      required:
        - event_type
        - model_id
        - model_name
        - deployment_id
        - deployment_name
        - retried
      title: AuditLogEventModelDeploymentRetriedV1
      type: object
    AuditLogEventModelPromotionControlActionV1:
      description: >-
        A user-initiated promotion control signal was sent to a rolling
        promotion.
      properties:
        event_type:
          const: MODEL_PROMOTION_CONTROL_ACTION
          title: Event Type
          type: string
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
        deployment_id:
          title: Deployment Id
          type: string
        deployment_name:
          title: Deployment Name
          type: string
        environment_name:
          title: Environment Name
          type: string
        environment_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Environment Id
        action:
          $ref: '#/components/schemas/AuditLogPromotionControlActionV1'
      required:
        - event_type
        - model_id
        - model_name
        - deployment_id
        - deployment_name
        - environment_name
        - environment_id
        - action
      title: AuditLogEventModelPromotionControlActionV1
      type: object
    AuditLogEventModelRenamedV1:
      description: A model was renamed. `model_name` is the new name.
      properties:
        event_type:
          const: MODEL_RENAMED
          title: Event Type
          type: string
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
        previous_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Previous Name
      required:
        - event_type
        - model_id
        - model_name
        - previous_name
      title: AuditLogEventModelRenamedV1
      type: object
    AuditLogEventOrganizationApiKeySettingsUpdatedV1:
      description: >-
        An administrator changed which classes of API key the organization
        allows creating.
      properties:
        event_type:
          const: ORGANIZATION_API_KEY_SETTINGS_UPDATED
          title: Event Type
          type: string
        organization_id:
          title: Organization Id
          type: string
        previous_allow_personal_api_keys:
          title: Previous Allow Personal Api Keys
          type: boolean
        new_allow_personal_api_keys:
          title: New Allow Personal Api Keys
          type: boolean
        previous_allow_service_account_api_keys:
          title: Previous Allow Service Account Api Keys
          type: boolean
        new_allow_service_account_api_keys:
          title: New Allow Service Account Api Keys
          type: boolean
      required:
        - event_type
        - organization_id
        - previous_allow_personal_api_keys
        - new_allow_personal_api_keys
        - previous_allow_service_account_api_keys
        - new_allow_service_account_api_keys
      title: AuditLogEventOrganizationApiKeySettingsUpdatedV1
      type: object
    AuditLogEventProviderConnectionCreatedV1:
      properties:
        event_type:
          const: PROVIDER_CONNECTION_CREATED
          title: Event Type
          type: string
        provider_connection_id:
          title: Provider Connection Id
          type: string
        provider:
          title: Provider
          type: string
        secret_name:
          title: Secret Name
          type: string
      required:
        - event_type
        - provider_connection_id
        - provider
        - secret_name
      title: AuditLogEventProviderConnectionCreatedV1
      type: object
    AuditLogEventProviderConnectionDeletedV1:
      properties:
        event_type:
          const: PROVIDER_CONNECTION_DELETED
          title: Event Type
          type: string
        provider_connection_id:
          title: Provider Connection Id
          type: string
        provider:
          title: Provider
          type: string
        secret_name:
          title: Secret Name
          type: string
      required:
        - event_type
        - provider_connection_id
        - provider
        - secret_name
      title: AuditLogEventProviderConnectionDeletedV1
      type: object
    AuditLogEventProviderConnectionUpdatedV1:
      properties:
        event_type:
          const: PROVIDER_CONNECTION_UPDATED
          title: Event Type
          type: string
        provider_connection_id:
          title: Provider Connection Id
          type: string
        provider:
          title: Provider
          type: string
        secret_name:
          title: Secret Name
          type: string
      required:
        - event_type
        - provider_connection_id
        - provider
        - secret_name
      title: AuditLogEventProviderConnectionUpdatedV1
      type: object
    AuditLogEventReplicaTerminatedV1:
      description: A replica of a model deployment was terminated.
      properties:
        event_type:
          const: REPLICA_TERMINATED
          title: Event Type
          type: string
        model_id:
          title: Model Id
          type: string
        model_name:
          title: Model Name
          type: string
        deployment_id:
          title: Deployment Id
          type: string
        deployment_name:
          title: Deployment Name
          type: string
        replica_id:
          title: Replica Id
          type: string
      required:
        - event_type
        - model_id
        - model_name
        - deployment_id
        - deployment_name
        - replica_id
      title: AuditLogEventReplicaTerminatedV1
      type: object
    AuditLogEventRequireGroupBasedAdminsEnabledV1:
      description: Group-based admin enforcement was enabled for the organization.
      properties:
        event_type:
          const: REQUIRE_GROUP_BASED_ADMINS_ENABLED
          title: Event Type
          type: string
        organization_id:
          title: Organization Id
          type: string
      required:
        - event_type
        - organization_id
      title: AuditLogEventRequireGroupBasedAdminsEnabledV1
      type: object
    AuditLogEventSecretDeletedV1:
      description: A secret was deleted.
      properties:
        event_type:
          const: SECRET_DELETED
          title: Event Type
          type: string
        secret_id:
          title: Secret Id
          type: string
        secret_name:
          title: Secret Name
          type: string
      required:
        - event_type
        - secret_id
        - secret_name
      title: AuditLogEventSecretDeletedV1
      type: object
    AuditLogEventSecretUpdatedV1:
      description: A secret was created or updated.
      properties:
        event_type:
          const: SECRET_UPDATED
          title: Event Type
          type: string
        secret_id:
          title: Secret Id
          type: string
        secret_name:
          title: Secret Name
          type: string
      required:
        - event_type
        - secret_id
        - secret_name
      title: AuditLogEventSecretUpdatedV1
      type: object
    AuditLogEventServiceAccountCreatedV1:
      description: A service account was created.
      properties:
        event_type:
          const: SERVICE_ACCOUNT_CREATED
          title: Event Type
          type: string
        service_account_id:
          title: Service Account Id
          type: string
        name:
          title: Name
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Null when the account was created without one.
          title: Description
        owner_team_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: The team that owns the account. Null for an organization account.
          title: Owner Team Id
        preset_permissions:
          $ref: '#/components/schemas/AuditLogEventServiceAccountPresetPermissionsV1'
      required:
        - event_type
        - service_account_id
        - name
        - preset_permissions
      title: AuditLogEventServiceAccountCreatedV1
      type: object
    AuditLogEventServiceAccountDeletedV1:
      description: A service account was deleted.
      properties:
        event_type:
          const: SERVICE_ACCOUNT_DELETED
          title: Event Type
          type: string
        service_account_id:
          title: Service Account Id
          type: string
        name:
          title: Name
          type: string
      required:
        - event_type
        - service_account_id
        - name
      title: AuditLogEventServiceAccountDeletedV1
      type: object
    AuditLogEventServiceAccountUpdatedV1:
      description: >-
        A service account was updated. Disabling or enabling it is a change to
        `disabled`.
      properties:
        event_type:
          const: SERVICE_ACCOUNT_UPDATED
          title: Event Type
          type: string
        service_account_id:
          title: Service Account Id
          type: string
        name:
          title: Name
          type: string
        changes:
          additionalProperties:
            $ref: '#/components/schemas/AuditFieldChangeV1'
          description: The fields the update changed, keyed by field name.
          title: Changes
          type: object
      required:
        - event_type
        - service_account_id
        - name
        - changes
      title: AuditLogEventServiceAccountUpdatedV1
      type: object
    AuditLogEventSshCertificateSignedV1:
      description: An SSH certificate was signed for a workload.
      properties:
        event_type:
          const: SSH_CERTIFICATE_SIGNED
          title: Event Type
          type: string
        workload_type:
          title: Workload Type
          type: string
        workload_id:
          title: Workload Id
          type: string
        project_id:
          title: Project Id
          type: string
        replica_id:
          title: Replica Id
          type: string
        proxy_address:
          title: Proxy Address
          type: string
        expires_at:
          title: Expires At
          type: string
      required:
        - event_type
        - workload_type
        - workload_id
        - project_id
        - replica_id
        - proxy_address
        - expires_at
      title: AuditLogEventSshCertificateSignedV1
      type: object
    AuditLogEventTelemetryExportCreatedV1:
      description: A telemetry export configuration was created.
      properties:
        telemetry_export_configuration_id:
          title: Telemetry Export Configuration Id
          type: string
        event_type:
          const: TELEMETRY_EXPORT_CREATED
          title: Event Type
          type: string
      required:
        - telemetry_export_configuration_id
        - event_type
      title: AuditLogEventTelemetryExportCreatedV1
      type: object
    AuditLogEventTelemetryExportDeletedV1:
      description: A telemetry export configuration was deleted.
      properties:
        telemetry_export_configuration_id:
          title: Telemetry Export Configuration Id
          type: string
        event_type:
          const: TELEMETRY_EXPORT_DELETED
          title: Event Type
          type: string
      required:
        - telemetry_export_configuration_id
        - event_type
      title: AuditLogEventTelemetryExportDeletedV1
      type: object
    AuditLogEventTelemetryExportUpdatedV1:
      description: >-
        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.
      properties:
        telemetry_export_configuration_id:
          title: Telemetry Export Configuration Id
          type: string
        event_type:
          const: TELEMETRY_EXPORT_UPDATED
          title: Event Type
          type: string
        credential_rotated:
          title: Credential Rotated
          type: boolean
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Enabled
      required:
        - telemetry_export_configuration_id
        - event_type
        - credential_rotated
        - enabled
      title: AuditLogEventTelemetryExportUpdatedV1
      type: object
    AuditLogEventTrustRuleCreatedV1:
      description: A trust rule was created.
      properties:
        event_type:
          const: TRUST_RULE_CREATED
          title: Event Type
          type: string
        trust_rule_id:
          title: Trust Rule Id
          type: string
        name:
          title: Name
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Null when the rule was created without one.
          title: Description
        identity_provider_id:
          title: Identity Provider Id
          type: string
        service_account_id:
          title: Service Account Id
          type: string
        condition:
          description: The CEL expression a token's claims must satisfy.
          title: Condition
          type: string
        audience:
          description: The `aud` claim a token must carry.
          title: Audience
          type: string
        max_access_token_lifetime_seconds:
          description: >-
            The longest lifetime, in seconds, of an access token the rule
            issues.
          title: Max Access Token Lifetime Seconds
          type: integer
      required:
        - event_type
        - trust_rule_id
        - name
        - identity_provider_id
        - service_account_id
        - condition
        - audience
        - max_access_token_lifetime_seconds
      title: AuditLogEventTrustRuleCreatedV1
      type: object
    AuditLogEventTrustRuleDeletedV1:
      description: A trust rule was deleted.
      properties:
        event_type:
          const: TRUST_RULE_DELETED
          title: Event Type
          type: string
        trust_rule_id:
          title: Trust Rule Id
          type: string
        name:
          title: Name
          type: string
      required:
        - event_type
        - trust_rule_id
        - name
      title: AuditLogEventTrustRuleDeletedV1
      type: object
    AuditLogEventTrustRuleUpdatedV1:
      description: A trust rule was updated.
      properties:
        event_type:
          const: TRUST_RULE_UPDATED
          title: Event Type
          type: string
        trust_rule_id:
          title: Trust Rule Id
          type: string
        name:
          title: Name
          type: string
        changes:
          additionalProperties:
            $ref: '#/components/schemas/AuditFieldChangeV1'
          description: The fields the update changed, keyed by field name.
          title: Changes
          type: object
      required:
        - event_type
        - trust_rule_id
        - name
        - changes
      title: AuditLogEventTrustRuleUpdatedV1
      type: object
    AuditLogEventUserInvitedV1:
      description: A user was invited to the organization.
      properties:
        event_type:
          const: USER_INVITED
          title: Event Type
          type: string
        invited_user_email:
          title: Invited User Email
          type: string
        role_name:
          title: Role Name
          type: string
      required:
        - event_type
        - invited_user_email
        - role_name
      title: AuditLogEventUserInvitedV1
      type: object
    AuditLogEventUserJoinedOrganizationV1:
      description: A user joined the organization.
      properties:
        event_type:
          const: USER_JOINED_ORGANIZATION
          title: Event Type
          type: string
        new_user_email:
          title: New User Email
          type: string
        user_id:
          title: User Id
          type: string
      required:
        - event_type
        - new_user_email
        - user_id
      title: AuditLogEventUserJoinedOrganizationV1
      type: object
    AuditLogEventUserRemovedV1:
      description: A user was removed from the organization.
      properties:
        event_type:
          const: USER_REMOVED
          title: Event Type
          type: string
        removed_user_email:
          title: Removed User Email
          type: string
      required:
        - event_type
        - removed_user_email
      title: AuditLogEventUserRemovedV1
      type: object
    AuditLogEventUserRoleUpdatedV1:
      description: A user's organization role was updated.
      properties:
        event_type:
          const: USER_ROLE_UPDATED
          title: Event Type
          type: string
        user_id:
          title: User Id
          type: string
        user_email:
          title: User Email
          type: string
        new_role_name:
          title: New Role Name
          type: string
      required:
        - event_type
        - user_id
        - user_email
        - new_role_name
      title: AuditLogEventUserRoleUpdatedV1
      type: object
    AuditLogEventUserTeamRoleUpdatedV1:
      description: A user's team role was updated.
      properties:
        event_type:
          const: USER_TEAM_ROLE_UPDATED
          title: Event Type
          type: string
        user_id:
          title: User Id
          type: string
        user_email:
          title: User Email
          type: string
        team_id:
          title: Team Id
          type: string
        team_name:
          title: Team Name
          type: string
        new_role_name:
          title: New Role Name
          type: string
      required:
        - event_type
        - user_id
        - user_email
        - team_id
        - team_name
        - new_role_name
      title: AuditLogEventUserTeamRoleUpdatedV1
      type: object
    AuditLogEventVolumeDeletedV1:
      description: A volume was deleted, tombstoning every version it still held.
      properties:
        event_type:
          const: VOLUME_DELETED
          title: Event Type
          type: string
        volume_ref:
          title: Volume Ref
          type: string
        namespace:
          title: Namespace
          type: string
        volume_name:
          title: Volume Name
          type: string
        versions_deleted:
          title: Versions Deleted
          type: integer
      required:
        - event_type
        - volume_ref
        - namespace
        - volume_name
        - versions_deleted
      title: AuditLogEventVolumeDeletedV1
      type: object
    AuditLogEventVolumeTagDeletedV1:
      description: >-
        Deleting a volume tag succeeded. `deleted` is false if the tag was
        already absent.
      properties:
        event_type:
          const: VOLUME_TAG_DELETED
          title: Event Type
          type: string
        volume_ref:
          title: Volume Ref
          type: string
        tag:
          title: Tag
          type: string
        deleted:
          title: Deleted
          type: boolean
      required:
        - event_type
        - volume_ref
        - tag
        - deleted
      title: AuditLogEventVolumeTagDeletedV1
      type: object
    AuditLogEventVolumeTagSetV1:
      description: A volume tag was set on a version.
      properties:
        event_type:
          const: VOLUME_TAG_SET
          title: Event Type
          type: string
        volume_ref:
          title: Volume Ref
          type: string
        tag:
          title: Tag
          type: string
        digest:
          title: Digest
          type: string
      required:
        - event_type
        - volume_ref
        - tag
        - digest
      title: AuditLogEventVolumeTagSetV1
      type: object
    AuditLogEventVolumeUpdatedV1:
      description: A volume's settings were updated.
      properties:
        event_type:
          const: VOLUME_UPDATED
          title: Event Type
          type: string
        volume_ref:
          title: Volume Ref
          type: string
        expires_at:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The volume's expiration time after the update, as an ISO 8601
            string. Null when the update cleared it.
          title: Expires At
        previous_expires_at:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The expiration time the update replaced, as an ISO 8601 string. Null
            when the volume had none.
          title: Previous Expires At
      required:
        - event_type
        - volume_ref
        - expires_at
        - previous_expires_at
      title: AuditLogEventVolumeUpdatedV1
      type: object
    AuditLogEventVolumeVersionDeletedV1:
      description: One version of a volume was deleted.
      properties:
        event_type:
          const: VOLUME_VERSION_DELETED
          title: Event Type
          type: string
        volume_ref:
          title: Volume Ref
          type: string
        namespace:
          title: Namespace
          type: string
        volume_name:
          title: Volume Name
          type: string
        version:
          title: Version
          type: string
        digest:
          title: Digest
          type: string
      required:
        - event_type
        - volume_ref
        - namespace
        - volume_name
        - version
        - digest
      title: AuditLogEventVolumeVersionDeletedV1
      type: object
    AuditLogEventVolumeVersionRestoredV1:
      description: A deleted version of a volume was restored.
      properties:
        event_type:
          const: VOLUME_VERSION_RESTORED
          title: Event Type
          type: string
        volume_ref:
          title: Volume Ref
          type: string
        namespace:
          title: Namespace
          type: string
        volume_name:
          title: Volume Name
          type: string
        version:
          title: Version
          type: string
        digest:
          title: Digest
          type: string
      required:
        - event_type
        - volume_ref
        - namespace
        - volume_name
        - version
        - digest
      title: AuditLogEventVolumeVersionRestoredV1
      type: object
    AuditLogEventWebhookSigningSecretCreatedV1:
      description: A webhook signing secret was created.
      properties:
        event_type:
          const: WEBHOOK_SIGNING_SECRET_CREATED
          title: Event Type
          type: string
        webhook_signing_secret_id:
          title: Webhook Signing Secret Id
          type: string
      required:
        - event_type
        - webhook_signing_secret_id
      title: AuditLogEventWebhookSigningSecretCreatedV1
      type: object
    AuditLogEventWebhookSigningSecretDeletedV1:
      description: A webhook signing secret was deleted.
      properties:
        event_type:
          const: WEBHOOK_SIGNING_SECRET_DELETED
          title: Event Type
          type: string
        webhook_signing_secret_id:
          title: Webhook Signing Secret Id
          type: string
      required:
        - event_type
        - webhook_signing_secret_id
      title: AuditLogEventWebhookSigningSecretDeletedV1
      type: object
    AuditLogEventWebhookSigningSecretRotatedV1:
      description: A webhook signing secret was rotated.
      properties:
        event_type:
          const: WEBHOOK_SIGNING_SECRET_ROTATED
          title: Event Type
          type: string
        webhook_signing_secret_id:
          title: Webhook Signing Secret Id
          type: string
      required:
        - event_type
        - webhook_signing_secret_id
      title: AuditLogEventWebhookSigningSecretRotatedV1
      type: object
    AuditLogActorV1:
      description: The actor that performed an audited action.
      properties:
        type:
          $ref: '#/components/schemas/AuditLogActorTypeV1'
          description: Kind of actor that performed the action.
        email:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Email of the acting user, when the actor is a user.
          title: Email
        api_key_prefix:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Prefix of the acting API key, when the actor is an API key.
          title: Api Key Prefix
        api_key_name:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: Display name of the acting API key, when the actor is an API key.
          title: Api Key Name
        service_account_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            ID of the acting service account, when the actor is a service
            account.
          title: Service Account Id
        service_account_name:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Current name of the acting service account, when the actor is a
            service account.
          title: Service Account Name
        trust_rule_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            ID of the trust rule the acting workload identity federation token
            was exchanged through, when the actor is a service account.
          title: Trust Rule Id
      required:
        - type
      title: AuditLogActorV1
      type: object
    AuditLogApiKeyTypeV1:
      description: Type of API key recorded on an API-key event.
      enum:
        - PERSONAL
        - CREATOR_SERVICE_ACCOUNT
        - MANAGE_API_KEYS_SERVICE_ACCOUNT
        - INVOKE_ALL_MODELS_SERVICE_ACCOUNT
        - INVOKE_ALL_DEDICATED_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
      title: AuditLogApiKeyTypeV1
      type: string
    AuditLogApiKeyRevocationReasonV1:
      description: Reason an API key was revoked.
      enum:
        - INACTIVITY
        - CREDENTIAL_EXPOSURE
      title: AuditLogApiKeyRevocationReasonV1
      type: string
    AuditLogEventAutoscalingSettingsV1:
      description: Autoscaling settings for a deployment or environment.
      properties:
        min_replica:
          title: Min Replica
          type: integer
        max_replica:
          title: Max Replica
          type: integer
        concurrency_target:
          title: Concurrency Target
          type: integer
        autoscaling_window:
          anyOf:
            - type: integer
            - type: 'null'
          title: Autoscaling Window
        scale_down_delay:
          anyOf:
            - type: integer
            - type: 'null'
          title: Scale Down Delay
        target_utilization_percentage:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target Utilization Percentage
        target_in_flight_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target In Flight Tokens
        max_scale_down_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Max Scale Down Rate
      required:
        - min_replica
        - max_replica
        - concurrency_target
        - autoscaling_window
        - scale_down_delay
        - target_utilization_percentage
        - target_in_flight_tokens
        - max_scale_down_rate
      title: AuditLogEventAutoscalingSettingsV1
      type: object
    AuditLogEventAutoscalingScheduleChangeV1:
      description: >-
        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.
      properties:
        action:
          $ref: '#/components/schemas/AuditLogEventAutoscalingScheduleActionV1'
        schedule_id:
          title: Schedule Id
          type: string
        previous:
          anyOf:
            - $ref: '#/components/schemas/AuditLogEventAutoscalingScheduleSettingsV1'
            - type: 'null'
        current:
          anyOf:
            - $ref: '#/components/schemas/AuditLogEventAutoscalingScheduleSettingsV1'
            - type: 'null'
      required:
        - action
        - schedule_id
        - previous
        - current
      title: AuditLogEventAutoscalingScheduleChangeV1
      type: object
    AuditLogEventEnvironmentSettingsV1:
      description: >-
        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.
      properties:
        redeploy_on_promotion:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Redeploy On Promotion
        rolling_deploy:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Rolling Deploy
        rolling_deploy_strategy:
          anyOf:
            - type: string
            - type: 'null'
          title: Rolling Deploy Strategy
        max_unavailable_percent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Unavailable Percent
        max_surge_percent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Surge Percent
        stabilization_time_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Stabilization Time Seconds
        replica_overhead_percent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Replica Overhead Percent
        promotion_cleanup_strategy:
          anyOf:
            - type: string
            - type: 'null'
          title: Promotion Cleanup Strategy
        min_replica:
          title: Min Replica
          type: integer
        max_replica:
          title: Max Replica
          type: integer
        concurrency_target:
          title: Concurrency Target
          type: integer
        autoscaling_window:
          anyOf:
            - type: integer
            - type: 'null'
          title: Autoscaling Window
        scale_down_delay:
          anyOf:
            - type: integer
            - type: 'null'
          title: Scale Down Delay
        target_utilization_percentage:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target Utilization Percentage
        target_in_flight_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target In Flight Tokens
        max_scale_down_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Max Scale Down Rate
        ramp_up_while_promoting:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Ramp Up While Promoting
        ramp_up_duration_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ramp Up Duration Seconds
        ramp_up_step_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ramp Up Step Size
        request_backpressure_policy:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Backpressure Policy
      required:
        - redeploy_on_promotion
        - rolling_deploy
        - rolling_deploy_strategy
        - max_unavailable_percent
        - max_surge_percent
        - stabilization_time_seconds
        - replica_overhead_percent
        - promotion_cleanup_strategy
        - min_replica
        - max_replica
        - concurrency_target
        - autoscaling_window
        - scale_down_delay
        - target_utilization_percentage
        - target_in_flight_tokens
        - max_scale_down_rate
        - ramp_up_while_promoting
        - ramp_up_duration_seconds
        - ramp_up_step_size
      title: AuditLogEventEnvironmentSettingsV1
      type: object
    AuditLogEventPredefinedIdentityProviderConfigV1:
      description: >-
        Settings of a predefined identity provider, as recorded on an identity
        provider event. Not

        itself an event payload.
      properties:
        kind:
          description: Which predefined provider, for example `AWS_EKS`.
          title: Kind
          type: string
        issuer_url:
          description: The `iss` claim of the provider's tokens.
          title: Issuer Url
          type: string
      required:
        - kind
        - issuer_url
      title: AuditLogEventPredefinedIdentityProviderConfigV1
      type: object
    AuditFieldChangeV1:
      description: A field's value before and after an update.
      properties:
        old:
          description: The value before the update.
          title: Old
        new:
          description: The value after the update.
          title: New
      required:
        - old
        - new
      title: AuditFieldChangeV1
      type: object
    AuditLogEventPromotionSettingsOverrideV1:
      description: >-
        Promotion settings overridden for one promotion. Null means the
        environment's value. Not

        itself a payload in the discriminated union.
      properties:
        redeploy_on_promotion:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Redeploy On Promotion
        rolling_deploy:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Rolling Deploy
        rolling_deploy_strategy:
          anyOf:
            - type: string
            - type: 'null'
          title: Rolling Deploy Strategy
        max_unavailable_percent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Unavailable Percent
        max_surge_percent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Surge Percent
        stabilization_time_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Stabilization Time Seconds
        replica_overhead_percent:
          anyOf:
            - type: integer
            - type: 'null'
          title: Replica Overhead Percent
        promotion_cleanup_strategy:
          anyOf:
            - type: string
            - type: 'null'
          title: Promotion Cleanup Strategy
      required:
        - redeploy_on_promotion
        - rolling_deploy
        - rolling_deploy_strategy
        - max_unavailable_percent
        - max_surge_percent
        - stabilization_time_seconds
        - replica_overhead_percent
        - promotion_cleanup_strategy
      title: AuditLogEventPromotionSettingsOverrideV1
      type: object
    AuditLogEventAutoscalingSettingsUpdateV1:
      description: >-
        Autoscaling settings a request set, null where it left a setting
        unchanged. Not itself a

        payload in the discriminated union.
      properties:
        min_replica:
          anyOf:
            - type: integer
            - type: 'null'
          title: Min Replica
        max_replica:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Replica
        concurrency_target:
          anyOf:
            - type: integer
            - type: 'null'
          title: Concurrency Target
        autoscaling_window:
          anyOf:
            - type: integer
            - type: 'null'
          title: Autoscaling Window
        scale_down_delay:
          anyOf:
            - type: integer
            - type: 'null'
          title: Scale Down Delay
        target_utilization_percentage:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target Utilization Percentage
        target_in_flight_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target In Flight Tokens
        max_scale_down_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Max Scale Down Rate
      required:
        - min_replica
        - max_replica
        - concurrency_target
        - autoscaling_window
        - scale_down_delay
        - target_utilization_percentage
        - target_in_flight_tokens
        - max_scale_down_rate
      title: AuditLogEventAutoscalingSettingsUpdateV1
      type: object
    AuditLogEventRequestBackpressureSettingsUpdateV1:
      description: >-
        A request backpressure policy a request set; a null policy clears it.
        Not itself a

        payload in the discriminated union.
      properties:
        policy:
          anyOf:
            - type: string
            - type: 'null'
          title: Policy
      required:
        - policy
      title: AuditLogEventRequestBackpressureSettingsUpdateV1
      type: object
    AuditLogEventAutoscalingScheduleOperationsV1:
      description: >-
        The autoscaling schedule changes a request asked for. Not itself a union
        payload.
      properties:
        timezone:
          anyOf:
            - type: string
            - type: 'null'
          title: Timezone
        schedules:
          items:
            $ref: '#/components/schemas/AuditLogEventAutoscalingScheduleUpsertV1'
          title: Schedules
          type: array
        delete_schedule_ids:
          items:
            type: string
          title: Delete Schedule Ids
          type: array
      required:
        - timezone
        - schedules
        - delete_schedule_ids
      title: AuditLogEventAutoscalingScheduleOperationsV1
      type: object
    AuditLogPromotionControlActionV1:
      description: >-
        User-initiated promotion control signal recorded on a promotion-control
        event.
      enum:
        - PAUSE
        - RESUME
        - FORCE_CANCEL
        - FORCE_ROLL_FORWARD
        - GRACEFUL_CANCEL
      title: AuditLogPromotionControlActionV1
      type: string
    AuditLogEventServiceAccountPresetPermissionsV1:
      description: >-
        A service account's access, as recorded on a service account event. Not
        itself an event

        payload.
      properties:
        api_key_type:
          description: >-
            The API key type whose permissions the account has, as API key
            events record it.
          title: Api Key Type
          type: string
        model_ids:
          description: Models the access is limited to; empty for all.
          items:
            type: string
          title: Model Ids
          type: array
        environment_names:
          description: >-
            Environments the access is limited to, or may also manage; empty for
            none.
          items:
            type: string
          title: Environment Names
          type: array
        model_api_slugs:
          description: Model APIs the access is limited to; empty for all.
          items:
            type: string
          title: Model Api Slugs
          type: array
      required:
        - api_key_type
        - model_ids
        - environment_names
        - model_api_slugs
      title: AuditLogEventServiceAccountPresetPermissionsV1
      type: object
    AuditLogActorTypeV1:
      description: Kind of actor that performed an audited action.
      enum:
        - USER
        - API_KEY
        - BASETEN_USER
        - BASETEN_SYSTEM
        - TOMBSTONE_USER
        - SERVICE_ACCOUNT
      title: AuditLogActorTypeV1
      type: string
    AuditLogEventAutoscalingScheduleActionV1:
      description: What an autoscaling change did to one schedule.
      enum:
        - CREATED
        - UPDATED
        - DELETED
        - UNCHANGED
      title: AuditLogEventAutoscalingScheduleActionV1
      type: string
    AuditLogEventAutoscalingScheduleSettingsV1:
      description: >-
        One autoscaling schedule's timing and autoscaling settings. Not itself a
        union payload.
      properties:
        min_replica:
          title: Min Replica
          type: integer
        max_replica:
          title: Max Replica
          type: integer
        concurrency_target:
          anyOf:
            - type: integer
            - type: 'null'
          title: Concurrency Target
        autoscaling_window:
          anyOf:
            - type: integer
            - type: 'null'
          title: Autoscaling Window
        scale_down_delay:
          anyOf:
            - type: integer
            - type: 'null'
          title: Scale Down Delay
        target_utilization_percentage:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target Utilization Percentage
        target_in_flight_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target In Flight Tokens
        max_scale_down_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Max Scale Down Rate
        schedule_name:
          title: Schedule Name
          type: string
        enabled:
          title: Enabled
          type: boolean
        cadence:
          title: Cadence
          type: string
        timezone:
          title: Timezone
          type: string
        weekdays:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Weekdays
        start_hour:
          anyOf:
            - type: integer
            - type: 'null'
          title: Start Hour
        start_minute:
          anyOf:
            - type: integer
            - type: 'null'
          title: Start Minute
        end_hour:
          anyOf:
            - type: integer
            - type: 'null'
          title: End Hour
        end_minute:
          anyOf:
            - type: integer
            - type: 'null'
          title: End Minute
        start_at:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Start At
        end_at:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: End At
      required:
        - min_replica
        - max_replica
        - concurrency_target
        - autoscaling_window
        - scale_down_delay
        - target_utilization_percentage
        - target_in_flight_tokens
        - max_scale_down_rate
        - schedule_name
        - enabled
        - cadence
        - timezone
        - weekdays
        - start_hour
        - start_minute
        - end_hour
        - end_minute
      title: AuditLogEventAutoscalingScheduleSettingsV1
      type: object
    AuditLogEventAutoscalingScheduleUpsertV1:
      description: >-
        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.
      properties:
        min_replica:
          title: Min Replica
          type: integer
        max_replica:
          title: Max Replica
          type: integer
        concurrency_target:
          anyOf:
            - type: integer
            - type: 'null'
          title: Concurrency Target
        autoscaling_window:
          anyOf:
            - type: integer
            - type: 'null'
          title: Autoscaling Window
        scale_down_delay:
          anyOf:
            - type: integer
            - type: 'null'
          title: Scale Down Delay
        target_utilization_percentage:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target Utilization Percentage
        target_in_flight_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Target In Flight Tokens
        max_scale_down_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Max Scale Down Rate
        schedule_name:
          title: Schedule Name
          type: string
        enabled:
          title: Enabled
          type: boolean
        cadence:
          title: Cadence
          type: string
        timezone:
          anyOf:
            - type: string
            - type: 'null'
          title: Timezone
        weekdays:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Weekdays
        start_hour:
          anyOf:
            - type: integer
            - type: 'null'
          title: Start Hour
        start_minute:
          anyOf:
            - type: integer
            - type: 'null'
          title: Start Minute
        end_hour:
          anyOf:
            - type: integer
            - type: 'null'
          title: End Hour
        end_minute:
          anyOf:
            - type: integer
            - type: 'null'
          title: End Minute
        start_at:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Start At
        end_at:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: End At
        schedule_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Schedule Id
      required:
        - min_replica
        - max_replica
        - concurrency_target
        - autoscaling_window
        - scale_down_delay
        - target_utilization_percentage
        - target_in_flight_tokens
        - max_scale_down_rate
        - schedule_name
        - enabled
        - cadence
        - timezone
        - weekdays
        - start_hour
        - start_minute
        - end_hour
        - end_minute
        - schedule_id
      title: AuditLogEventAutoscalingScheduleUpsertV1
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send `Authorization: Bearer <api_key>`. The legacy `Authorization:
        Api-Key <api_key>` scheme is also accepted.

````