// This file is auto-generated by @hey-api/openapi-ts

export type ClientOptions = {
  baseUrl: `${string}://${string}/console/api` | (string & {})
}

export type WorkflowRunPaginationResponse = {
  data: Array<WorkflowRunForListResponse>
  has_more: boolean
  limit: number
}

export type SimpleResultResponse = {
  result: string
}

export type WorkflowRunDetailResponse = {
  created_at?: number | null
  created_by_account?: SimpleAccount | null
  created_by_end_user?: SimpleEndUser | null
  created_by_role?: string | null
  elapsed_time?: number | null
  error?: string | null
  exceptions_count?: number | null
  finished_at?: number | null
  graph: unknown
  id: string
  inputs: unknown
  outputs: unknown
  status?: string | null
  total_steps?: number | null
  total_tokens?: number | null
  version?: string | null
}

export type WorkflowRunNodeExecutionListResponse = {
  data: Array<WorkflowRunNodeExecutionResponse>
}

export type WorkflowPaginationResponse = {
  has_more: boolean
  items: Array<WorkflowResponse>
  limit: number
  page: number
}

export type DefaultBlockConfigsResponse = Array<{
  [key: string]: unknown
}>

export type SnippetWorkflowResponse = {
  conversation_variables: Array<WorkflowConversationVariableResponse>
  created_at: number
  created_by?: SimpleAccount | null
  environment_variables: Array<WorkflowEnvironmentVariableResponse>
  features: {
    [key: string]: unknown
  }
  graph: {
    [key: string]: unknown
  }
  hash: string
  id: string
  input_fields?: Array<{
    [key: string]: unknown
  }>
  marked_comment: string
  marked_name: string
  rag_pipeline_variables: Array<PipelineVariableResponse>
  tool_published: boolean
  updated_at: number
  updated_by?: SimpleAccount | null
  version: string
}

export type SnippetDraftSyncPayload = {
  conversation_variables?: Array<{
    [key: string]: unknown
  }> | null
  graph: {
    [key: string]: unknown
  }
  hash?: string | null
  input_fields?: Array<{
    [key: string]: unknown
  }> | null
}

export type WorkflowRestoreResponse = {
  hash: string
  result: string
  updated_at: number
}

export type SnippetDraftConfigResponse = {
  parallel_depth_limit: number
}

export type WorkflowDraftVariableList = {
  items?: Array<WorkflowDraftVariable>
}

export type EnvironmentVariableListResponse = {
  items: Array<EnvironmentVariableItemResponse>
}

export type SnippetIterationNodeRunPayload = {
  inputs?: {
    [key: string]: unknown
  } | null
}

export type GeneratedAppResponse = JsonValue

export type SnippetLoopNodeRunPayload = {
  inputs?: {
    [key: string]: unknown
  } | null
}

export type WorkflowRunNodeExecutionResponse = {
  created_at?: number | null
  created_by_account?: SimpleAccount | null
  created_by_end_user?: SimpleEndUser | null
  created_by_role?: string | null
  elapsed_time?: number | null
  error?: string | null
  execution_metadata?: unknown
  extras?: unknown
  finished_at?: number | null
  id: string
  index?: number | null
  inputs?: unknown
  inputs_truncated?: boolean | null
  node_id?: string | null
  node_type?: string | null
  outputs?: unknown
  outputs_truncated?: boolean | null
  predecessor_node_id?: string | null
  process_data?: unknown
  process_data_truncated?: boolean | null
  status?: string | null
  title?: string | null
}

export type SnippetDraftNodeRunPayload = {
  files?: Array<{
    [key: string]: unknown
  }> | null
  inputs: {
    [key: string]: unknown
  }
  query?: string
}

export type SnippetDraftRunPayload = {
  files?: Array<{
    [key: string]: unknown
  }> | null
  inputs: {
    [key: string]: unknown
  }
}

export type WorkflowDraftVariableListWithoutValue = {
  items?: Array<WorkflowDraftVariableWithoutValue>
  total?: number
}

export type WorkflowDraftVariable = {
  description?: string
  edited?: boolean
  full_content?: {
    [key: string]: unknown
  }
  id?: string
  is_truncated?: boolean
  name?: string
  selector?: Array<string>
  type?: string
  value?:
    | string
    | number
    | number
    | boolean
    | {
      [key: string]: unknown
    }
    | Array<unknown>
    | null
  value_type?: string
  visible?: boolean
}

export type WorkflowDraftVariableUpdatePayload = {
  name?: string | null
  value?: unknown | null
}

export type PublishWorkflowPayload = {
  knowledge_base_setting?: {
    [key: string]: unknown
  } | null
}

export type WorkflowPublishResponse = {
  created_at: number
  result: string
}

export type WorkflowRunForListResponse = {
  created_at?: number | null
  created_by_account?: SimpleAccount | null
  elapsed_time?: number | null
  exceptions_count?: number | null
  finished_at?: number | null
  id: string
  retry_index?: number | null
  status?: string | null
  total_steps?: number | null
  total_tokens?: number | null
  version?: string | null
}

export type SimpleAccount = {
  email: string
  id: string
  name: string
}

export type SimpleEndUser = {
  id: string
  is_anonymous: boolean
  session_id?: string | null
  type: string
}

export type WorkflowResponse = {
  conversation_variables: Array<WorkflowConversationVariableResponse>
  created_at: number
  created_by?: SimpleAccount | null
  environment_variables: Array<WorkflowEnvironmentVariableResponse>
  features: {
    [key: string]: unknown
  }
  graph: {
    [key: string]: unknown
  }
  hash: string
  id: string
  marked_comment: string
  marked_name: string
  rag_pipeline_variables: Array<PipelineVariableResponse>
  tool_published: boolean
  updated_at: number
  updated_by?: SimpleAccount | null
  version: string
}

export type WorkflowConversationVariableResponse = {
  description: string
  id: string
  name: string
  value: unknown
  value_type: string
}

export type WorkflowEnvironmentVariableResponse = {
  description: string
  id: string
  name: string
  value: unknown
  value_type: string
}

export type PipelineVariableResponse = {
  allowed_file_extensions?: Array<string> | null
  allowed_file_types?: Array<string> | null
  allowed_file_upload_methods?: Array<string> | null
  belong_to_node_id: string
  default_value?: unknown
  label: string
  max_length?: number | null
  options?: Array<string> | null
  placeholder?: string | null
  required: boolean
  tooltips?: string | null
  type: string
  unit?: string | null
  variable: string
}

export type EnvironmentVariableItemResponse = {
  description?: string | null
  editable: boolean
  edited: boolean
  id: string
  name: string
  selector: Array<string>
  type: string
  value: unknown
  value_type: string
  visible: boolean
}

export type JsonValue
  = | string
    | number
    | number
    | boolean
    | {
      [key: string]: unknown
    }
    | Array<unknown>
    | null

export type WorkflowDraftVariableWithoutValue = {
  description?: string
  edited?: boolean
  id?: string
  is_truncated?: boolean
  name?: string
  selector?: Array<string>
  type?: string
  value_type?: string
  visible?: boolean
}

export type GetSnippetsBySnippetIdWorkflowRunsData = {
  body?: never
  path: {
    snippet_id: string
  }
  query?: {
    last_id?: string
    limit?: number
  }
  url: '/snippets/{snippet_id}/workflow-runs'
}

export type GetSnippetsBySnippetIdWorkflowRunsResponses = {
  200: WorkflowRunPaginationResponse
}

export type GetSnippetsBySnippetIdWorkflowRunsResponse
  = GetSnippetsBySnippetIdWorkflowRunsResponses[keyof GetSnippetsBySnippetIdWorkflowRunsResponses]

export type PostSnippetsBySnippetIdWorkflowRunsTasksByTaskIdStopData = {
  body?: never
  path: {
    snippet_id: string
    task_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflow-runs/tasks/{task_id}/stop'
}

export type PostSnippetsBySnippetIdWorkflowRunsTasksByTaskIdStopErrors = {
  404: unknown
}

export type PostSnippetsBySnippetIdWorkflowRunsTasksByTaskIdStopResponses = {
  200: SimpleResultResponse
}

export type PostSnippetsBySnippetIdWorkflowRunsTasksByTaskIdStopResponse
  = PostSnippetsBySnippetIdWorkflowRunsTasksByTaskIdStopResponses[keyof PostSnippetsBySnippetIdWorkflowRunsTasksByTaskIdStopResponses]

export type GetSnippetsBySnippetIdWorkflowRunsByRunIdData = {
  body?: never
  path: {
    run_id: string
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflow-runs/{run_id}'
}

export type GetSnippetsBySnippetIdWorkflowRunsByRunIdErrors = {
  404: unknown
}

export type GetSnippetsBySnippetIdWorkflowRunsByRunIdResponses = {
  200: WorkflowRunDetailResponse
}

export type GetSnippetsBySnippetIdWorkflowRunsByRunIdResponse
  = GetSnippetsBySnippetIdWorkflowRunsByRunIdResponses[keyof GetSnippetsBySnippetIdWorkflowRunsByRunIdResponses]

export type GetSnippetsBySnippetIdWorkflowRunsByRunIdNodeExecutionsData = {
  body?: never
  path: {
    run_id: string
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflow-runs/{run_id}/node-executions'
}

export type GetSnippetsBySnippetIdWorkflowRunsByRunIdNodeExecutionsResponses = {
  200: WorkflowRunNodeExecutionListResponse
}

export type GetSnippetsBySnippetIdWorkflowRunsByRunIdNodeExecutionsResponse
  = GetSnippetsBySnippetIdWorkflowRunsByRunIdNodeExecutionsResponses[keyof GetSnippetsBySnippetIdWorkflowRunsByRunIdNodeExecutionsResponses]

export type GetSnippetsBySnippetIdWorkflowsData = {
  body?: never
  path: {
    snippet_id: string
  }
  query?: {
    limit?: number
    page?: number
  }
  url: '/snippets/{snippet_id}/workflows'
}

export type GetSnippetsBySnippetIdWorkflowsResponses = {
  200: WorkflowPaginationResponse
}

export type GetSnippetsBySnippetIdWorkflowsResponse
  = GetSnippetsBySnippetIdWorkflowsResponses[keyof GetSnippetsBySnippetIdWorkflowsResponses]

export type GetSnippetsBySnippetIdWorkflowsDefaultWorkflowBlockConfigsData = {
  body?: never
  path: {
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/default-workflow-block-configs'
}

export type GetSnippetsBySnippetIdWorkflowsDefaultWorkflowBlockConfigsResponses = {
  200: DefaultBlockConfigsResponse
}

export type GetSnippetsBySnippetIdWorkflowsDefaultWorkflowBlockConfigsResponse
  = GetSnippetsBySnippetIdWorkflowsDefaultWorkflowBlockConfigsResponses[keyof GetSnippetsBySnippetIdWorkflowsDefaultWorkflowBlockConfigsResponses]

export type GetSnippetsBySnippetIdWorkflowsDraftData = {
  body?: never
  path: {
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft'
}

export type GetSnippetsBySnippetIdWorkflowsDraftErrors = {
  404: unknown
}

export type GetSnippetsBySnippetIdWorkflowsDraftResponses = {
  200: SnippetWorkflowResponse
}

export type GetSnippetsBySnippetIdWorkflowsDraftResponse
  = GetSnippetsBySnippetIdWorkflowsDraftResponses[keyof GetSnippetsBySnippetIdWorkflowsDraftResponses]

export type PostSnippetsBySnippetIdWorkflowsDraftData = {
  body: SnippetDraftSyncPayload
  path: {
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft'
}

export type PostSnippetsBySnippetIdWorkflowsDraftErrors = {
  400: unknown
}

export type PostSnippetsBySnippetIdWorkflowsDraftResponses = {
  200: WorkflowRestoreResponse
}

export type PostSnippetsBySnippetIdWorkflowsDraftResponse
  = PostSnippetsBySnippetIdWorkflowsDraftResponses[keyof PostSnippetsBySnippetIdWorkflowsDraftResponses]

export type GetSnippetsBySnippetIdWorkflowsDraftConfigData = {
  body?: never
  path: {
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/config'
}

export type GetSnippetsBySnippetIdWorkflowsDraftConfigResponses = {
  200: SnippetDraftConfigResponse
}

export type GetSnippetsBySnippetIdWorkflowsDraftConfigResponse
  = GetSnippetsBySnippetIdWorkflowsDraftConfigResponses[keyof GetSnippetsBySnippetIdWorkflowsDraftConfigResponses]

export type GetSnippetsBySnippetIdWorkflowsDraftConversationVariablesData = {
  body?: never
  path: {
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/conversation-variables'
}

export type GetSnippetsBySnippetIdWorkflowsDraftConversationVariablesResponses = {
  200: WorkflowDraftVariableList
}

export type GetSnippetsBySnippetIdWorkflowsDraftConversationVariablesResponse
  = GetSnippetsBySnippetIdWorkflowsDraftConversationVariablesResponses[keyof GetSnippetsBySnippetIdWorkflowsDraftConversationVariablesResponses]

export type GetSnippetsBySnippetIdWorkflowsDraftEnvironmentVariablesData = {
  body?: never
  path: {
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/environment-variables'
}

export type GetSnippetsBySnippetIdWorkflowsDraftEnvironmentVariablesErrors = {
  404: unknown
}

export type GetSnippetsBySnippetIdWorkflowsDraftEnvironmentVariablesResponses = {
  200: EnvironmentVariableListResponse
}

export type GetSnippetsBySnippetIdWorkflowsDraftEnvironmentVariablesResponse
  = GetSnippetsBySnippetIdWorkflowsDraftEnvironmentVariablesResponses[keyof GetSnippetsBySnippetIdWorkflowsDraftEnvironmentVariablesResponses]

export type PostSnippetsBySnippetIdWorkflowsDraftIterationNodesByNodeIdRunData = {
  body: SnippetIterationNodeRunPayload
  path: {
    node_id: string
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/iteration/nodes/{node_id}/run'
}

export type PostSnippetsBySnippetIdWorkflowsDraftIterationNodesByNodeIdRunErrors = {
  404: unknown
}

export type PostSnippetsBySnippetIdWorkflowsDraftIterationNodesByNodeIdRunResponses = {
  200: GeneratedAppResponse
}

export type PostSnippetsBySnippetIdWorkflowsDraftIterationNodesByNodeIdRunResponse
  = PostSnippetsBySnippetIdWorkflowsDraftIterationNodesByNodeIdRunResponses[keyof PostSnippetsBySnippetIdWorkflowsDraftIterationNodesByNodeIdRunResponses]

export type PostSnippetsBySnippetIdWorkflowsDraftLoopNodesByNodeIdRunData = {
  body: SnippetLoopNodeRunPayload
  path: {
    node_id: string
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/loop/nodes/{node_id}/run'
}

export type PostSnippetsBySnippetIdWorkflowsDraftLoopNodesByNodeIdRunErrors = {
  404: unknown
}

export type PostSnippetsBySnippetIdWorkflowsDraftLoopNodesByNodeIdRunResponses = {
  200: GeneratedAppResponse
}

export type PostSnippetsBySnippetIdWorkflowsDraftLoopNodesByNodeIdRunResponse
  = PostSnippetsBySnippetIdWorkflowsDraftLoopNodesByNodeIdRunResponses[keyof PostSnippetsBySnippetIdWorkflowsDraftLoopNodesByNodeIdRunResponses]

export type GetSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdLastRunData = {
  body?: never
  path: {
    node_id: string
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/nodes/{node_id}/last-run'
}

export type GetSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdLastRunErrors = {
  404: unknown
}

export type GetSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdLastRunResponses = {
  200: WorkflowRunNodeExecutionResponse
}

export type GetSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdLastRunResponse
  = GetSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdLastRunResponses[keyof GetSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdLastRunResponses]

export type PostSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdRunData = {
  body: SnippetDraftNodeRunPayload
  path: {
    node_id: string
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/nodes/{node_id}/run'
}

export type PostSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdRunErrors = {
  404: unknown
}

export type PostSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdRunResponses = {
  200: WorkflowRunNodeExecutionResponse
}

export type PostSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdRunResponse
  = PostSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdRunResponses[keyof PostSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdRunResponses]

export type DeleteSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdVariablesData = {
  body?: never
  path: {
    node_id: string
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/nodes/{node_id}/variables'
}

export type DeleteSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdVariablesResponses = {
  204: void
}

export type DeleteSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdVariablesResponse
  = DeleteSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdVariablesResponses[keyof DeleteSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdVariablesResponses]

export type GetSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdVariablesData = {
  body?: never
  path: {
    node_id: string
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/nodes/{node_id}/variables'
}

export type GetSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdVariablesResponses = {
  200: WorkflowDraftVariableList
}

export type GetSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdVariablesResponse
  = GetSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdVariablesResponses[keyof GetSnippetsBySnippetIdWorkflowsDraftNodesByNodeIdVariablesResponses]

export type PostSnippetsBySnippetIdWorkflowsDraftRunData = {
  body: SnippetDraftRunPayload
  path: {
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/run'
}

export type PostSnippetsBySnippetIdWorkflowsDraftRunErrors = {
  404: unknown
}

export type PostSnippetsBySnippetIdWorkflowsDraftRunResponses = {
  200: GeneratedAppResponse
}

export type PostSnippetsBySnippetIdWorkflowsDraftRunResponse
  = PostSnippetsBySnippetIdWorkflowsDraftRunResponses[keyof PostSnippetsBySnippetIdWorkflowsDraftRunResponses]

export type GetSnippetsBySnippetIdWorkflowsDraftSystemVariablesData = {
  body?: never
  path: {
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/system-variables'
}

export type GetSnippetsBySnippetIdWorkflowsDraftSystemVariablesResponses = {
  200: WorkflowDraftVariableList
}

export type GetSnippetsBySnippetIdWorkflowsDraftSystemVariablesResponse
  = GetSnippetsBySnippetIdWorkflowsDraftSystemVariablesResponses[keyof GetSnippetsBySnippetIdWorkflowsDraftSystemVariablesResponses]

export type DeleteSnippetsBySnippetIdWorkflowsDraftVariablesData = {
  body?: never
  path: {
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/variables'
}

export type DeleteSnippetsBySnippetIdWorkflowsDraftVariablesResponses = {
  204: void
}

export type DeleteSnippetsBySnippetIdWorkflowsDraftVariablesResponse
  = DeleteSnippetsBySnippetIdWorkflowsDraftVariablesResponses[keyof DeleteSnippetsBySnippetIdWorkflowsDraftVariablesResponses]

export type GetSnippetsBySnippetIdWorkflowsDraftVariablesData = {
  body?: never
  path: {
    snippet_id: string
  }
  query?: {
    limit?: number
    page?: number
  }
  url: '/snippets/{snippet_id}/workflows/draft/variables'
}

export type GetSnippetsBySnippetIdWorkflowsDraftVariablesResponses = {
  200: WorkflowDraftVariableListWithoutValue
}

export type GetSnippetsBySnippetIdWorkflowsDraftVariablesResponse
  = GetSnippetsBySnippetIdWorkflowsDraftVariablesResponses[keyof GetSnippetsBySnippetIdWorkflowsDraftVariablesResponses]

export type DeleteSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdData = {
  body?: never
  path: {
    snippet_id: string
    variable_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/variables/{variable_id}'
}

export type DeleteSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdErrors = {
  404: unknown
}

export type DeleteSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResponses = {
  204: void
}

export type DeleteSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResponse
  = DeleteSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResponses[keyof DeleteSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResponses]

export type GetSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdData = {
  body?: never
  path: {
    snippet_id: string
    variable_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/variables/{variable_id}'
}

export type GetSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdErrors = {
  404: unknown
}

export type GetSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResponses = {
  200: WorkflowDraftVariable
}

export type GetSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResponse
  = GetSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResponses[keyof GetSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResponses]

export type PatchSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdData = {
  body: WorkflowDraftVariableUpdatePayload
  path: {
    snippet_id: string
    variable_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/variables/{variable_id}'
}

export type PatchSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdErrors = {
  404: unknown
}

export type PatchSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResponses = {
  200: WorkflowDraftVariable
}

export type PatchSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResponse
  = PatchSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResponses[keyof PatchSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResponses]

export type PutSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResetData = {
  body?: never
  path: {
    snippet_id: string
    variable_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/draft/variables/{variable_id}/reset'
}

export type PutSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResetErrors = {
  404: unknown
}

export type PutSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResetResponses = {
  200: WorkflowDraftVariable
  204: void
}

export type PutSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResetResponse
  = PutSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResetResponses[keyof PutSnippetsBySnippetIdWorkflowsDraftVariablesByVariableIdResetResponses]

export type GetSnippetsBySnippetIdWorkflowsPublishData = {
  body?: never
  path: {
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/publish'
}

export type GetSnippetsBySnippetIdWorkflowsPublishErrors = {
  404: unknown
}

export type GetSnippetsBySnippetIdWorkflowsPublishResponses = {
  200: SnippetWorkflowResponse
}

export type GetSnippetsBySnippetIdWorkflowsPublishResponse
  = GetSnippetsBySnippetIdWorkflowsPublishResponses[keyof GetSnippetsBySnippetIdWorkflowsPublishResponses]

export type PostSnippetsBySnippetIdWorkflowsPublishData = {
  body: PublishWorkflowPayload
  path: {
    snippet_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/publish'
}

export type PostSnippetsBySnippetIdWorkflowsPublishErrors = {
  400: unknown
}

export type PostSnippetsBySnippetIdWorkflowsPublishResponses = {
  200: WorkflowPublishResponse
}

export type PostSnippetsBySnippetIdWorkflowsPublishResponse
  = PostSnippetsBySnippetIdWorkflowsPublishResponses[keyof PostSnippetsBySnippetIdWorkflowsPublishResponses]

export type PostSnippetsBySnippetIdWorkflowsByWorkflowIdRestoreData = {
  body?: never
  path: {
    snippet_id: string
    workflow_id: string
  }
  query?: never
  url: '/snippets/{snippet_id}/workflows/{workflow_id}/restore'
}

export type PostSnippetsBySnippetIdWorkflowsByWorkflowIdRestoreErrors = {
  400: unknown
  404: unknown
}

export type PostSnippetsBySnippetIdWorkflowsByWorkflowIdRestoreResponses = {
  200: WorkflowRestoreResponse
}

export type PostSnippetsBySnippetIdWorkflowsByWorkflowIdRestoreResponse
  = PostSnippetsBySnippetIdWorkflowsByWorkflowIdRestoreResponses[keyof PostSnippetsBySnippetIdWorkflowsByWorkflowIdRestoreResponses]
