Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
// This file is auto-generated by @hey-api/openapi-ts
import { oc } from '@orpc/contract'
import * as z from 'zod'
import { zPaidPlanRequiredError } from './zod.gen.ts'
import {
zDeleteWorkflowRunArchivesByYearByMonthPath,
zDeleteWorkflowRunArchivesByYearByMonthResponse,
zGetWorkflowRunArchivesDownloadsByDownloadIdPath,
zGetWorkflowRunArchivesDownloadsByDownloadIdResponse,
zGetWorkflowRunArchivesResponse,
zPostWorkflowRunArchivesDownloadsBody,
zPostWorkflowRunArchivesDownloadsResponse,
} from './zod.gen.ts'
/**
* Get a temporary workflow-run archive download task
*/
export const get = oc
.route({
description: 'Get a temporary workflow-run archive download task',
inputStructure: 'detailed',
method: 'GET',
operationId: 'getWorkflowRunArchivesDownloadsByDownloadId',
path: '/workflow-run-archives/downloads/{download_id}',
tags: ['console'],
})
.input(z.object({ params: zGetWorkflowRunArchivesDownloadsByDownloadIdPath }))
.output(zGetWorkflowRunArchivesDownloadsByDownloadIdResponse)
.errors({ paid_plan_required: { status: 403, data: zPaidPlanRequiredError } })
export const byDownloadId = {
get,
}
/**
* Create or return a temporary workflow-run archive download task
*/
export const post = oc
.route({
description: 'Create or return a temporary workflow-run archive download task',
inputStructure: 'detailed',
method: 'POST',
operationId: 'postWorkflowRunArchivesDownloads',
path: '/workflow-run-archives/downloads',
successStatus: 202,
tags: ['console'],
})
.input(z.object({ body: zPostWorkflowRunArchivesDownloadsBody }))
.output(zPostWorkflowRunArchivesDownloadsResponse)
.errors({ paid_plan_required: { status: 403, data: zPaidPlanRequiredError } })
export const downloads = {
post,
byDownloadId,
}
/**
* Permanently delete this workspace's monthly archive files and archive index
*/
export const delete_ = oc
.route({
description: "Permanently delete this workspace's monthly archive files and archive index",
inputStructure: 'detailed',
method: 'DELETE',
operationId: 'deleteWorkflowRunArchivesByYearByMonth',
path: '/workflow-run-archives/{year}/{month}',
successStatus: 202,
tags: ['console'],
})
.input(z.object({ params: zDeleteWorkflowRunArchivesByYearByMonthPath }))
.output(zDeleteWorkflowRunArchivesByYearByMonthResponse)
.errors({ paid_plan_required: { status: 403, data: zPaidPlanRequiredError } })
export const byMonth = {
delete: delete_,
}
export const byYear = {
byMonth,
}
/**
* List monthly workflow-run archive metadata for the current workspace
*/
export const get2 = oc
.route({
description: 'List monthly workflow-run archive metadata for the current workspace',
inputStructure: 'detailed',
method: 'GET',
operationId: 'getWorkflowRunArchives',
path: '/workflow-run-archives',
tags: ['console'],
})
.output(zGetWorkflowRunArchivesResponse)
.errors({ paid_plan_required: { status: 403, data: zPaidPlanRequiredError } })
export const workflowRunArchives = {
get: get2,
downloads,
byYear,
}
export const contract = {
workflowRunArchives,
}