Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

ci(frontend): query generation on dev and ci check (#10417)

Ubbeebfbf31c732b
diff --git a/.dockerignore b/.dockerignore
index 182fb9ea7a..94bf1742f1 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -28,6 +28,7 @@
# Platform - Frontend
!autogpt_platform/frontend/src/
!autogpt_platform/frontend/public/
+!autogpt_platform/frontend/scripts/
!autogpt_platform/frontend/package.json
!autogpt_platform/frontend/pnpm-lock.yaml
!autogpt_platform/frontend/tsconfig.json
diff --git a/.github/workflows/platform-frontend-ci.yml b/.github/workflows/platform-frontend-ci.yml
index 7cd3f1c703..e9d720a4fb 100644
--- a/.github/workflows/platform-frontend-ci.yml
+++ b/.github/workflows/platform-frontend-ci.yml
@@ -82,37 +82,6 @@ jobs:
- name: Run lint
run: pnpm lint
- type-check:
- runs-on: ubuntu-latest
- needs: setup
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
-
- - name: Set up Node.js
- uses: actions/setup-node@v4
- with:
- node-version: "21"
-
- - name: Enable corepack
- run: corepack enable
-
- - name: Restore dependencies cache
- uses: actions/cache@v4
- with:
- path: ~/.pnpm-store
- key: ${{ needs.setup.outputs.cache-key }}
- restore-keys: |
- ${{ runner.os }}-pnpm-${{ hashFiles('autogpt_platform/frontend/pnpm-lock.yaml') }}
- ${{ runner.os }}-pnpm-
-
- - name: Install dependencies
- run: pnpm install --frozen-lockfile
-
- - name: Run tsc check
- run: pnpm type-check
-
chromatic:
runs-on: ubuntu-latest
needs: setup
diff --git a/.github/workflows/platform-fullstack-ci.yml b/.github/workflows/platform-fullstack-ci.yml
new file mode 100644
index 0000000000..d98a6598e0
--- /dev/null
+++ b/.github/workflows/platform-fullstack-ci.yml
@@ -0,0 +1,132 @@
+name: AutoGPT Platform - Frontend CI
+
+on:
+ push:
+ branches: [master, dev]
+ paths:
+ - ".github/workflows/platform-fullstack-ci.yml"
+ - "autogpt_platform/**"
+ pull_request:
+ paths:
+ - ".github/workflows/platform-fullstack-ci.yml"
+ - "autogpt_platform/**"
+ merge_group:
+
+defaults:
+ run:
+ shell: bash
+ working-directory: autogpt_platform/frontend
+
+jobs:
+ setup:
+ runs-on: ubuntu-latest
+ outputs:
+ cache-key: ${{ steps.cache-key.outputs.key }}
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: "21"
+
+ - name: Enable corepack
+ run: corepack enable
+
+ - name: Generate cache key
+ id: cache-key
+ run: echo "key=${{ runner.os }}-pnpm-${{ hashFiles('autogpt_platform/frontend/pnpm-lock.yaml', 'autogpt_platform/frontend/package.json') }}" >> $GITHUB_OUTPUT
+
+ - name: Cache dependencies
+ uses: actions/cache@v4
+ with:
+ path: ~/.pnpm-store
+ key: ${{ steps.cache-key.outputs.key }}
+ restore-keys: |
+ ${{ runner.os }}-pnpm-${{ hashFiles('autogpt_platform/frontend/pnpm-lock.yaml') }}
+ ${{ runner.os }}-pnpm-
+
+ - name: Install dependencies
+ run: pnpm install --frozen-lockfile
+
+ types:
+ runs-on: ubuntu-latest
+ needs: setup
+ strategy:
+ fail-fast: false
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ submodules: recursive
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: "21"
+
+ - name: Enable corepack
+ run: corepack enable
+
+ - name: Copy default supabase .env
+ run: |
+ cp ../.env.default ../.env
+
+ - name: Copy backend .env
+ run: |
+ cp ../backend/.env.default ../backend/.env
+
+ - name: Run docker compose
+ run: |
+ docker compose -f ../docker-compose.yml --profile local --profile deps_backend up -d
+
+ - name: Restore dependencies cache
+ uses: actions/cache@v4
+ with:
+ path: ~/.pnpm-store
+ key: ${{ needs.setup.outputs.cache-key }}
+ restore-keys: |
+ ${{ runner.os }}-pnpm-
+
+ - name: Install dependencies
+ run: pnpm install --frozen-lockfile
+
+ - name: Setup .env
+ run: cp .env.default .env
+
+ - name: Wait for services to be ready
+ run: |
+ echo "Waiting for rest_server to be ready..."
+ timeout 60 sh -c 'until curl -f http://localhost:8006/health 2>/dev/null; do sleep 2; done' || echo "Rest server health check timeout, continuing..."
+ echo "Waiting for database to be ready..."
+ timeout 60 sh -c 'until docker compose -f ../docker-compose.yml exec -T db pg_isready -U postgres 2>/dev/null; do sleep 2; done' || echo "Database ready check timeout, continuing..."
+
+ - name: Generate API queries
+ run: pnpm generate:api:force
+
+ - name: Check for API schema changes
+ run: |
+ if ! git diff --exit-code src/app/api/openapi.json; then
+ echo "❌ API schema changes detected in src/app/api/openapi.json"
+ echo ""
+ echo "The openapi.json file has been modified after running 'pnpm generate:api-all'."
+ echo "This usually means changes have been made in the BE endpoints without updating the Frontend."
+ echo "The API schema is now out of sync with the Front-end queries."
+ echo ""
+ echo "To fix this:"
+ echo "1. Pull the backend 'docker compose pull && docker compose up -d --build --force-recreate'"
+ echo "2. Run 'pnpm generate:api' locally"
+ echo "3. Run 'pnpm types' locally"
+ echo "4. Fix any TypeScript errors that may have been introduced"
+ echo "5. Commit and push your changes"
+ echo ""
+ exit 1
+ else
+ echo "✅ No API schema changes detected"
+ fi
+
+ - name: Run Typescript checks
+ run: pnpm types
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 325ab9dcff..39ec659ef9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -235,7 +235,7 @@ repos:
hooks:
- id: tsc
name: Typecheck - AutoGPT Platform - Frontend
- entry: bash -c 'cd autogpt_platform/frontend && pnpm type-check'
+ entry: bash -c 'cd autogpt_platform/frontend && pnpm types'
files: ^autogpt_platform/frontend/
types: [file]
language: system
diff --git a/autogpt_platform/CLAUDE.md b/autogpt_platform/CLAUDE.md
index 5650698e51..94c835dd56 100644
--- a/autogpt_platform/CLAUDE.md
+++ b/autogpt_platform/CLAUDE.md
@@ -1,9 +1,11 @@
# CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
+
## Repository Overview
AutoGPT Platform is a monorepo containing:
+
- **Backend** (`/backend`): Python FastAPI server with async support
- **Frontend** (`/frontend`): Next.js React application
- **Shared Libraries** (`/autogpt_libs`): Common Python utilities
@@ -11,6 +13,7 @@ AutoGPT Platform is a monorepo containing:
## Essential Commands
### Backend Development
+
```bash
# Install dependencies
cd backend && poetry install
@@ -41,6 +44,7 @@ poetry run pytest 'backend/blocks/test/test_block.py::test_available_blocks[GetC
poetry run format # Black + isort
poetry run lint # ruff
```
+
More details can be found in TESTING.md
#### Creating/Updating Snapshots
@@ -53,8 +57,8 @@ poetry run pytest path/to/test.py --snapshot-update
⚠️ **Important**: Always review snapshot changes before committing! Use `git diff` to verify the changes are expected.
-
### Frontend Development
+
```bash
# Install dependencies
cd frontend && npm install
@@ -72,12 +76,13 @@ npm run storybook
npm run build
# Type checking
-npm run type-check
+npm run types
```
## Architecture Overview
### Backend Architecture
+
- **API Layer**: FastAPI with REST and WebSocket endpoints
- **Database**: PostgreSQL with Prisma ORM, includes pgvector for embeddings
- **Queue System**: RabbitMQ for async task processing
@@ -86,6 +91,7 @@ npm run type-check
- **Security**: Cache protection middleware prevents sensitive data caching in browsers/proxies
### Frontend Architecture
+
- **Framework**: Next.js App Router with React Server Components
- **State Management**: React hooks + Supabase client for real-time updates
- **Workflow Builder**: Visual graph editor using @xyflow/react
@@ -93,6 +99,7 @@ npm run type-check
- **Feature Flags**: LaunchDarkly integration
### Key Concepts
+
1. **Agent Graphs**: Workflow definitions stored as JSON, executed by the backend
2. **Blocks**: Reusable components in `/backend/blocks/` that perform specific tasks
3. **Integrations**: OAuth and API connections stored per user
@@ -100,13 +107,16 @@ npm run type-check
5. **Virus Scanning**: ClamAV integration for file upload security
### Testing Approach
+
- Backend uses pytest with snapshot testing for API responses
- Test files are colocated with source files (`*_test.py`)
- Frontend uses Playwright for E2E tests
- Component testing via Storybook
### Database Schema
+
Key models (defined in `/backend/schema.prisma`):
+
- `User`: Authentication and profile data
- `AgentGraph`: Workflow definitions with version control
- `AgentGraphExecution`: Execution history and results
@@ -118,7 +128,7 @@ Key models (defined in `/backend/schema.prisma`):
#### Configuration Files
- **Backend**: `/backend/.env.default` (defaults) → `/backend/.env` (user overrides)
-- **Frontend**: `/frontend/.env.default` (defaults) → `/frontend/.env` (user overrides)
+- **Frontend**: `/frontend/.env.default` (defaults) → `/frontend/.env` (user overrides)
- **Platform**: `/.env.default` (Supabase/shared defaults) → `/.env` (user overrides)
#### Docker Environment Loading Order
@@ -150,12 +160,14 @@ Note: when making many new blocks analyze the interfaces for each of these blcok
ex: do the inputs and outputs tie well together?
**Modifying the API:**
+
1. Update route in `/backend/backend/server/routers/`
2. Add/update Pydantic models in same directory
3. Write tests alongside the route file
4. Run `poetry run test` to verify
**Frontend feature development:**
+
1. Components go in `/frontend/src/components/`
2. Use existing UI components from `/frontend/src/components/ui/`
3. Add Storybook stories for new components
@@ -164,6 +176,7 @@ ex: do the inputs and outputs tie well together?
### Security Implementation
**Cache Protection Middleware:**
+
- Located in `/backend/backend/server/middleware/security.py`
- Default behavior: Disables caching for ALL endpoints with `Cache-Control: no-store, no-cache, must-revalidate, private`
- Uses an allow list approach - only explicitly permitted paths can be cached
@@ -172,8 +185,8 @@ ex: do the inputs and outputs tie well together?
- To allow caching for a new endpoint, add it to `CACHEABLE_PATHS` in the middleware
- Applied to both main API server and external API applications
-
### Creating Pull Requests
+
- Create the PR aginst the `dev` branch of the repository.
- Ensure the branch name is descriptive (e.g., `feature/add-new-block`)/
- Use conventional commit messages (see below)/
@@ -181,6 +194,7 @@ ex: do the inputs and outputs tie well together?
- Run the github pre-commit hooks to ensure code quality.
### Reviewing/Revising Pull Requests
+
- When the user runs /pr-comments or tries to fetch them, also run gh api /repos/Significant-Gravitas/AutoGPT/pulls/[issuenum]/reviews to get the reviews
- Use gh api /repos/Significant-Gravitas/AutoGPT/pulls/[issuenum]/reviews/[review_id]/comments to get the review contents
- Use gh api /repos/Significant-Gravitas/AutoGPT/issues/9924/comments to get the pr specific comments
diff --git a/autogpt_platform/README.md b/autogpt_platform/README.md
index e6dcd70548..ee2ff9f759 100644
--- a/autogpt_platform/README.md
+++ b/autogpt_platform/README.md
@@ -139,7 +139,7 @@ The platform includes scripts for generating and managing the API client:
- `pnpm fetch:openapi`: Fetches the OpenAPI specification from the backend service (requires backend to be running on port 8006)
- `pnpm generate:api-client`: Generates the TypeScript API client from the OpenAPI specification using Orval
-- `pnpm generate:api-all`: Runs both fetch and generate commands in sequence
+- `pnpm generate:api`: Runs both fetch and generate commands in sequence
#### Manual API Client Updates
@@ -153,7 +153,7 @@ If you need to update the API client after making changes to the backend API:
2. Generate the updated API client:
```
- pnpm generate:api-all
+ pnpm generate:api
```
This will fetch the latest OpenAPI specification and regenerate the TypeScript client code.
diff --git a/autogpt_platform/frontend/.gitignore b/autogpt_platform/frontend/.gitignore
index a235082d53..4150a70bcd 100644
--- a/autogpt_platform/frontend/.gitignore
+++ b/autogpt_platform/frontend/.gitignore
@@ -54,4 +54,7 @@ storybook-static
*.ignore.*
*.ign.*
!.npmrc
-.cursorrules
\ No newline at end of file
+.cursorrules
+
+# Generated API files
+src/app/api/__generated__/
\ No newline at end of file
diff --git a/autogpt_platform/frontend/Dockerfile b/autogpt_platform/frontend/Dockerfile
index 67fbac3c58..0b6fe4491b 100644
--- a/autogpt_platform/frontend/Dockerfile
+++ b/autogpt_platform/frontend/Dockerfile
@@ -5,24 +5,17 @@ RUN corepack enable
COPY autogpt_platform/frontend/package.json autogpt_platform/frontend/pnpm-lock.yaml ./
RUN --mount=type=cache,target=/root/.local/share/pnpm pnpm install --frozen-lockfile
-# Dev stage
-FROM base AS dev
-ENV NODE_ENV=development
-ENV HOSTNAME=0.0.0.0
-COPY autogpt_platform/frontend/ .
-EXPOSE 3000
-CMD ["pnpm", "run", "dev", "--hostname", "0.0.0.0"]
-
# Build stage for prod
FROM base AS build
+
COPY autogpt_platform/frontend/ .
-ENV SKIP_STORYBOOK_TESTS=true
RUN if [ -f .env ]; then \
cat .env.default .env > .env.merged && mv .env.merged .env; \
else \
cp .env.default .env; \
fi
-RUN pnpm build --turbo
+RUN pnpm run generate:api
+RUN pnpm build
# Prod stage - based on NextJS reference Dockerfile https://github.com/vercel/next.js/blob/64271354533ed16da51be5dce85f0dbd15f17517/examples/with-docker/Dockerfile
FROM node:21-alpine AS prod
diff --git a/autogpt_platform/frontend/README.md b/autogpt_platform/frontend/README.md
index 1d9ebff269..ebc6764455 100644
--- a/autogpt_platform/frontend/README.md
+++ b/autogpt_platform/frontend/README.md
@@ -87,12 +87,12 @@ Every time a new Front-end dependency is added by you or others, you will need t
- `pnpm start` - Start production server
- `pnpm lint` - Run ESLint and Prettier checks
- `pnpm format` - Format code with Prettier
-- `pnpm type-check` - Run TypeScript type checking
+- `pnpm types` - Run TypeScript type checking
- `pnpm test` - Run Playwright tests
- `pnpm test-ui` - Run Playwright tests with UI
- `pnpm fetch:openapi` - Fetch OpenAPI spec from backend
- `pnpm generate:api-client` - Generate API client from OpenAPI spec
-- `pnpm generate:api-all` - Fetch OpenAPI spec and generate API client
+- `pnpm generate:api` - Fetch OpenAPI spec and generate API client
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
@@ -115,7 +115,7 @@ This project uses an auto-generated API client powered by [**Orval**](https://or
```bash
# Fetch OpenAPI spec from backend and generate client
-pnpm generate:api-all
+pnpm generate:api
# Only fetch the OpenAPI spec
pnpm fetch:openapi
diff --git a/autogpt_platform/frontend/package.json b/autogpt_platform/frontend/package.json
index 633b9736b2..814ce3d9ca 100644
--- a/autogpt_platform/frontend/package.json
+++ b/autogpt_platform/frontend/package.json
@@ -3,13 +3,13 @@
"version": "0.3.4",
"private": true,
"scripts": {
- "dev": "next dev --turbo",
- "build": "cross-env pnpm run generate:api-client && SKIP_STORYBOOK_TESTS=true next build",
+ "dev": "pnpm run generate:api:force && next dev --turbo",
+ "build": "next build",
"start": "next start",
"start:standalone": "cd .next/standalone && node server.js",
"lint": "next lint && prettier --check .",
"format": "next lint --fix; prettier --write .",
- "type-check": "tsc --noEmit",
+ "types": "tsc --noEmit",
"test": "next build --turbo && playwright test",
"test-ui": "next build --turbo && playwright test --ui",
"test:no-build": "playwright test",
@@ -18,9 +18,8 @@
"build-storybook": "storybook build",
"test-storybook": "test-storybook",
"test-storybook:ci": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"pnpm run build-storybook -- --quiet && npx http-server storybook-static --port 6006 --silent\" \"wait-on tcp:6006 && pnpm run test-storybook\"",
- "fetch:openapi": "curl http://localhost:8006/openapi.json > ./src/app/api/openapi.json && prettier --write ./src/app/api/openapi.json",
- "generate:api-client": "orval --config ./orval.config.ts",
- "generate:api-all": "pnpm run fetch:openapi && pnpm run generate:api-client"
+ "generate:api": "npx --yes tsx ./scripts/generate-api-queries.ts && orval --config ./orval.config.ts",
+ "generate:api:force": "npx --yes tsx ./scripts/generate-api-queries.ts --force && orval --config ./orval.config.ts"
},
"browserslist": [
"defaults"
diff --git a/autogpt_platform/frontend/scripts/generate-api-queries.ts b/autogpt_platform/frontend/scripts/generate-api-queries.ts
new file mode 100644
index 0000000000..b9e8ec25bd
--- /dev/null
+++ b/autogpt_platform/frontend/scripts/generate-api-queries.ts
@@ -0,0 +1,61 @@
+#!/usr/bin/env node
+
+import { getAgptServerBaseUrl } from "@/lib/env-config";
+import { execSync } from "child_process";
+import * as path from "path";
+import * as fs from "fs";
+
+function fetchOpenApiSpec(): void {
+ const args = process.argv.slice(2);
+ const forceFlag = args.includes("--force");
+
+ const baseUrl = getAgptServerBaseUrl();
+ const openApiUrl = `${baseUrl}/openapi.json`;
+ const outputPath = path.join(
+ __dirname,
+ "..",
+ "src",
+ "app",
+ "api",
+ "openapi.json",
+ );
+
+ console.log(`Output path: ${outputPath}`);
+ console.log(`Force flag: ${forceFlag}`);
+
+ // Check if local file exists
+ const localFileExists = fs.existsSync(outputPath);
+
+ if (!forceFlag && localFileExists) {
+ console.log("✅ Using existing local OpenAPI spec file");
+ console.log("💡 Use --force flag to fetch from server");
+ return;
+ }
+
+ if (!localFileExists) {
+ console.log("📄 No local OpenAPI spec found, fetching from server...");
+ } else {
+ console.log(
+ "🔄 Force flag detected, fetching fresh OpenAPI spec from server...",
+ );
+ }
+
+ console.log(`Fetching OpenAPI spec from: ${openApiUrl}`);
+
+ try {
+ // Fetch the OpenAPI spec
+ execSync(`curl "${openApiUrl}" > "${outputPath}"`, { stdio: "inherit" });
+
+ // Format with prettier
+ execSync(`prettier --write "${outputPath}"`, { stdio: "inherit" });
+
+ console.log("✅ OpenAPI spec fetched and formatted successfully");
+ } catch (error) {
+ console.error("❌ Failed to fetch OpenAPI spec:", error);
+ process.exit(1);
+ }
+}
+
+if (require.main === module) {
+ fetchOpenApiSpec();
+}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/admin/admin.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/admin/admin.ts
deleted file mode 100644
index 3f58394e05..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/admin/admin.ts
+++ /dev/null
@@ -1,1018 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation, useQuery } from "@tanstack/react-query";
-import type {
- DataTag,
- DefinedInitialDataOptions,
- DefinedUseQueryResult,
- MutationFunction,
- QueryClient,
- QueryFunction,
- QueryKey,
- UndefinedInitialDataOptions,
- UseMutationOptions,
- UseMutationResult,
- UseQueryOptions,
- UseQueryResult,
-} from "@tanstack/react-query";
-
-import type { AddUserCreditsResponse } from "../../models/addUserCreditsResponse";
-
-import type { BodyPostV2AddCreditsToUser } from "../../models/bodyPostV2AddCreditsToUser";
-
-import type { GetV2GetAdminListingsHistoryParams } from "../../models/getV2GetAdminListingsHistoryParams";
-
-import type { GetV2GetAllUsersHistoryParams } from "../../models/getV2GetAllUsersHistoryParams";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { ReviewSubmissionRequest } from "../../models/reviewSubmissionRequest";
-
-import type { StoreListingsWithVersionsResponse } from "../../models/storeListingsWithVersionsResponse";
-
-import type { StoreSubmission } from "../../models/storeSubmission";
-
-import type { UserHistoryResponse } from "../../models/userHistoryResponse";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * Get store listings with their version history for admins.
-
-This provides a consolidated view of listings with their versions,
-allowing for an expandable UI in the admin dashboard.
-
-Args:
- status: Filter by submission status (PENDING, APPROVED, REJECTED)
- search: Search by name, description, or user email
- page: Page number for pagination
- page_size: Number of items per page
-
-Returns:
- StoreListingsWithVersionsResponse with listings and their versions
- * @summary Get Admin Listings History
- */
-export type getV2GetAdminListingsHistoryResponse200 = {
- data: StoreListingsWithVersionsResponse;
- status: 200;
-};
-
-export type getV2GetAdminListingsHistoryResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2GetAdminListingsHistoryResponseComposite =
- | getV2GetAdminListingsHistoryResponse200
- | getV2GetAdminListingsHistoryResponse422;
-
-export type getV2GetAdminListingsHistoryResponse =
- getV2GetAdminListingsHistoryResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2GetAdminListingsHistoryUrl = (
- params?: GetV2GetAdminListingsHistoryParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/store/admin/listings?${stringifiedParams}`
- : `/api/store/admin/listings`;
-};
-
-export const getV2GetAdminListingsHistory = async (
- params?: GetV2GetAdminListingsHistoryParams,
- options?: RequestInit,
-): Promise<getV2GetAdminListingsHistoryResponse> => {
- return customMutator<getV2GetAdminListingsHistoryResponse>(
- getGetV2GetAdminListingsHistoryUrl(params),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2GetAdminListingsHistoryQueryKey = (
- params?: GetV2GetAdminListingsHistoryParams,
-) => {
- return [`/api/store/admin/listings`, ...(params ? [params] : [])] as const;
-};
-
-export const getGetV2GetAdminListingsHistoryQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,
- TError = HTTPValidationError,
->(
- params?: GetV2GetAdminListingsHistoryParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV2GetAdminListingsHistoryQueryKey(params);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>
- > = ({ signal }) =>
- getV2GetAdminListingsHistory(params, { signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2GetAdminListingsHistoryQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>
->;
-export type GetV2GetAdminListingsHistoryQueryError = HTTPValidationError;
-
-export function useGetV2GetAdminListingsHistory<
- TData = Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,
- TError = HTTPValidationError,
->(
- params: undefined | GetV2GetAdminListingsHistoryParams,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,
- TError,
- Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetAdminListingsHistory<
- TData = Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,
- TError = HTTPValidationError,
->(
- params?: GetV2GetAdminListingsHistoryParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,
- TError,
- Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetAdminListingsHistory<
- TData = Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,
- TError = HTTPValidationError,
->(
- params?: GetV2GetAdminListingsHistoryParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get Admin Listings History
- */
-
-export function useGetV2GetAdminListingsHistory<
- TData = Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,
- TError = HTTPValidationError,
->(
- params?: GetV2GetAdminListingsHistoryParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2GetAdminListingsHistoryQueryOptions(
- params,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get Admin Listings History
- */
-export const prefetchGetV2GetAdminListingsHistoryQuery = async <
- TData = Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- params?: GetV2GetAdminListingsHistoryParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAdminListingsHistory>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2GetAdminListingsHistoryQueryOptions(
- params,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Review a store listing submission.
-
-Args:
- store_listing_version_id: ID of the submission to review
- request: Review details including approval status and comments
- user: Authenticated admin user performing the review
-
-Returns:
- StoreSubmission with updated review information
- * @summary Review Store Submission
- */
-export type postV2ReviewStoreSubmissionResponse200 = {
- data: StoreSubmission;
- status: 200;
-};
-
-export type postV2ReviewStoreSubmissionResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV2ReviewStoreSubmissionResponseComposite =
- | postV2ReviewStoreSubmissionResponse200
- | postV2ReviewStoreSubmissionResponse422;
-
-export type postV2ReviewStoreSubmissionResponse =
- postV2ReviewStoreSubmissionResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV2ReviewStoreSubmissionUrl = (
- storeListingVersionId: string,
-) => {
- return `/api/store/admin/submissions/${storeListingVersionId}/review`;
-};
-
-export const postV2ReviewStoreSubmission = async (
- storeListingVersionId: string,
- reviewSubmissionRequest: ReviewSubmissionRequest,
- options?: RequestInit,
-): Promise<postV2ReviewStoreSubmissionResponse> => {
- return customMutator<postV2ReviewStoreSubmissionResponse>(
- getPostV2ReviewStoreSubmissionUrl(storeListingVersionId),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(reviewSubmissionRequest),
- },
- );
-};
-
-export const getPostV2ReviewStoreSubmissionMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2ReviewStoreSubmission>>,
- TError,
- { storeListingVersionId: string; data: ReviewSubmissionRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV2ReviewStoreSubmission>>,
- TError,
- { storeListingVersionId: string; data: ReviewSubmissionRequest },
- TContext
-> => {
- const mutationKey = ["postV2ReviewStoreSubmission"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV2ReviewStoreSubmission>>,
- { storeListingVersionId: string; data: ReviewSubmissionRequest }
- > = (props) => {
- const { storeListingVersionId, data } = props ?? {};
-
- return postV2ReviewStoreSubmission(
- storeListingVersionId,
- data,
- requestOptions,
- );
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV2ReviewStoreSubmissionMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV2ReviewStoreSubmission>>
->;
-export type PostV2ReviewStoreSubmissionMutationBody = ReviewSubmissionRequest;
-export type PostV2ReviewStoreSubmissionMutationError = HTTPValidationError;
-
-/**
- * @summary Review Store Submission
- */
-export const usePostV2ReviewStoreSubmission = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2ReviewStoreSubmission>>,
- TError,
- { storeListingVersionId: string; data: ReviewSubmissionRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV2ReviewStoreSubmission>>,
- TError,
- { storeListingVersionId: string; data: ReviewSubmissionRequest },
- TContext
-> => {
- const mutationOptions =
- getPostV2ReviewStoreSubmissionMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * Download the agent file by streaming its content.
-
-Args:
- store_listing_version_id (str): The ID of the agent to download
-
-Returns:
- StreamingResponse: A streaming response containing the agent's graph data.
-
-Raises:
- HTTPException: If the agent is not found or an unexpected error occurs.
- * @summary Admin Download Agent File
- */
-export type getV2AdminDownloadAgentFileResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type getV2AdminDownloadAgentFileResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2AdminDownloadAgentFileResponseComposite =
- | getV2AdminDownloadAgentFileResponse200
- | getV2AdminDownloadAgentFileResponse422;
-
-export type getV2AdminDownloadAgentFileResponse =
- getV2AdminDownloadAgentFileResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2AdminDownloadAgentFileUrl = (
- storeListingVersionId: string,
-) => {
- return `/api/store/admin/submissions/download/${storeListingVersionId}`;
-};
-
-export const getV2AdminDownloadAgentFile = async (
- storeListingVersionId: string,
- options?: RequestInit,
-): Promise<getV2AdminDownloadAgentFileResponse> => {
- return customMutator<getV2AdminDownloadAgentFileResponse>(
- getGetV2AdminDownloadAgentFileUrl(storeListingVersionId),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2AdminDownloadAgentFileQueryKey = (
- storeListingVersionId?: string,
-) => {
- return [
- `/api/store/admin/submissions/download/${storeListingVersionId}`,
- ] as const;
-};
-
-export const getGetV2AdminDownloadAgentFileQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ??
- getGetV2AdminDownloadAgentFileQueryKey(storeListingVersionId);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>
- > = ({ signal }) =>
- getV2AdminDownloadAgentFile(storeListingVersionId, {
- signal,
- ...requestOptions,
- });
-
- return {
- queryKey,
- queryFn,
- enabled: !!storeListingVersionId,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2AdminDownloadAgentFileQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>
->;
-export type GetV2AdminDownloadAgentFileQueryError = HTTPValidationError;
-
-export function useGetV2AdminDownloadAgentFile<
- TData = Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,
- TError,
- Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2AdminDownloadAgentFile<
- TData = Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,
- TError,
- Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2AdminDownloadAgentFile<
- TData = Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Admin Download Agent File
- */
-
-export function useGetV2AdminDownloadAgentFile<
- TData = Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2AdminDownloadAgentFileQueryOptions(
- storeListingVersionId,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Admin Download Agent File
- */
-export const prefetchGetV2AdminDownloadAgentFileQuery = async <
- TData = Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2AdminDownloadAgentFile>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2AdminDownloadAgentFileQueryOptions(
- storeListingVersionId,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Add Credits to User
- */
-export type postV2AddCreditsToUserResponse200 = {
- data: AddUserCreditsResponse;
- status: 200;
-};
-
-export type postV2AddCreditsToUserResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV2AddCreditsToUserResponseComposite =
- | postV2AddCreditsToUserResponse200
- | postV2AddCreditsToUserResponse422;
-
-export type postV2AddCreditsToUserResponse =
- postV2AddCreditsToUserResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV2AddCreditsToUserUrl = () => {
- return `/api/credits/admin/add_credits`;
-};
-
-export const postV2AddCreditsToUser = async (
- bodyPostV2AddCreditsToUser: BodyPostV2AddCreditsToUser,
- options?: RequestInit,
-): Promise<postV2AddCreditsToUserResponse> => {
- return customMutator<postV2AddCreditsToUserResponse>(
- getPostV2AddCreditsToUserUrl(),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(bodyPostV2AddCreditsToUser),
- },
- );
-};
-
-export const getPostV2AddCreditsToUserMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2AddCreditsToUser>>,
- TError,
- { data: BodyPostV2AddCreditsToUser },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV2AddCreditsToUser>>,
- TError,
- { data: BodyPostV2AddCreditsToUser },
- TContext
-> => {
- const mutationKey = ["postV2AddCreditsToUser"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV2AddCreditsToUser>>,
- { data: BodyPostV2AddCreditsToUser }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV2AddCreditsToUser(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV2AddCreditsToUserMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV2AddCreditsToUser>>
->;
-export type PostV2AddCreditsToUserMutationBody = BodyPostV2AddCreditsToUser;
-export type PostV2AddCreditsToUserMutationError = HTTPValidationError;
-
-/**
- * @summary Add Credits to User
- */
-export const usePostV2AddCreditsToUser = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2AddCreditsToUser>>,
- TError,
- { data: BodyPostV2AddCreditsToUser },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV2AddCreditsToUser>>,
- TError,
- { data: BodyPostV2AddCreditsToUser },
- TContext
-> => {
- const mutationOptions = getPostV2AddCreditsToUserMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Get All Users History
- */
-export type getV2GetAllUsersHistoryResponse200 = {
- data: UserHistoryResponse;
- status: 200;
-};
-
-export type getV2GetAllUsersHistoryResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2GetAllUsersHistoryResponseComposite =
- | getV2GetAllUsersHistoryResponse200
- | getV2GetAllUsersHistoryResponse422;
-
-export type getV2GetAllUsersHistoryResponse =
- getV2GetAllUsersHistoryResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2GetAllUsersHistoryUrl = (
- params?: GetV2GetAllUsersHistoryParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/credits/admin/users_history?${stringifiedParams}`
- : `/api/credits/admin/users_history`;
-};
-
-export const getV2GetAllUsersHistory = async (
- params?: GetV2GetAllUsersHistoryParams,
- options?: RequestInit,
-): Promise<getV2GetAllUsersHistoryResponse> => {
- return customMutator<getV2GetAllUsersHistoryResponse>(
- getGetV2GetAllUsersHistoryUrl(params),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2GetAllUsersHistoryQueryKey = (
- params?: GetV2GetAllUsersHistoryParams,
-) => {
- return [
- `/api/credits/admin/users_history`,
- ...(params ? [params] : []),
- ] as const;
-};
-
-export const getGetV2GetAllUsersHistoryQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,
- TError = HTTPValidationError,
->(
- params?: GetV2GetAllUsersHistoryParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV2GetAllUsersHistoryQueryKey(params);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2GetAllUsersHistory>>
- > = ({ signal }) =>
- getV2GetAllUsersHistory(params, { signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2GetAllUsersHistoryQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2GetAllUsersHistory>>
->;
-export type GetV2GetAllUsersHistoryQueryError = HTTPValidationError;
-
-export function useGetV2GetAllUsersHistory<
- TData = Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,
- TError = HTTPValidationError,
->(
- params: undefined | GetV2GetAllUsersHistoryParams,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,
- TError,
- Awaited<ReturnType<typeof getV2GetAllUsersHistory>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetAllUsersHistory<
- TData = Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,
- TError = HTTPValidationError,
->(
- params?: GetV2GetAllUsersHistoryParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,
- TError,
- Awaited<ReturnType<typeof getV2GetAllUsersHistory>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetAllUsersHistory<
- TData = Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,
- TError = HTTPValidationError,
->(
- params?: GetV2GetAllUsersHistoryParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get All Users History
- */
-
-export function useGetV2GetAllUsersHistory<
- TData = Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,
- TError = HTTPValidationError,
->(
- params?: GetV2GetAllUsersHistoryParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2GetAllUsersHistoryQueryOptions(params, options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get All Users History
- */
-export const prefetchGetV2GetAllUsersHistoryQuery = async <
- TData = Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- params?: GetV2GetAllUsersHistoryParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAllUsersHistory>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2GetAllUsersHistoryQueryOptions(params, options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/analytics/analytics.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/analytics/analytics.ts
deleted file mode 100644
index 4801ac1838..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/analytics/analytics.ts
+++ /dev/null
@@ -1,245 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation } from "@tanstack/react-query";
-import type {
- MutationFunction,
- QueryClient,
- UseMutationOptions,
- UseMutationResult,
-} from "@tanstack/react-query";
-
-import type { BodyPostV1LogRawAnalytics } from "../../models/bodyPostV1LogRawAnalytics";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { LogRawMetricRequest } from "../../models/logRawMetricRequest";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * @summary Log Raw Metric
- */
-export type postV1LogRawMetricResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type postV1LogRawMetricResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1LogRawMetricResponseComposite =
- | postV1LogRawMetricResponse200
- | postV1LogRawMetricResponse422;
-
-export type postV1LogRawMetricResponse = postV1LogRawMetricResponseComposite & {
- headers: Headers;
-};
-
-export const getPostV1LogRawMetricUrl = () => {
- return `/api/analytics/log_raw_metric`;
-};
-
-export const postV1LogRawMetric = async (
- logRawMetricRequest: LogRawMetricRequest,
- options?: RequestInit,
-): Promise<postV1LogRawMetricResponse> => {
- return customMutator<postV1LogRawMetricResponse>(getPostV1LogRawMetricUrl(), {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(logRawMetricRequest),
- });
-};
-
-export const getPostV1LogRawMetricMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1LogRawMetric>>,
- TError,
- { data: LogRawMetricRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1LogRawMetric>>,
- TError,
- { data: LogRawMetricRequest },
- TContext
-> => {
- const mutationKey = ["postV1LogRawMetric"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1LogRawMetric>>,
- { data: LogRawMetricRequest }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV1LogRawMetric(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1LogRawMetricMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1LogRawMetric>>
->;
-export type PostV1LogRawMetricMutationBody = LogRawMetricRequest;
-export type PostV1LogRawMetricMutationError = HTTPValidationError;
-
-/**
- * @summary Log Raw Metric
- */
-export const usePostV1LogRawMetric = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1LogRawMetric>>,
- TError,
- { data: LogRawMetricRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1LogRawMetric>>,
- TError,
- { data: LogRawMetricRequest },
- TContext
-> => {
- const mutationOptions = getPostV1LogRawMetricMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Log Raw Analytics
- */
-export type postV1LogRawAnalyticsResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type postV1LogRawAnalyticsResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1LogRawAnalyticsResponseComposite =
- | postV1LogRawAnalyticsResponse200
- | postV1LogRawAnalyticsResponse422;
-
-export type postV1LogRawAnalyticsResponse =
- postV1LogRawAnalyticsResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1LogRawAnalyticsUrl = () => {
- return `/api/analytics/log_raw_analytics`;
-};
-
-export const postV1LogRawAnalytics = async (
- bodyPostV1LogRawAnalytics: BodyPostV1LogRawAnalytics,
- options?: RequestInit,
-): Promise<postV1LogRawAnalyticsResponse> => {
- return customMutator<postV1LogRawAnalyticsResponse>(
- getPostV1LogRawAnalyticsUrl(),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(bodyPostV1LogRawAnalytics),
- },
- );
-};
-
-export const getPostV1LogRawAnalyticsMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1LogRawAnalytics>>,
- TError,
- { data: BodyPostV1LogRawAnalytics },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1LogRawAnalytics>>,
- TError,
- { data: BodyPostV1LogRawAnalytics },
- TContext
-> => {
- const mutationKey = ["postV1LogRawAnalytics"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1LogRawAnalytics>>,
- { data: BodyPostV1LogRawAnalytics }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV1LogRawAnalytics(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1LogRawAnalyticsMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1LogRawAnalytics>>
->;
-export type PostV1LogRawAnalyticsMutationBody = BodyPostV1LogRawAnalytics;
-export type PostV1LogRawAnalyticsMutationError = HTTPValidationError;
-
-/**
- * @summary Log Raw Analytics
- */
-export const usePostV1LogRawAnalytics = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1LogRawAnalytics>>,
- TError,
- { data: BodyPostV1LogRawAnalytics },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1LogRawAnalytics>>,
- TError,
- { data: BodyPostV1LogRawAnalytics },
- TContext
-> => {
- const mutationOptions = getPostV1LogRawAnalyticsMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/api-keys/api-keys.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/api-keys/api-keys.ts
deleted file mode 100644
index 59305dda48..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/api-keys/api-keys.ts
+++ /dev/null
@@ -1,910 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation, useQuery } from "@tanstack/react-query";
-import type {
- DataTag,
- DefinedInitialDataOptions,
- DefinedUseQueryResult,
- MutationFunction,
- QueryClient,
- QueryFunction,
- QueryKey,
- UndefinedInitialDataOptions,
- UseMutationOptions,
- UseMutationResult,
- UseQueryOptions,
- UseQueryResult,
-} from "@tanstack/react-query";
-
-import type { APIKeyWithoutHash } from "../../models/aPIKeyWithoutHash";
-
-import type { CreateAPIKeyRequest } from "../../models/createAPIKeyRequest";
-
-import type { CreateAPIKeyResponse } from "../../models/createAPIKeyResponse";
-
-import type { GetV1ListUserApiKeys200 } from "../../models/getV1ListUserApiKeys200";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { UpdatePermissionsRequest } from "../../models/updatePermissionsRequest";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * List all API keys for the user
- * @summary List user API keys
- */
-export type getV1ListUserApiKeysResponse200 = {
- data: GetV1ListUserApiKeys200;
- status: 200;
-};
-
-export type getV1ListUserApiKeysResponseComposite =
- getV1ListUserApiKeysResponse200;
-
-export type getV1ListUserApiKeysResponse =
- getV1ListUserApiKeysResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1ListUserApiKeysUrl = () => {
- return `/api/api-keys`;
-};
-
-export const getV1ListUserApiKeys = async (
- options?: RequestInit,
-): Promise<getV1ListUserApiKeysResponse> => {
- return customMutator<getV1ListUserApiKeysResponse>(
- getGetV1ListUserApiKeysUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1ListUserApiKeysQueryKey = () => {
- return [`/api/api-keys`] as const;
-};
-
-export const getGetV1ListUserApiKeysQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1ListUserApiKeys>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListUserApiKeys>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey = queryOptions?.queryKey ?? getGetV1ListUserApiKeysQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1ListUserApiKeys>>
- > = ({ signal }) => getV1ListUserApiKeys({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListUserApiKeys>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1ListUserApiKeysQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1ListUserApiKeys>>
->;
-export type GetV1ListUserApiKeysQueryError = unknown;
-
-export function useGetV1ListUserApiKeys<
- TData = Awaited<ReturnType<typeof getV1ListUserApiKeys>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListUserApiKeys>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListUserApiKeys>>,
- TError,
- Awaited<ReturnType<typeof getV1ListUserApiKeys>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListUserApiKeys<
- TData = Awaited<ReturnType<typeof getV1ListUserApiKeys>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListUserApiKeys>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListUserApiKeys>>,
- TError,
- Awaited<ReturnType<typeof getV1ListUserApiKeys>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListUserApiKeys<
- TData = Awaited<ReturnType<typeof getV1ListUserApiKeys>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListUserApiKeys>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary List user API keys
- */
-
-export function useGetV1ListUserApiKeys<
- TData = Awaited<ReturnType<typeof getV1ListUserApiKeys>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListUserApiKeys>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1ListUserApiKeysQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary List user API keys
- */
-export const prefetchGetV1ListUserApiKeysQuery = async <
- TData = Awaited<ReturnType<typeof getV1ListUserApiKeys>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListUserApiKeys>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1ListUserApiKeysQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Create a new API key
- * @summary Create new API key
- */
-export type postV1CreateNewApiKeyResponse200 = {
- data: CreateAPIKeyResponse;
- status: 200;
-};
-
-export type postV1CreateNewApiKeyResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1CreateNewApiKeyResponseComposite =
- | postV1CreateNewApiKeyResponse200
- | postV1CreateNewApiKeyResponse422;
-
-export type postV1CreateNewApiKeyResponse =
- postV1CreateNewApiKeyResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1CreateNewApiKeyUrl = () => {
- return `/api/api-keys`;
-};
-
-export const postV1CreateNewApiKey = async (
- createAPIKeyRequest: CreateAPIKeyRequest,
- options?: RequestInit,
-): Promise<postV1CreateNewApiKeyResponse> => {
- return customMutator<postV1CreateNewApiKeyResponse>(
- getPostV1CreateNewApiKeyUrl(),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(createAPIKeyRequest),
- },
- );
-};
-
-export const getPostV1CreateNewApiKeyMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1CreateNewApiKey>>,
- TError,
- { data: CreateAPIKeyRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1CreateNewApiKey>>,
- TError,
- { data: CreateAPIKeyRequest },
- TContext
-> => {
- const mutationKey = ["postV1CreateNewApiKey"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1CreateNewApiKey>>,
- { data: CreateAPIKeyRequest }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV1CreateNewApiKey(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1CreateNewApiKeyMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1CreateNewApiKey>>
->;
-export type PostV1CreateNewApiKeyMutationBody = CreateAPIKeyRequest;
-export type PostV1CreateNewApiKeyMutationError = HTTPValidationError;
-
-/**
- * @summary Create new API key
- */
-export const usePostV1CreateNewApiKey = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1CreateNewApiKey>>,
- TError,
- { data: CreateAPIKeyRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1CreateNewApiKey>>,
- TError,
- { data: CreateAPIKeyRequest },
- TContext
-> => {
- const mutationOptions = getPostV1CreateNewApiKeyMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * Get a specific API key
- * @summary Get specific API key
- */
-export type getV1GetSpecificApiKeyResponse200 = {
- data: APIKeyWithoutHash;
- status: 200;
-};
-
-export type getV1GetSpecificApiKeyResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV1GetSpecificApiKeyResponseComposite =
- | getV1GetSpecificApiKeyResponse200
- | getV1GetSpecificApiKeyResponse422;
-
-export type getV1GetSpecificApiKeyResponse =
- getV1GetSpecificApiKeyResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetSpecificApiKeyUrl = (keyId: string) => {
- return `/api/api-keys/${keyId}`;
-};
-
-export const getV1GetSpecificApiKey = async (
- keyId: string,
- options?: RequestInit,
-): Promise<getV1GetSpecificApiKeyResponse> => {
- return customMutator<getV1GetSpecificApiKeyResponse>(
- getGetV1GetSpecificApiKeyUrl(keyId),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetSpecificApiKeyQueryKey = (keyId?: string) => {
- return [`/api/api-keys/${keyId}`] as const;
-};
-
-export const getGetV1GetSpecificApiKeyQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,
- TError = HTTPValidationError,
->(
- keyId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1GetSpecificApiKeyQueryKey(keyId);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetSpecificApiKey>>
- > = ({ signal }) =>
- getV1GetSpecificApiKey(keyId, { signal, ...requestOptions });
-
- return {
- queryKey,
- queryFn,
- enabled: !!keyId,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetSpecificApiKeyQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetSpecificApiKey>>
->;
-export type GetV1GetSpecificApiKeyQueryError = HTTPValidationError;
-
-export function useGetV1GetSpecificApiKey<
- TData = Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,
- TError = HTTPValidationError,
->(
- keyId: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,
- TError,
- Awaited<ReturnType<typeof getV1GetSpecificApiKey>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetSpecificApiKey<
- TData = Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,
- TError = HTTPValidationError,
->(
- keyId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,
- TError,
- Awaited<ReturnType<typeof getV1GetSpecificApiKey>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetSpecificApiKey<
- TData = Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,
- TError = HTTPValidationError,
->(
- keyId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get specific API key
- */
-
-export function useGetV1GetSpecificApiKey<
- TData = Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,
- TError = HTTPValidationError,
->(
- keyId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetSpecificApiKeyQueryOptions(keyId, options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get specific API key
- */
-export const prefetchGetV1GetSpecificApiKeyQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- keyId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetSpecificApiKey>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetSpecificApiKeyQueryOptions(keyId, options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Revoke an API key
- * @summary Revoke API key
- */
-export type deleteV1RevokeApiKeyResponse200 = {
- data: APIKeyWithoutHash;
- status: 200;
-};
-
-export type deleteV1RevokeApiKeyResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type deleteV1RevokeApiKeyResponseComposite =
- | deleteV1RevokeApiKeyResponse200
- | deleteV1RevokeApiKeyResponse422;
-
-export type deleteV1RevokeApiKeyResponse =
- deleteV1RevokeApiKeyResponseComposite & {
- headers: Headers;
- };
-
-export const getDeleteV1RevokeApiKeyUrl = (keyId: string) => {
- return `/api/api-keys/${keyId}`;
-};
-
-export const deleteV1RevokeApiKey = async (
- keyId: string,
- options?: RequestInit,
-): Promise<deleteV1RevokeApiKeyResponse> => {
- return customMutator<deleteV1RevokeApiKeyResponse>(
- getDeleteV1RevokeApiKeyUrl(keyId),
- {
- ...options,
- method: "DELETE",
- },
- );
-};
-
-export const getDeleteV1RevokeApiKeyMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV1RevokeApiKey>>,
- TError,
- { keyId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof deleteV1RevokeApiKey>>,
- TError,
- { keyId: string },
- TContext
-> => {
- const mutationKey = ["deleteV1RevokeApiKey"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof deleteV1RevokeApiKey>>,
- { keyId: string }
- > = (props) => {
- const { keyId } = props ?? {};
-
- return deleteV1RevokeApiKey(keyId, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type DeleteV1RevokeApiKeyMutationResult = NonNullable<
- Awaited<ReturnType<typeof deleteV1RevokeApiKey>>
->;
-
-export type DeleteV1RevokeApiKeyMutationError = HTTPValidationError;
-
-/**
- * @summary Revoke API key
- */
-export const useDeleteV1RevokeApiKey = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV1RevokeApiKey>>,
- TError,
- { keyId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof deleteV1RevokeApiKey>>,
- TError,
- { keyId: string },
- TContext
-> => {
- const mutationOptions = getDeleteV1RevokeApiKeyMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * Suspend an API key
- * @summary Suspend API key
- */
-export type postV1SuspendApiKeyResponse200 = {
- data: APIKeyWithoutHash;
- status: 200;
-};
-
-export type postV1SuspendApiKeyResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1SuspendApiKeyResponseComposite =
- | postV1SuspendApiKeyResponse200
- | postV1SuspendApiKeyResponse422;
-
-export type postV1SuspendApiKeyResponse =
- postV1SuspendApiKeyResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1SuspendApiKeyUrl = (keyId: string) => {
- return `/api/api-keys/${keyId}/suspend`;
-};
-
-export const postV1SuspendApiKey = async (
- keyId: string,
- options?: RequestInit,
-): Promise<postV1SuspendApiKeyResponse> => {
- return customMutator<postV1SuspendApiKeyResponse>(
- getPostV1SuspendApiKeyUrl(keyId),
- {
- ...options,
- method: "POST",
- },
- );
-};
-
-export const getPostV1SuspendApiKeyMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1SuspendApiKey>>,
- TError,
- { keyId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1SuspendApiKey>>,
- TError,
- { keyId: string },
- TContext
-> => {
- const mutationKey = ["postV1SuspendApiKey"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1SuspendApiKey>>,
- { keyId: string }
- > = (props) => {
- const { keyId } = props ?? {};
-
- return postV1SuspendApiKey(keyId, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1SuspendApiKeyMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1SuspendApiKey>>
->;
-
-export type PostV1SuspendApiKeyMutationError = HTTPValidationError;
-
-/**
- * @summary Suspend API key
- */
-export const usePostV1SuspendApiKey = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1SuspendApiKey>>,
- TError,
- { keyId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1SuspendApiKey>>,
- TError,
- { keyId: string },
- TContext
-> => {
- const mutationOptions = getPostV1SuspendApiKeyMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * Update API key permissions
- * @summary Update key permissions
- */
-export type putV1UpdateKeyPermissionsResponse200 = {
- data: APIKeyWithoutHash;
- status: 200;
-};
-
-export type putV1UpdateKeyPermissionsResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type putV1UpdateKeyPermissionsResponseComposite =
- | putV1UpdateKeyPermissionsResponse200
- | putV1UpdateKeyPermissionsResponse422;
-
-export type putV1UpdateKeyPermissionsResponse =
- putV1UpdateKeyPermissionsResponseComposite & {
- headers: Headers;
- };
-
-export const getPutV1UpdateKeyPermissionsUrl = (keyId: string) => {
- return `/api/api-keys/${keyId}/permissions`;
-};
-
-export const putV1UpdateKeyPermissions = async (
- keyId: string,
- updatePermissionsRequest: UpdatePermissionsRequest,
- options?: RequestInit,
-): Promise<putV1UpdateKeyPermissionsResponse> => {
- return customMutator<putV1UpdateKeyPermissionsResponse>(
- getPutV1UpdateKeyPermissionsUrl(keyId),
- {
- ...options,
- method: "PUT",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(updatePermissionsRequest),
- },
- );
-};
-
-export const getPutV1UpdateKeyPermissionsMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof putV1UpdateKeyPermissions>>,
- TError,
- { keyId: string; data: UpdatePermissionsRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof putV1UpdateKeyPermissions>>,
- TError,
- { keyId: string; data: UpdatePermissionsRequest },
- TContext
-> => {
- const mutationKey = ["putV1UpdateKeyPermissions"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof putV1UpdateKeyPermissions>>,
- { keyId: string; data: UpdatePermissionsRequest }
- > = (props) => {
- const { keyId, data } = props ?? {};
-
- return putV1UpdateKeyPermissions(keyId, data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PutV1UpdateKeyPermissionsMutationResult = NonNullable<
- Awaited<ReturnType<typeof putV1UpdateKeyPermissions>>
->;
-export type PutV1UpdateKeyPermissionsMutationBody = UpdatePermissionsRequest;
-export type PutV1UpdateKeyPermissionsMutationError = HTTPValidationError;
-
-/**
- * @summary Update key permissions
- */
-export const usePutV1UpdateKeyPermissions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof putV1UpdateKeyPermissions>>,
- TError,
- { keyId: string; data: UpdatePermissionsRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof putV1UpdateKeyPermissions>>,
- TError,
- { keyId: string; data: UpdatePermissionsRequest },
- TContext
-> => {
- const mutationOptions = getPutV1UpdateKeyPermissionsMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/auth/auth.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/auth/auth.ts
deleted file mode 100644
index c8da75be44..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/auth/auth.ts
+++ /dev/null
@@ -1,561 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation, useQuery } from "@tanstack/react-query";
-import type {
- DataTag,
- DefinedInitialDataOptions,
- DefinedUseQueryResult,
- MutationFunction,
- QueryClient,
- QueryFunction,
- QueryKey,
- UndefinedInitialDataOptions,
- UseMutationOptions,
- UseMutationResult,
- UseQueryOptions,
- UseQueryResult,
-} from "@tanstack/react-query";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { NotificationPreference } from "../../models/notificationPreference";
-
-import type { NotificationPreferenceDTO } from "../../models/notificationPreferenceDTO";
-
-import type { PostV1UpdateUserEmail200 } from "../../models/postV1UpdateUserEmail200";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * @summary Get or create user
- */
-export type postV1GetOrCreateUserResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type postV1GetOrCreateUserResponseComposite =
- postV1GetOrCreateUserResponse200;
-
-export type postV1GetOrCreateUserResponse =
- postV1GetOrCreateUserResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1GetOrCreateUserUrl = () => {
- return `/api/auth/user`;
-};
-
-export const postV1GetOrCreateUser = async (
- options?: RequestInit,
-): Promise<postV1GetOrCreateUserResponse> => {
- return customMutator<postV1GetOrCreateUserResponse>(
- getPostV1GetOrCreateUserUrl(),
- {
- ...options,
- method: "POST",
- },
- );
-};
-
-export const getPostV1GetOrCreateUserMutationOptions = <
- TError = unknown,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1GetOrCreateUser>>,
- TError,
- void,
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1GetOrCreateUser>>,
- TError,
- void,
- TContext
-> => {
- const mutationKey = ["postV1GetOrCreateUser"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1GetOrCreateUser>>,
- void
- > = () => {
- return postV1GetOrCreateUser(requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1GetOrCreateUserMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1GetOrCreateUser>>
->;
-
-export type PostV1GetOrCreateUserMutationError = unknown;
-
-/**
- * @summary Get or create user
- */
-export const usePostV1GetOrCreateUser = <TError = unknown, TContext = unknown>(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1GetOrCreateUser>>,
- TError,
- void,
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1GetOrCreateUser>>,
- TError,
- void,
- TContext
-> => {
- const mutationOptions = getPostV1GetOrCreateUserMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Update user email
- */
-export type postV1UpdateUserEmailResponse200 = {
- data: PostV1UpdateUserEmail200;
- status: 200;
-};
-
-export type postV1UpdateUserEmailResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1UpdateUserEmailResponseComposite =
- | postV1UpdateUserEmailResponse200
- | postV1UpdateUserEmailResponse422;
-
-export type postV1UpdateUserEmailResponse =
- postV1UpdateUserEmailResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1UpdateUserEmailUrl = () => {
- return `/api/auth/user/email`;
-};
-
-export const postV1UpdateUserEmail = async (
- postV1UpdateUserEmailBody: string,
- options?: RequestInit,
-): Promise<postV1UpdateUserEmailResponse> => {
- return customMutator<postV1UpdateUserEmailResponse>(
- getPostV1UpdateUserEmailUrl(),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(postV1UpdateUserEmailBody),
- },
- );
-};
-
-export const getPostV1UpdateUserEmailMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1UpdateUserEmail>>,
- TError,
- { data: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1UpdateUserEmail>>,
- TError,
- { data: string },
- TContext
-> => {
- const mutationKey = ["postV1UpdateUserEmail"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1UpdateUserEmail>>,
- { data: string }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV1UpdateUserEmail(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1UpdateUserEmailMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1UpdateUserEmail>>
->;
-export type PostV1UpdateUserEmailMutationBody = string;
-export type PostV1UpdateUserEmailMutationError = HTTPValidationError;
-
-/**
- * @summary Update user email
- */
-export const usePostV1UpdateUserEmail = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1UpdateUserEmail>>,
- TError,
- { data: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1UpdateUserEmail>>,
- TError,
- { data: string },
- TContext
-> => {
- const mutationOptions = getPostV1UpdateUserEmailMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Get notification preferences
- */
-export type getV1GetNotificationPreferencesResponse200 = {
- data: NotificationPreference;
- status: 200;
-};
-
-export type getV1GetNotificationPreferencesResponseComposite =
- getV1GetNotificationPreferencesResponse200;
-
-export type getV1GetNotificationPreferencesResponse =
- getV1GetNotificationPreferencesResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetNotificationPreferencesUrl = () => {
- return `/api/auth/user/preferences`;
-};
-
-export const getV1GetNotificationPreferences = async (
- options?: RequestInit,
-): Promise<getV1GetNotificationPreferencesResponse> => {
- return customMutator<getV1GetNotificationPreferencesResponse>(
- getGetV1GetNotificationPreferencesUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetNotificationPreferencesQueryKey = () => {
- return [`/api/auth/user/preferences`] as const;
-};
-
-export const getGetV1GetNotificationPreferencesQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1GetNotificationPreferencesQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetNotificationPreferences>>
- > = ({ signal }) =>
- getV1GetNotificationPreferences({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetNotificationPreferencesQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetNotificationPreferences>>
->;
-export type GetV1GetNotificationPreferencesQueryError = unknown;
-
-export function useGetV1GetNotificationPreferences<
- TData = Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,
- TError,
- Awaited<ReturnType<typeof getV1GetNotificationPreferences>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetNotificationPreferences<
- TData = Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,
- TError,
- Awaited<ReturnType<typeof getV1GetNotificationPreferences>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetNotificationPreferences<
- TData = Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get notification preferences
- */
-
-export function useGetV1GetNotificationPreferences<
- TData = Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetNotificationPreferencesQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get notification preferences
- */
-export const prefetchGetV1GetNotificationPreferencesQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetNotificationPreferences>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetNotificationPreferencesQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Update notification preferences
- */
-export type postV1UpdateNotificationPreferencesResponse200 = {
- data: NotificationPreference;
- status: 200;
-};
-
-export type postV1UpdateNotificationPreferencesResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1UpdateNotificationPreferencesResponseComposite =
- | postV1UpdateNotificationPreferencesResponse200
- | postV1UpdateNotificationPreferencesResponse422;
-
-export type postV1UpdateNotificationPreferencesResponse =
- postV1UpdateNotificationPreferencesResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1UpdateNotificationPreferencesUrl = () => {
- return `/api/auth/user/preferences`;
-};
-
-export const postV1UpdateNotificationPreferences = async (
- notificationPreferenceDTO: NotificationPreferenceDTO,
- options?: RequestInit,
-): Promise<postV1UpdateNotificationPreferencesResponse> => {
- return customMutator<postV1UpdateNotificationPreferencesResponse>(
- getPostV1UpdateNotificationPreferencesUrl(),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(notificationPreferenceDTO),
- },
- );
-};
-
-export const getPostV1UpdateNotificationPreferencesMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1UpdateNotificationPreferences>>,
- TError,
- { data: NotificationPreferenceDTO },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1UpdateNotificationPreferences>>,
- TError,
- { data: NotificationPreferenceDTO },
- TContext
-> => {
- const mutationKey = ["postV1UpdateNotificationPreferences"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1UpdateNotificationPreferences>>,
- { data: NotificationPreferenceDTO }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV1UpdateNotificationPreferences(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1UpdateNotificationPreferencesMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1UpdateNotificationPreferences>>
->;
-export type PostV1UpdateNotificationPreferencesMutationBody =
- NotificationPreferenceDTO;
-export type PostV1UpdateNotificationPreferencesMutationError =
- HTTPValidationError;
-
-/**
- * @summary Update notification preferences
- */
-export const usePostV1UpdateNotificationPreferences = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1UpdateNotificationPreferences>>,
- TError,
- { data: NotificationPreferenceDTO },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1UpdateNotificationPreferences>>,
- TError,
- { data: NotificationPreferenceDTO },
- TContext
-> => {
- const mutationOptions =
- getPostV1UpdateNotificationPreferencesMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/blocks/blocks.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/blocks/blocks.ts
deleted file mode 100644
index 1456a0eb7a..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/blocks/blocks.ts
+++ /dev/null
@@ -1,348 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation, useQuery } from "@tanstack/react-query";
-import type {
- DataTag,
- DefinedInitialDataOptions,
- DefinedUseQueryResult,
- MutationFunction,
- QueryClient,
- QueryFunction,
- QueryKey,
- UndefinedInitialDataOptions,
- UseMutationOptions,
- UseMutationResult,
- UseQueryOptions,
- UseQueryResult,
-} from "@tanstack/react-query";
-
-import type { GetV1ListAvailableBlocks200Item } from "../../models/getV1ListAvailableBlocks200Item";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { PostV1ExecuteGraphBlock200 } from "../../models/postV1ExecuteGraphBlock200";
-
-import type { PostV1ExecuteGraphBlockBody } from "../../models/postV1ExecuteGraphBlockBody";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * @summary List available blocks
- */
-export type getV1ListAvailableBlocksResponse200 = {
- data: GetV1ListAvailableBlocks200Item[];
- status: 200;
-};
-
-export type getV1ListAvailableBlocksResponseComposite =
- getV1ListAvailableBlocksResponse200;
-
-export type getV1ListAvailableBlocksResponse =
- getV1ListAvailableBlocksResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1ListAvailableBlocksUrl = () => {
- return `/api/blocks`;
-};
-
-export const getV1ListAvailableBlocks = async (
- options?: RequestInit,
-): Promise<getV1ListAvailableBlocksResponse> => {
- return customMutator<getV1ListAvailableBlocksResponse>(
- getGetV1ListAvailableBlocksUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1ListAvailableBlocksQueryKey = () => {
- return [`/api/blocks`] as const;
-};
-
-export const getGetV1ListAvailableBlocksQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1ListAvailableBlocksQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1ListAvailableBlocks>>
- > = ({ signal }) => getV1ListAvailableBlocks({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1ListAvailableBlocksQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1ListAvailableBlocks>>
->;
-export type GetV1ListAvailableBlocksQueryError = unknown;
-
-export function useGetV1ListAvailableBlocks<
- TData = Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,
- TError,
- Awaited<ReturnType<typeof getV1ListAvailableBlocks>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListAvailableBlocks<
- TData = Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,
- TError,
- Awaited<ReturnType<typeof getV1ListAvailableBlocks>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListAvailableBlocks<
- TData = Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary List available blocks
- */
-
-export function useGetV1ListAvailableBlocks<
- TData = Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1ListAvailableBlocksQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary List available blocks
- */
-export const prefetchGetV1ListAvailableBlocksQuery = async <
- TData = Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListAvailableBlocks>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1ListAvailableBlocksQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Execute graph block
- */
-export type postV1ExecuteGraphBlockResponse200 = {
- data: PostV1ExecuteGraphBlock200;
- status: 200;
-};
-
-export type postV1ExecuteGraphBlockResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1ExecuteGraphBlockResponseComposite =
- | postV1ExecuteGraphBlockResponse200
- | postV1ExecuteGraphBlockResponse422;
-
-export type postV1ExecuteGraphBlockResponse =
- postV1ExecuteGraphBlockResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1ExecuteGraphBlockUrl = (blockId: string) => {
- return `/api/blocks/${blockId}/execute`;
-};
-
-export const postV1ExecuteGraphBlock = async (
- blockId: string,
- postV1ExecuteGraphBlockBody: PostV1ExecuteGraphBlockBody,
- options?: RequestInit,
-): Promise<postV1ExecuteGraphBlockResponse> => {
- return customMutator<postV1ExecuteGraphBlockResponse>(
- getPostV1ExecuteGraphBlockUrl(blockId),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(postV1ExecuteGraphBlockBody),
- },
- );
-};
-
-export const getPostV1ExecuteGraphBlockMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1ExecuteGraphBlock>>,
- TError,
- { blockId: string; data: PostV1ExecuteGraphBlockBody },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1ExecuteGraphBlock>>,
- TError,
- { blockId: string; data: PostV1ExecuteGraphBlockBody },
- TContext
-> => {
- const mutationKey = ["postV1ExecuteGraphBlock"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1ExecuteGraphBlock>>,
- { blockId: string; data: PostV1ExecuteGraphBlockBody }
- > = (props) => {
- const { blockId, data } = props ?? {};
-
- return postV1ExecuteGraphBlock(blockId, data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1ExecuteGraphBlockMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1ExecuteGraphBlock>>
->;
-export type PostV1ExecuteGraphBlockMutationBody = PostV1ExecuteGraphBlockBody;
-export type PostV1ExecuteGraphBlockMutationError = HTTPValidationError;
-
-/**
- * @summary Execute graph block
- */
-export const usePostV1ExecuteGraphBlock = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1ExecuteGraphBlock>>,
- TError,
- { blockId: string; data: PostV1ExecuteGraphBlockBody },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1ExecuteGraphBlock>>,
- TError,
- { blockId: string; data: PostV1ExecuteGraphBlockBody },
- TContext
-> => {
- const mutationOptions = getPostV1ExecuteGraphBlockMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/credits/credits.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/credits/credits.ts
deleted file mode 100644
index f69400823d..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/credits/credits.ts
+++ /dev/null
@@ -1,1611 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation, useQuery } from "@tanstack/react-query";
-import type {
- DataTag,
- DefinedInitialDataOptions,
- DefinedUseQueryResult,
- MutationFunction,
- QueryClient,
- QueryFunction,
- QueryKey,
- UndefinedInitialDataOptions,
- UseMutationOptions,
- UseMutationResult,
- UseQueryOptions,
- UseQueryResult,
-} from "@tanstack/react-query";
-
-import type { AutoTopUpConfig } from "../../models/autoTopUpConfig";
-
-import type { GetV1GetCreditHistoryParams } from "../../models/getV1GetCreditHistoryParams";
-
-import type { GetV1GetUserCredits200 } from "../../models/getV1GetUserCredits200";
-
-import type { GetV1ManagePaymentMethods200 } from "../../models/getV1ManagePaymentMethods200";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { PostV1RefundCreditTransactionBody } from "../../models/postV1RefundCreditTransactionBody";
-
-import type { RefundRequest } from "../../models/refundRequest";
-
-import type { RequestTopUp } from "../../models/requestTopUp";
-
-import type { TransactionHistory } from "../../models/transactionHistory";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * @summary Get user credits
- */
-export type getV1GetUserCreditsResponse200 = {
- data: GetV1GetUserCredits200;
- status: 200;
-};
-
-export type getV1GetUserCreditsResponseComposite =
- getV1GetUserCreditsResponse200;
-
-export type getV1GetUserCreditsResponse =
- getV1GetUserCreditsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetUserCreditsUrl = () => {
- return `/api/credits`;
-};
-
-export const getV1GetUserCredits = async (
- options?: RequestInit,
-): Promise<getV1GetUserCreditsResponse> => {
- return customMutator<getV1GetUserCreditsResponse>(
- getGetV1GetUserCreditsUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetUserCreditsQueryKey = () => {
- return [`/api/credits`] as const;
-};
-
-export const getGetV1GetUserCreditsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetUserCredits>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetUserCredits>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey = queryOptions?.queryKey ?? getGetV1GetUserCreditsQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetUserCredits>>
- > = ({ signal }) => getV1GetUserCredits({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetUserCredits>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetUserCreditsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetUserCredits>>
->;
-export type GetV1GetUserCreditsQueryError = unknown;
-
-export function useGetV1GetUserCredits<
- TData = Awaited<ReturnType<typeof getV1GetUserCredits>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetUserCredits>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetUserCredits>>,
- TError,
- Awaited<ReturnType<typeof getV1GetUserCredits>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetUserCredits<
- TData = Awaited<ReturnType<typeof getV1GetUserCredits>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetUserCredits>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetUserCredits>>,
- TError,
- Awaited<ReturnType<typeof getV1GetUserCredits>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetUserCredits<
- TData = Awaited<ReturnType<typeof getV1GetUserCredits>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetUserCredits>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get user credits
- */
-
-export function useGetV1GetUserCredits<
- TData = Awaited<ReturnType<typeof getV1GetUserCredits>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetUserCredits>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetUserCreditsQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get user credits
- */
-export const prefetchGetV1GetUserCreditsQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetUserCredits>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetUserCredits>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetUserCreditsQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Request credit top up
- */
-export type postV1RequestCreditTopUpResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type postV1RequestCreditTopUpResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1RequestCreditTopUpResponseComposite =
- | postV1RequestCreditTopUpResponse200
- | postV1RequestCreditTopUpResponse422;
-
-export type postV1RequestCreditTopUpResponse =
- postV1RequestCreditTopUpResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1RequestCreditTopUpUrl = () => {
- return `/api/credits`;
-};
-
-export const postV1RequestCreditTopUp = async (
- requestTopUp: RequestTopUp,
- options?: RequestInit,
-): Promise<postV1RequestCreditTopUpResponse> => {
- return customMutator<postV1RequestCreditTopUpResponse>(
- getPostV1RequestCreditTopUpUrl(),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(requestTopUp),
- },
- );
-};
-
-export const getPostV1RequestCreditTopUpMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1RequestCreditTopUp>>,
- TError,
- { data: RequestTopUp },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1RequestCreditTopUp>>,
- TError,
- { data: RequestTopUp },
- TContext
-> => {
- const mutationKey = ["postV1RequestCreditTopUp"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1RequestCreditTopUp>>,
- { data: RequestTopUp }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV1RequestCreditTopUp(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1RequestCreditTopUpMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1RequestCreditTopUp>>
->;
-export type PostV1RequestCreditTopUpMutationBody = RequestTopUp;
-export type PostV1RequestCreditTopUpMutationError = HTTPValidationError;
-
-/**
- * @summary Request credit top up
- */
-export const usePostV1RequestCreditTopUp = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1RequestCreditTopUp>>,
- TError,
- { data: RequestTopUp },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1RequestCreditTopUp>>,
- TError,
- { data: RequestTopUp },
- TContext
-> => {
- const mutationOptions = getPostV1RequestCreditTopUpMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Fulfill checkout session
- */
-export type patchV1FulfillCheckoutSessionResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type patchV1FulfillCheckoutSessionResponseComposite =
- patchV1FulfillCheckoutSessionResponse200;
-
-export type patchV1FulfillCheckoutSessionResponse =
- patchV1FulfillCheckoutSessionResponseComposite & {
- headers: Headers;
- };
-
-export const getPatchV1FulfillCheckoutSessionUrl = () => {
- return `/api/credits`;
-};
-
-export const patchV1FulfillCheckoutSession = async (
- options?: RequestInit,
-): Promise<patchV1FulfillCheckoutSessionResponse> => {
- return customMutator<patchV1FulfillCheckoutSessionResponse>(
- getPatchV1FulfillCheckoutSessionUrl(),
- {
- ...options,
- method: "PATCH",
- },
- );
-};
-
-export const getPatchV1FulfillCheckoutSessionMutationOptions = <
- TError = unknown,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof patchV1FulfillCheckoutSession>>,
- TError,
- void,
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof patchV1FulfillCheckoutSession>>,
- TError,
- void,
- TContext
-> => {
- const mutationKey = ["patchV1FulfillCheckoutSession"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof patchV1FulfillCheckoutSession>>,
- void
- > = () => {
- return patchV1FulfillCheckoutSession(requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PatchV1FulfillCheckoutSessionMutationResult = NonNullable<
- Awaited<ReturnType<typeof patchV1FulfillCheckoutSession>>
->;
-
-export type PatchV1FulfillCheckoutSessionMutationError = unknown;
-
-/**
- * @summary Fulfill checkout session
- */
-export const usePatchV1FulfillCheckoutSession = <
- TError = unknown,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof patchV1FulfillCheckoutSession>>,
- TError,
- void,
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof patchV1FulfillCheckoutSession>>,
- TError,
- void,
- TContext
-> => {
- const mutationOptions =
- getPatchV1FulfillCheckoutSessionMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Refund credit transaction
- */
-export type postV1RefundCreditTransactionResponse200 = {
- data: number;
- status: 200;
-};
-
-export type postV1RefundCreditTransactionResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1RefundCreditTransactionResponseComposite =
- | postV1RefundCreditTransactionResponse200
- | postV1RefundCreditTransactionResponse422;
-
-export type postV1RefundCreditTransactionResponse =
- postV1RefundCreditTransactionResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1RefundCreditTransactionUrl = (transactionKey: string) => {
- return `/api/credits/${transactionKey}/refund`;
-};
-
-export const postV1RefundCreditTransaction = async (
- transactionKey: string,
- postV1RefundCreditTransactionBody: PostV1RefundCreditTransactionBody,
- options?: RequestInit,
-): Promise<postV1RefundCreditTransactionResponse> => {
- return customMutator<postV1RefundCreditTransactionResponse>(
- getPostV1RefundCreditTransactionUrl(transactionKey),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(postV1RefundCreditTransactionBody),
- },
- );
-};
-
-export const getPostV1RefundCreditTransactionMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1RefundCreditTransaction>>,
- TError,
- { transactionKey: string; data: PostV1RefundCreditTransactionBody },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1RefundCreditTransaction>>,
- TError,
- { transactionKey: string; data: PostV1RefundCreditTransactionBody },
- TContext
-> => {
- const mutationKey = ["postV1RefundCreditTransaction"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1RefundCreditTransaction>>,
- { transactionKey: string; data: PostV1RefundCreditTransactionBody }
- > = (props) => {
- const { transactionKey, data } = props ?? {};
-
- return postV1RefundCreditTransaction(transactionKey, data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1RefundCreditTransactionMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1RefundCreditTransaction>>
->;
-export type PostV1RefundCreditTransactionMutationBody =
- PostV1RefundCreditTransactionBody;
-export type PostV1RefundCreditTransactionMutationError = HTTPValidationError;
-
-/**
- * @summary Refund credit transaction
- */
-export const usePostV1RefundCreditTransaction = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1RefundCreditTransaction>>,
- TError,
- { transactionKey: string; data: PostV1RefundCreditTransactionBody },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1RefundCreditTransaction>>,
- TError,
- { transactionKey: string; data: PostV1RefundCreditTransactionBody },
- TContext
-> => {
- const mutationOptions =
- getPostV1RefundCreditTransactionMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Get auto top up
- */
-export type getV1GetAutoTopUpResponse200 = {
- data: AutoTopUpConfig;
- status: 200;
-};
-
-export type getV1GetAutoTopUpResponseComposite = getV1GetAutoTopUpResponse200;
-
-export type getV1GetAutoTopUpResponse = getV1GetAutoTopUpResponseComposite & {
- headers: Headers;
-};
-
-export const getGetV1GetAutoTopUpUrl = () => {
- return `/api/credits/auto-top-up`;
-};
-
-export const getV1GetAutoTopUp = async (
- options?: RequestInit,
-): Promise<getV1GetAutoTopUpResponse> => {
- return customMutator<getV1GetAutoTopUpResponse>(getGetV1GetAutoTopUpUrl(), {
- ...options,
- method: "GET",
- });
-};
-
-export const getGetV1GetAutoTopUpQueryKey = () => {
- return [`/api/credits/auto-top-up`] as const;
-};
-
-export const getGetV1GetAutoTopUpQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetAutoTopUp>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAutoTopUp>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey = queryOptions?.queryKey ?? getGetV1GetAutoTopUpQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetAutoTopUp>>
- > = ({ signal }) => getV1GetAutoTopUp({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAutoTopUp>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetAutoTopUpQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetAutoTopUp>>
->;
-export type GetV1GetAutoTopUpQueryError = unknown;
-
-export function useGetV1GetAutoTopUp<
- TData = Awaited<ReturnType<typeof getV1GetAutoTopUp>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAutoTopUp>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetAutoTopUp>>,
- TError,
- Awaited<ReturnType<typeof getV1GetAutoTopUp>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetAutoTopUp<
- TData = Awaited<ReturnType<typeof getV1GetAutoTopUp>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAutoTopUp>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetAutoTopUp>>,
- TError,
- Awaited<ReturnType<typeof getV1GetAutoTopUp>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetAutoTopUp<
- TData = Awaited<ReturnType<typeof getV1GetAutoTopUp>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAutoTopUp>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get auto top up
- */
-
-export function useGetV1GetAutoTopUp<
- TData = Awaited<ReturnType<typeof getV1GetAutoTopUp>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAutoTopUp>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetAutoTopUpQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get auto top up
- */
-export const prefetchGetV1GetAutoTopUpQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetAutoTopUp>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAutoTopUp>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetAutoTopUpQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Configure auto top up
- */
-export type postV1ConfigureAutoTopUpResponse200 = {
- data: string;
- status: 200;
-};
-
-export type postV1ConfigureAutoTopUpResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1ConfigureAutoTopUpResponseComposite =
- | postV1ConfigureAutoTopUpResponse200
- | postV1ConfigureAutoTopUpResponse422;
-
-export type postV1ConfigureAutoTopUpResponse =
- postV1ConfigureAutoTopUpResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1ConfigureAutoTopUpUrl = () => {
- return `/api/credits/auto-top-up`;
-};
-
-export const postV1ConfigureAutoTopUp = async (
- autoTopUpConfig: AutoTopUpConfig,
- options?: RequestInit,
-): Promise<postV1ConfigureAutoTopUpResponse> => {
- return customMutator<postV1ConfigureAutoTopUpResponse>(
- getPostV1ConfigureAutoTopUpUrl(),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(autoTopUpConfig),
- },
- );
-};
-
-export const getPostV1ConfigureAutoTopUpMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1ConfigureAutoTopUp>>,
- TError,
- { data: AutoTopUpConfig },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1ConfigureAutoTopUp>>,
- TError,
- { data: AutoTopUpConfig },
- TContext
-> => {
- const mutationKey = ["postV1ConfigureAutoTopUp"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1ConfigureAutoTopUp>>,
- { data: AutoTopUpConfig }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV1ConfigureAutoTopUp(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1ConfigureAutoTopUpMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1ConfigureAutoTopUp>>
->;
-export type PostV1ConfigureAutoTopUpMutationBody = AutoTopUpConfig;
-export type PostV1ConfigureAutoTopUpMutationError = HTTPValidationError;
-
-/**
- * @summary Configure auto top up
- */
-export const usePostV1ConfigureAutoTopUp = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1ConfigureAutoTopUp>>,
- TError,
- { data: AutoTopUpConfig },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1ConfigureAutoTopUp>>,
- TError,
- { data: AutoTopUpConfig },
- TContext
-> => {
- const mutationOptions = getPostV1ConfigureAutoTopUpMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Handle Stripe webhooks
- */
-export type postV1HandleStripeWebhooksResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type postV1HandleStripeWebhooksResponseComposite =
- postV1HandleStripeWebhooksResponse200;
-
-export type postV1HandleStripeWebhooksResponse =
- postV1HandleStripeWebhooksResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1HandleStripeWebhooksUrl = () => {
- return `/api/credits/stripe_webhook`;
-};
-
-export const postV1HandleStripeWebhooks = async (
- options?: RequestInit,
-): Promise<postV1HandleStripeWebhooksResponse> => {
- return customMutator<postV1HandleStripeWebhooksResponse>(
- getPostV1HandleStripeWebhooksUrl(),
- {
- ...options,
- method: "POST",
- },
- );
-};
-
-export const getPostV1HandleStripeWebhooksMutationOptions = <
- TError = unknown,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1HandleStripeWebhooks>>,
- TError,
- void,
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1HandleStripeWebhooks>>,
- TError,
- void,
- TContext
-> => {
- const mutationKey = ["postV1HandleStripeWebhooks"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1HandleStripeWebhooks>>,
- void
- > = () => {
- return postV1HandleStripeWebhooks(requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1HandleStripeWebhooksMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1HandleStripeWebhooks>>
->;
-
-export type PostV1HandleStripeWebhooksMutationError = unknown;
-
-/**
- * @summary Handle Stripe webhooks
- */
-export const usePostV1HandleStripeWebhooks = <
- TError = unknown,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1HandleStripeWebhooks>>,
- TError,
- void,
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1HandleStripeWebhooks>>,
- TError,
- void,
- TContext
-> => {
- const mutationOptions = getPostV1HandleStripeWebhooksMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Manage payment methods
- */
-export type getV1ManagePaymentMethodsResponse200 = {
- data: GetV1ManagePaymentMethods200;
- status: 200;
-};
-
-export type getV1ManagePaymentMethodsResponseComposite =
- getV1ManagePaymentMethodsResponse200;
-
-export type getV1ManagePaymentMethodsResponse =
- getV1ManagePaymentMethodsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1ManagePaymentMethodsUrl = () => {
- return `/api/credits/manage`;
-};
-
-export const getV1ManagePaymentMethods = async (
- options?: RequestInit,
-): Promise<getV1ManagePaymentMethodsResponse> => {
- return customMutator<getV1ManagePaymentMethodsResponse>(
- getGetV1ManagePaymentMethodsUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1ManagePaymentMethodsQueryKey = () => {
- return [`/api/credits/manage`] as const;
-};
-
-export const getGetV1ManagePaymentMethodsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1ManagePaymentMethodsQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1ManagePaymentMethods>>
- > = ({ signal }) => getV1ManagePaymentMethods({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1ManagePaymentMethodsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1ManagePaymentMethods>>
->;
-export type GetV1ManagePaymentMethodsQueryError = unknown;
-
-export function useGetV1ManagePaymentMethods<
- TData = Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,
- TError,
- Awaited<ReturnType<typeof getV1ManagePaymentMethods>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ManagePaymentMethods<
- TData = Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,
- TError,
- Awaited<ReturnType<typeof getV1ManagePaymentMethods>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ManagePaymentMethods<
- TData = Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Manage payment methods
- */
-
-export function useGetV1ManagePaymentMethods<
- TData = Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1ManagePaymentMethodsQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Manage payment methods
- */
-export const prefetchGetV1ManagePaymentMethodsQuery = async <
- TData = Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ManagePaymentMethods>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1ManagePaymentMethodsQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Get credit history
- */
-export type getV1GetCreditHistoryResponse200 = {
- data: TransactionHistory;
- status: 200;
-};
-
-export type getV1GetCreditHistoryResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV1GetCreditHistoryResponseComposite =
- | getV1GetCreditHistoryResponse200
- | getV1GetCreditHistoryResponse422;
-
-export type getV1GetCreditHistoryResponse =
- getV1GetCreditHistoryResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetCreditHistoryUrl = (
- params?: GetV1GetCreditHistoryParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/credits/transactions?${stringifiedParams}`
- : `/api/credits/transactions`;
-};
-
-export const getV1GetCreditHistory = async (
- params?: GetV1GetCreditHistoryParams,
- options?: RequestInit,
-): Promise<getV1GetCreditHistoryResponse> => {
- return customMutator<getV1GetCreditHistoryResponse>(
- getGetV1GetCreditHistoryUrl(params),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetCreditHistoryQueryKey = (
- params?: GetV1GetCreditHistoryParams,
-) => {
- return [`/api/credits/transactions`, ...(params ? [params] : [])] as const;
-};
-
-export const getGetV1GetCreditHistoryQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetCreditHistory>>,
- TError = HTTPValidationError,
->(
- params?: GetV1GetCreditHistoryParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetCreditHistory>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1GetCreditHistoryQueryKey(params);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetCreditHistory>>
- > = ({ signal }) =>
- getV1GetCreditHistory(params, { signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetCreditHistory>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetCreditHistoryQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetCreditHistory>>
->;
-export type GetV1GetCreditHistoryQueryError = HTTPValidationError;
-
-export function useGetV1GetCreditHistory<
- TData = Awaited<ReturnType<typeof getV1GetCreditHistory>>,
- TError = HTTPValidationError,
->(
- params: undefined | GetV1GetCreditHistoryParams,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetCreditHistory>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetCreditHistory>>,
- TError,
- Awaited<ReturnType<typeof getV1GetCreditHistory>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetCreditHistory<
- TData = Awaited<ReturnType<typeof getV1GetCreditHistory>>,
- TError = HTTPValidationError,
->(
- params?: GetV1GetCreditHistoryParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetCreditHistory>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetCreditHistory>>,
- TError,
- Awaited<ReturnType<typeof getV1GetCreditHistory>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetCreditHistory<
- TData = Awaited<ReturnType<typeof getV1GetCreditHistory>>,
- TError = HTTPValidationError,
->(
- params?: GetV1GetCreditHistoryParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetCreditHistory>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get credit history
- */
-
-export function useGetV1GetCreditHistory<
- TData = Awaited<ReturnType<typeof getV1GetCreditHistory>>,
- TError = HTTPValidationError,
->(
- params?: GetV1GetCreditHistoryParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetCreditHistory>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetCreditHistoryQueryOptions(params, options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get credit history
- */
-export const prefetchGetV1GetCreditHistoryQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetCreditHistory>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- params?: GetV1GetCreditHistoryParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetCreditHistory>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetCreditHistoryQueryOptions(params, options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Get refund requests
- */
-export type getV1GetRefundRequestsResponse200 = {
- data: RefundRequest[];
- status: 200;
-};
-
-export type getV1GetRefundRequestsResponseComposite =
- getV1GetRefundRequestsResponse200;
-
-export type getV1GetRefundRequestsResponse =
- getV1GetRefundRequestsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetRefundRequestsUrl = () => {
- return `/api/credits/refunds`;
-};
-
-export const getV1GetRefundRequests = async (
- options?: RequestInit,
-): Promise<getV1GetRefundRequestsResponse> => {
- return customMutator<getV1GetRefundRequestsResponse>(
- getGetV1GetRefundRequestsUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetRefundRequestsQueryKey = () => {
- return [`/api/credits/refunds`] as const;
-};
-
-export const getGetV1GetRefundRequestsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetRefundRequests>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetRefundRequests>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1GetRefundRequestsQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetRefundRequests>>
- > = ({ signal }) => getV1GetRefundRequests({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetRefundRequests>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetRefundRequestsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetRefundRequests>>
->;
-export type GetV1GetRefundRequestsQueryError = unknown;
-
-export function useGetV1GetRefundRequests<
- TData = Awaited<ReturnType<typeof getV1GetRefundRequests>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetRefundRequests>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetRefundRequests>>,
- TError,
- Awaited<ReturnType<typeof getV1GetRefundRequests>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetRefundRequests<
- TData = Awaited<ReturnType<typeof getV1GetRefundRequests>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetRefundRequests>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetRefundRequests>>,
- TError,
- Awaited<ReturnType<typeof getV1GetRefundRequests>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetRefundRequests<
- TData = Awaited<ReturnType<typeof getV1GetRefundRequests>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetRefundRequests>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get refund requests
- */
-
-export function useGetV1GetRefundRequests<
- TData = Awaited<ReturnType<typeof getV1GetRefundRequests>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetRefundRequests>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetRefundRequestsQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get refund requests
- */
-export const prefetchGetV1GetRefundRequestsQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetRefundRequests>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetRefundRequests>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetRefundRequestsQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/email/email.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/email/email.ts
deleted file mode 100644
index 75a065ac66..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/email/email.ts
+++ /dev/null
@@ -1,265 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation } from "@tanstack/react-query";
-import type {
- MutationFunction,
- QueryClient,
- UseMutationOptions,
- UseMutationResult,
-} from "@tanstack/react-query";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { PostV1HandlePostmarkEmailWebhooksBody } from "../../models/postV1HandlePostmarkEmailWebhooksBody";
-
-import type { PostV1OneClickEmailUnsubscribeParams } from "../../models/postV1OneClickEmailUnsubscribeParams";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * @summary One Click Email Unsubscribe
- */
-export type postV1OneClickEmailUnsubscribeResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type postV1OneClickEmailUnsubscribeResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1OneClickEmailUnsubscribeResponseComposite =
- | postV1OneClickEmailUnsubscribeResponse200
- | postV1OneClickEmailUnsubscribeResponse422;
-
-export type postV1OneClickEmailUnsubscribeResponse =
- postV1OneClickEmailUnsubscribeResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1OneClickEmailUnsubscribeUrl = (
- params: PostV1OneClickEmailUnsubscribeParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/email/unsubscribe?${stringifiedParams}`
- : `/api/email/unsubscribe`;
-};
-
-export const postV1OneClickEmailUnsubscribe = async (
- params: PostV1OneClickEmailUnsubscribeParams,
- options?: RequestInit,
-): Promise<postV1OneClickEmailUnsubscribeResponse> => {
- return customMutator<postV1OneClickEmailUnsubscribeResponse>(
- getPostV1OneClickEmailUnsubscribeUrl(params),
- {
- ...options,
- method: "POST",
- },
- );
-};
-
-export const getPostV1OneClickEmailUnsubscribeMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1OneClickEmailUnsubscribe>>,
- TError,
- { params: PostV1OneClickEmailUnsubscribeParams },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1OneClickEmailUnsubscribe>>,
- TError,
- { params: PostV1OneClickEmailUnsubscribeParams },
- TContext
-> => {
- const mutationKey = ["postV1OneClickEmailUnsubscribe"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1OneClickEmailUnsubscribe>>,
- { params: PostV1OneClickEmailUnsubscribeParams }
- > = (props) => {
- const { params } = props ?? {};
-
- return postV1OneClickEmailUnsubscribe(params, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1OneClickEmailUnsubscribeMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1OneClickEmailUnsubscribe>>
->;
-
-export type PostV1OneClickEmailUnsubscribeMutationError = HTTPValidationError;
-
-/**
- * @summary One Click Email Unsubscribe
- */
-export const usePostV1OneClickEmailUnsubscribe = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1OneClickEmailUnsubscribe>>,
- TError,
- { params: PostV1OneClickEmailUnsubscribeParams },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1OneClickEmailUnsubscribe>>,
- TError,
- { params: PostV1OneClickEmailUnsubscribeParams },
- TContext
-> => {
- const mutationOptions =
- getPostV1OneClickEmailUnsubscribeMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Handle Postmark Email Webhooks
- */
-export type postV1HandlePostmarkEmailWebhooksResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type postV1HandlePostmarkEmailWebhooksResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1HandlePostmarkEmailWebhooksResponseComposite =
- | postV1HandlePostmarkEmailWebhooksResponse200
- | postV1HandlePostmarkEmailWebhooksResponse422;
-
-export type postV1HandlePostmarkEmailWebhooksResponse =
- postV1HandlePostmarkEmailWebhooksResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1HandlePostmarkEmailWebhooksUrl = () => {
- return `/api/email/`;
-};
-
-export const postV1HandlePostmarkEmailWebhooks = async (
- postV1HandlePostmarkEmailWebhooksBody: PostV1HandlePostmarkEmailWebhooksBody,
- options?: RequestInit,
-): Promise<postV1HandlePostmarkEmailWebhooksResponse> => {
- return customMutator<postV1HandlePostmarkEmailWebhooksResponse>(
- getPostV1HandlePostmarkEmailWebhooksUrl(),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(postV1HandlePostmarkEmailWebhooksBody),
- },
- );
-};
-
-export const getPostV1HandlePostmarkEmailWebhooksMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1HandlePostmarkEmailWebhooks>>,
- TError,
- { data: PostV1HandlePostmarkEmailWebhooksBody },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1HandlePostmarkEmailWebhooks>>,
- TError,
- { data: PostV1HandlePostmarkEmailWebhooksBody },
- TContext
-> => {
- const mutationKey = ["postV1HandlePostmarkEmailWebhooks"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1HandlePostmarkEmailWebhooks>>,
- { data: PostV1HandlePostmarkEmailWebhooksBody }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV1HandlePostmarkEmailWebhooks(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1HandlePostmarkEmailWebhooksMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1HandlePostmarkEmailWebhooks>>
->;
-export type PostV1HandlePostmarkEmailWebhooksMutationBody =
- PostV1HandlePostmarkEmailWebhooksBody;
-export type PostV1HandlePostmarkEmailWebhooksMutationError =
- HTTPValidationError;
-
-/**
- * @summary Handle Postmark Email Webhooks
- */
-export const usePostV1HandlePostmarkEmailWebhooks = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1HandlePostmarkEmailWebhooks>>,
- TError,
- { data: PostV1HandlePostmarkEmailWebhooksBody },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1HandlePostmarkEmailWebhooks>>,
- TError,
- { data: PostV1HandlePostmarkEmailWebhooksBody },
- TContext
-> => {
- const mutationOptions =
- getPostV1HandlePostmarkEmailWebhooksMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/files/files.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/files/files.ts
deleted file mode 100644
index 1af1d0cbba..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/files/files.ts
+++ /dev/null
@@ -1,184 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation } from "@tanstack/react-query";
-import type {
- MutationFunction,
- QueryClient,
- UseMutationOptions,
- UseMutationResult,
-} from "@tanstack/react-query";
-
-import type { BodyPostV1UploadFileToCloudStorage } from "../../models/bodyPostV1UploadFileToCloudStorage";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { PostV1UploadFileToCloudStorageParams } from "../../models/postV1UploadFileToCloudStorageParams";
-
-import type { UploadFileResponse } from "../../models/uploadFileResponse";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * Upload a file to cloud storage and return a storage key that can be used
-with FileStoreBlock and AgentFileInputBlock.
-
-Args:
- file: The file to upload
- user_id: The user ID
- provider: Cloud storage provider ("gcs", "s3", "azure")
- expiration_hours: Hours until file expires (1-48)
-
-Returns:
- Dict containing the cloud storage path and signed URL
- * @summary Upload file to cloud storage
- */
-export type postV1UploadFileToCloudStorageResponse200 = {
- data: UploadFileResponse;
- status: 200;
-};
-
-export type postV1UploadFileToCloudStorageResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1UploadFileToCloudStorageResponseComposite =
- | postV1UploadFileToCloudStorageResponse200
- | postV1UploadFileToCloudStorageResponse422;
-
-export type postV1UploadFileToCloudStorageResponse =
- postV1UploadFileToCloudStorageResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1UploadFileToCloudStorageUrl = (
- params?: PostV1UploadFileToCloudStorageParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/files/upload?${stringifiedParams}`
- : `/api/files/upload`;
-};
-
-export const postV1UploadFileToCloudStorage = async (
- bodyPostV1UploadFileToCloudStorage: BodyPostV1UploadFileToCloudStorage,
- params?: PostV1UploadFileToCloudStorageParams,
- options?: RequestInit,
-): Promise<postV1UploadFileToCloudStorageResponse> => {
- const formData = new FormData();
- formData.append(`file`, bodyPostV1UploadFileToCloudStorage.file);
-
- return customMutator<postV1UploadFileToCloudStorageResponse>(
- getPostV1UploadFileToCloudStorageUrl(params),
- {
- ...options,
- method: "POST",
- body: formData,
- },
- );
-};
-
-export const getPostV1UploadFileToCloudStorageMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1UploadFileToCloudStorage>>,
- TError,
- {
- data: BodyPostV1UploadFileToCloudStorage;
- params?: PostV1UploadFileToCloudStorageParams;
- },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1UploadFileToCloudStorage>>,
- TError,
- {
- data: BodyPostV1UploadFileToCloudStorage;
- params?: PostV1UploadFileToCloudStorageParams;
- },
- TContext
-> => {
- const mutationKey = ["postV1UploadFileToCloudStorage"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1UploadFileToCloudStorage>>,
- {
- data: BodyPostV1UploadFileToCloudStorage;
- params?: PostV1UploadFileToCloudStorageParams;
- }
- > = (props) => {
- const { data, params } = props ?? {};
-
- return postV1UploadFileToCloudStorage(data, params, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1UploadFileToCloudStorageMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1UploadFileToCloudStorage>>
->;
-export type PostV1UploadFileToCloudStorageMutationBody =
- BodyPostV1UploadFileToCloudStorage;
-export type PostV1UploadFileToCloudStorageMutationError = HTTPValidationError;
-
-/**
- * @summary Upload file to cloud storage
- */
-export const usePostV1UploadFileToCloudStorage = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1UploadFileToCloudStorage>>,
- TError,
- {
- data: BodyPostV1UploadFileToCloudStorage;
- params?: PostV1UploadFileToCloudStorageParams;
- },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1UploadFileToCloudStorage>>,
- TError,
- {
- data: BodyPostV1UploadFileToCloudStorage;
- params?: PostV1UploadFileToCloudStorageParams;
- },
- TContext
-> => {
- const mutationOptions =
- getPostV1UploadFileToCloudStorageMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/graphs/graphs.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/graphs/graphs.ts
deleted file mode 100644
index 69abfae260..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/graphs/graphs.ts
+++ /dev/null
@@ -1,2511 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation, useQuery } from "@tanstack/react-query";
-import type {
- DataTag,
- DefinedInitialDataOptions,
- DefinedUseQueryResult,
- MutationFunction,
- QueryClient,
- QueryFunction,
- QueryKey,
- UndefinedInitialDataOptions,
- UseMutationOptions,
- UseMutationResult,
- UseQueryOptions,
- UseQueryResult,
-} from "@tanstack/react-query";
-
-import type { BodyPostV1ExecuteGraphAgent } from "../../models/bodyPostV1ExecuteGraphAgent";
-
-import type { CreateGraph } from "../../models/createGraph";
-
-import type { DeleteGraphResponse } from "../../models/deleteGraphResponse";
-
-import type { ExecuteGraphResponse } from "../../models/executeGraphResponse";
-
-import type { GetV1GetExecutionDetails200 } from "../../models/getV1GetExecutionDetails200";
-
-import type { GetV1GetGraphVersionParams } from "../../models/getV1GetGraphVersionParams";
-
-import type { GetV1GetSpecificGraphParams } from "../../models/getV1GetSpecificGraphParams";
-
-import type { Graph } from "../../models/graph";
-
-import type { GraphExecutionMeta } from "../../models/graphExecutionMeta";
-
-import type { GraphMeta } from "../../models/graphMeta";
-
-import type { GraphModel } from "../../models/graphModel";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { PostV1ExecuteGraphAgentParams } from "../../models/postV1ExecuteGraphAgentParams";
-
-import type { PostV1StopGraphExecution200 } from "../../models/postV1StopGraphExecution200";
-
-import type { SetGraphActiveVersion } from "../../models/setGraphActiveVersion";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * @summary List user graphs
- */
-export type getV1ListUserGraphsResponse200 = {
- data: GraphMeta[];
- status: 200;
-};
-
-export type getV1ListUserGraphsResponseComposite =
- getV1ListUserGraphsResponse200;
-
-export type getV1ListUserGraphsResponse =
- getV1ListUserGraphsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1ListUserGraphsUrl = () => {
- return `/api/graphs`;
-};
-
-export const getV1ListUserGraphs = async (
- options?: RequestInit,
-): Promise<getV1ListUserGraphsResponse> => {
- return customMutator<getV1ListUserGraphsResponse>(
- getGetV1ListUserGraphsUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1ListUserGraphsQueryKey = () => {
- return [`/api/graphs`] as const;
-};
-
-export const getGetV1ListUserGraphsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1ListUserGraphs>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListUserGraphs>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey = queryOptions?.queryKey ?? getGetV1ListUserGraphsQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1ListUserGraphs>>
- > = ({ signal }) => getV1ListUserGraphs({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListUserGraphs>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1ListUserGraphsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1ListUserGraphs>>
->;
-export type GetV1ListUserGraphsQueryError = unknown;
-
-export function useGetV1ListUserGraphs<
- TData = Awaited<ReturnType<typeof getV1ListUserGraphs>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListUserGraphs>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListUserGraphs>>,
- TError,
- Awaited<ReturnType<typeof getV1ListUserGraphs>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListUserGraphs<
- TData = Awaited<ReturnType<typeof getV1ListUserGraphs>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListUserGraphs>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListUserGraphs>>,
- TError,
- Awaited<ReturnType<typeof getV1ListUserGraphs>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListUserGraphs<
- TData = Awaited<ReturnType<typeof getV1ListUserGraphs>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListUserGraphs>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary List user graphs
- */
-
-export function useGetV1ListUserGraphs<
- TData = Awaited<ReturnType<typeof getV1ListUserGraphs>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListUserGraphs>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1ListUserGraphsQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary List user graphs
- */
-export const prefetchGetV1ListUserGraphsQuery = async <
- TData = Awaited<ReturnType<typeof getV1ListUserGraphs>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListUserGraphs>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1ListUserGraphsQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Create new graph
- */
-export type postV1CreateNewGraphResponse200 = {
- data: GraphModel;
- status: 200;
-};
-
-export type postV1CreateNewGraphResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1CreateNewGraphResponseComposite =
- | postV1CreateNewGraphResponse200
- | postV1CreateNewGraphResponse422;
-
-export type postV1CreateNewGraphResponse =
- postV1CreateNewGraphResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1CreateNewGraphUrl = () => {
- return `/api/graphs`;
-};
-
-export const postV1CreateNewGraph = async (
- createGraph: CreateGraph,
- options?: RequestInit,
-): Promise<postV1CreateNewGraphResponse> => {
- return customMutator<postV1CreateNewGraphResponse>(
- getPostV1CreateNewGraphUrl(),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(createGraph),
- },
- );
-};
-
-export const getPostV1CreateNewGraphMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1CreateNewGraph>>,
- TError,
- { data: CreateGraph },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1CreateNewGraph>>,
- TError,
- { data: CreateGraph },
- TContext
-> => {
- const mutationKey = ["postV1CreateNewGraph"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1CreateNewGraph>>,
- { data: CreateGraph }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV1CreateNewGraph(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1CreateNewGraphMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1CreateNewGraph>>
->;
-export type PostV1CreateNewGraphMutationBody = CreateGraph;
-export type PostV1CreateNewGraphMutationError = HTTPValidationError;
-
-/**
- * @summary Create new graph
- */
-export const usePostV1CreateNewGraph = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1CreateNewGraph>>,
- TError,
- { data: CreateGraph },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1CreateNewGraph>>,
- TError,
- { data: CreateGraph },
- TContext
-> => {
- const mutationOptions = getPostV1CreateNewGraphMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Get graph version
- */
-export type getV1GetGraphVersionResponse200 = {
- data: GraphModel;
- status: 200;
-};
-
-export type getV1GetGraphVersionResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV1GetGraphVersionResponseComposite =
- | getV1GetGraphVersionResponse200
- | getV1GetGraphVersionResponse422;
-
-export type getV1GetGraphVersionResponse =
- getV1GetGraphVersionResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetGraphVersionUrl = (
- graphId: string,
- version: number | null,
- params?: GetV1GetGraphVersionParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/graphs/${graphId}/versions/${version}?${stringifiedParams}`
- : `/api/graphs/${graphId}/versions/${version}`;
-};
-
-export const getV1GetGraphVersion = async (
- graphId: string,
- version: number | null,
- params?: GetV1GetGraphVersionParams,
- options?: RequestInit,
-): Promise<getV1GetGraphVersionResponse> => {
- return customMutator<getV1GetGraphVersionResponse>(
- getGetV1GetGraphVersionUrl(graphId, version, params),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetGraphVersionQueryKey = (
- graphId?: string,
- version?: number | null,
- params?: GetV1GetGraphVersionParams,
-) => {
- return [
- `/api/graphs/${graphId}/versions/${version}`,
- ...(params ? [params] : []),
- ] as const;
-};
-
-export const getGetV1GetGraphVersionQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetGraphVersion>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- version: number | null,
- params?: GetV1GetGraphVersionParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetGraphVersion>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ??
- getGetV1GetGraphVersionQueryKey(graphId, version, params);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetGraphVersion>>
- > = ({ signal }) =>
- getV1GetGraphVersion(graphId, version, params, {
- signal,
- ...requestOptions,
- });
-
- return {
- queryKey,
- queryFn,
- enabled: !!(graphId && version),
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetGraphVersion>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetGraphVersionQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetGraphVersion>>
->;
-export type GetV1GetGraphVersionQueryError = HTTPValidationError;
-
-export function useGetV1GetGraphVersion<
- TData = Awaited<ReturnType<typeof getV1GetGraphVersion>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- version: number | null,
- params: undefined | GetV1GetGraphVersionParams,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetGraphVersion>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetGraphVersion>>,
- TError,
- Awaited<ReturnType<typeof getV1GetGraphVersion>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetGraphVersion<
- TData = Awaited<ReturnType<typeof getV1GetGraphVersion>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- version: number | null,
- params?: GetV1GetGraphVersionParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetGraphVersion>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetGraphVersion>>,
- TError,
- Awaited<ReturnType<typeof getV1GetGraphVersion>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetGraphVersion<
- TData = Awaited<ReturnType<typeof getV1GetGraphVersion>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- version: number | null,
- params?: GetV1GetGraphVersionParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetGraphVersion>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get graph version
- */
-
-export function useGetV1GetGraphVersion<
- TData = Awaited<ReturnType<typeof getV1GetGraphVersion>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- version: number | null,
- params?: GetV1GetGraphVersionParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetGraphVersion>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetGraphVersionQueryOptions(
- graphId,
- version,
- params,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get graph version
- */
-export const prefetchGetV1GetGraphVersionQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetGraphVersion>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- graphId: string,
- version: number | null,
- params?: GetV1GetGraphVersionParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetGraphVersion>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetGraphVersionQueryOptions(
- graphId,
- version,
- params,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Get specific graph
- */
-export type getV1GetSpecificGraphResponse200 = {
- data: GraphModel;
- status: 200;
-};
-
-export type getV1GetSpecificGraphResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV1GetSpecificGraphResponseComposite =
- | getV1GetSpecificGraphResponse200
- | getV1GetSpecificGraphResponse422;
-
-export type getV1GetSpecificGraphResponse =
- getV1GetSpecificGraphResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetSpecificGraphUrl = (
- graphId: string,
- params?: GetV1GetSpecificGraphParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/graphs/${graphId}?${stringifiedParams}`
- : `/api/graphs/${graphId}`;
-};
-
-export const getV1GetSpecificGraph = async (
- graphId: string,
- params?: GetV1GetSpecificGraphParams,
- options?: RequestInit,
-): Promise<getV1GetSpecificGraphResponse> => {
- return customMutator<getV1GetSpecificGraphResponse>(
- getGetV1GetSpecificGraphUrl(graphId, params),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetSpecificGraphQueryKey = (
- graphId?: string,
- params?: GetV1GetSpecificGraphParams,
-) => {
- return [`/api/graphs/${graphId}`, ...(params ? [params] : [])] as const;
-};
-
-export const getGetV1GetSpecificGraphQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetSpecificGraph>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- params?: GetV1GetSpecificGraphParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetSpecificGraph>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1GetSpecificGraphQueryKey(graphId, params);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetSpecificGraph>>
- > = ({ signal }) =>
- getV1GetSpecificGraph(graphId, params, { signal, ...requestOptions });
-
- return {
- queryKey,
- queryFn,
- enabled: !!graphId,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetSpecificGraph>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetSpecificGraphQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetSpecificGraph>>
->;
-export type GetV1GetSpecificGraphQueryError = HTTPValidationError;
-
-export function useGetV1GetSpecificGraph<
- TData = Awaited<ReturnType<typeof getV1GetSpecificGraph>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- params: undefined | GetV1GetSpecificGraphParams,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetSpecificGraph>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetSpecificGraph>>,
- TError,
- Awaited<ReturnType<typeof getV1GetSpecificGraph>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetSpecificGraph<
- TData = Awaited<ReturnType<typeof getV1GetSpecificGraph>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- params?: GetV1GetSpecificGraphParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetSpecificGraph>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetSpecificGraph>>,
- TError,
- Awaited<ReturnType<typeof getV1GetSpecificGraph>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetSpecificGraph<
- TData = Awaited<ReturnType<typeof getV1GetSpecificGraph>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- params?: GetV1GetSpecificGraphParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetSpecificGraph>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get specific graph
- */
-
-export function useGetV1GetSpecificGraph<
- TData = Awaited<ReturnType<typeof getV1GetSpecificGraph>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- params?: GetV1GetSpecificGraphParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetSpecificGraph>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetSpecificGraphQueryOptions(
- graphId,
- params,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get specific graph
- */
-export const prefetchGetV1GetSpecificGraphQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetSpecificGraph>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- graphId: string,
- params?: GetV1GetSpecificGraphParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetSpecificGraph>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetSpecificGraphQueryOptions(
- graphId,
- params,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Delete graph permanently
- */
-export type deleteV1DeleteGraphPermanentlyResponse200 = {
- data: DeleteGraphResponse;
- status: 200;
-};
-
-export type deleteV1DeleteGraphPermanentlyResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type deleteV1DeleteGraphPermanentlyResponseComposite =
- | deleteV1DeleteGraphPermanentlyResponse200
- | deleteV1DeleteGraphPermanentlyResponse422;
-
-export type deleteV1DeleteGraphPermanentlyResponse =
- deleteV1DeleteGraphPermanentlyResponseComposite & {
- headers: Headers;
- };
-
-export const getDeleteV1DeleteGraphPermanentlyUrl = (graphId: string) => {
- return `/api/graphs/${graphId}`;
-};
-
-export const deleteV1DeleteGraphPermanently = async (
- graphId: string,
- options?: RequestInit,
-): Promise<deleteV1DeleteGraphPermanentlyResponse> => {
- return customMutator<deleteV1DeleteGraphPermanentlyResponse>(
- getDeleteV1DeleteGraphPermanentlyUrl(graphId),
- {
- ...options,
- method: "DELETE",
- },
- );
-};
-
-export const getDeleteV1DeleteGraphPermanentlyMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV1DeleteGraphPermanently>>,
- TError,
- { graphId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof deleteV1DeleteGraphPermanently>>,
- TError,
- { graphId: string },
- TContext
-> => {
- const mutationKey = ["deleteV1DeleteGraphPermanently"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof deleteV1DeleteGraphPermanently>>,
- { graphId: string }
- > = (props) => {
- const { graphId } = props ?? {};
-
- return deleteV1DeleteGraphPermanently(graphId, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type DeleteV1DeleteGraphPermanentlyMutationResult = NonNullable<
- Awaited<ReturnType<typeof deleteV1DeleteGraphPermanently>>
->;
-
-export type DeleteV1DeleteGraphPermanentlyMutationError = HTTPValidationError;
-
-/**
- * @summary Delete graph permanently
- */
-export const useDeleteV1DeleteGraphPermanently = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV1DeleteGraphPermanently>>,
- TError,
- { graphId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof deleteV1DeleteGraphPermanently>>,
- TError,
- { graphId: string },
- TContext
-> => {
- const mutationOptions =
- getDeleteV1DeleteGraphPermanentlyMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Update graph version
- */
-export type putV1UpdateGraphVersionResponse200 = {
- data: GraphModel;
- status: 200;
-};
-
-export type putV1UpdateGraphVersionResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type putV1UpdateGraphVersionResponseComposite =
- | putV1UpdateGraphVersionResponse200
- | putV1UpdateGraphVersionResponse422;
-
-export type putV1UpdateGraphVersionResponse =
- putV1UpdateGraphVersionResponseComposite & {
- headers: Headers;
- };
-
-export const getPutV1UpdateGraphVersionUrl = (graphId: string) => {
- return `/api/graphs/${graphId}`;
-};
-
-export const putV1UpdateGraphVersion = async (
- graphId: string,
- graph: Graph,
- options?: RequestInit,
-): Promise<putV1UpdateGraphVersionResponse> => {
- return customMutator<putV1UpdateGraphVersionResponse>(
- getPutV1UpdateGraphVersionUrl(graphId),
- {
- ...options,
- method: "PUT",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(graph),
- },
- );
-};
-
-export const getPutV1UpdateGraphVersionMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof putV1UpdateGraphVersion>>,
- TError,
- { graphId: string; data: Graph },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof putV1UpdateGraphVersion>>,
- TError,
- { graphId: string; data: Graph },
- TContext
-> => {
- const mutationKey = ["putV1UpdateGraphVersion"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof putV1UpdateGraphVersion>>,
- { graphId: string; data: Graph }
- > = (props) => {
- const { graphId, data } = props ?? {};
-
- return putV1UpdateGraphVersion(graphId, data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PutV1UpdateGraphVersionMutationResult = NonNullable<
- Awaited<ReturnType<typeof putV1UpdateGraphVersion>>
->;
-export type PutV1UpdateGraphVersionMutationBody = Graph;
-export type PutV1UpdateGraphVersionMutationError = HTTPValidationError;
-
-/**
- * @summary Update graph version
- */
-export const usePutV1UpdateGraphVersion = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof putV1UpdateGraphVersion>>,
- TError,
- { graphId: string; data: Graph },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof putV1UpdateGraphVersion>>,
- TError,
- { graphId: string; data: Graph },
- TContext
-> => {
- const mutationOptions = getPutV1UpdateGraphVersionMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Get all graph versions
- */
-export type getV1GetAllGraphVersionsResponse200 = {
- data: GraphModel[];
- status: 200;
-};
-
-export type getV1GetAllGraphVersionsResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV1GetAllGraphVersionsResponseComposite =
- | getV1GetAllGraphVersionsResponse200
- | getV1GetAllGraphVersionsResponse422;
-
-export type getV1GetAllGraphVersionsResponse =
- getV1GetAllGraphVersionsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetAllGraphVersionsUrl = (graphId: string) => {
- return `/api/graphs/${graphId}/versions`;
-};
-
-export const getV1GetAllGraphVersions = async (
- graphId: string,
- options?: RequestInit,
-): Promise<getV1GetAllGraphVersionsResponse> => {
- return customMutator<getV1GetAllGraphVersionsResponse>(
- getGetV1GetAllGraphVersionsUrl(graphId),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetAllGraphVersionsQueryKey = (graphId?: string) => {
- return [`/api/graphs/${graphId}/versions`] as const;
-};
-
-export const getGetV1GetAllGraphVersionsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1GetAllGraphVersionsQueryKey(graphId);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetAllGraphVersions>>
- > = ({ signal }) =>
- getV1GetAllGraphVersions(graphId, { signal, ...requestOptions });
-
- return {
- queryKey,
- queryFn,
- enabled: !!graphId,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetAllGraphVersionsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetAllGraphVersions>>
->;
-export type GetV1GetAllGraphVersionsQueryError = HTTPValidationError;
-
-export function useGetV1GetAllGraphVersions<
- TData = Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,
- TError,
- Awaited<ReturnType<typeof getV1GetAllGraphVersions>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetAllGraphVersions<
- TData = Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,
- TError,
- Awaited<ReturnType<typeof getV1GetAllGraphVersions>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetAllGraphVersions<
- TData = Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get all graph versions
- */
-
-export function useGetV1GetAllGraphVersions<
- TData = Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetAllGraphVersionsQueryOptions(
- graphId,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get all graph versions
- */
-export const prefetchGetV1GetAllGraphVersionsQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- graphId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAllGraphVersions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetAllGraphVersionsQueryOptions(
- graphId,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Set active graph version
- */
-export type putV1SetActiveGraphVersionResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type putV1SetActiveGraphVersionResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type putV1SetActiveGraphVersionResponseComposite =
- | putV1SetActiveGraphVersionResponse200
- | putV1SetActiveGraphVersionResponse422;
-
-export type putV1SetActiveGraphVersionResponse =
- putV1SetActiveGraphVersionResponseComposite & {
- headers: Headers;
- };
-
-export const getPutV1SetActiveGraphVersionUrl = (graphId: string) => {
- return `/api/graphs/${graphId}/versions/active`;
-};
-
-export const putV1SetActiveGraphVersion = async (
- graphId: string,
- setGraphActiveVersion: SetGraphActiveVersion,
- options?: RequestInit,
-): Promise<putV1SetActiveGraphVersionResponse> => {
- return customMutator<putV1SetActiveGraphVersionResponse>(
- getPutV1SetActiveGraphVersionUrl(graphId),
- {
- ...options,
- method: "PUT",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(setGraphActiveVersion),
- },
- );
-};
-
-export const getPutV1SetActiveGraphVersionMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof putV1SetActiveGraphVersion>>,
- TError,
- { graphId: string; data: SetGraphActiveVersion },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof putV1SetActiveGraphVersion>>,
- TError,
- { graphId: string; data: SetGraphActiveVersion },
- TContext
-> => {
- const mutationKey = ["putV1SetActiveGraphVersion"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof putV1SetActiveGraphVersion>>,
- { graphId: string; data: SetGraphActiveVersion }
- > = (props) => {
- const { graphId, data } = props ?? {};
-
- return putV1SetActiveGraphVersion(graphId, data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PutV1SetActiveGraphVersionMutationResult = NonNullable<
- Awaited<ReturnType<typeof putV1SetActiveGraphVersion>>
->;
-export type PutV1SetActiveGraphVersionMutationBody = SetGraphActiveVersion;
-export type PutV1SetActiveGraphVersionMutationError = HTTPValidationError;
-
-/**
- * @summary Set active graph version
- */
-export const usePutV1SetActiveGraphVersion = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof putV1SetActiveGraphVersion>>,
- TError,
- { graphId: string; data: SetGraphActiveVersion },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof putV1SetActiveGraphVersion>>,
- TError,
- { graphId: string; data: SetGraphActiveVersion },
- TContext
-> => {
- const mutationOptions = getPutV1SetActiveGraphVersionMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Execute graph agent
- */
-export type postV1ExecuteGraphAgentResponse200 = {
- data: ExecuteGraphResponse;
- status: 200;
-};
-
-export type postV1ExecuteGraphAgentResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1ExecuteGraphAgentResponseComposite =
- | postV1ExecuteGraphAgentResponse200
- | postV1ExecuteGraphAgentResponse422;
-
-export type postV1ExecuteGraphAgentResponse =
- postV1ExecuteGraphAgentResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1ExecuteGraphAgentUrl = (
- graphId: string,
- graphVersion: number | null,
- params?: PostV1ExecuteGraphAgentParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/graphs/${graphId}/execute/${graphVersion}?${stringifiedParams}`
- : `/api/graphs/${graphId}/execute/${graphVersion}`;
-};
-
-export const postV1ExecuteGraphAgent = async (
- graphId: string,
- graphVersion: number | null,
- bodyPostV1ExecuteGraphAgent: BodyPostV1ExecuteGraphAgent,
- params?: PostV1ExecuteGraphAgentParams,
- options?: RequestInit,
-): Promise<postV1ExecuteGraphAgentResponse> => {
- return customMutator<postV1ExecuteGraphAgentResponse>(
- getPostV1ExecuteGraphAgentUrl(graphId, graphVersion, params),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(bodyPostV1ExecuteGraphAgent),
- },
- );
-};
-
-export const getPostV1ExecuteGraphAgentMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1ExecuteGraphAgent>>,
- TError,
- {
- graphId: string;
- graphVersion: number | null;
- data: BodyPostV1ExecuteGraphAgent;
- params?: PostV1ExecuteGraphAgentParams;
- },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1ExecuteGraphAgent>>,
- TError,
- {
- graphId: string;
- graphVersion: number | null;
- data: BodyPostV1ExecuteGraphAgent;
- params?: PostV1ExecuteGraphAgentParams;
- },
- TContext
-> => {
- const mutationKey = ["postV1ExecuteGraphAgent"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1ExecuteGraphAgent>>,
- {
- graphId: string;
- graphVersion: number | null;
- data: BodyPostV1ExecuteGraphAgent;
- params?: PostV1ExecuteGraphAgentParams;
- }
- > = (props) => {
- const { graphId, graphVersion, data, params } = props ?? {};
-
- return postV1ExecuteGraphAgent(
- graphId,
- graphVersion,
- data,
- params,
- requestOptions,
- );
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1ExecuteGraphAgentMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1ExecuteGraphAgent>>
->;
-export type PostV1ExecuteGraphAgentMutationBody = BodyPostV1ExecuteGraphAgent;
-export type PostV1ExecuteGraphAgentMutationError = HTTPValidationError;
-
-/**
- * @summary Execute graph agent
- */
-export const usePostV1ExecuteGraphAgent = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1ExecuteGraphAgent>>,
- TError,
- {
- graphId: string;
- graphVersion: number | null;
- data: BodyPostV1ExecuteGraphAgent;
- params?: PostV1ExecuteGraphAgentParams;
- },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1ExecuteGraphAgent>>,
- TError,
- {
- graphId: string;
- graphVersion: number | null;
- data: BodyPostV1ExecuteGraphAgent;
- params?: PostV1ExecuteGraphAgentParams;
- },
- TContext
-> => {
- const mutationOptions = getPostV1ExecuteGraphAgentMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Stop graph execution
- */
-export type postV1StopGraphExecutionResponse200 = {
- data: PostV1StopGraphExecution200;
- status: 200;
-};
-
-export type postV1StopGraphExecutionResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1StopGraphExecutionResponseComposite =
- | postV1StopGraphExecutionResponse200
- | postV1StopGraphExecutionResponse422;
-
-export type postV1StopGraphExecutionResponse =
- postV1StopGraphExecutionResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1StopGraphExecutionUrl = (
- graphId: string,
- graphExecId: string,
-) => {
- return `/api/graphs/${graphId}/executions/${graphExecId}/stop`;
-};
-
-export const postV1StopGraphExecution = async (
- graphId: string,
- graphExecId: string,
- options?: RequestInit,
-): Promise<postV1StopGraphExecutionResponse> => {
- return customMutator<postV1StopGraphExecutionResponse>(
- getPostV1StopGraphExecutionUrl(graphId, graphExecId),
- {
- ...options,
- method: "POST",
- },
- );
-};
-
-export const getPostV1StopGraphExecutionMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1StopGraphExecution>>,
- TError,
- { graphId: string; graphExecId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1StopGraphExecution>>,
- TError,
- { graphId: string; graphExecId: string },
- TContext
-> => {
- const mutationKey = ["postV1StopGraphExecution"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1StopGraphExecution>>,
- { graphId: string; graphExecId: string }
- > = (props) => {
- const { graphId, graphExecId } = props ?? {};
-
- return postV1StopGraphExecution(graphId, graphExecId, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1StopGraphExecutionMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1StopGraphExecution>>
->;
-
-export type PostV1StopGraphExecutionMutationError = HTTPValidationError;
-
-/**
- * @summary Stop graph execution
- */
-export const usePostV1StopGraphExecution = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1StopGraphExecution>>,
- TError,
- { graphId: string; graphExecId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1StopGraphExecution>>,
- TError,
- { graphId: string; graphExecId: string },
- TContext
-> => {
- const mutationOptions = getPostV1StopGraphExecutionMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Get all executions
- */
-export type getV1GetAllExecutionsResponse200 = {
- data: GraphExecutionMeta[];
- status: 200;
-};
-
-export type getV1GetAllExecutionsResponseComposite =
- getV1GetAllExecutionsResponse200;
-
-export type getV1GetAllExecutionsResponse =
- getV1GetAllExecutionsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetAllExecutionsUrl = () => {
- return `/api/executions`;
-};
-
-export const getV1GetAllExecutions = async (
- options?: RequestInit,
-): Promise<getV1GetAllExecutionsResponse> => {
- return customMutator<getV1GetAllExecutionsResponse>(
- getGetV1GetAllExecutionsUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetAllExecutionsQueryKey = () => {
- return [`/api/executions`] as const;
-};
-
-export const getGetV1GetAllExecutionsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetAllExecutions>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAllExecutions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey = queryOptions?.queryKey ?? getGetV1GetAllExecutionsQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetAllExecutions>>
- > = ({ signal }) => getV1GetAllExecutions({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAllExecutions>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetAllExecutionsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetAllExecutions>>
->;
-export type GetV1GetAllExecutionsQueryError = unknown;
-
-export function useGetV1GetAllExecutions<
- TData = Awaited<ReturnType<typeof getV1GetAllExecutions>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAllExecutions>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetAllExecutions>>,
- TError,
- Awaited<ReturnType<typeof getV1GetAllExecutions>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetAllExecutions<
- TData = Awaited<ReturnType<typeof getV1GetAllExecutions>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAllExecutions>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetAllExecutions>>,
- TError,
- Awaited<ReturnType<typeof getV1GetAllExecutions>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetAllExecutions<
- TData = Awaited<ReturnType<typeof getV1GetAllExecutions>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAllExecutions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get all executions
- */
-
-export function useGetV1GetAllExecutions<
- TData = Awaited<ReturnType<typeof getV1GetAllExecutions>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAllExecutions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetAllExecutionsQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get all executions
- */
-export const prefetchGetV1GetAllExecutionsQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetAllExecutions>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAllExecutions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetAllExecutionsQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Get graph executions
- */
-export type getV1GetGraphExecutionsResponse200 = {
- data: GraphExecutionMeta[];
- status: 200;
-};
-
-export type getV1GetGraphExecutionsResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV1GetGraphExecutionsResponseComposite =
- | getV1GetGraphExecutionsResponse200
- | getV1GetGraphExecutionsResponse422;
-
-export type getV1GetGraphExecutionsResponse =
- getV1GetGraphExecutionsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetGraphExecutionsUrl = (graphId: string) => {
- return `/api/graphs/${graphId}/executions`;
-};
-
-export const getV1GetGraphExecutions = async (
- graphId: string,
- options?: RequestInit,
-): Promise<getV1GetGraphExecutionsResponse> => {
- return customMutator<getV1GetGraphExecutionsResponse>(
- getGetV1GetGraphExecutionsUrl(graphId),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetGraphExecutionsQueryKey = (graphId?: string) => {
- return [`/api/graphs/${graphId}/executions`] as const;
-};
-
-export const getGetV1GetGraphExecutionsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetGraphExecutions>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetGraphExecutions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1GetGraphExecutionsQueryKey(graphId);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetGraphExecutions>>
- > = ({ signal }) =>
- getV1GetGraphExecutions(graphId, { signal, ...requestOptions });
-
- return {
- queryKey,
- queryFn,
- enabled: !!graphId,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetGraphExecutions>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetGraphExecutionsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetGraphExecutions>>
->;
-export type GetV1GetGraphExecutionsQueryError = HTTPValidationError;
-
-export function useGetV1GetGraphExecutions<
- TData = Awaited<ReturnType<typeof getV1GetGraphExecutions>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetGraphExecutions>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetGraphExecutions>>,
- TError,
- Awaited<ReturnType<typeof getV1GetGraphExecutions>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetGraphExecutions<
- TData = Awaited<ReturnType<typeof getV1GetGraphExecutions>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetGraphExecutions>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetGraphExecutions>>,
- TError,
- Awaited<ReturnType<typeof getV1GetGraphExecutions>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetGraphExecutions<
- TData = Awaited<ReturnType<typeof getV1GetGraphExecutions>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetGraphExecutions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get graph executions
- */
-
-export function useGetV1GetGraphExecutions<
- TData = Awaited<ReturnType<typeof getV1GetGraphExecutions>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetGraphExecutions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetGraphExecutionsQueryOptions(graphId, options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get graph executions
- */
-export const prefetchGetV1GetGraphExecutionsQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetGraphExecutions>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- graphId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetGraphExecutions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetGraphExecutionsQueryOptions(graphId, options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Get execution details
- */
-export type getV1GetExecutionDetailsResponse200 = {
- data: GetV1GetExecutionDetails200;
- status: 200;
-};
-
-export type getV1GetExecutionDetailsResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV1GetExecutionDetailsResponseComposite =
- | getV1GetExecutionDetailsResponse200
- | getV1GetExecutionDetailsResponse422;
-
-export type getV1GetExecutionDetailsResponse =
- getV1GetExecutionDetailsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetExecutionDetailsUrl = (
- graphId: string,
- graphExecId: string,
-) => {
- return `/api/graphs/${graphId}/executions/${graphExecId}`;
-};
-
-export const getV1GetExecutionDetails = async (
- graphId: string,
- graphExecId: string,
- options?: RequestInit,
-): Promise<getV1GetExecutionDetailsResponse> => {
- return customMutator<getV1GetExecutionDetailsResponse>(
- getGetV1GetExecutionDetailsUrl(graphId, graphExecId),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetExecutionDetailsQueryKey = (
- graphId?: string,
- graphExecId?: string,
-) => {
- return [`/api/graphs/${graphId}/executions/${graphExecId}`] as const;
-};
-
-export const getGetV1GetExecutionDetailsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetExecutionDetails>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- graphExecId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetExecutionDetails>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ??
- getGetV1GetExecutionDetailsQueryKey(graphId, graphExecId);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetExecutionDetails>>
- > = ({ signal }) =>
- getV1GetExecutionDetails(graphId, graphExecId, {
- signal,
- ...requestOptions,
- });
-
- return {
- queryKey,
- queryFn,
- enabled: !!(graphId && graphExecId),
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetExecutionDetails>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetExecutionDetailsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetExecutionDetails>>
->;
-export type GetV1GetExecutionDetailsQueryError = HTTPValidationError;
-
-export function useGetV1GetExecutionDetails<
- TData = Awaited<ReturnType<typeof getV1GetExecutionDetails>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- graphExecId: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetExecutionDetails>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetExecutionDetails>>,
- TError,
- Awaited<ReturnType<typeof getV1GetExecutionDetails>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetExecutionDetails<
- TData = Awaited<ReturnType<typeof getV1GetExecutionDetails>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- graphExecId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetExecutionDetails>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetExecutionDetails>>,
- TError,
- Awaited<ReturnType<typeof getV1GetExecutionDetails>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetExecutionDetails<
- TData = Awaited<ReturnType<typeof getV1GetExecutionDetails>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- graphExecId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetExecutionDetails>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get execution details
- */
-
-export function useGetV1GetExecutionDetails<
- TData = Awaited<ReturnType<typeof getV1GetExecutionDetails>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- graphExecId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetExecutionDetails>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetExecutionDetailsQueryOptions(
- graphId,
- graphExecId,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get execution details
- */
-export const prefetchGetV1GetExecutionDetailsQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetExecutionDetails>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- graphId: string,
- graphExecId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetExecutionDetails>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetExecutionDetailsQueryOptions(
- graphId,
- graphExecId,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Delete graph execution
- */
-export type deleteV1DeleteGraphExecutionResponse204 = {
- data: null;
- status: 204;
-};
-
-export type deleteV1DeleteGraphExecutionResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type deleteV1DeleteGraphExecutionResponseComposite =
- | deleteV1DeleteGraphExecutionResponse204
- | deleteV1DeleteGraphExecutionResponse422;
-
-export type deleteV1DeleteGraphExecutionResponse =
- deleteV1DeleteGraphExecutionResponseComposite & {
- headers: Headers;
- };
-
-export const getDeleteV1DeleteGraphExecutionUrl = (graphExecId: string) => {
- return `/api/executions/${graphExecId}`;
-};
-
-export const deleteV1DeleteGraphExecution = async (
- graphExecId: string,
- options?: RequestInit,
-): Promise<deleteV1DeleteGraphExecutionResponse> => {
- return customMutator<deleteV1DeleteGraphExecutionResponse>(
- getDeleteV1DeleteGraphExecutionUrl(graphExecId),
- {
- ...options,
- method: "DELETE",
- },
- );
-};
-
-export const getDeleteV1DeleteGraphExecutionMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV1DeleteGraphExecution>>,
- TError,
- { graphExecId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof deleteV1DeleteGraphExecution>>,
- TError,
- { graphExecId: string },
- TContext
-> => {
- const mutationKey = ["deleteV1DeleteGraphExecution"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof deleteV1DeleteGraphExecution>>,
- { graphExecId: string }
- > = (props) => {
- const { graphExecId } = props ?? {};
-
- return deleteV1DeleteGraphExecution(graphExecId, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type DeleteV1DeleteGraphExecutionMutationResult = NonNullable<
- Awaited<ReturnType<typeof deleteV1DeleteGraphExecution>>
->;
-
-export type DeleteV1DeleteGraphExecutionMutationError = HTTPValidationError;
-
-/**
- * @summary Delete graph execution
- */
-export const useDeleteV1DeleteGraphExecution = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV1DeleteGraphExecution>>,
- TError,
- { graphExecId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof deleteV1DeleteGraphExecution>>,
- TError,
- { graphExecId: string },
- TContext
-> => {
- const mutationOptions =
- getDeleteV1DeleteGraphExecutionMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/health/health.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/health/health.ts
deleted file mode 100644
index 8ba6685bc5..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/health/health.ts
+++ /dev/null
@@ -1,213 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useQuery } from "@tanstack/react-query";
-import type {
- DataTag,
- DefinedInitialDataOptions,
- DefinedUseQueryResult,
- QueryClient,
- QueryFunction,
- QueryKey,
- UndefinedInitialDataOptions,
- UseQueryOptions,
- UseQueryResult,
-} from "@tanstack/react-query";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * @summary Health
- */
-export type getHealthHealthResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type getHealthHealthResponseComposite = getHealthHealthResponse200;
-
-export type getHealthHealthResponse = getHealthHealthResponseComposite & {
- headers: Headers;
-};
-
-export const getGetHealthHealthUrl = () => {
- return `/health`;
-};
-
-export const getHealthHealth = async (
- options?: RequestInit,
-): Promise<getHealthHealthResponse> => {
- return customMutator<getHealthHealthResponse>(getGetHealthHealthUrl(), {
- ...options,
- method: "GET",
- });
-};
-
-export const getGetHealthHealthQueryKey = () => {
- return [`/health`] as const;
-};
-
-export const getGetHealthHealthQueryOptions = <
- TData = Awaited<ReturnType<typeof getHealthHealth>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<Awaited<ReturnType<typeof getHealthHealth>>, TError, TData>
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey = queryOptions?.queryKey ?? getGetHealthHealthQueryKey();
-
- const queryFn: QueryFunction<Awaited<ReturnType<typeof getHealthHealth>>> = ({
- signal,
- }) => getHealthHealth({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getHealthHealth>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetHealthHealthQueryResult = NonNullable<
- Awaited<ReturnType<typeof getHealthHealth>>
->;
-export type GetHealthHealthQueryError = unknown;
-
-export function useGetHealthHealth<
- TData = Awaited<ReturnType<typeof getHealthHealth>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getHealthHealth>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getHealthHealth>>,
- TError,
- Awaited<ReturnType<typeof getHealthHealth>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetHealthHealth<
- TData = Awaited<ReturnType<typeof getHealthHealth>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getHealthHealth>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getHealthHealth>>,
- TError,
- Awaited<ReturnType<typeof getHealthHealth>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetHealthHealth<
- TData = Awaited<ReturnType<typeof getHealthHealth>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getHealthHealth>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Health
- */
-
-export function useGetHealthHealth<
- TData = Awaited<ReturnType<typeof getHealthHealth>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getHealthHealth>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetHealthHealthQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Health
- */
-export const prefetchGetHealthHealthQuery = async <
- TData = Awaited<ReturnType<typeof getHealthHealth>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getHealthHealth>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetHealthHealthQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/integrations/integrations.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/integrations/integrations.ts
deleted file mode 100644
index 3e955fb43d..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/integrations/integrations.ts
+++ /dev/null
@@ -1,2555 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation, useQuery } from "@tanstack/react-query";
-import type {
- DataTag,
- DefinedInitialDataOptions,
- DefinedUseQueryResult,
- MutationFunction,
- QueryClient,
- QueryFunction,
- QueryKey,
- UndefinedInitialDataOptions,
- UseMutationOptions,
- UseMutationResult,
- UseQueryOptions,
- UseQueryResult,
-} from "@tanstack/react-query";
-
-import type { AyrshareSSOResponse } from "../../models/ayrshareSSOResponse";
-
-import type { BodyPostV1Callback } from "../../models/bodyPostV1Callback";
-
-import type { CredentialsMetaResponse } from "../../models/credentialsMetaResponse";
-
-import type { DeleteV1DeleteCredentials200 } from "../../models/deleteV1DeleteCredentials200";
-
-import type { DeleteV1DeleteCredentialsParams } from "../../models/deleteV1DeleteCredentialsParams";
-
-import type { GetV1GetCredential200 } from "../../models/getV1GetCredential200";
-
-import type { GetV1LoginParams } from "../../models/getV1LoginParams";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { LoginResponse } from "../../models/loginResponse";
-
-import type { PostV1CreateCredentials201 } from "../../models/postV1CreateCredentials201";
-
-import type { PostV1CreateCredentialsBody } from "../../models/postV1CreateCredentialsBody";
-
-import type { ProviderConstants } from "../../models/providerConstants";
-
-import type { ProviderEnumResponse } from "../../models/providerEnumResponse";
-
-import type { ProviderNamesResponse } from "../../models/providerNamesResponse";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * @summary Login
- */
-export type getV1LoginResponse200 = {
- data: LoginResponse;
- status: 200;
-};
-
-export type getV1LoginResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV1LoginResponseComposite =
- | getV1LoginResponse200
- | getV1LoginResponse422;
-
-export type getV1LoginResponse = getV1LoginResponseComposite & {
- headers: Headers;
-};
-
-export const getGetV1LoginUrl = (
- provider: string,
- params?: GetV1LoginParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/integrations/${provider}/login?${stringifiedParams}`
- : `/api/integrations/${provider}/login`;
-};
-
-export const getV1Login = async (
- provider: string,
- params?: GetV1LoginParams,
- options?: RequestInit,
-): Promise<getV1LoginResponse> => {
- return customMutator<getV1LoginResponse>(getGetV1LoginUrl(provider, params), {
- ...options,
- method: "GET",
- });
-};
-
-export const getGetV1LoginQueryKey = (
- provider?: string,
- params?: GetV1LoginParams,
-) => {
- return [
- `/api/integrations/${provider}/login`,
- ...(params ? [params] : []),
- ] as const;
-};
-
-export const getGetV1LoginQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1Login>>,
- TError = HTTPValidationError,
->(
- provider: string,
- params?: GetV1LoginParams,
- options?: {
- query?: Partial<
- UseQueryOptions<Awaited<ReturnType<typeof getV1Login>>, TError, TData>
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1LoginQueryKey(provider, params);
-
- const queryFn: QueryFunction<Awaited<ReturnType<typeof getV1Login>>> = ({
- signal,
- }) => getV1Login(provider, params, { signal, ...requestOptions });
-
- return {
- queryKey,
- queryFn,
- enabled: !!provider,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1Login>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1LoginQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1Login>>
->;
-export type GetV1LoginQueryError = HTTPValidationError;
-
-export function useGetV1Login<
- TData = Awaited<ReturnType<typeof getV1Login>>,
- TError = HTTPValidationError,
->(
- provider: string,
- params: undefined | GetV1LoginParams,
- options: {
- query: Partial<
- UseQueryOptions<Awaited<ReturnType<typeof getV1Login>>, TError, TData>
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1Login>>,
- TError,
- Awaited<ReturnType<typeof getV1Login>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1Login<
- TData = Awaited<ReturnType<typeof getV1Login>>,
- TError = HTTPValidationError,
->(
- provider: string,
- params?: GetV1LoginParams,
- options?: {
- query?: Partial<
- UseQueryOptions<Awaited<ReturnType<typeof getV1Login>>, TError, TData>
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1Login>>,
- TError,
- Awaited<ReturnType<typeof getV1Login>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1Login<
- TData = Awaited<ReturnType<typeof getV1Login>>,
- TError = HTTPValidationError,
->(
- provider: string,
- params?: GetV1LoginParams,
- options?: {
- query?: Partial<
- UseQueryOptions<Awaited<ReturnType<typeof getV1Login>>, TError, TData>
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Login
- */
-
-export function useGetV1Login<
- TData = Awaited<ReturnType<typeof getV1Login>>,
- TError = HTTPValidationError,
->(
- provider: string,
- params?: GetV1LoginParams,
- options?: {
- query?: Partial<
- UseQueryOptions<Awaited<ReturnType<typeof getV1Login>>, TError, TData>
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1LoginQueryOptions(provider, params, options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Login
- */
-export const prefetchGetV1LoginQuery = async <
- TData = Awaited<ReturnType<typeof getV1Login>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- provider: string,
- params?: GetV1LoginParams,
- options?: {
- query?: Partial<
- UseQueryOptions<Awaited<ReturnType<typeof getV1Login>>, TError, TData>
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1LoginQueryOptions(provider, params, options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Callback
- */
-export type postV1CallbackResponse200 = {
- data: CredentialsMetaResponse;
- status: 200;
-};
-
-export type postV1CallbackResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1CallbackResponseComposite =
- | postV1CallbackResponse200
- | postV1CallbackResponse422;
-
-export type postV1CallbackResponse = postV1CallbackResponseComposite & {
- headers: Headers;
-};
-
-export const getPostV1CallbackUrl = (provider: string) => {
- return `/api/integrations/${provider}/callback`;
-};
-
-export const postV1Callback = async (
- provider: string,
- bodyPostV1Callback: BodyPostV1Callback,
- options?: RequestInit,
-): Promise<postV1CallbackResponse> => {
- return customMutator<postV1CallbackResponse>(getPostV1CallbackUrl(provider), {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(bodyPostV1Callback),
- });
-};
-
-export const getPostV1CallbackMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1Callback>>,
- TError,
- { provider: string; data: BodyPostV1Callback },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1Callback>>,
- TError,
- { provider: string; data: BodyPostV1Callback },
- TContext
-> => {
- const mutationKey = ["postV1Callback"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1Callback>>,
- { provider: string; data: BodyPostV1Callback }
- > = (props) => {
- const { provider, data } = props ?? {};
-
- return postV1Callback(provider, data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1CallbackMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1Callback>>
->;
-export type PostV1CallbackMutationBody = BodyPostV1Callback;
-export type PostV1CallbackMutationError = HTTPValidationError;
-
-/**
- * @summary Callback
- */
-export const usePostV1Callback = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1Callback>>,
- TError,
- { provider: string; data: BodyPostV1Callback },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1Callback>>,
- TError,
- { provider: string; data: BodyPostV1Callback },
- TContext
-> => {
- const mutationOptions = getPostV1CallbackMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary List Credentials
- */
-export type getV1ListCredentialsResponse200 = {
- data: CredentialsMetaResponse[];
- status: 200;
-};
-
-export type getV1ListCredentialsResponseComposite =
- getV1ListCredentialsResponse200;
-
-export type getV1ListCredentialsResponse =
- getV1ListCredentialsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1ListCredentialsUrl = () => {
- return `/api/integrations/credentials`;
-};
-
-export const getV1ListCredentials = async (
- options?: RequestInit,
-): Promise<getV1ListCredentialsResponse> => {
- return customMutator<getV1ListCredentialsResponse>(
- getGetV1ListCredentialsUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1ListCredentialsQueryKey = () => {
- return [`/api/integrations/credentials`] as const;
-};
-
-export const getGetV1ListCredentialsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1ListCredentials>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListCredentials>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey = queryOptions?.queryKey ?? getGetV1ListCredentialsQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1ListCredentials>>
- > = ({ signal }) => getV1ListCredentials({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListCredentials>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1ListCredentialsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1ListCredentials>>
->;
-export type GetV1ListCredentialsQueryError = unknown;
-
-export function useGetV1ListCredentials<
- TData = Awaited<ReturnType<typeof getV1ListCredentials>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListCredentials>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListCredentials>>,
- TError,
- Awaited<ReturnType<typeof getV1ListCredentials>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListCredentials<
- TData = Awaited<ReturnType<typeof getV1ListCredentials>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListCredentials>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListCredentials>>,
- TError,
- Awaited<ReturnType<typeof getV1ListCredentials>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListCredentials<
- TData = Awaited<ReturnType<typeof getV1ListCredentials>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListCredentials>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary List Credentials
- */
-
-export function useGetV1ListCredentials<
- TData = Awaited<ReturnType<typeof getV1ListCredentials>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListCredentials>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1ListCredentialsQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary List Credentials
- */
-export const prefetchGetV1ListCredentialsQuery = async <
- TData = Awaited<ReturnType<typeof getV1ListCredentials>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListCredentials>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1ListCredentialsQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary List Credentials By Provider
- */
-export type getV1ListCredentialsByProviderResponse200 = {
- data: CredentialsMetaResponse[];
- status: 200;
-};
-
-export type getV1ListCredentialsByProviderResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV1ListCredentialsByProviderResponseComposite =
- | getV1ListCredentialsByProviderResponse200
- | getV1ListCredentialsByProviderResponse422;
-
-export type getV1ListCredentialsByProviderResponse =
- getV1ListCredentialsByProviderResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1ListCredentialsByProviderUrl = (provider: string) => {
- return `/api/integrations/${provider}/credentials`;
-};
-
-export const getV1ListCredentialsByProvider = async (
- provider: string,
- options?: RequestInit,
-): Promise<getV1ListCredentialsByProviderResponse> => {
- return customMutator<getV1ListCredentialsByProviderResponse>(
- getGetV1ListCredentialsByProviderUrl(provider),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1ListCredentialsByProviderQueryKey = (
- provider?: string,
-) => {
- return [`/api/integrations/${provider}/credentials`] as const;
-};
-
-export const getGetV1ListCredentialsByProviderQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,
- TError = HTTPValidationError,
->(
- provider: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ??
- getGetV1ListCredentialsByProviderQueryKey(provider);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>
- > = ({ signal }) =>
- getV1ListCredentialsByProvider(provider, { signal, ...requestOptions });
-
- return {
- queryKey,
- queryFn,
- enabled: !!provider,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1ListCredentialsByProviderQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>
->;
-export type GetV1ListCredentialsByProviderQueryError = HTTPValidationError;
-
-export function useGetV1ListCredentialsByProvider<
- TData = Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,
- TError = HTTPValidationError,
->(
- provider: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,
- TError,
- Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListCredentialsByProvider<
- TData = Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,
- TError = HTTPValidationError,
->(
- provider: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,
- TError,
- Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListCredentialsByProvider<
- TData = Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,
- TError = HTTPValidationError,
->(
- provider: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary List Credentials By Provider
- */
-
-export function useGetV1ListCredentialsByProvider<
- TData = Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,
- TError = HTTPValidationError,
->(
- provider: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1ListCredentialsByProviderQueryOptions(
- provider,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary List Credentials By Provider
- */
-export const prefetchGetV1ListCredentialsByProviderQuery = async <
- TData = Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- provider: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListCredentialsByProvider>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1ListCredentialsByProviderQueryOptions(
- provider,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Create Credentials
- */
-export type postV1CreateCredentialsResponse201 = {
- data: PostV1CreateCredentials201;
- status: 201;
-};
-
-export type postV1CreateCredentialsResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1CreateCredentialsResponseComposite =
- | postV1CreateCredentialsResponse201
- | postV1CreateCredentialsResponse422;
-
-export type postV1CreateCredentialsResponse =
- postV1CreateCredentialsResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1CreateCredentialsUrl = (provider: string) => {
- return `/api/integrations/${provider}/credentials`;
-};
-
-export const postV1CreateCredentials = async (
- provider: string,
- postV1CreateCredentialsBody: PostV1CreateCredentialsBody,
- options?: RequestInit,
-): Promise<postV1CreateCredentialsResponse> => {
- return customMutator<postV1CreateCredentialsResponse>(
- getPostV1CreateCredentialsUrl(provider),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(postV1CreateCredentialsBody),
- },
- );
-};
-
-export const getPostV1CreateCredentialsMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1CreateCredentials>>,
- TError,
- { provider: string; data: PostV1CreateCredentialsBody },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1CreateCredentials>>,
- TError,
- { provider: string; data: PostV1CreateCredentialsBody },
- TContext
-> => {
- const mutationKey = ["postV1CreateCredentials"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1CreateCredentials>>,
- { provider: string; data: PostV1CreateCredentialsBody }
- > = (props) => {
- const { provider, data } = props ?? {};
-
- return postV1CreateCredentials(provider, data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1CreateCredentialsMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1CreateCredentials>>
->;
-export type PostV1CreateCredentialsMutationBody = PostV1CreateCredentialsBody;
-export type PostV1CreateCredentialsMutationError = HTTPValidationError;
-
-/**
- * @summary Create Credentials
- */
-export const usePostV1CreateCredentials = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1CreateCredentials>>,
- TError,
- { provider: string; data: PostV1CreateCredentialsBody },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1CreateCredentials>>,
- TError,
- { provider: string; data: PostV1CreateCredentialsBody },
- TContext
-> => {
- const mutationOptions = getPostV1CreateCredentialsMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Get Credential
- */
-export type getV1GetCredentialResponse200 = {
- data: GetV1GetCredential200;
- status: 200;
-};
-
-export type getV1GetCredentialResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV1GetCredentialResponseComposite =
- | getV1GetCredentialResponse200
- | getV1GetCredentialResponse422;
-
-export type getV1GetCredentialResponse = getV1GetCredentialResponseComposite & {
- headers: Headers;
-};
-
-export const getGetV1GetCredentialUrl = (provider: string, credId: string) => {
- return `/api/integrations/${provider}/credentials/${credId}`;
-};
-
-export const getV1GetCredential = async (
- provider: string,
- credId: string,
- options?: RequestInit,
-): Promise<getV1GetCredentialResponse> => {
- return customMutator<getV1GetCredentialResponse>(
- getGetV1GetCredentialUrl(provider, credId),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetCredentialQueryKey = (
- provider?: string,
- credId?: string,
-) => {
- return [`/api/integrations/${provider}/credentials/${credId}`] as const;
-};
-
-export const getGetV1GetCredentialQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetCredential>>,
- TError = HTTPValidationError,
->(
- provider: string,
- credId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetCredential>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1GetCredentialQueryKey(provider, credId);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetCredential>>
- > = ({ signal }) =>
- getV1GetCredential(provider, credId, { signal, ...requestOptions });
-
- return {
- queryKey,
- queryFn,
- enabled: !!(provider && credId),
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetCredential>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetCredentialQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetCredential>>
->;
-export type GetV1GetCredentialQueryError = HTTPValidationError;
-
-export function useGetV1GetCredential<
- TData = Awaited<ReturnType<typeof getV1GetCredential>>,
- TError = HTTPValidationError,
->(
- provider: string,
- credId: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetCredential>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetCredential>>,
- TError,
- Awaited<ReturnType<typeof getV1GetCredential>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetCredential<
- TData = Awaited<ReturnType<typeof getV1GetCredential>>,
- TError = HTTPValidationError,
->(
- provider: string,
- credId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetCredential>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetCredential>>,
- TError,
- Awaited<ReturnType<typeof getV1GetCredential>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetCredential<
- TData = Awaited<ReturnType<typeof getV1GetCredential>>,
- TError = HTTPValidationError,
->(
- provider: string,
- credId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetCredential>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get Credential
- */
-
-export function useGetV1GetCredential<
- TData = Awaited<ReturnType<typeof getV1GetCredential>>,
- TError = HTTPValidationError,
->(
- provider: string,
- credId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetCredential>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetCredentialQueryOptions(
- provider,
- credId,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get Credential
- */
-export const prefetchGetV1GetCredentialQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetCredential>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- provider: string,
- credId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetCredential>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetCredentialQueryOptions(
- provider,
- credId,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Delete Credentials
- */
-export type deleteV1DeleteCredentialsResponse200 = {
- data: DeleteV1DeleteCredentials200;
- status: 200;
-};
-
-export type deleteV1DeleteCredentialsResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type deleteV1DeleteCredentialsResponseComposite =
- | deleteV1DeleteCredentialsResponse200
- | deleteV1DeleteCredentialsResponse422;
-
-export type deleteV1DeleteCredentialsResponse =
- deleteV1DeleteCredentialsResponseComposite & {
- headers: Headers;
- };
-
-export const getDeleteV1DeleteCredentialsUrl = (
- provider: string,
- credId: string,
- params?: DeleteV1DeleteCredentialsParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/integrations/${provider}/credentials/${credId}?${stringifiedParams}`
- : `/api/integrations/${provider}/credentials/${credId}`;
-};
-
-export const deleteV1DeleteCredentials = async (
- provider: string,
- credId: string,
- params?: DeleteV1DeleteCredentialsParams,
- options?: RequestInit,
-): Promise<deleteV1DeleteCredentialsResponse> => {
- return customMutator<deleteV1DeleteCredentialsResponse>(
- getDeleteV1DeleteCredentialsUrl(provider, credId, params),
- {
- ...options,
- method: "DELETE",
- },
- );
-};
-
-export const getDeleteV1DeleteCredentialsMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV1DeleteCredentials>>,
- TError,
- {
- provider: string;
- credId: string;
- params?: DeleteV1DeleteCredentialsParams;
- },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof deleteV1DeleteCredentials>>,
- TError,
- {
- provider: string;
- credId: string;
- params?: DeleteV1DeleteCredentialsParams;
- },
- TContext
-> => {
- const mutationKey = ["deleteV1DeleteCredentials"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof deleteV1DeleteCredentials>>,
- {
- provider: string;
- credId: string;
- params?: DeleteV1DeleteCredentialsParams;
- }
- > = (props) => {
- const { provider, credId, params } = props ?? {};
-
- return deleteV1DeleteCredentials(provider, credId, params, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type DeleteV1DeleteCredentialsMutationResult = NonNullable<
- Awaited<ReturnType<typeof deleteV1DeleteCredentials>>
->;
-
-export type DeleteV1DeleteCredentialsMutationError = HTTPValidationError;
-
-/**
- * @summary Delete Credentials
- */
-export const useDeleteV1DeleteCredentials = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV1DeleteCredentials>>,
- TError,
- {
- provider: string;
- credId: string;
- params?: DeleteV1DeleteCredentialsParams;
- },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof deleteV1DeleteCredentials>>,
- TError,
- {
- provider: string;
- credId: string;
- params?: DeleteV1DeleteCredentialsParams;
- },
- TContext
-> => {
- const mutationOptions = getDeleteV1DeleteCredentialsMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Webhook Ingress Generic
- */
-export type postV1WebhookIngressGenericResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type postV1WebhookIngressGenericResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1WebhookIngressGenericResponseComposite =
- | postV1WebhookIngressGenericResponse200
- | postV1WebhookIngressGenericResponse422;
-
-export type postV1WebhookIngressGenericResponse =
- postV1WebhookIngressGenericResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1WebhookIngressGenericUrl = (
- provider: string,
- webhookId: string,
-) => {
- return `/api/integrations/${provider}/webhooks/${webhookId}/ingress`;
-};
-
-export const postV1WebhookIngressGeneric = async (
- provider: string,
- webhookId: string,
- options?: RequestInit,
-): Promise<postV1WebhookIngressGenericResponse> => {
- return customMutator<postV1WebhookIngressGenericResponse>(
- getPostV1WebhookIngressGenericUrl(provider, webhookId),
- {
- ...options,
- method: "POST",
- },
- );
-};
-
-export const getPostV1WebhookIngressGenericMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1WebhookIngressGeneric>>,
- TError,
- { provider: string; webhookId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1WebhookIngressGeneric>>,
- TError,
- { provider: string; webhookId: string },
- TContext
-> => {
- const mutationKey = ["postV1WebhookIngressGeneric"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1WebhookIngressGeneric>>,
- { provider: string; webhookId: string }
- > = (props) => {
- const { provider, webhookId } = props ?? {};
-
- return postV1WebhookIngressGeneric(provider, webhookId, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1WebhookIngressGenericMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1WebhookIngressGeneric>>
->;
-
-export type PostV1WebhookIngressGenericMutationError = HTTPValidationError;
-
-/**
- * @summary Webhook Ingress Generic
- */
-export const usePostV1WebhookIngressGeneric = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1WebhookIngressGeneric>>,
- TError,
- { provider: string; webhookId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1WebhookIngressGeneric>>,
- TError,
- { provider: string; webhookId: string },
- TContext
-> => {
- const mutationOptions =
- getPostV1WebhookIngressGenericMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Webhook Ping
- */
-export type postV1WebhookPingResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type postV1WebhookPingResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1WebhookPingResponseComposite =
- | postV1WebhookPingResponse200
- | postV1WebhookPingResponse422;
-
-export type postV1WebhookPingResponse = postV1WebhookPingResponseComposite & {
- headers: Headers;
-};
-
-export const getPostV1WebhookPingUrl = (webhookId: string) => {
- return `/api/integrations/webhooks/${webhookId}/ping`;
-};
-
-export const postV1WebhookPing = async (
- webhookId: string,
- options?: RequestInit,
-): Promise<postV1WebhookPingResponse> => {
- return customMutator<postV1WebhookPingResponse>(
- getPostV1WebhookPingUrl(webhookId),
- {
- ...options,
- method: "POST",
- },
- );
-};
-
-export const getPostV1WebhookPingMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1WebhookPing>>,
- TError,
- { webhookId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1WebhookPing>>,
- TError,
- { webhookId: string },
- TContext
-> => {
- const mutationKey = ["postV1WebhookPing"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1WebhookPing>>,
- { webhookId: string }
- > = (props) => {
- const { webhookId } = props ?? {};
-
- return postV1WebhookPing(webhookId, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1WebhookPingMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1WebhookPing>>
->;
-
-export type PostV1WebhookPingMutationError = HTTPValidationError;
-
-/**
- * @summary Webhook Ping
- */
-export const usePostV1WebhookPing = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1WebhookPing>>,
- TError,
- { webhookId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1WebhookPing>>,
- TError,
- { webhookId: string },
- TContext
-> => {
- const mutationOptions = getPostV1WebhookPingMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * Generate an SSO URL for Ayrshare social media integration.
-
-Returns:
- dict: Contains the SSO URL for Ayrshare integration
- * @summary Get Ayrshare Sso Url
- */
-export type getV1GetAyrshareSsoUrlResponse200 = {
- data: AyrshareSSOResponse;
- status: 200;
-};
-
-export type getV1GetAyrshareSsoUrlResponseComposite =
- getV1GetAyrshareSsoUrlResponse200;
-
-export type getV1GetAyrshareSsoUrlResponse =
- getV1GetAyrshareSsoUrlResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetAyrshareSsoUrlUrl = () => {
- return `/api/integrations/ayrshare/sso_url`;
-};
-
-export const getV1GetAyrshareSsoUrl = async (
- options?: RequestInit,
-): Promise<getV1GetAyrshareSsoUrlResponse> => {
- return customMutator<getV1GetAyrshareSsoUrlResponse>(
- getGetV1GetAyrshareSsoUrlUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetAyrshareSsoUrlQueryKey = () => {
- return [`/api/integrations/ayrshare/sso_url`] as const;
-};
-
-export const getGetV1GetAyrshareSsoUrlQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1GetAyrshareSsoUrlQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>
- > = ({ signal }) => getV1GetAyrshareSsoUrl({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetAyrshareSsoUrlQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>
->;
-export type GetV1GetAyrshareSsoUrlQueryError = unknown;
-
-export function useGetV1GetAyrshareSsoUrl<
- TData = Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>,
- TError,
- Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetAyrshareSsoUrl<
- TData = Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>,
- TError,
- Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetAyrshareSsoUrl<
- TData = Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get Ayrshare Sso Url
- */
-
-export function useGetV1GetAyrshareSsoUrl<
- TData = Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetAyrshareSsoUrlQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get Ayrshare Sso Url
- */
-export const prefetchGetV1GetAyrshareSsoUrlQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetAyrshareSsoUrl>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetAyrshareSsoUrlQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Get a list of all available provider names.
-
-Returns both statically defined providers (from ProviderName enum)
-and dynamically registered providers (from SDK decorators).
-
-Note: The complete list of provider names is also available as a constant
-in the generated TypeScript client via PROVIDER_NAMES.
- * @summary List Providers
- */
-export type getV1ListProvidersResponse200 = {
- data: string[];
- status: 200;
-};
-
-export type getV1ListProvidersResponseComposite = getV1ListProvidersResponse200;
-
-export type getV1ListProvidersResponse = getV1ListProvidersResponseComposite & {
- headers: Headers;
-};
-
-export const getGetV1ListProvidersUrl = () => {
- return `/api/integrations/providers`;
-};
-
-export const getV1ListProviders = async (
- options?: RequestInit,
-): Promise<getV1ListProvidersResponse> => {
- return customMutator<getV1ListProvidersResponse>(getGetV1ListProvidersUrl(), {
- ...options,
- method: "GET",
- });
-};
-
-export const getGetV1ListProvidersQueryKey = () => {
- return [`/api/integrations/providers`] as const;
-};
-
-export const getGetV1ListProvidersQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1ListProviders>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListProviders>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey = queryOptions?.queryKey ?? getGetV1ListProvidersQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1ListProviders>>
- > = ({ signal }) => getV1ListProviders({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListProviders>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1ListProvidersQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1ListProviders>>
->;
-export type GetV1ListProvidersQueryError = unknown;
-
-export function useGetV1ListProviders<
- TData = Awaited<ReturnType<typeof getV1ListProviders>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListProviders>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListProviders>>,
- TError,
- Awaited<ReturnType<typeof getV1ListProviders>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListProviders<
- TData = Awaited<ReturnType<typeof getV1ListProviders>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListProviders>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListProviders>>,
- TError,
- Awaited<ReturnType<typeof getV1ListProviders>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListProviders<
- TData = Awaited<ReturnType<typeof getV1ListProviders>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListProviders>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary List Providers
- */
-
-export function useGetV1ListProviders<
- TData = Awaited<ReturnType<typeof getV1ListProviders>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListProviders>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1ListProvidersQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary List Providers
- */
-export const prefetchGetV1ListProvidersQuery = async <
- TData = Awaited<ReturnType<typeof getV1ListProviders>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListProviders>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1ListProvidersQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Get all provider names in a structured format.
-
-This endpoint is specifically designed to expose the provider names
-in the OpenAPI schema so that code generators like Orval can create
-appropriate TypeScript constants.
- * @summary Get Provider Names
- */
-export type getV1GetProviderNamesResponse200 = {
- data: ProviderNamesResponse;
- status: 200;
-};
-
-export type getV1GetProviderNamesResponseComposite =
- getV1GetProviderNamesResponse200;
-
-export type getV1GetProviderNamesResponse =
- getV1GetProviderNamesResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetProviderNamesUrl = () => {
- return `/api/integrations/providers/names`;
-};
-
-export const getV1GetProviderNames = async (
- options?: RequestInit,
-): Promise<getV1GetProviderNamesResponse> => {
- return customMutator<getV1GetProviderNamesResponse>(
- getGetV1GetProviderNamesUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetProviderNamesQueryKey = () => {
- return [`/api/integrations/providers/names`] as const;
-};
-
-export const getGetV1GetProviderNamesQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetProviderNames>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderNames>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey = queryOptions?.queryKey ?? getGetV1GetProviderNamesQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetProviderNames>>
- > = ({ signal }) => getV1GetProviderNames({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderNames>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetProviderNamesQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetProviderNames>>
->;
-export type GetV1GetProviderNamesQueryError = unknown;
-
-export function useGetV1GetProviderNames<
- TData = Awaited<ReturnType<typeof getV1GetProviderNames>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderNames>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetProviderNames>>,
- TError,
- Awaited<ReturnType<typeof getV1GetProviderNames>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetProviderNames<
- TData = Awaited<ReturnType<typeof getV1GetProviderNames>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderNames>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetProviderNames>>,
- TError,
- Awaited<ReturnType<typeof getV1GetProviderNames>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetProviderNames<
- TData = Awaited<ReturnType<typeof getV1GetProviderNames>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderNames>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get Provider Names
- */
-
-export function useGetV1GetProviderNames<
- TData = Awaited<ReturnType<typeof getV1GetProviderNames>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderNames>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetProviderNamesQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get Provider Names
- */
-export const prefetchGetV1GetProviderNamesQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetProviderNames>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderNames>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetProviderNamesQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Get provider names as constants.
-
-This endpoint returns a model with provider names as constants,
-specifically designed for OpenAPI code generation tools to create
-TypeScript constants.
- * @summary Get Provider Constants
- */
-export type getV1GetProviderConstantsResponse200 = {
- data: ProviderConstants;
- status: 200;
-};
-
-export type getV1GetProviderConstantsResponseComposite =
- getV1GetProviderConstantsResponse200;
-
-export type getV1GetProviderConstantsResponse =
- getV1GetProviderConstantsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetProviderConstantsUrl = () => {
- return `/api/integrations/providers/constants`;
-};
-
-export const getV1GetProviderConstants = async (
- options?: RequestInit,
-): Promise<getV1GetProviderConstantsResponse> => {
- return customMutator<getV1GetProviderConstantsResponse>(
- getGetV1GetProviderConstantsUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetProviderConstantsQueryKey = () => {
- return [`/api/integrations/providers/constants`] as const;
-};
-
-export const getGetV1GetProviderConstantsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetProviderConstants>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderConstants>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1GetProviderConstantsQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetProviderConstants>>
- > = ({ signal }) => getV1GetProviderConstants({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderConstants>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetProviderConstantsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetProviderConstants>>
->;
-export type GetV1GetProviderConstantsQueryError = unknown;
-
-export function useGetV1GetProviderConstants<
- TData = Awaited<ReturnType<typeof getV1GetProviderConstants>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderConstants>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetProviderConstants>>,
- TError,
- Awaited<ReturnType<typeof getV1GetProviderConstants>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetProviderConstants<
- TData = Awaited<ReturnType<typeof getV1GetProviderConstants>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderConstants>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetProviderConstants>>,
- TError,
- Awaited<ReturnType<typeof getV1GetProviderConstants>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetProviderConstants<
- TData = Awaited<ReturnType<typeof getV1GetProviderConstants>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderConstants>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get Provider Constants
- */
-
-export function useGetV1GetProviderConstants<
- TData = Awaited<ReturnType<typeof getV1GetProviderConstants>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderConstants>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetProviderConstantsQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get Provider Constants
- */
-export const prefetchGetV1GetProviderConstantsQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetProviderConstants>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderConstants>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetProviderConstantsQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Example endpoint that uses the CompleteProviderNames enum.
-
-This endpoint exists to ensure that the CompleteProviderNames enum is included
-in the OpenAPI schema, which will cause Orval to generate it as a
-TypeScript enum/constant.
- * @summary Get Provider Enum Example
- */
-export type getV1GetProviderEnumExampleResponse200 = {
- data: ProviderEnumResponse;
- status: 200;
-};
-
-export type getV1GetProviderEnumExampleResponseComposite =
- getV1GetProviderEnumExampleResponse200;
-
-export type getV1GetProviderEnumExampleResponse =
- getV1GetProviderEnumExampleResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetProviderEnumExampleUrl = () => {
- return `/api/integrations/providers/enum-example`;
-};
-
-export const getV1GetProviderEnumExample = async (
- options?: RequestInit,
-): Promise<getV1GetProviderEnumExampleResponse> => {
- return customMutator<getV1GetProviderEnumExampleResponse>(
- getGetV1GetProviderEnumExampleUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetProviderEnumExampleQueryKey = () => {
- return [`/api/integrations/providers/enum-example`] as const;
-};
-
-export const getGetV1GetProviderEnumExampleQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1GetProviderEnumExampleQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetProviderEnumExample>>
- > = ({ signal }) =>
- getV1GetProviderEnumExample({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetProviderEnumExampleQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetProviderEnumExample>>
->;
-export type GetV1GetProviderEnumExampleQueryError = unknown;
-
-export function useGetV1GetProviderEnumExample<
- TData = Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,
- TError,
- Awaited<ReturnType<typeof getV1GetProviderEnumExample>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetProviderEnumExample<
- TData = Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,
- TError,
- Awaited<ReturnType<typeof getV1GetProviderEnumExample>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetProviderEnumExample<
- TData = Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get Provider Enum Example
- */
-
-export function useGetV1GetProviderEnumExample<
- TData = Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetProviderEnumExampleQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get Provider Enum Example
- */
-export const prefetchGetV1GetProviderEnumExampleQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetProviderEnumExample>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetProviderEnumExampleQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/library/library.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/library/library.ts
deleted file mode 100644
index b81bcfe5b9..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/library/library.ts
+++ /dev/null
@@ -1,1750 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useInfiniteQuery, useMutation, useQuery } from "@tanstack/react-query";
-import type {
- DataTag,
- DefinedInitialDataOptions,
- DefinedUseInfiniteQueryResult,
- DefinedUseQueryResult,
- InfiniteData,
- MutationFunction,
- QueryClient,
- QueryFunction,
- QueryKey,
- UndefinedInitialDataOptions,
- UseInfiniteQueryOptions,
- UseInfiniteQueryResult,
- UseMutationOptions,
- UseMutationResult,
- UseQueryOptions,
- UseQueryResult,
-} from "@tanstack/react-query";
-
-import type { BodyPostV2AddMarketplaceAgent } from "../../models/bodyPostV2AddMarketplaceAgent";
-
-import type { GetV2GetAgentByStoreId200 } from "../../models/getV2GetAgentByStoreId200";
-
-import type { GetV2GetLibraryAgentByGraphIdParams } from "../../models/getV2GetLibraryAgentByGraphIdParams";
-
-import type { GetV2ListLibraryAgentsParams } from "../../models/getV2ListLibraryAgentsParams";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { LibraryAgent } from "../../models/libraryAgent";
-
-import type { LibraryAgentResponse } from "../../models/libraryAgentResponse";
-
-import type { LibraryAgentUpdateRequest } from "../../models/libraryAgentUpdateRequest";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * Get all agents in the user's library (both created and saved).
-
-Args:
- user_id: ID of the authenticated user.
- search_term: Optional search term to filter agents by name/description.
- filter_by: List of filters to apply (favorites, created by user).
- sort_by: List of sorting criteria (created date, updated date).
- page: Page number to retrieve.
- page_size: Number of agents per page.
-
-Returns:
- A LibraryAgentResponse containing agents and pagination metadata.
-
-Raises:
- HTTPException: If a server/database error occurs.
- * @summary List Library Agents
- */
-export type getV2ListLibraryAgentsResponse200 = {
- data: LibraryAgentResponse;
- status: 200;
-};
-
-export type getV2ListLibraryAgentsResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2ListLibraryAgentsResponseComposite =
- | getV2ListLibraryAgentsResponse200
- | getV2ListLibraryAgentsResponse422;
-
-export type getV2ListLibraryAgentsResponse =
- getV2ListLibraryAgentsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2ListLibraryAgentsUrl = (
- params?: GetV2ListLibraryAgentsParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/library/agents?${stringifiedParams}`
- : `/api/library/agents`;
-};
-
-export const getV2ListLibraryAgents = async (
- params?: GetV2ListLibraryAgentsParams,
- options?: RequestInit,
-): Promise<getV2ListLibraryAgentsResponse> => {
- return customMutator<getV2ListLibraryAgentsResponse>(
- getGetV2ListLibraryAgentsUrl(params),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2ListLibraryAgentsQueryKey = (
- params?: GetV2ListLibraryAgentsParams,
-) => {
- return [`/api/library/agents`, ...(params ? [params] : [])] as const;
-};
-
-export const getGetV2ListLibraryAgentsInfiniteQueryOptions = <
- TData = InfiniteData<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- GetV2ListLibraryAgentsParams["page"]
- >,
- TError = HTTPValidationError,
->(
- params?: GetV2ListLibraryAgentsParams,
- options?: {
- query?: Partial<
- UseInfiniteQueryOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- TData,
- QueryKey,
- GetV2ListLibraryAgentsParams["page"]
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV2ListLibraryAgentsQueryKey(params);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- QueryKey,
- GetV2ListLibraryAgentsParams["page"]
- > = ({ signal, pageParam }) =>
- getV2ListLibraryAgents(
- { ...params, page: pageParam || params?.["page"] },
- { signal, ...requestOptions },
- );
-
- return { queryKey, queryFn, ...queryOptions } as UseInfiniteQueryOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- TData,
- QueryKey,
- GetV2ListLibraryAgentsParams["page"]
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2ListLibraryAgentsInfiniteQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>
->;
-export type GetV2ListLibraryAgentsInfiniteQueryError = HTTPValidationError;
-
-export function useGetV2ListLibraryAgentsInfinite<
- TData = InfiniteData<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- GetV2ListLibraryAgentsParams["page"]
- >,
- TError = HTTPValidationError,
->(
- params: undefined | GetV2ListLibraryAgentsParams,
- options: {
- query: Partial<
- UseInfiniteQueryOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- TData,
- QueryKey,
- GetV2ListLibraryAgentsParams["page"]
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- QueryKey
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseInfiniteQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2ListLibraryAgentsInfinite<
- TData = InfiniteData<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- GetV2ListLibraryAgentsParams["page"]
- >,
- TError = HTTPValidationError,
->(
- params?: GetV2ListLibraryAgentsParams,
- options?: {
- query?: Partial<
- UseInfiniteQueryOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- TData,
- QueryKey,
- GetV2ListLibraryAgentsParams["page"]
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- QueryKey
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseInfiniteQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2ListLibraryAgentsInfinite<
- TData = InfiniteData<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- GetV2ListLibraryAgentsParams["page"]
- >,
- TError = HTTPValidationError,
->(
- params?: GetV2ListLibraryAgentsParams,
- options?: {
- query?: Partial<
- UseInfiniteQueryOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- TData,
- QueryKey,
- GetV2ListLibraryAgentsParams["page"]
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseInfiniteQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary List Library Agents
- */
-
-export function useGetV2ListLibraryAgentsInfinite<
- TData = InfiniteData<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- GetV2ListLibraryAgentsParams["page"]
- >,
- TError = HTTPValidationError,
->(
- params?: GetV2ListLibraryAgentsParams,
- options?: {
- query?: Partial<
- UseInfiniteQueryOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- TData,
- QueryKey,
- GetV2ListLibraryAgentsParams["page"]
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseInfiniteQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2ListLibraryAgentsInfiniteQueryOptions(
- params,
- options,
- );
-
- const query = useInfiniteQuery(
- queryOptions,
- queryClient,
- ) as UseInfiniteQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
- };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary List Library Agents
- */
-export const prefetchGetV2ListLibraryAgentsInfiniteQuery = async <
- TData = Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- params?: GetV2ListLibraryAgentsParams,
- options?: {
- query?: Partial<
- UseInfiniteQueryOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- TData,
- QueryKey,
- GetV2ListLibraryAgentsParams["page"]
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2ListLibraryAgentsInfiniteQueryOptions(
- params,
- options,
- );
-
- await queryClient.prefetchInfiniteQuery(queryOptions);
-
- return queryClient;
-};
-
-export const getGetV2ListLibraryAgentsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListLibraryAgentsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV2ListLibraryAgentsQueryKey(params);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>
- > = ({ signal }) =>
- getV2ListLibraryAgents(params, { signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2ListLibraryAgentsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>
->;
-export type GetV2ListLibraryAgentsQueryError = HTTPValidationError;
-
-export function useGetV2ListLibraryAgents<
- TData = Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError = HTTPValidationError,
->(
- params: undefined | GetV2ListLibraryAgentsParams,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2ListLibraryAgents<
- TData = Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListLibraryAgentsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2ListLibraryAgents<
- TData = Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListLibraryAgentsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary List Library Agents
- */
-
-export function useGetV2ListLibraryAgents<
- TData = Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListLibraryAgentsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2ListLibraryAgentsQueryOptions(params, options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary List Library Agents
- */
-export const prefetchGetV2ListLibraryAgentsQuery = async <
- TData = Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- params?: GetV2ListLibraryAgentsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListLibraryAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2ListLibraryAgentsQueryOptions(params, options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Add an agent from the marketplace to the user's library.
-
-Args:
- store_listing_version_id: ID of the store listing version to add.
- user_id: ID of the authenticated user.
-
-Returns:
- library_model.LibraryAgent: Agent added to the library
-
-Raises:
- HTTPException(404): If the listing version is not found.
- HTTPException(500): If a server/database error occurs.
- * @summary Add Marketplace Agent
- */
-export type postV2AddMarketplaceAgentResponse201 = {
- data: LibraryAgent;
- status: 201;
-};
-
-export type postV2AddMarketplaceAgentResponse404 = {
- data: null;
- status: 404;
-};
-
-export type postV2AddMarketplaceAgentResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV2AddMarketplaceAgentResponse500 = {
- data: null;
- status: 500;
-};
-
-export type postV2AddMarketplaceAgentResponseComposite =
- | postV2AddMarketplaceAgentResponse201
- | postV2AddMarketplaceAgentResponse404
- | postV2AddMarketplaceAgentResponse422
- | postV2AddMarketplaceAgentResponse500;
-
-export type postV2AddMarketplaceAgentResponse =
- postV2AddMarketplaceAgentResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV2AddMarketplaceAgentUrl = () => {
- return `/api/library/agents`;
-};
-
-export const postV2AddMarketplaceAgent = async (
- bodyPostV2AddMarketplaceAgent: BodyPostV2AddMarketplaceAgent,
- options?: RequestInit,
-): Promise<postV2AddMarketplaceAgentResponse> => {
- return customMutator<postV2AddMarketplaceAgentResponse>(
- getPostV2AddMarketplaceAgentUrl(),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(bodyPostV2AddMarketplaceAgent),
- },
- );
-};
-
-export const getPostV2AddMarketplaceAgentMutationOptions = <
- TError = null | HTTPValidationError | null,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2AddMarketplaceAgent>>,
- TError,
- { data: BodyPostV2AddMarketplaceAgent },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV2AddMarketplaceAgent>>,
- TError,
- { data: BodyPostV2AddMarketplaceAgent },
- TContext
-> => {
- const mutationKey = ["postV2AddMarketplaceAgent"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV2AddMarketplaceAgent>>,
- { data: BodyPostV2AddMarketplaceAgent }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV2AddMarketplaceAgent(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV2AddMarketplaceAgentMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV2AddMarketplaceAgent>>
->;
-export type PostV2AddMarketplaceAgentMutationBody =
- BodyPostV2AddMarketplaceAgent;
-export type PostV2AddMarketplaceAgentMutationError =
- null | HTTPValidationError | null;
-
-/**
- * @summary Add Marketplace Agent
- */
-export const usePostV2AddMarketplaceAgent = <
- TError = null | HTTPValidationError | null,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2AddMarketplaceAgent>>,
- TError,
- { data: BodyPostV2AddMarketplaceAgent },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV2AddMarketplaceAgent>>,
- TError,
- { data: BodyPostV2AddMarketplaceAgent },
- TContext
-> => {
- const mutationOptions = getPostV2AddMarketplaceAgentMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Get Library Agent
- */
-export type getV2GetLibraryAgentResponse200 = {
- data: LibraryAgent;
- status: 200;
-};
-
-export type getV2GetLibraryAgentResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2GetLibraryAgentResponseComposite =
- | getV2GetLibraryAgentResponse200
- | getV2GetLibraryAgentResponse422;
-
-export type getV2GetLibraryAgentResponse =
- getV2GetLibraryAgentResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2GetLibraryAgentUrl = (libraryAgentId: string) => {
- return `/api/library/agents/${libraryAgentId}`;
-};
-
-export const getV2GetLibraryAgent = async (
- libraryAgentId: string,
- options?: RequestInit,
-): Promise<getV2GetLibraryAgentResponse> => {
- return customMutator<getV2GetLibraryAgentResponse>(
- getGetV2GetLibraryAgentUrl(libraryAgentId),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2GetLibraryAgentQueryKey = (libraryAgentId?: string) => {
- return [`/api/library/agents/${libraryAgentId}`] as const;
-};
-
-export const getGetV2GetLibraryAgentQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2GetLibraryAgent>>,
- TError = HTTPValidationError,
->(
- libraryAgentId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgent>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV2GetLibraryAgentQueryKey(libraryAgentId);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2GetLibraryAgent>>
- > = ({ signal }) =>
- getV2GetLibraryAgent(libraryAgentId, { signal, ...requestOptions });
-
- return {
- queryKey,
- queryFn,
- enabled: !!libraryAgentId,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgent>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2GetLibraryAgentQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2GetLibraryAgent>>
->;
-export type GetV2GetLibraryAgentQueryError = HTTPValidationError;
-
-export function useGetV2GetLibraryAgent<
- TData = Awaited<ReturnType<typeof getV2GetLibraryAgent>>,
- TError = HTTPValidationError,
->(
- libraryAgentId: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgent>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgent>>,
- TError,
- Awaited<ReturnType<typeof getV2GetLibraryAgent>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetLibraryAgent<
- TData = Awaited<ReturnType<typeof getV2GetLibraryAgent>>,
- TError = HTTPValidationError,
->(
- libraryAgentId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgent>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgent>>,
- TError,
- Awaited<ReturnType<typeof getV2GetLibraryAgent>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetLibraryAgent<
- TData = Awaited<ReturnType<typeof getV2GetLibraryAgent>>,
- TError = HTTPValidationError,
->(
- libraryAgentId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgent>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get Library Agent
- */
-
-export function useGetV2GetLibraryAgent<
- TData = Awaited<ReturnType<typeof getV2GetLibraryAgent>>,
- TError = HTTPValidationError,
->(
- libraryAgentId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgent>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2GetLibraryAgentQueryOptions(
- libraryAgentId,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get Library Agent
- */
-export const prefetchGetV2GetLibraryAgentQuery = async <
- TData = Awaited<ReturnType<typeof getV2GetLibraryAgent>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- libraryAgentId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgent>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2GetLibraryAgentQueryOptions(
- libraryAgentId,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Update the library agent with the given fields.
-
-Args:
- library_agent_id: ID of the library agent to update.
- payload: Fields to update (auto_update_version, is_favorite, etc.).
- user_id: ID of the authenticated user.
-
-Raises:
- HTTPException(500): If a server/database error occurs.
- * @summary Update Library Agent
- */
-export type patchV2UpdateLibraryAgentResponse200 = {
- data: LibraryAgent;
- status: 200;
-};
-
-export type patchV2UpdateLibraryAgentResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type patchV2UpdateLibraryAgentResponse500 = {
- data: null;
- status: 500;
-};
-
-export type patchV2UpdateLibraryAgentResponseComposite =
- | patchV2UpdateLibraryAgentResponse200
- | patchV2UpdateLibraryAgentResponse422
- | patchV2UpdateLibraryAgentResponse500;
-
-export type patchV2UpdateLibraryAgentResponse =
- patchV2UpdateLibraryAgentResponseComposite & {
- headers: Headers;
- };
-
-export const getPatchV2UpdateLibraryAgentUrl = (libraryAgentId: string) => {
- return `/api/library/agents/${libraryAgentId}`;
-};
-
-export const patchV2UpdateLibraryAgent = async (
- libraryAgentId: string,
- libraryAgentUpdateRequest: LibraryAgentUpdateRequest,
- options?: RequestInit,
-): Promise<patchV2UpdateLibraryAgentResponse> => {
- return customMutator<patchV2UpdateLibraryAgentResponse>(
- getPatchV2UpdateLibraryAgentUrl(libraryAgentId),
- {
- ...options,
- method: "PATCH",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(libraryAgentUpdateRequest),
- },
- );
-};
-
-export const getPatchV2UpdateLibraryAgentMutationOptions = <
- TError = HTTPValidationError | null,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof patchV2UpdateLibraryAgent>>,
- TError,
- { libraryAgentId: string; data: LibraryAgentUpdateRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof patchV2UpdateLibraryAgent>>,
- TError,
- { libraryAgentId: string; data: LibraryAgentUpdateRequest },
- TContext
-> => {
- const mutationKey = ["patchV2UpdateLibraryAgent"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof patchV2UpdateLibraryAgent>>,
- { libraryAgentId: string; data: LibraryAgentUpdateRequest }
- > = (props) => {
- const { libraryAgentId, data } = props ?? {};
-
- return patchV2UpdateLibraryAgent(libraryAgentId, data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PatchV2UpdateLibraryAgentMutationResult = NonNullable<
- Awaited<ReturnType<typeof patchV2UpdateLibraryAgent>>
->;
-export type PatchV2UpdateLibraryAgentMutationBody = LibraryAgentUpdateRequest;
-export type PatchV2UpdateLibraryAgentMutationError = HTTPValidationError | null;
-
-/**
- * @summary Update Library Agent
- */
-export const usePatchV2UpdateLibraryAgent = <
- TError = HTTPValidationError | null,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof patchV2UpdateLibraryAgent>>,
- TError,
- { libraryAgentId: string; data: LibraryAgentUpdateRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof patchV2UpdateLibraryAgent>>,
- TError,
- { libraryAgentId: string; data: LibraryAgentUpdateRequest },
- TContext
-> => {
- const mutationOptions = getPatchV2UpdateLibraryAgentMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * Soft-delete the specified library agent.
-
-Args:
- library_agent_id: ID of the library agent to delete.
- user_id: ID of the authenticated user.
-
-Returns:
- 204 No Content if successful.
-
-Raises:
- HTTPException(404): If the agent does not exist.
- HTTPException(500): If a server/database error occurs.
- * @summary Delete Library Agent
- */
-export type deleteV2DeleteLibraryAgentResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type deleteV2DeleteLibraryAgentResponse204 = {
- data: null;
- status: 204;
-};
-
-export type deleteV2DeleteLibraryAgentResponse404 = {
- data: null;
- status: 404;
-};
-
-export type deleteV2DeleteLibraryAgentResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type deleteV2DeleteLibraryAgentResponse500 = {
- data: null;
- status: 500;
-};
-
-export type deleteV2DeleteLibraryAgentResponseComposite =
- | deleteV2DeleteLibraryAgentResponse200
- | deleteV2DeleteLibraryAgentResponse204
- | deleteV2DeleteLibraryAgentResponse404
- | deleteV2DeleteLibraryAgentResponse422
- | deleteV2DeleteLibraryAgentResponse500;
-
-export type deleteV2DeleteLibraryAgentResponse =
- deleteV2DeleteLibraryAgentResponseComposite & {
- headers: Headers;
- };
-
-export const getDeleteV2DeleteLibraryAgentUrl = (libraryAgentId: string) => {
- return `/api/library/agents/${libraryAgentId}`;
-};
-
-export const deleteV2DeleteLibraryAgent = async (
- libraryAgentId: string,
- options?: RequestInit,
-): Promise<deleteV2DeleteLibraryAgentResponse> => {
- return customMutator<deleteV2DeleteLibraryAgentResponse>(
- getDeleteV2DeleteLibraryAgentUrl(libraryAgentId),
- {
- ...options,
- method: "DELETE",
- },
- );
-};
-
-export const getDeleteV2DeleteLibraryAgentMutationOptions = <
- TError = null | HTTPValidationError | null,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV2DeleteLibraryAgent>>,
- TError,
- { libraryAgentId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof deleteV2DeleteLibraryAgent>>,
- TError,
- { libraryAgentId: string },
- TContext
-> => {
- const mutationKey = ["deleteV2DeleteLibraryAgent"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof deleteV2DeleteLibraryAgent>>,
- { libraryAgentId: string }
- > = (props) => {
- const { libraryAgentId } = props ?? {};
-
- return deleteV2DeleteLibraryAgent(libraryAgentId, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type DeleteV2DeleteLibraryAgentMutationResult = NonNullable<
- Awaited<ReturnType<typeof deleteV2DeleteLibraryAgent>>
->;
-
-export type DeleteV2DeleteLibraryAgentMutationError =
- null | HTTPValidationError | null;
-
-/**
- * @summary Delete Library Agent
- */
-export const useDeleteV2DeleteLibraryAgent = <
- TError = null | HTTPValidationError | null,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV2DeleteLibraryAgent>>,
- TError,
- { libraryAgentId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof deleteV2DeleteLibraryAgent>>,
- TError,
- { libraryAgentId: string },
- TContext
-> => {
- const mutationOptions = getDeleteV2DeleteLibraryAgentMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Get Library Agent By Graph Id
- */
-export type getV2GetLibraryAgentByGraphIdResponse200 = {
- data: LibraryAgent;
- status: 200;
-};
-
-export type getV2GetLibraryAgentByGraphIdResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2GetLibraryAgentByGraphIdResponseComposite =
- | getV2GetLibraryAgentByGraphIdResponse200
- | getV2GetLibraryAgentByGraphIdResponse422;
-
-export type getV2GetLibraryAgentByGraphIdResponse =
- getV2GetLibraryAgentByGraphIdResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2GetLibraryAgentByGraphIdUrl = (
- graphId: string,
- params?: GetV2GetLibraryAgentByGraphIdParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/library/agents/by-graph/${graphId}?${stringifiedParams}`
- : `/api/library/agents/by-graph/${graphId}`;
-};
-
-export const getV2GetLibraryAgentByGraphId = async (
- graphId: string,
- params?: GetV2GetLibraryAgentByGraphIdParams,
- options?: RequestInit,
-): Promise<getV2GetLibraryAgentByGraphIdResponse> => {
- return customMutator<getV2GetLibraryAgentByGraphIdResponse>(
- getGetV2GetLibraryAgentByGraphIdUrl(graphId, params),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2GetLibraryAgentByGraphIdQueryKey = (
- graphId?: string,
- params?: GetV2GetLibraryAgentByGraphIdParams,
-) => {
- return [
- `/api/library/agents/by-graph/${graphId}`,
- ...(params ? [params] : []),
- ] as const;
-};
-
-export const getGetV2GetLibraryAgentByGraphIdQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- params?: GetV2GetLibraryAgentByGraphIdParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ??
- getGetV2GetLibraryAgentByGraphIdQueryKey(graphId, params);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>
- > = ({ signal }) =>
- getV2GetLibraryAgentByGraphId(graphId, params, {
- signal,
- ...requestOptions,
- });
-
- return {
- queryKey,
- queryFn,
- enabled: !!graphId,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2GetLibraryAgentByGraphIdQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>
->;
-export type GetV2GetLibraryAgentByGraphIdQueryError = HTTPValidationError;
-
-export function useGetV2GetLibraryAgentByGraphId<
- TData = Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- params: undefined | GetV2GetLibraryAgentByGraphIdParams,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,
- TError,
- Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetLibraryAgentByGraphId<
- TData = Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- params?: GetV2GetLibraryAgentByGraphIdParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,
- TError,
- Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetLibraryAgentByGraphId<
- TData = Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- params?: GetV2GetLibraryAgentByGraphIdParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get Library Agent By Graph Id
- */
-
-export function useGetV2GetLibraryAgentByGraphId<
- TData = Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- params?: GetV2GetLibraryAgentByGraphIdParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2GetLibraryAgentByGraphIdQueryOptions(
- graphId,
- params,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get Library Agent By Graph Id
- */
-export const prefetchGetV2GetLibraryAgentByGraphIdQuery = async <
- TData = Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- graphId: string,
- params?: GetV2GetLibraryAgentByGraphIdParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetLibraryAgentByGraphId>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2GetLibraryAgentByGraphIdQueryOptions(
- graphId,
- params,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Get Library Agent from Store Listing Version ID.
- * @summary Get Agent By Store ID
- */
-export type getV2GetAgentByStoreIdResponse200 = {
- data: GetV2GetAgentByStoreId200;
- status: 200;
-};
-
-export type getV2GetAgentByStoreIdResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2GetAgentByStoreIdResponseComposite =
- | getV2GetAgentByStoreIdResponse200
- | getV2GetAgentByStoreIdResponse422;
-
-export type getV2GetAgentByStoreIdResponse =
- getV2GetAgentByStoreIdResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2GetAgentByStoreIdUrl = (storeListingVersionId: string) => {
- return `/api/library/agents/marketplace/${storeListingVersionId}`;
-};
-
-export const getV2GetAgentByStoreId = async (
- storeListingVersionId: string,
- options?: RequestInit,
-): Promise<getV2GetAgentByStoreIdResponse> => {
- return customMutator<getV2GetAgentByStoreIdResponse>(
- getGetV2GetAgentByStoreIdUrl(storeListingVersionId),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2GetAgentByStoreIdQueryKey = (
- storeListingVersionId?: string,
-) => {
- return [`/api/library/agents/marketplace/${storeListingVersionId}`] as const;
-};
-
-export const getGetV2GetAgentByStoreIdQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ??
- getGetV2GetAgentByStoreIdQueryKey(storeListingVersionId);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2GetAgentByStoreId>>
- > = ({ signal }) =>
- getV2GetAgentByStoreId(storeListingVersionId, {
- signal,
- ...requestOptions,
- });
-
- return {
- queryKey,
- queryFn,
- enabled: !!storeListingVersionId,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2GetAgentByStoreIdQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2GetAgentByStoreId>>
->;
-export type GetV2GetAgentByStoreIdQueryError = HTTPValidationError;
-
-export function useGetV2GetAgentByStoreId<
- TData = Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,
- TError,
- Awaited<ReturnType<typeof getV2GetAgentByStoreId>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetAgentByStoreId<
- TData = Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,
- TError,
- Awaited<ReturnType<typeof getV2GetAgentByStoreId>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetAgentByStoreId<
- TData = Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get Agent By Store ID
- */
-
-export function useGetV2GetAgentByStoreId<
- TData = Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2GetAgentByStoreIdQueryOptions(
- storeListingVersionId,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get Agent By Store ID
- */
-export const prefetchGetV2GetAgentByStoreIdQuery = async <
- TData = Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentByStoreId>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2GetAgentByStoreIdQueryOptions(
- storeListingVersionId,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Fork Library Agent
- */
-export type postV2ForkLibraryAgentResponse200 = {
- data: LibraryAgent;
- status: 200;
-};
-
-export type postV2ForkLibraryAgentResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV2ForkLibraryAgentResponseComposite =
- | postV2ForkLibraryAgentResponse200
- | postV2ForkLibraryAgentResponse422;
-
-export type postV2ForkLibraryAgentResponse =
- postV2ForkLibraryAgentResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV2ForkLibraryAgentUrl = (libraryAgentId: string) => {
- return `/api/library/agents/${libraryAgentId}/fork`;
-};
-
-export const postV2ForkLibraryAgent = async (
- libraryAgentId: string,
- options?: RequestInit,
-): Promise<postV2ForkLibraryAgentResponse> => {
- return customMutator<postV2ForkLibraryAgentResponse>(
- getPostV2ForkLibraryAgentUrl(libraryAgentId),
- {
- ...options,
- method: "POST",
- },
- );
-};
-
-export const getPostV2ForkLibraryAgentMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2ForkLibraryAgent>>,
- TError,
- { libraryAgentId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV2ForkLibraryAgent>>,
- TError,
- { libraryAgentId: string },
- TContext
-> => {
- const mutationKey = ["postV2ForkLibraryAgent"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV2ForkLibraryAgent>>,
- { libraryAgentId: string }
- > = (props) => {
- const { libraryAgentId } = props ?? {};
-
- return postV2ForkLibraryAgent(libraryAgentId, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV2ForkLibraryAgentMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV2ForkLibraryAgent>>
->;
-
-export type PostV2ForkLibraryAgentMutationError = HTTPValidationError;
-
-/**
- * @summary Fork Library Agent
- */
-export const usePostV2ForkLibraryAgent = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2ForkLibraryAgent>>,
- TError,
- { libraryAgentId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV2ForkLibraryAgent>>,
- TError,
- { libraryAgentId: string },
- TContext
-> => {
- const mutationOptions = getPostV2ForkLibraryAgentMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/onboarding/onboarding.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/onboarding/onboarding.ts
deleted file mode 100644
index 6a56c33571..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/onboarding/onboarding.ts
+++ /dev/null
@@ -1,744 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation, useQuery } from "@tanstack/react-query";
-import type {
- DataTag,
- DefinedInitialDataOptions,
- DefinedUseQueryResult,
- MutationFunction,
- QueryClient,
- QueryFunction,
- QueryKey,
- UndefinedInitialDataOptions,
- UseMutationOptions,
- UseMutationResult,
- UseQueryOptions,
- UseQueryResult,
-} from "@tanstack/react-query";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { UserOnboardingUpdate } from "../../models/userOnboardingUpdate";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * @summary Get onboarding status
- */
-export type getV1GetOnboardingStatusResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type getV1GetOnboardingStatusResponseComposite =
- getV1GetOnboardingStatusResponse200;
-
-export type getV1GetOnboardingStatusResponse =
- getV1GetOnboardingStatusResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetOnboardingStatusUrl = () => {
- return `/api/onboarding`;
-};
-
-export const getV1GetOnboardingStatus = async (
- options?: RequestInit,
-): Promise<getV1GetOnboardingStatusResponse> => {
- return customMutator<getV1GetOnboardingStatusResponse>(
- getGetV1GetOnboardingStatusUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetOnboardingStatusQueryKey = () => {
- return [`/api/onboarding`] as const;
-};
-
-export const getGetV1GetOnboardingStatusQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1GetOnboardingStatusQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetOnboardingStatus>>
- > = ({ signal }) => getV1GetOnboardingStatus({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetOnboardingStatusQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetOnboardingStatus>>
->;
-export type GetV1GetOnboardingStatusQueryError = unknown;
-
-export function useGetV1GetOnboardingStatus<
- TData = Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,
- TError,
- Awaited<ReturnType<typeof getV1GetOnboardingStatus>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetOnboardingStatus<
- TData = Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,
- TError,
- Awaited<ReturnType<typeof getV1GetOnboardingStatus>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetOnboardingStatus<
- TData = Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get onboarding status
- */
-
-export function useGetV1GetOnboardingStatus<
- TData = Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetOnboardingStatusQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get onboarding status
- */
-export const prefetchGetV1GetOnboardingStatusQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetOnboardingStatus>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetOnboardingStatusQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Update onboarding progress
- */
-export type patchV1UpdateOnboardingProgressResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type patchV1UpdateOnboardingProgressResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type patchV1UpdateOnboardingProgressResponseComposite =
- | patchV1UpdateOnboardingProgressResponse200
- | patchV1UpdateOnboardingProgressResponse422;
-
-export type patchV1UpdateOnboardingProgressResponse =
- patchV1UpdateOnboardingProgressResponseComposite & {
- headers: Headers;
- };
-
-export const getPatchV1UpdateOnboardingProgressUrl = () => {
- return `/api/onboarding`;
-};
-
-export const patchV1UpdateOnboardingProgress = async (
- userOnboardingUpdate: UserOnboardingUpdate,
- options?: RequestInit,
-): Promise<patchV1UpdateOnboardingProgressResponse> => {
- return customMutator<patchV1UpdateOnboardingProgressResponse>(
- getPatchV1UpdateOnboardingProgressUrl(),
- {
- ...options,
- method: "PATCH",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(userOnboardingUpdate),
- },
- );
-};
-
-export const getPatchV1UpdateOnboardingProgressMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof patchV1UpdateOnboardingProgress>>,
- TError,
- { data: UserOnboardingUpdate },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof patchV1UpdateOnboardingProgress>>,
- TError,
- { data: UserOnboardingUpdate },
- TContext
-> => {
- const mutationKey = ["patchV1UpdateOnboardingProgress"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof patchV1UpdateOnboardingProgress>>,
- { data: UserOnboardingUpdate }
- > = (props) => {
- const { data } = props ?? {};
-
- return patchV1UpdateOnboardingProgress(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PatchV1UpdateOnboardingProgressMutationResult = NonNullable<
- Awaited<ReturnType<typeof patchV1UpdateOnboardingProgress>>
->;
-export type PatchV1UpdateOnboardingProgressMutationBody = UserOnboardingUpdate;
-export type PatchV1UpdateOnboardingProgressMutationError = HTTPValidationError;
-
-/**
- * @summary Update onboarding progress
- */
-export const usePatchV1UpdateOnboardingProgress = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof patchV1UpdateOnboardingProgress>>,
- TError,
- { data: UserOnboardingUpdate },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof patchV1UpdateOnboardingProgress>>,
- TError,
- { data: UserOnboardingUpdate },
- TContext
-> => {
- const mutationOptions =
- getPatchV1UpdateOnboardingProgressMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary Get recommended agents
- */
-export type getV1GetRecommendedAgentsResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type getV1GetRecommendedAgentsResponseComposite =
- getV1GetRecommendedAgentsResponse200;
-
-export type getV1GetRecommendedAgentsResponse =
- getV1GetRecommendedAgentsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1GetRecommendedAgentsUrl = () => {
- return `/api/onboarding/agents`;
-};
-
-export const getV1GetRecommendedAgents = async (
- options?: RequestInit,
-): Promise<getV1GetRecommendedAgentsResponse> => {
- return customMutator<getV1GetRecommendedAgentsResponse>(
- getGetV1GetRecommendedAgentsUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1GetRecommendedAgentsQueryKey = () => {
- return [`/api/onboarding/agents`] as const;
-};
-
-export const getGetV1GetRecommendedAgentsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1GetRecommendedAgentsQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1GetRecommendedAgents>>
- > = ({ signal }) => getV1GetRecommendedAgents({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1GetRecommendedAgentsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1GetRecommendedAgents>>
->;
-export type GetV1GetRecommendedAgentsQueryError = unknown;
-
-export function useGetV1GetRecommendedAgents<
- TData = Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,
- TError,
- Awaited<ReturnType<typeof getV1GetRecommendedAgents>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetRecommendedAgents<
- TData = Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,
- TError,
- Awaited<ReturnType<typeof getV1GetRecommendedAgents>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1GetRecommendedAgents<
- TData = Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get recommended agents
- */
-
-export function useGetV1GetRecommendedAgents<
- TData = Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1GetRecommendedAgentsQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get recommended agents
- */
-export const prefetchGetV1GetRecommendedAgentsQuery = async <
- TData = Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1GetRecommendedAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1GetRecommendedAgentsQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Check onboarding enabled
- */
-export type getV1CheckOnboardingEnabledResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type getV1CheckOnboardingEnabledResponseComposite =
- getV1CheckOnboardingEnabledResponse200;
-
-export type getV1CheckOnboardingEnabledResponse =
- getV1CheckOnboardingEnabledResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1CheckOnboardingEnabledUrl = () => {
- return `/api/onboarding/enabled`;
-};
-
-export const getV1CheckOnboardingEnabled = async (
- options?: RequestInit,
-): Promise<getV1CheckOnboardingEnabledResponse> => {
- return customMutator<getV1CheckOnboardingEnabledResponse>(
- getGetV1CheckOnboardingEnabledUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1CheckOnboardingEnabledQueryKey = () => {
- return [`/api/onboarding/enabled`] as const;
-};
-
-export const getGetV1CheckOnboardingEnabledQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1CheckOnboardingEnabledQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>
- > = ({ signal }) =>
- getV1CheckOnboardingEnabled({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1CheckOnboardingEnabledQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>
->;
-export type GetV1CheckOnboardingEnabledQueryError = unknown;
-
-export function useGetV1CheckOnboardingEnabled<
- TData = Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,
- TError,
- Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1CheckOnboardingEnabled<
- TData = Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,
- TError,
- Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1CheckOnboardingEnabled<
- TData = Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Check onboarding enabled
- */
-
-export function useGetV1CheckOnboardingEnabled<
- TData = Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1CheckOnboardingEnabledQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Check onboarding enabled
- */
-export const prefetchGetV1CheckOnboardingEnabledQuery = async <
- TData = Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1CheckOnboardingEnabled>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1CheckOnboardingEnabledQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/otto/otto.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/otto/otto.ts
deleted file mode 100644
index 610ea18447..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/otto/otto.ts
+++ /dev/null
@@ -1,139 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation } from "@tanstack/react-query";
-import type {
- MutationFunction,
- QueryClient,
- UseMutationOptions,
- UseMutationResult,
-} from "@tanstack/react-query";
-
-import type { ApiResponse } from "../../models/apiResponse";
-
-import type { ChatRequest } from "../../models/chatRequest";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * Proxy requests to Otto API while adding necessary security headers and logging.
-Requires an authenticated user.
- * @summary Proxy Otto Chat Request
- */
-export type postV2ProxyOttoChatRequestResponse200 = {
- data: ApiResponse;
- status: 200;
-};
-
-export type postV2ProxyOttoChatRequestResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV2ProxyOttoChatRequestResponseComposite =
- | postV2ProxyOttoChatRequestResponse200
- | postV2ProxyOttoChatRequestResponse422;
-
-export type postV2ProxyOttoChatRequestResponse =
- postV2ProxyOttoChatRequestResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV2ProxyOttoChatRequestUrl = () => {
- return `/api/otto/ask`;
-};
-
-export const postV2ProxyOttoChatRequest = async (
- chatRequest: ChatRequest,
- options?: RequestInit,
-): Promise<postV2ProxyOttoChatRequestResponse> => {
- return customMutator<postV2ProxyOttoChatRequestResponse>(
- getPostV2ProxyOttoChatRequestUrl(),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(chatRequest),
- },
- );
-};
-
-export const getPostV2ProxyOttoChatRequestMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2ProxyOttoChatRequest>>,
- TError,
- { data: ChatRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV2ProxyOttoChatRequest>>,
- TError,
- { data: ChatRequest },
- TContext
-> => {
- const mutationKey = ["postV2ProxyOttoChatRequest"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV2ProxyOttoChatRequest>>,
- { data: ChatRequest }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV2ProxyOttoChatRequest(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV2ProxyOttoChatRequestMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV2ProxyOttoChatRequest>>
->;
-export type PostV2ProxyOttoChatRequestMutationBody = ChatRequest;
-export type PostV2ProxyOttoChatRequestMutationError = HTTPValidationError;
-
-/**
- * @summary Proxy Otto Chat Request
- */
-export const usePostV2ProxyOttoChatRequest = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2ProxyOttoChatRequest>>,
- TError,
- { data: ChatRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV2ProxyOttoChatRequest>>,
- TError,
- { data: ChatRequest },
- TContext
-> => {
- const mutationOptions = getPostV2ProxyOttoChatRequestMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/presets/presets.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/presets/presets.ts
deleted file mode 100644
index 66d4b19095..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/presets/presets.ts
+++ /dev/null
@@ -1,1066 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation, useQuery } from "@tanstack/react-query";
-import type {
- DataTag,
- DefinedInitialDataOptions,
- DefinedUseQueryResult,
- MutationFunction,
- QueryClient,
- QueryFunction,
- QueryKey,
- UndefinedInitialDataOptions,
- UseMutationOptions,
- UseMutationResult,
- UseQueryOptions,
- UseQueryResult,
-} from "@tanstack/react-query";
-
-import type { BodyPostV2ExecuteAPreset } from "../../models/bodyPostV2ExecuteAPreset";
-
-import type { GetV2ListPresetsParams } from "../../models/getV2ListPresetsParams";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { LibraryAgentPreset } from "../../models/libraryAgentPreset";
-
-import type { LibraryAgentPresetResponse } from "../../models/libraryAgentPresetResponse";
-
-import type { LibraryAgentPresetUpdatable } from "../../models/libraryAgentPresetUpdatable";
-
-import type { PostV2CreateANewPresetBody } from "../../models/postV2CreateANewPresetBody";
-
-import type { PostV2ExecuteAPreset200 } from "../../models/postV2ExecuteAPreset200";
-
-import type { TriggeredPresetSetupRequest } from "../../models/triggeredPresetSetupRequest";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * Retrieve a paginated list of presets for the current user.
- * @summary List presets
- */
-export type getV2ListPresetsResponse200 = {
- data: LibraryAgentPresetResponse;
- status: 200;
-};
-
-export type getV2ListPresetsResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2ListPresetsResponseComposite =
- | getV2ListPresetsResponse200
- | getV2ListPresetsResponse422;
-
-export type getV2ListPresetsResponse = getV2ListPresetsResponseComposite & {
- headers: Headers;
-};
-
-export const getGetV2ListPresetsUrl = (params: GetV2ListPresetsParams) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/library/presets?${stringifiedParams}`
- : `/api/library/presets`;
-};
-
-export const getV2ListPresets = async (
- params: GetV2ListPresetsParams,
- options?: RequestInit,
-): Promise<getV2ListPresetsResponse> => {
- return customMutator<getV2ListPresetsResponse>(
- getGetV2ListPresetsUrl(params),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2ListPresetsQueryKey = (
- params?: GetV2ListPresetsParams,
-) => {
- return [`/api/library/presets`, ...(params ? [params] : [])] as const;
-};
-
-export const getGetV2ListPresetsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2ListPresets>>,
- TError = HTTPValidationError,
->(
- params: GetV2ListPresetsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListPresets>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV2ListPresetsQueryKey(params);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2ListPresets>>
- > = ({ signal }) => getV2ListPresets(params, { signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListPresets>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2ListPresetsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2ListPresets>>
->;
-export type GetV2ListPresetsQueryError = HTTPValidationError;
-
-export function useGetV2ListPresets<
- TData = Awaited<ReturnType<typeof getV2ListPresets>>,
- TError = HTTPValidationError,
->(
- params: GetV2ListPresetsParams,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListPresets>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2ListPresets>>,
- TError,
- Awaited<ReturnType<typeof getV2ListPresets>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2ListPresets<
- TData = Awaited<ReturnType<typeof getV2ListPresets>>,
- TError = HTTPValidationError,
->(
- params: GetV2ListPresetsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListPresets>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2ListPresets>>,
- TError,
- Awaited<ReturnType<typeof getV2ListPresets>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2ListPresets<
- TData = Awaited<ReturnType<typeof getV2ListPresets>>,
- TError = HTTPValidationError,
->(
- params: GetV2ListPresetsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListPresets>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary List presets
- */
-
-export function useGetV2ListPresets<
- TData = Awaited<ReturnType<typeof getV2ListPresets>>,
- TError = HTTPValidationError,
->(
- params: GetV2ListPresetsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListPresets>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2ListPresetsQueryOptions(params, options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary List presets
- */
-export const prefetchGetV2ListPresetsQuery = async <
- TData = Awaited<ReturnType<typeof getV2ListPresets>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- params: GetV2ListPresetsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListPresets>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2ListPresetsQueryOptions(params, options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Create a new preset for the current user.
- * @summary Create a new preset
- */
-export type postV2CreateANewPresetResponse200 = {
- data: LibraryAgentPreset;
- status: 200;
-};
-
-export type postV2CreateANewPresetResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV2CreateANewPresetResponseComposite =
- | postV2CreateANewPresetResponse200
- | postV2CreateANewPresetResponse422;
-
-export type postV2CreateANewPresetResponse =
- postV2CreateANewPresetResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV2CreateANewPresetUrl = () => {
- return `/api/library/presets`;
-};
-
-export const postV2CreateANewPreset = async (
- postV2CreateANewPresetBody: PostV2CreateANewPresetBody,
- options?: RequestInit,
-): Promise<postV2CreateANewPresetResponse> => {
- return customMutator<postV2CreateANewPresetResponse>(
- getPostV2CreateANewPresetUrl(),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(postV2CreateANewPresetBody),
- },
- );
-};
-
-export const getPostV2CreateANewPresetMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2CreateANewPreset>>,
- TError,
- { data: PostV2CreateANewPresetBody },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV2CreateANewPreset>>,
- TError,
- { data: PostV2CreateANewPresetBody },
- TContext
-> => {
- const mutationKey = ["postV2CreateANewPreset"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV2CreateANewPreset>>,
- { data: PostV2CreateANewPresetBody }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV2CreateANewPreset(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV2CreateANewPresetMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV2CreateANewPreset>>
->;
-export type PostV2CreateANewPresetMutationBody = PostV2CreateANewPresetBody;
-export type PostV2CreateANewPresetMutationError = HTTPValidationError;
-
-/**
- * @summary Create a new preset
- */
-export const usePostV2CreateANewPreset = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2CreateANewPreset>>,
- TError,
- { data: PostV2CreateANewPresetBody },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV2CreateANewPreset>>,
- TError,
- { data: PostV2CreateANewPresetBody },
- TContext
-> => {
- const mutationOptions = getPostV2CreateANewPresetMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * Retrieve details for a specific preset by its ID.
- * @summary Get a specific preset
- */
-export type getV2GetASpecificPresetResponse200 = {
- data: LibraryAgentPreset;
- status: 200;
-};
-
-export type getV2GetASpecificPresetResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2GetASpecificPresetResponseComposite =
- | getV2GetASpecificPresetResponse200
- | getV2GetASpecificPresetResponse422;
-
-export type getV2GetASpecificPresetResponse =
- getV2GetASpecificPresetResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2GetASpecificPresetUrl = (presetId: string) => {
- return `/api/library/presets/${presetId}`;
-};
-
-export const getV2GetASpecificPreset = async (
- presetId: string,
- options?: RequestInit,
-): Promise<getV2GetASpecificPresetResponse> => {
- return customMutator<getV2GetASpecificPresetResponse>(
- getGetV2GetASpecificPresetUrl(presetId),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2GetASpecificPresetQueryKey = (presetId?: string) => {
- return [`/api/library/presets/${presetId}`] as const;
-};
-
-export const getGetV2GetASpecificPresetQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2GetASpecificPreset>>,
- TError = HTTPValidationError,
->(
- presetId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetASpecificPreset>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV2GetASpecificPresetQueryKey(presetId);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2GetASpecificPreset>>
- > = ({ signal }) =>
- getV2GetASpecificPreset(presetId, { signal, ...requestOptions });
-
- return {
- queryKey,
- queryFn,
- enabled: !!presetId,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetASpecificPreset>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2GetASpecificPresetQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2GetASpecificPreset>>
->;
-export type GetV2GetASpecificPresetQueryError = HTTPValidationError;
-
-export function useGetV2GetASpecificPreset<
- TData = Awaited<ReturnType<typeof getV2GetASpecificPreset>>,
- TError = HTTPValidationError,
->(
- presetId: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetASpecificPreset>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetASpecificPreset>>,
- TError,
- Awaited<ReturnType<typeof getV2GetASpecificPreset>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetASpecificPreset<
- TData = Awaited<ReturnType<typeof getV2GetASpecificPreset>>,
- TError = HTTPValidationError,
->(
- presetId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetASpecificPreset>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetASpecificPreset>>,
- TError,
- Awaited<ReturnType<typeof getV2GetASpecificPreset>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetASpecificPreset<
- TData = Awaited<ReturnType<typeof getV2GetASpecificPreset>>,
- TError = HTTPValidationError,
->(
- presetId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetASpecificPreset>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get a specific preset
- */
-
-export function useGetV2GetASpecificPreset<
- TData = Awaited<ReturnType<typeof getV2GetASpecificPreset>>,
- TError = HTTPValidationError,
->(
- presetId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetASpecificPreset>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2GetASpecificPresetQueryOptions(
- presetId,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get a specific preset
- */
-export const prefetchGetV2GetASpecificPresetQuery = async <
- TData = Awaited<ReturnType<typeof getV2GetASpecificPreset>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- presetId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetASpecificPreset>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2GetASpecificPresetQueryOptions(
- presetId,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Update an existing preset by its ID.
- * @summary Update an existing preset
- */
-export type patchV2UpdateAnExistingPresetResponse200 = {
- data: LibraryAgentPreset;
- status: 200;
-};
-
-export type patchV2UpdateAnExistingPresetResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type patchV2UpdateAnExistingPresetResponseComposite =
- | patchV2UpdateAnExistingPresetResponse200
- | patchV2UpdateAnExistingPresetResponse422;
-
-export type patchV2UpdateAnExistingPresetResponse =
- patchV2UpdateAnExistingPresetResponseComposite & {
- headers: Headers;
- };
-
-export const getPatchV2UpdateAnExistingPresetUrl = (presetId: string) => {
- return `/api/library/presets/${presetId}`;
-};
-
-export const patchV2UpdateAnExistingPreset = async (
- presetId: string,
- libraryAgentPresetUpdatable: LibraryAgentPresetUpdatable,
- options?: RequestInit,
-): Promise<patchV2UpdateAnExistingPresetResponse> => {
- return customMutator<patchV2UpdateAnExistingPresetResponse>(
- getPatchV2UpdateAnExistingPresetUrl(presetId),
- {
- ...options,
- method: "PATCH",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(libraryAgentPresetUpdatable),
- },
- );
-};
-
-export const getPatchV2UpdateAnExistingPresetMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof patchV2UpdateAnExistingPreset>>,
- TError,
- { presetId: string; data: LibraryAgentPresetUpdatable },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof patchV2UpdateAnExistingPreset>>,
- TError,
- { presetId: string; data: LibraryAgentPresetUpdatable },
- TContext
-> => {
- const mutationKey = ["patchV2UpdateAnExistingPreset"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof patchV2UpdateAnExistingPreset>>,
- { presetId: string; data: LibraryAgentPresetUpdatable }
- > = (props) => {
- const { presetId, data } = props ?? {};
-
- return patchV2UpdateAnExistingPreset(presetId, data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PatchV2UpdateAnExistingPresetMutationResult = NonNullable<
- Awaited<ReturnType<typeof patchV2UpdateAnExistingPreset>>
->;
-export type PatchV2UpdateAnExistingPresetMutationBody =
- LibraryAgentPresetUpdatable;
-export type PatchV2UpdateAnExistingPresetMutationError = HTTPValidationError;
-
-/**
- * @summary Update an existing preset
- */
-export const usePatchV2UpdateAnExistingPreset = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof patchV2UpdateAnExistingPreset>>,
- TError,
- { presetId: string; data: LibraryAgentPresetUpdatable },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof patchV2UpdateAnExistingPreset>>,
- TError,
- { presetId: string; data: LibraryAgentPresetUpdatable },
- TContext
-> => {
- const mutationOptions =
- getPatchV2UpdateAnExistingPresetMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * Delete an existing preset by its ID.
- * @summary Delete a preset
- */
-export type deleteV2DeleteAPresetResponse204 = {
- data: null;
- status: 204;
-};
-
-export type deleteV2DeleteAPresetResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type deleteV2DeleteAPresetResponseComposite =
- | deleteV2DeleteAPresetResponse204
- | deleteV2DeleteAPresetResponse422;
-
-export type deleteV2DeleteAPresetResponse =
- deleteV2DeleteAPresetResponseComposite & {
- headers: Headers;
- };
-
-export const getDeleteV2DeleteAPresetUrl = (presetId: string) => {
- return `/api/library/presets/${presetId}`;
-};
-
-export const deleteV2DeleteAPreset = async (
- presetId: string,
- options?: RequestInit,
-): Promise<deleteV2DeleteAPresetResponse> => {
- return customMutator<deleteV2DeleteAPresetResponse>(
- getDeleteV2DeleteAPresetUrl(presetId),
- {
- ...options,
- method: "DELETE",
- },
- );
-};
-
-export const getDeleteV2DeleteAPresetMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV2DeleteAPreset>>,
- TError,
- { presetId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof deleteV2DeleteAPreset>>,
- TError,
- { presetId: string },
- TContext
-> => {
- const mutationKey = ["deleteV2DeleteAPreset"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof deleteV2DeleteAPreset>>,
- { presetId: string }
- > = (props) => {
- const { presetId } = props ?? {};
-
- return deleteV2DeleteAPreset(presetId, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type DeleteV2DeleteAPresetMutationResult = NonNullable<
- Awaited<ReturnType<typeof deleteV2DeleteAPreset>>
->;
-
-export type DeleteV2DeleteAPresetMutationError = HTTPValidationError;
-
-/**
- * @summary Delete a preset
- */
-export const useDeleteV2DeleteAPreset = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV2DeleteAPreset>>,
- TError,
- { presetId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof deleteV2DeleteAPreset>>,
- TError,
- { presetId: string },
- TContext
-> => {
- const mutationOptions = getDeleteV2DeleteAPresetMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * Sets up a webhook-triggered `LibraryAgentPreset` for a `LibraryAgent`.
-Returns the correspondingly created `LibraryAgentPreset` with `webhook_id` set.
- * @summary Setup Trigger
- */
-export type postV2SetupTriggerResponse200 = {
- data: LibraryAgentPreset;
- status: 200;
-};
-
-export type postV2SetupTriggerResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV2SetupTriggerResponseComposite =
- | postV2SetupTriggerResponse200
- | postV2SetupTriggerResponse422;
-
-export type postV2SetupTriggerResponse = postV2SetupTriggerResponseComposite & {
- headers: Headers;
-};
-
-export const getPostV2SetupTriggerUrl = () => {
- return `/api/library/presets/setup-trigger`;
-};
-
-export const postV2SetupTrigger = async (
- triggeredPresetSetupRequest: TriggeredPresetSetupRequest,
- options?: RequestInit,
-): Promise<postV2SetupTriggerResponse> => {
- return customMutator<postV2SetupTriggerResponse>(getPostV2SetupTriggerUrl(), {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(triggeredPresetSetupRequest),
- });
-};
-
-export const getPostV2SetupTriggerMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2SetupTrigger>>,
- TError,
- { data: TriggeredPresetSetupRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV2SetupTrigger>>,
- TError,
- { data: TriggeredPresetSetupRequest },
- TContext
-> => {
- const mutationKey = ["postV2SetupTrigger"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV2SetupTrigger>>,
- { data: TriggeredPresetSetupRequest }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV2SetupTrigger(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV2SetupTriggerMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV2SetupTrigger>>
->;
-export type PostV2SetupTriggerMutationBody = TriggeredPresetSetupRequest;
-export type PostV2SetupTriggerMutationError = HTTPValidationError;
-
-/**
- * @summary Setup Trigger
- */
-export const usePostV2SetupTrigger = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2SetupTrigger>>,
- TError,
- { data: TriggeredPresetSetupRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV2SetupTrigger>>,
- TError,
- { data: TriggeredPresetSetupRequest },
- TContext
-> => {
- const mutationOptions = getPostV2SetupTriggerMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * Execute a preset with the given graph and node input for the current user.
- * @summary Execute a preset
- */
-export type postV2ExecuteAPresetResponse200 = {
- data: PostV2ExecuteAPreset200;
- status: 200;
-};
-
-export type postV2ExecuteAPresetResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV2ExecuteAPresetResponseComposite =
- | postV2ExecuteAPresetResponse200
- | postV2ExecuteAPresetResponse422;
-
-export type postV2ExecuteAPresetResponse =
- postV2ExecuteAPresetResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV2ExecuteAPresetUrl = (presetId: string) => {
- return `/api/library/presets/${presetId}/execute`;
-};
-
-export const postV2ExecuteAPreset = async (
- presetId: string,
- bodyPostV2ExecuteAPreset: BodyPostV2ExecuteAPreset,
- options?: RequestInit,
-): Promise<postV2ExecuteAPresetResponse> => {
- return customMutator<postV2ExecuteAPresetResponse>(
- getPostV2ExecuteAPresetUrl(presetId),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(bodyPostV2ExecuteAPreset),
- },
- );
-};
-
-export const getPostV2ExecuteAPresetMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2ExecuteAPreset>>,
- TError,
- { presetId: string; data: BodyPostV2ExecuteAPreset },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV2ExecuteAPreset>>,
- TError,
- { presetId: string; data: BodyPostV2ExecuteAPreset },
- TContext
-> => {
- const mutationKey = ["postV2ExecuteAPreset"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV2ExecuteAPreset>>,
- { presetId: string; data: BodyPostV2ExecuteAPreset }
- > = (props) => {
- const { presetId, data } = props ?? {};
-
- return postV2ExecuteAPreset(presetId, data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV2ExecuteAPresetMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV2ExecuteAPreset>>
->;
-export type PostV2ExecuteAPresetMutationBody = BodyPostV2ExecuteAPreset;
-export type PostV2ExecuteAPresetMutationError = HTTPValidationError;
-
-/**
- * @summary Execute a preset
- */
-export const usePostV2ExecuteAPreset = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2ExecuteAPreset>>,
- TError,
- { presetId: string; data: BodyPostV2ExecuteAPreset },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV2ExecuteAPreset>>,
- TError,
- { presetId: string; data: BodyPostV2ExecuteAPreset },
- TContext
-> => {
- const mutationOptions = getPostV2ExecuteAPresetMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/schedules/schedules.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/schedules/schedules.ts
deleted file mode 100644
index eb21fcf5dc..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/schedules/schedules.ts
+++ /dev/null
@@ -1,697 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation, useQuery } from "@tanstack/react-query";
-import type {
- DataTag,
- DefinedInitialDataOptions,
- DefinedUseQueryResult,
- MutationFunction,
- QueryClient,
- QueryFunction,
- QueryKey,
- UndefinedInitialDataOptions,
- UseMutationOptions,
- UseMutationResult,
- UseQueryOptions,
- UseQueryResult,
-} from "@tanstack/react-query";
-
-import type { DeleteV1DeleteExecutionSchedule200 } from "../../models/deleteV1DeleteExecutionSchedule200";
-
-import type { GraphExecutionJobInfo } from "../../models/graphExecutionJobInfo";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { ScheduleCreationRequest } from "../../models/scheduleCreationRequest";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * @summary Create execution schedule
- */
-export type postV1CreateExecutionScheduleResponse200 = {
- data: GraphExecutionJobInfo;
- status: 200;
-};
-
-export type postV1CreateExecutionScheduleResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV1CreateExecutionScheduleResponseComposite =
- | postV1CreateExecutionScheduleResponse200
- | postV1CreateExecutionScheduleResponse422;
-
-export type postV1CreateExecutionScheduleResponse =
- postV1CreateExecutionScheduleResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV1CreateExecutionScheduleUrl = (graphId: string) => {
- return `/api/graphs/${graphId}/schedules`;
-};
-
-export const postV1CreateExecutionSchedule = async (
- graphId: string,
- scheduleCreationRequest: ScheduleCreationRequest,
- options?: RequestInit,
-): Promise<postV1CreateExecutionScheduleResponse> => {
- return customMutator<postV1CreateExecutionScheduleResponse>(
- getPostV1CreateExecutionScheduleUrl(graphId),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(scheduleCreationRequest),
- },
- );
-};
-
-export const getPostV1CreateExecutionScheduleMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1CreateExecutionSchedule>>,
- TError,
- { graphId: string; data: ScheduleCreationRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV1CreateExecutionSchedule>>,
- TError,
- { graphId: string; data: ScheduleCreationRequest },
- TContext
-> => {
- const mutationKey = ["postV1CreateExecutionSchedule"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV1CreateExecutionSchedule>>,
- { graphId: string; data: ScheduleCreationRequest }
- > = (props) => {
- const { graphId, data } = props ?? {};
-
- return postV1CreateExecutionSchedule(graphId, data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV1CreateExecutionScheduleMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV1CreateExecutionSchedule>>
->;
-export type PostV1CreateExecutionScheduleMutationBody = ScheduleCreationRequest;
-export type PostV1CreateExecutionScheduleMutationError = HTTPValidationError;
-
-/**
- * @summary Create execution schedule
- */
-export const usePostV1CreateExecutionSchedule = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV1CreateExecutionSchedule>>,
- TError,
- { graphId: string; data: ScheduleCreationRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV1CreateExecutionSchedule>>,
- TError,
- { graphId: string; data: ScheduleCreationRequest },
- TContext
-> => {
- const mutationOptions =
- getPostV1CreateExecutionScheduleMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * @summary List execution schedules for a graph
- */
-export type getV1ListExecutionSchedulesForAGraphResponse200 = {
- data: GraphExecutionJobInfo[];
- status: 200;
-};
-
-export type getV1ListExecutionSchedulesForAGraphResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV1ListExecutionSchedulesForAGraphResponseComposite =
- | getV1ListExecutionSchedulesForAGraphResponse200
- | getV1ListExecutionSchedulesForAGraphResponse422;
-
-export type getV1ListExecutionSchedulesForAGraphResponse =
- getV1ListExecutionSchedulesForAGraphResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1ListExecutionSchedulesForAGraphUrl = (graphId: string) => {
- return `/api/graphs/${graphId}/schedules`;
-};
-
-export const getV1ListExecutionSchedulesForAGraph = async (
- graphId: string,
- options?: RequestInit,
-): Promise<getV1ListExecutionSchedulesForAGraphResponse> => {
- return customMutator<getV1ListExecutionSchedulesForAGraphResponse>(
- getGetV1ListExecutionSchedulesForAGraphUrl(graphId),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1ListExecutionSchedulesForAGraphQueryKey = (
- graphId?: string,
-) => {
- return [`/api/graphs/${graphId}/schedules`] as const;
-};
-
-export const getGetV1ListExecutionSchedulesForAGraphQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ??
- getGetV1ListExecutionSchedulesForAGraphQueryKey(graphId);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>
- > = ({ signal }) =>
- getV1ListExecutionSchedulesForAGraph(graphId, {
- signal,
- ...requestOptions,
- });
-
- return {
- queryKey,
- queryFn,
- enabled: !!graphId,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1ListExecutionSchedulesForAGraphQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>
->;
-export type GetV1ListExecutionSchedulesForAGraphQueryError =
- HTTPValidationError;
-
-export function useGetV1ListExecutionSchedulesForAGraph<
- TData = Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,
- TError,
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListExecutionSchedulesForAGraph<
- TData = Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,
- TError,
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListExecutionSchedulesForAGraph<
- TData = Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary List execution schedules for a graph
- */
-
-export function useGetV1ListExecutionSchedulesForAGraph<
- TData = Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,
- TError = HTTPValidationError,
->(
- graphId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV1ListExecutionSchedulesForAGraphQueryOptions(
- graphId,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary List execution schedules for a graph
- */
-export const prefetchGetV1ListExecutionSchedulesForAGraphQuery = async <
- TData = Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- graphId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAGraph>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV1ListExecutionSchedulesForAGraphQueryOptions(
- graphId,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary List execution schedules for a user
- */
-export type getV1ListExecutionSchedulesForAUserResponse200 = {
- data: GraphExecutionJobInfo[];
- status: 200;
-};
-
-export type getV1ListExecutionSchedulesForAUserResponseComposite =
- getV1ListExecutionSchedulesForAUserResponse200;
-
-export type getV1ListExecutionSchedulesForAUserResponse =
- getV1ListExecutionSchedulesForAUserResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV1ListExecutionSchedulesForAUserUrl = () => {
- return `/api/schedules`;
-};
-
-export const getV1ListExecutionSchedulesForAUser = async (
- options?: RequestInit,
-): Promise<getV1ListExecutionSchedulesForAUserResponse> => {
- return customMutator<getV1ListExecutionSchedulesForAUserResponse>(
- getGetV1ListExecutionSchedulesForAUserUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV1ListExecutionSchedulesForAUserQueryKey = () => {
- return [`/api/schedules`] as const;
-};
-
-export const getGetV1ListExecutionSchedulesForAUserQueryOptions = <
- TData = Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV1ListExecutionSchedulesForAUserQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>
- > = ({ signal }) =>
- getV1ListExecutionSchedulesForAUser({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV1ListExecutionSchedulesForAUserQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>
->;
-export type GetV1ListExecutionSchedulesForAUserQueryError = unknown;
-
-export function useGetV1ListExecutionSchedulesForAUser<
- TData = Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,
- TError,
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListExecutionSchedulesForAUser<
- TData = Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,
- TError,
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV1ListExecutionSchedulesForAUser<
- TData = Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary List execution schedules for a user
- */
-
-export function useGetV1ListExecutionSchedulesForAUser<
- TData = Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions =
- getGetV1ListExecutionSchedulesForAUserQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary List execution schedules for a user
- */
-export const prefetchGetV1ListExecutionSchedulesForAUserQuery = async <
- TData = Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV1ListExecutionSchedulesForAUser>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions =
- getGetV1ListExecutionSchedulesForAUserQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Delete execution schedule
- */
-export type deleteV1DeleteExecutionScheduleResponse200 = {
- data: DeleteV1DeleteExecutionSchedule200;
- status: 200;
-};
-
-export type deleteV1DeleteExecutionScheduleResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type deleteV1DeleteExecutionScheduleResponseComposite =
- | deleteV1DeleteExecutionScheduleResponse200
- | deleteV1DeleteExecutionScheduleResponse422;
-
-export type deleteV1DeleteExecutionScheduleResponse =
- deleteV1DeleteExecutionScheduleResponseComposite & {
- headers: Headers;
- };
-
-export const getDeleteV1DeleteExecutionScheduleUrl = (scheduleId: string) => {
- return `/api/schedules/${scheduleId}`;
-};
-
-export const deleteV1DeleteExecutionSchedule = async (
- scheduleId: string,
- options?: RequestInit,
-): Promise<deleteV1DeleteExecutionScheduleResponse> => {
- return customMutator<deleteV1DeleteExecutionScheduleResponse>(
- getDeleteV1DeleteExecutionScheduleUrl(scheduleId),
- {
- ...options,
- method: "DELETE",
- },
- );
-};
-
-export const getDeleteV1DeleteExecutionScheduleMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV1DeleteExecutionSchedule>>,
- TError,
- { scheduleId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof deleteV1DeleteExecutionSchedule>>,
- TError,
- { scheduleId: string },
- TContext
-> => {
- const mutationKey = ["deleteV1DeleteExecutionSchedule"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof deleteV1DeleteExecutionSchedule>>,
- { scheduleId: string }
- > = (props) => {
- const { scheduleId } = props ?? {};
-
- return deleteV1DeleteExecutionSchedule(scheduleId, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type DeleteV1DeleteExecutionScheduleMutationResult = NonNullable<
- Awaited<ReturnType<typeof deleteV1DeleteExecutionSchedule>>
->;
-
-export type DeleteV1DeleteExecutionScheduleMutationError = HTTPValidationError;
-
-/**
- * @summary Delete execution schedule
- */
-export const useDeleteV1DeleteExecutionSchedule = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV1DeleteExecutionSchedule>>,
- TError,
- { scheduleId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof deleteV1DeleteExecutionSchedule>>,
- TError,
- { scheduleId: string },
- TContext
-> => {
- const mutationOptions =
- getDeleteV1DeleteExecutionScheduleMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/store/store.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/store/store.ts
deleted file mode 100644
index c67b7df68b..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/store/store.ts
+++ /dev/null
@@ -1,3163 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation, useQuery } from "@tanstack/react-query";
-import type {
- DataTag,
- DefinedInitialDataOptions,
- DefinedUseQueryResult,
- MutationFunction,
- QueryClient,
- QueryFunction,
- QueryKey,
- UndefinedInitialDataOptions,
- UseMutationOptions,
- UseMutationResult,
- UseQueryOptions,
- UseQueryResult,
-} from "@tanstack/react-query";
-
-import type { BodyPostV2UploadSubmissionMedia } from "../../models/bodyPostV2UploadSubmissionMedia";
-
-import type { CreatorDetails } from "../../models/creatorDetails";
-
-import type { CreatorsResponse } from "../../models/creatorsResponse";
-
-import type { GetV2GetMyAgentsParams } from "../../models/getV2GetMyAgentsParams";
-
-import type { GetV2ListMySubmissionsParams } from "../../models/getV2ListMySubmissionsParams";
-
-import type { GetV2ListStoreAgentsParams } from "../../models/getV2ListStoreAgentsParams";
-
-import type { GetV2ListStoreCreatorsParams } from "../../models/getV2ListStoreCreatorsParams";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { MyAgentsResponse } from "../../models/myAgentsResponse";
-
-import type { PostV2GenerateSubmissionImageParams } from "../../models/postV2GenerateSubmissionImageParams";
-
-import type { Profile } from "../../models/profile";
-
-import type { ProfileDetails } from "../../models/profileDetails";
-
-import type { StoreAgentDetails } from "../../models/storeAgentDetails";
-
-import type { StoreAgentsResponse } from "../../models/storeAgentsResponse";
-
-import type { StoreReview } from "../../models/storeReview";
-
-import type { StoreReviewCreate } from "../../models/storeReviewCreate";
-
-import type { StoreSubmission } from "../../models/storeSubmission";
-
-import type { StoreSubmissionRequest } from "../../models/storeSubmissionRequest";
-
-import type { StoreSubmissionsResponse } from "../../models/storeSubmissionsResponse";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * Get the profile details for the authenticated user.
- * @summary Get user profile
- */
-export type getV2GetUserProfileResponse200 = {
- data: ProfileDetails;
- status: 200;
-};
-
-export type getV2GetUserProfileResponseComposite =
- getV2GetUserProfileResponse200;
-
-export type getV2GetUserProfileResponse =
- getV2GetUserProfileResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2GetUserProfileUrl = () => {
- return `/api/store/profile`;
-};
-
-export const getV2GetUserProfile = async (
- options?: RequestInit,
-): Promise<getV2GetUserProfileResponse> => {
- return customMutator<getV2GetUserProfileResponse>(
- getGetV2GetUserProfileUrl(),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2GetUserProfileQueryKey = () => {
- return [`/api/store/profile`] as const;
-};
-
-export const getGetV2GetUserProfileQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2GetUserProfile>>,
- TError = unknown,
->(options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetUserProfile>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
-}) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey = queryOptions?.queryKey ?? getGetV2GetUserProfileQueryKey();
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2GetUserProfile>>
- > = ({ signal }) => getV2GetUserProfile({ signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetUserProfile>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2GetUserProfileQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2GetUserProfile>>
->;
-export type GetV2GetUserProfileQueryError = unknown;
-
-export function useGetV2GetUserProfile<
- TData = Awaited<ReturnType<typeof getV2GetUserProfile>>,
- TError = unknown,
->(
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetUserProfile>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetUserProfile>>,
- TError,
- Awaited<ReturnType<typeof getV2GetUserProfile>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetUserProfile<
- TData = Awaited<ReturnType<typeof getV2GetUserProfile>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetUserProfile>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetUserProfile>>,
- TError,
- Awaited<ReturnType<typeof getV2GetUserProfile>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetUserProfile<
- TData = Awaited<ReturnType<typeof getV2GetUserProfile>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetUserProfile>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get user profile
- */
-
-export function useGetV2GetUserProfile<
- TData = Awaited<ReturnType<typeof getV2GetUserProfile>>,
- TError = unknown,
->(
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetUserProfile>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2GetUserProfileQueryOptions(options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get user profile
- */
-export const prefetchGetV2GetUserProfileQuery = async <
- TData = Awaited<ReturnType<typeof getV2GetUserProfile>>,
- TError = unknown,
->(
- queryClient: QueryClient,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetUserProfile>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2GetUserProfileQueryOptions(options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Update the store profile for the authenticated user.
-
-Args:
- profile (Profile): The updated profile details
- user_id (str): ID of the authenticated user
-
-Returns:
- CreatorDetails: The updated profile
-
-Raises:
- HTTPException: If there is an error updating the profile
- * @summary Update user profile
- */
-export type postV2UpdateUserProfileResponse200 = {
- data: CreatorDetails;
- status: 200;
-};
-
-export type postV2UpdateUserProfileResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV2UpdateUserProfileResponseComposite =
- | postV2UpdateUserProfileResponse200
- | postV2UpdateUserProfileResponse422;
-
-export type postV2UpdateUserProfileResponse =
- postV2UpdateUserProfileResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV2UpdateUserProfileUrl = () => {
- return `/api/store/profile`;
-};
-
-export const postV2UpdateUserProfile = async (
- profile: Profile,
- options?: RequestInit,
-): Promise<postV2UpdateUserProfileResponse> => {
- return customMutator<postV2UpdateUserProfileResponse>(
- getPostV2UpdateUserProfileUrl(),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(profile),
- },
- );
-};
-
-export const getPostV2UpdateUserProfileMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2UpdateUserProfile>>,
- TError,
- { data: Profile },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV2UpdateUserProfile>>,
- TError,
- { data: Profile },
- TContext
-> => {
- const mutationKey = ["postV2UpdateUserProfile"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV2UpdateUserProfile>>,
- { data: Profile }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV2UpdateUserProfile(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV2UpdateUserProfileMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV2UpdateUserProfile>>
->;
-export type PostV2UpdateUserProfileMutationBody = Profile;
-export type PostV2UpdateUserProfileMutationError = HTTPValidationError;
-
-/**
- * @summary Update user profile
- */
-export const usePostV2UpdateUserProfile = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2UpdateUserProfile>>,
- TError,
- { data: Profile },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV2UpdateUserProfile>>,
- TError,
- { data: Profile },
- TContext
-> => {
- const mutationOptions = getPostV2UpdateUserProfileMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * Get a paginated list of agents from the store with optional filtering and sorting.
-
-Args:
- featured (bool, optional): Filter to only show featured agents. Defaults to False.
- creator (str | None, optional): Filter agents by creator username. Defaults to None.
- sorted_by (str | None, optional): Sort agents by "runs" or "rating". Defaults to None.
- search_query (str | None, optional): Search agents by name, subheading and description. Defaults to None.
- category (str | None, optional): Filter agents by category. Defaults to None.
- page (int, optional): Page number for pagination. Defaults to 1.
- page_size (int, optional): Number of agents per page. Defaults to 20.
-
-Returns:
- StoreAgentsResponse: Paginated list of agents matching the filters
-
-Raises:
- HTTPException: If page or page_size are less than 1
-
-Used for:
-- Home Page Featured Agents
-- Home Page Top Agents
-- Search Results
-- Agent Details - Other Agents By Creator
-- Agent Details - Similar Agents
-- Creator Details - Agents By Creator
- * @summary List store agents
- */
-export type getV2ListStoreAgentsResponse200 = {
- data: StoreAgentsResponse;
- status: 200;
-};
-
-export type getV2ListStoreAgentsResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2ListStoreAgentsResponseComposite =
- | getV2ListStoreAgentsResponse200
- | getV2ListStoreAgentsResponse422;
-
-export type getV2ListStoreAgentsResponse =
- getV2ListStoreAgentsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2ListStoreAgentsUrl = (
- params?: GetV2ListStoreAgentsParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/store/agents?${stringifiedParams}`
- : `/api/store/agents`;
-};
-
-export const getV2ListStoreAgents = async (
- params?: GetV2ListStoreAgentsParams,
- options?: RequestInit,
-): Promise<getV2ListStoreAgentsResponse> => {
- return customMutator<getV2ListStoreAgentsResponse>(
- getGetV2ListStoreAgentsUrl(params),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2ListStoreAgentsQueryKey = (
- params?: GetV2ListStoreAgentsParams,
-) => {
- return [`/api/store/agents`, ...(params ? [params] : [])] as const;
-};
-
-export const getGetV2ListStoreAgentsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2ListStoreAgents>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListStoreAgentsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListStoreAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV2ListStoreAgentsQueryKey(params);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2ListStoreAgents>>
- > = ({ signal }) =>
- getV2ListStoreAgents(params, { signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListStoreAgents>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2ListStoreAgentsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2ListStoreAgents>>
->;
-export type GetV2ListStoreAgentsQueryError = HTTPValidationError;
-
-export function useGetV2ListStoreAgents<
- TData = Awaited<ReturnType<typeof getV2ListStoreAgents>>,
- TError = HTTPValidationError,
->(
- params: undefined | GetV2ListStoreAgentsParams,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListStoreAgents>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2ListStoreAgents>>,
- TError,
- Awaited<ReturnType<typeof getV2ListStoreAgents>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2ListStoreAgents<
- TData = Awaited<ReturnType<typeof getV2ListStoreAgents>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListStoreAgentsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListStoreAgents>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2ListStoreAgents>>,
- TError,
- Awaited<ReturnType<typeof getV2ListStoreAgents>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2ListStoreAgents<
- TData = Awaited<ReturnType<typeof getV2ListStoreAgents>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListStoreAgentsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListStoreAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary List store agents
- */
-
-export function useGetV2ListStoreAgents<
- TData = Awaited<ReturnType<typeof getV2ListStoreAgents>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListStoreAgentsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListStoreAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2ListStoreAgentsQueryOptions(params, options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary List store agents
- */
-export const prefetchGetV2ListStoreAgentsQuery = async <
- TData = Awaited<ReturnType<typeof getV2ListStoreAgents>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- params?: GetV2ListStoreAgentsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListStoreAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2ListStoreAgentsQueryOptions(params, options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * This is only used on the AgentDetails Page
-
-It returns the store listing agents details.
- * @summary Get specific agent
- */
-export type getV2GetSpecificAgentResponse200 = {
- data: StoreAgentDetails;
- status: 200;
-};
-
-export type getV2GetSpecificAgentResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2GetSpecificAgentResponseComposite =
- | getV2GetSpecificAgentResponse200
- | getV2GetSpecificAgentResponse422;
-
-export type getV2GetSpecificAgentResponse =
- getV2GetSpecificAgentResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2GetSpecificAgentUrl = (
- username: string,
- agentName: string,
-) => {
- return `/api/store/agents/${username}/${agentName}`;
-};
-
-export const getV2GetSpecificAgent = async (
- username: string,
- agentName: string,
- options?: RequestInit,
-): Promise<getV2GetSpecificAgentResponse> => {
- return customMutator<getV2GetSpecificAgentResponse>(
- getGetV2GetSpecificAgentUrl(username, agentName),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2GetSpecificAgentQueryKey = (
- username?: string,
- agentName?: string,
-) => {
- return [`/api/store/agents/${username}/${agentName}`] as const;
-};
-
-export const getGetV2GetSpecificAgentQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2GetSpecificAgent>>,
- TError = HTTPValidationError,
->(
- username: string,
- agentName: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetSpecificAgent>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ??
- getGetV2GetSpecificAgentQueryKey(username, agentName);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2GetSpecificAgent>>
- > = ({ signal }) =>
- getV2GetSpecificAgent(username, agentName, { signal, ...requestOptions });
-
- return {
- queryKey,
- queryFn,
- enabled: !!(username && agentName),
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetSpecificAgent>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2GetSpecificAgentQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2GetSpecificAgent>>
->;
-export type GetV2GetSpecificAgentQueryError = HTTPValidationError;
-
-export function useGetV2GetSpecificAgent<
- TData = Awaited<ReturnType<typeof getV2GetSpecificAgent>>,
- TError = HTTPValidationError,
->(
- username: string,
- agentName: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetSpecificAgent>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetSpecificAgent>>,
- TError,
- Awaited<ReturnType<typeof getV2GetSpecificAgent>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetSpecificAgent<
- TData = Awaited<ReturnType<typeof getV2GetSpecificAgent>>,
- TError = HTTPValidationError,
->(
- username: string,
- agentName: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetSpecificAgent>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetSpecificAgent>>,
- TError,
- Awaited<ReturnType<typeof getV2GetSpecificAgent>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetSpecificAgent<
- TData = Awaited<ReturnType<typeof getV2GetSpecificAgent>>,
- TError = HTTPValidationError,
->(
- username: string,
- agentName: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetSpecificAgent>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get specific agent
- */
-
-export function useGetV2GetSpecificAgent<
- TData = Awaited<ReturnType<typeof getV2GetSpecificAgent>>,
- TError = HTTPValidationError,
->(
- username: string,
- agentName: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetSpecificAgent>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2GetSpecificAgentQueryOptions(
- username,
- agentName,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get specific agent
- */
-export const prefetchGetV2GetSpecificAgentQuery = async <
- TData = Awaited<ReturnType<typeof getV2GetSpecificAgent>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- username: string,
- agentName: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetSpecificAgent>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2GetSpecificAgentQueryOptions(
- username,
- agentName,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Get Agent Graph from Store Listing Version ID.
- * @summary Get agent graph
- */
-export type getV2GetAgentGraphResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type getV2GetAgentGraphResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2GetAgentGraphResponseComposite =
- | getV2GetAgentGraphResponse200
- | getV2GetAgentGraphResponse422;
-
-export type getV2GetAgentGraphResponse = getV2GetAgentGraphResponseComposite & {
- headers: Headers;
-};
-
-export const getGetV2GetAgentGraphUrl = (storeListingVersionId: string) => {
- return `/api/store/graph/${storeListingVersionId}`;
-};
-
-export const getV2GetAgentGraph = async (
- storeListingVersionId: string,
- options?: RequestInit,
-): Promise<getV2GetAgentGraphResponse> => {
- return customMutator<getV2GetAgentGraphResponse>(
- getGetV2GetAgentGraphUrl(storeListingVersionId),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2GetAgentGraphQueryKey = (
- storeListingVersionId?: string,
-) => {
- return [`/api/store/graph/${storeListingVersionId}`] as const;
-};
-
-export const getGetV2GetAgentGraphQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2GetAgentGraph>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentGraph>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ??
- getGetV2GetAgentGraphQueryKey(storeListingVersionId);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2GetAgentGraph>>
- > = ({ signal }) =>
- getV2GetAgentGraph(storeListingVersionId, { signal, ...requestOptions });
-
- return {
- queryKey,
- queryFn,
- enabled: !!storeListingVersionId,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentGraph>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2GetAgentGraphQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2GetAgentGraph>>
->;
-export type GetV2GetAgentGraphQueryError = HTTPValidationError;
-
-export function useGetV2GetAgentGraph<
- TData = Awaited<ReturnType<typeof getV2GetAgentGraph>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentGraph>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetAgentGraph>>,
- TError,
- Awaited<ReturnType<typeof getV2GetAgentGraph>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetAgentGraph<
- TData = Awaited<ReturnType<typeof getV2GetAgentGraph>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentGraph>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetAgentGraph>>,
- TError,
- Awaited<ReturnType<typeof getV2GetAgentGraph>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetAgentGraph<
- TData = Awaited<ReturnType<typeof getV2GetAgentGraph>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentGraph>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get agent graph
- */
-
-export function useGetV2GetAgentGraph<
- TData = Awaited<ReturnType<typeof getV2GetAgentGraph>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentGraph>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2GetAgentGraphQueryOptions(
- storeListingVersionId,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get agent graph
- */
-export const prefetchGetV2GetAgentGraphQuery = async <
- TData = Awaited<ReturnType<typeof getV2GetAgentGraph>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentGraph>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2GetAgentGraphQueryOptions(
- storeListingVersionId,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Get Store Agent Details from Store Listing Version ID.
- * @summary Get agent by version
- */
-export type getV2GetAgentByVersionResponse200 = {
- data: StoreAgentDetails;
- status: 200;
-};
-
-export type getV2GetAgentByVersionResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2GetAgentByVersionResponseComposite =
- | getV2GetAgentByVersionResponse200
- | getV2GetAgentByVersionResponse422;
-
-export type getV2GetAgentByVersionResponse =
- getV2GetAgentByVersionResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2GetAgentByVersionUrl = (storeListingVersionId: string) => {
- return `/api/store/agents/${storeListingVersionId}`;
-};
-
-export const getV2GetAgentByVersion = async (
- storeListingVersionId: string,
- options?: RequestInit,
-): Promise<getV2GetAgentByVersionResponse> => {
- return customMutator<getV2GetAgentByVersionResponse>(
- getGetV2GetAgentByVersionUrl(storeListingVersionId),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2GetAgentByVersionQueryKey = (
- storeListingVersionId?: string,
-) => {
- return [`/api/store/agents/${storeListingVersionId}`] as const;
-};
-
-export const getGetV2GetAgentByVersionQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2GetAgentByVersion>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentByVersion>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ??
- getGetV2GetAgentByVersionQueryKey(storeListingVersionId);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2GetAgentByVersion>>
- > = ({ signal }) =>
- getV2GetAgentByVersion(storeListingVersionId, {
- signal,
- ...requestOptions,
- });
-
- return {
- queryKey,
- queryFn,
- enabled: !!storeListingVersionId,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentByVersion>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2GetAgentByVersionQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2GetAgentByVersion>>
->;
-export type GetV2GetAgentByVersionQueryError = HTTPValidationError;
-
-export function useGetV2GetAgentByVersion<
- TData = Awaited<ReturnType<typeof getV2GetAgentByVersion>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentByVersion>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetAgentByVersion>>,
- TError,
- Awaited<ReturnType<typeof getV2GetAgentByVersion>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetAgentByVersion<
- TData = Awaited<ReturnType<typeof getV2GetAgentByVersion>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentByVersion>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetAgentByVersion>>,
- TError,
- Awaited<ReturnType<typeof getV2GetAgentByVersion>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetAgentByVersion<
- TData = Awaited<ReturnType<typeof getV2GetAgentByVersion>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentByVersion>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get agent by version
- */
-
-export function useGetV2GetAgentByVersion<
- TData = Awaited<ReturnType<typeof getV2GetAgentByVersion>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentByVersion>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2GetAgentByVersionQueryOptions(
- storeListingVersionId,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get agent by version
- */
-export const prefetchGetV2GetAgentByVersionQuery = async <
- TData = Awaited<ReturnType<typeof getV2GetAgentByVersion>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetAgentByVersion>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2GetAgentByVersionQueryOptions(
- storeListingVersionId,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Create a review for a store agent.
-
-Args:
- username: Creator's username
- agent_name: Name/slug of the agent
- review: Review details including score and optional comments
- user_id: ID of authenticated user creating the review
-
-Returns:
- The created review
- * @summary Create agent review
- */
-export type postV2CreateAgentReviewResponse200 = {
- data: StoreReview;
- status: 200;
-};
-
-export type postV2CreateAgentReviewResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV2CreateAgentReviewResponseComposite =
- | postV2CreateAgentReviewResponse200
- | postV2CreateAgentReviewResponse422;
-
-export type postV2CreateAgentReviewResponse =
- postV2CreateAgentReviewResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV2CreateAgentReviewUrl = (
- username: string,
- agentName: string,
-) => {
- return `/api/store/agents/${username}/${agentName}/review`;
-};
-
-export const postV2CreateAgentReview = async (
- username: string,
- agentName: string,
- storeReviewCreate: StoreReviewCreate,
- options?: RequestInit,
-): Promise<postV2CreateAgentReviewResponse> => {
- return customMutator<postV2CreateAgentReviewResponse>(
- getPostV2CreateAgentReviewUrl(username, agentName),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(storeReviewCreate),
- },
- );
-};
-
-export const getPostV2CreateAgentReviewMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2CreateAgentReview>>,
- TError,
- { username: string; agentName: string; data: StoreReviewCreate },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV2CreateAgentReview>>,
- TError,
- { username: string; agentName: string; data: StoreReviewCreate },
- TContext
-> => {
- const mutationKey = ["postV2CreateAgentReview"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV2CreateAgentReview>>,
- { username: string; agentName: string; data: StoreReviewCreate }
- > = (props) => {
- const { username, agentName, data } = props ?? {};
-
- return postV2CreateAgentReview(username, agentName, data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV2CreateAgentReviewMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV2CreateAgentReview>>
->;
-export type PostV2CreateAgentReviewMutationBody = StoreReviewCreate;
-export type PostV2CreateAgentReviewMutationError = HTTPValidationError;
-
-/**
- * @summary Create agent review
- */
-export const usePostV2CreateAgentReview = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2CreateAgentReview>>,
- TError,
- { username: string; agentName: string; data: StoreReviewCreate },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV2CreateAgentReview>>,
- TError,
- { username: string; agentName: string; data: StoreReviewCreate },
- TContext
-> => {
- const mutationOptions = getPostV2CreateAgentReviewMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * This is needed for:
-- Home Page Featured Creators
-- Search Results Page
-
----
-
-To support this functionality we need:
-- featured: bool - to limit the list to just featured agents
-- search_query: str - vector search based on the creators profile description.
-- sorted_by: [agent_rating, agent_runs] -
- * @summary List store creators
- */
-export type getV2ListStoreCreatorsResponse200 = {
- data: CreatorsResponse;
- status: 200;
-};
-
-export type getV2ListStoreCreatorsResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2ListStoreCreatorsResponseComposite =
- | getV2ListStoreCreatorsResponse200
- | getV2ListStoreCreatorsResponse422;
-
-export type getV2ListStoreCreatorsResponse =
- getV2ListStoreCreatorsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2ListStoreCreatorsUrl = (
- params?: GetV2ListStoreCreatorsParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/store/creators?${stringifiedParams}`
- : `/api/store/creators`;
-};
-
-export const getV2ListStoreCreators = async (
- params?: GetV2ListStoreCreatorsParams,
- options?: RequestInit,
-): Promise<getV2ListStoreCreatorsResponse> => {
- return customMutator<getV2ListStoreCreatorsResponse>(
- getGetV2ListStoreCreatorsUrl(params),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2ListStoreCreatorsQueryKey = (
- params?: GetV2ListStoreCreatorsParams,
-) => {
- return [`/api/store/creators`, ...(params ? [params] : [])] as const;
-};
-
-export const getGetV2ListStoreCreatorsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2ListStoreCreators>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListStoreCreatorsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListStoreCreators>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV2ListStoreCreatorsQueryKey(params);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2ListStoreCreators>>
- > = ({ signal }) =>
- getV2ListStoreCreators(params, { signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListStoreCreators>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2ListStoreCreatorsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2ListStoreCreators>>
->;
-export type GetV2ListStoreCreatorsQueryError = HTTPValidationError;
-
-export function useGetV2ListStoreCreators<
- TData = Awaited<ReturnType<typeof getV2ListStoreCreators>>,
- TError = HTTPValidationError,
->(
- params: undefined | GetV2ListStoreCreatorsParams,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListStoreCreators>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2ListStoreCreators>>,
- TError,
- Awaited<ReturnType<typeof getV2ListStoreCreators>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2ListStoreCreators<
- TData = Awaited<ReturnType<typeof getV2ListStoreCreators>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListStoreCreatorsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListStoreCreators>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2ListStoreCreators>>,
- TError,
- Awaited<ReturnType<typeof getV2ListStoreCreators>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2ListStoreCreators<
- TData = Awaited<ReturnType<typeof getV2ListStoreCreators>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListStoreCreatorsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListStoreCreators>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary List store creators
- */
-
-export function useGetV2ListStoreCreators<
- TData = Awaited<ReturnType<typeof getV2ListStoreCreators>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListStoreCreatorsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListStoreCreators>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2ListStoreCreatorsQueryOptions(params, options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary List store creators
- */
-export const prefetchGetV2ListStoreCreatorsQuery = async <
- TData = Awaited<ReturnType<typeof getV2ListStoreCreators>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- params?: GetV2ListStoreCreatorsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListStoreCreators>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2ListStoreCreatorsQueryOptions(params, options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Get the details of a creator
-- Creator Details Page
- * @summary Get creator details
- */
-export type getV2GetCreatorDetailsResponse200 = {
- data: CreatorDetails;
- status: 200;
-};
-
-export type getV2GetCreatorDetailsResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2GetCreatorDetailsResponseComposite =
- | getV2GetCreatorDetailsResponse200
- | getV2GetCreatorDetailsResponse422;
-
-export type getV2GetCreatorDetailsResponse =
- getV2GetCreatorDetailsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2GetCreatorDetailsUrl = (username: string) => {
- return `/api/store/creator/${username}`;
-};
-
-export const getV2GetCreatorDetails = async (
- username: string,
- options?: RequestInit,
-): Promise<getV2GetCreatorDetailsResponse> => {
- return customMutator<getV2GetCreatorDetailsResponse>(
- getGetV2GetCreatorDetailsUrl(username),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2GetCreatorDetailsQueryKey = (username?: string) => {
- return [`/api/store/creator/${username}`] as const;
-};
-
-export const getGetV2GetCreatorDetailsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2GetCreatorDetails>>,
- TError = HTTPValidationError,
->(
- username: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetCreatorDetails>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV2GetCreatorDetailsQueryKey(username);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2GetCreatorDetails>>
- > = ({ signal }) =>
- getV2GetCreatorDetails(username, { signal, ...requestOptions });
-
- return {
- queryKey,
- queryFn,
- enabled: !!username,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetCreatorDetails>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2GetCreatorDetailsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2GetCreatorDetails>>
->;
-export type GetV2GetCreatorDetailsQueryError = HTTPValidationError;
-
-export function useGetV2GetCreatorDetails<
- TData = Awaited<ReturnType<typeof getV2GetCreatorDetails>>,
- TError = HTTPValidationError,
->(
- username: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetCreatorDetails>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetCreatorDetails>>,
- TError,
- Awaited<ReturnType<typeof getV2GetCreatorDetails>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetCreatorDetails<
- TData = Awaited<ReturnType<typeof getV2GetCreatorDetails>>,
- TError = HTTPValidationError,
->(
- username: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetCreatorDetails>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetCreatorDetails>>,
- TError,
- Awaited<ReturnType<typeof getV2GetCreatorDetails>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetCreatorDetails<
- TData = Awaited<ReturnType<typeof getV2GetCreatorDetails>>,
- TError = HTTPValidationError,
->(
- username: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetCreatorDetails>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get creator details
- */
-
-export function useGetV2GetCreatorDetails<
- TData = Awaited<ReturnType<typeof getV2GetCreatorDetails>>,
- TError = HTTPValidationError,
->(
- username: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetCreatorDetails>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2GetCreatorDetailsQueryOptions(username, options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get creator details
- */
-export const prefetchGetV2GetCreatorDetailsQuery = async <
- TData = Awaited<ReturnType<typeof getV2GetCreatorDetails>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- username: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetCreatorDetails>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2GetCreatorDetailsQueryOptions(username, options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * @summary Get my agents
- */
-export type getV2GetMyAgentsResponse200 = {
- data: MyAgentsResponse;
- status: 200;
-};
-
-export type getV2GetMyAgentsResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2GetMyAgentsResponseComposite =
- | getV2GetMyAgentsResponse200
- | getV2GetMyAgentsResponse422;
-
-export type getV2GetMyAgentsResponse = getV2GetMyAgentsResponseComposite & {
- headers: Headers;
-};
-
-export const getGetV2GetMyAgentsUrl = (params?: GetV2GetMyAgentsParams) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/store/myagents?${stringifiedParams}`
- : `/api/store/myagents`;
-};
-
-export const getV2GetMyAgents = async (
- params?: GetV2GetMyAgentsParams,
- options?: RequestInit,
-): Promise<getV2GetMyAgentsResponse> => {
- return customMutator<getV2GetMyAgentsResponse>(
- getGetV2GetMyAgentsUrl(params),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2GetMyAgentsQueryKey = (
- params?: GetV2GetMyAgentsParams,
-) => {
- return [`/api/store/myagents`, ...(params ? [params] : [])] as const;
-};
-
-export const getGetV2GetMyAgentsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2GetMyAgents>>,
- TError = HTTPValidationError,
->(
- params?: GetV2GetMyAgentsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetMyAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV2GetMyAgentsQueryKey(params);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2GetMyAgents>>
- > = ({ signal }) => getV2GetMyAgents(params, { signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetMyAgents>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2GetMyAgentsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2GetMyAgents>>
->;
-export type GetV2GetMyAgentsQueryError = HTTPValidationError;
-
-export function useGetV2GetMyAgents<
- TData = Awaited<ReturnType<typeof getV2GetMyAgents>>,
- TError = HTTPValidationError,
->(
- params: undefined | GetV2GetMyAgentsParams,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetMyAgents>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetMyAgents>>,
- TError,
- Awaited<ReturnType<typeof getV2GetMyAgents>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetMyAgents<
- TData = Awaited<ReturnType<typeof getV2GetMyAgents>>,
- TError = HTTPValidationError,
->(
- params?: GetV2GetMyAgentsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetMyAgents>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2GetMyAgents>>,
- TError,
- Awaited<ReturnType<typeof getV2GetMyAgents>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2GetMyAgents<
- TData = Awaited<ReturnType<typeof getV2GetMyAgents>>,
- TError = HTTPValidationError,
->(
- params?: GetV2GetMyAgentsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetMyAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Get my agents
- */
-
-export function useGetV2GetMyAgents<
- TData = Awaited<ReturnType<typeof getV2GetMyAgents>>,
- TError = HTTPValidationError,
->(
- params?: GetV2GetMyAgentsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetMyAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2GetMyAgentsQueryOptions(params, options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Get my agents
- */
-export const prefetchGetV2GetMyAgentsQuery = async <
- TData = Awaited<ReturnType<typeof getV2GetMyAgents>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- params?: GetV2GetMyAgentsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2GetMyAgents>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2GetMyAgentsQueryOptions(params, options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Delete a store listing submission.
-
-Args:
- user_id (str): ID of the authenticated user
- submission_id (str): ID of the submission to be deleted
-
-Returns:
- bool: True if the submission was successfully deleted, False otherwise
- * @summary Delete store submission
- */
-export type deleteV2DeleteStoreSubmissionResponse200 = {
- data: boolean;
- status: 200;
-};
-
-export type deleteV2DeleteStoreSubmissionResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type deleteV2DeleteStoreSubmissionResponseComposite =
- | deleteV2DeleteStoreSubmissionResponse200
- | deleteV2DeleteStoreSubmissionResponse422;
-
-export type deleteV2DeleteStoreSubmissionResponse =
- deleteV2DeleteStoreSubmissionResponseComposite & {
- headers: Headers;
- };
-
-export const getDeleteV2DeleteStoreSubmissionUrl = (submissionId: string) => {
- return `/api/store/submissions/${submissionId}`;
-};
-
-export const deleteV2DeleteStoreSubmission = async (
- submissionId: string,
- options?: RequestInit,
-): Promise<deleteV2DeleteStoreSubmissionResponse> => {
- return customMutator<deleteV2DeleteStoreSubmissionResponse>(
- getDeleteV2DeleteStoreSubmissionUrl(submissionId),
- {
- ...options,
- method: "DELETE",
- },
- );
-};
-
-export const getDeleteV2DeleteStoreSubmissionMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV2DeleteStoreSubmission>>,
- TError,
- { submissionId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof deleteV2DeleteStoreSubmission>>,
- TError,
- { submissionId: string },
- TContext
-> => {
- const mutationKey = ["deleteV2DeleteStoreSubmission"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof deleteV2DeleteStoreSubmission>>,
- { submissionId: string }
- > = (props) => {
- const { submissionId } = props ?? {};
-
- return deleteV2DeleteStoreSubmission(submissionId, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type DeleteV2DeleteStoreSubmissionMutationResult = NonNullable<
- Awaited<ReturnType<typeof deleteV2DeleteStoreSubmission>>
->;
-
-export type DeleteV2DeleteStoreSubmissionMutationError = HTTPValidationError;
-
-/**
- * @summary Delete store submission
- */
-export const useDeleteV2DeleteStoreSubmission = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof deleteV2DeleteStoreSubmission>>,
- TError,
- { submissionId: string },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof deleteV2DeleteStoreSubmission>>,
- TError,
- { submissionId: string },
- TContext
-> => {
- const mutationOptions =
- getDeleteV2DeleteStoreSubmissionMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * Get a paginated list of store submissions for the authenticated user.
-
-Args:
- user_id (str): ID of the authenticated user
- page (int, optional): Page number for pagination. Defaults to 1.
- page_size (int, optional): Number of submissions per page. Defaults to 20.
-
-Returns:
- StoreListingsResponse: Paginated list of store submissions
-
-Raises:
- HTTPException: If page or page_size are less than 1
- * @summary List my submissions
- */
-export type getV2ListMySubmissionsResponse200 = {
- data: StoreSubmissionsResponse;
- status: 200;
-};
-
-export type getV2ListMySubmissionsResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2ListMySubmissionsResponseComposite =
- | getV2ListMySubmissionsResponse200
- | getV2ListMySubmissionsResponse422;
-
-export type getV2ListMySubmissionsResponse =
- getV2ListMySubmissionsResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2ListMySubmissionsUrl = (
- params?: GetV2ListMySubmissionsParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/store/submissions?${stringifiedParams}`
- : `/api/store/submissions`;
-};
-
-export const getV2ListMySubmissions = async (
- params?: GetV2ListMySubmissionsParams,
- options?: RequestInit,
-): Promise<getV2ListMySubmissionsResponse> => {
- return customMutator<getV2ListMySubmissionsResponse>(
- getGetV2ListMySubmissionsUrl(params),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2ListMySubmissionsQueryKey = (
- params?: GetV2ListMySubmissionsParams,
-) => {
- return [`/api/store/submissions`, ...(params ? [params] : [])] as const;
-};
-
-export const getGetV2ListMySubmissionsQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2ListMySubmissions>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListMySubmissionsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListMySubmissions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ?? getGetV2ListMySubmissionsQueryKey(params);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2ListMySubmissions>>
- > = ({ signal }) =>
- getV2ListMySubmissions(params, { signal, ...requestOptions });
-
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListMySubmissions>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2ListMySubmissionsQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2ListMySubmissions>>
->;
-export type GetV2ListMySubmissionsQueryError = HTTPValidationError;
-
-export function useGetV2ListMySubmissions<
- TData = Awaited<ReturnType<typeof getV2ListMySubmissions>>,
- TError = HTTPValidationError,
->(
- params: undefined | GetV2ListMySubmissionsParams,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListMySubmissions>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2ListMySubmissions>>,
- TError,
- Awaited<ReturnType<typeof getV2ListMySubmissions>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2ListMySubmissions<
- TData = Awaited<ReturnType<typeof getV2ListMySubmissions>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListMySubmissionsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListMySubmissions>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2ListMySubmissions>>,
- TError,
- Awaited<ReturnType<typeof getV2ListMySubmissions>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2ListMySubmissions<
- TData = Awaited<ReturnType<typeof getV2ListMySubmissions>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListMySubmissionsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListMySubmissions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary List my submissions
- */
-
-export function useGetV2ListMySubmissions<
- TData = Awaited<ReturnType<typeof getV2ListMySubmissions>>,
- TError = HTTPValidationError,
->(
- params?: GetV2ListMySubmissionsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListMySubmissions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2ListMySubmissionsQueryOptions(params, options);
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary List my submissions
- */
-export const prefetchGetV2ListMySubmissionsQuery = async <
- TData = Awaited<ReturnType<typeof getV2ListMySubmissions>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- params?: GetV2ListMySubmissionsParams,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2ListMySubmissions>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2ListMySubmissionsQueryOptions(params, options);
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
-
-/**
- * Create a new store listing submission.
-
-Args:
- submission_request (StoreSubmissionRequest): The submission details
- user_id (str): ID of the authenticated user submitting the listing
-
-Returns:
- StoreSubmission: The created store submission
-
-Raises:
- HTTPException: If there is an error creating the submission
- * @summary Create store submission
- */
-export type postV2CreateStoreSubmissionResponse200 = {
- data: StoreSubmission;
- status: 200;
-};
-
-export type postV2CreateStoreSubmissionResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV2CreateStoreSubmissionResponseComposite =
- | postV2CreateStoreSubmissionResponse200
- | postV2CreateStoreSubmissionResponse422;
-
-export type postV2CreateStoreSubmissionResponse =
- postV2CreateStoreSubmissionResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV2CreateStoreSubmissionUrl = () => {
- return `/api/store/submissions`;
-};
-
-export const postV2CreateStoreSubmission = async (
- storeSubmissionRequest: StoreSubmissionRequest,
- options?: RequestInit,
-): Promise<postV2CreateStoreSubmissionResponse> => {
- return customMutator<postV2CreateStoreSubmissionResponse>(
- getPostV2CreateStoreSubmissionUrl(),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(storeSubmissionRequest),
- },
- );
-};
-
-export const getPostV2CreateStoreSubmissionMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2CreateStoreSubmission>>,
- TError,
- { data: StoreSubmissionRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV2CreateStoreSubmission>>,
- TError,
- { data: StoreSubmissionRequest },
- TContext
-> => {
- const mutationKey = ["postV2CreateStoreSubmission"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV2CreateStoreSubmission>>,
- { data: StoreSubmissionRequest }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV2CreateStoreSubmission(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV2CreateStoreSubmissionMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV2CreateStoreSubmission>>
->;
-export type PostV2CreateStoreSubmissionMutationBody = StoreSubmissionRequest;
-export type PostV2CreateStoreSubmissionMutationError = HTTPValidationError;
-
-/**
- * @summary Create store submission
- */
-export const usePostV2CreateStoreSubmission = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2CreateStoreSubmission>>,
- TError,
- { data: StoreSubmissionRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV2CreateStoreSubmission>>,
- TError,
- { data: StoreSubmissionRequest },
- TContext
-> => {
- const mutationOptions =
- getPostV2CreateStoreSubmissionMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * Upload media (images/videos) for a store listing submission.
-
-Args:
- file (UploadFile): The media file to upload
- user_id (str): ID of the authenticated user uploading the media
-
-Returns:
- str: URL of the uploaded media file
-
-Raises:
- HTTPException: If there is an error uploading the media
- * @summary Upload submission media
- */
-export type postV2UploadSubmissionMediaResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type postV2UploadSubmissionMediaResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV2UploadSubmissionMediaResponseComposite =
- | postV2UploadSubmissionMediaResponse200
- | postV2UploadSubmissionMediaResponse422;
-
-export type postV2UploadSubmissionMediaResponse =
- postV2UploadSubmissionMediaResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV2UploadSubmissionMediaUrl = () => {
- return `/api/store/submissions/media`;
-};
-
-export const postV2UploadSubmissionMedia = async (
- bodyPostV2UploadSubmissionMedia: BodyPostV2UploadSubmissionMedia,
- options?: RequestInit,
-): Promise<postV2UploadSubmissionMediaResponse> => {
- const formData = new FormData();
- formData.append(`file`, bodyPostV2UploadSubmissionMedia.file);
-
- return customMutator<postV2UploadSubmissionMediaResponse>(
- getPostV2UploadSubmissionMediaUrl(),
- {
- ...options,
- method: "POST",
- body: formData,
- },
- );
-};
-
-export const getPostV2UploadSubmissionMediaMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2UploadSubmissionMedia>>,
- TError,
- { data: BodyPostV2UploadSubmissionMedia },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV2UploadSubmissionMedia>>,
- TError,
- { data: BodyPostV2UploadSubmissionMedia },
- TContext
-> => {
- const mutationKey = ["postV2UploadSubmissionMedia"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV2UploadSubmissionMedia>>,
- { data: BodyPostV2UploadSubmissionMedia }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV2UploadSubmissionMedia(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV2UploadSubmissionMediaMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV2UploadSubmissionMedia>>
->;
-export type PostV2UploadSubmissionMediaMutationBody =
- BodyPostV2UploadSubmissionMedia;
-export type PostV2UploadSubmissionMediaMutationError = HTTPValidationError;
-
-/**
- * @summary Upload submission media
- */
-export const usePostV2UploadSubmissionMedia = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2UploadSubmissionMedia>>,
- TError,
- { data: BodyPostV2UploadSubmissionMedia },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV2UploadSubmissionMedia>>,
- TError,
- { data: BodyPostV2UploadSubmissionMedia },
- TContext
-> => {
- const mutationOptions =
- getPostV2UploadSubmissionMediaMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * Generate an image for a store listing submission.
-
-Args:
- agent_id (str): ID of the agent to generate an image for
- user_id (str): ID of the authenticated user
-
-Returns:
- JSONResponse: JSON containing the URL of the generated image
- * @summary Generate submission image
- */
-export type postV2GenerateSubmissionImageResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type postV2GenerateSubmissionImageResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV2GenerateSubmissionImageResponseComposite =
- | postV2GenerateSubmissionImageResponse200
- | postV2GenerateSubmissionImageResponse422;
-
-export type postV2GenerateSubmissionImageResponse =
- postV2GenerateSubmissionImageResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV2GenerateSubmissionImageUrl = (
- params: PostV2GenerateSubmissionImageParams,
-) => {
- const normalizedParams = new URLSearchParams();
-
- Object.entries(params || {}).forEach(([key, value]) => {
- if (value !== undefined) {
- normalizedParams.append(key, value === null ? "null" : value.toString());
- }
- });
-
- const stringifiedParams = normalizedParams.toString();
-
- return stringifiedParams.length > 0
- ? `/api/store/submissions/generate_image?${stringifiedParams}`
- : `/api/store/submissions/generate_image`;
-};
-
-export const postV2GenerateSubmissionImage = async (
- params: PostV2GenerateSubmissionImageParams,
- options?: RequestInit,
-): Promise<postV2GenerateSubmissionImageResponse> => {
- return customMutator<postV2GenerateSubmissionImageResponse>(
- getPostV2GenerateSubmissionImageUrl(params),
- {
- ...options,
- method: "POST",
- },
- );
-};
-
-export const getPostV2GenerateSubmissionImageMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2GenerateSubmissionImage>>,
- TError,
- { params: PostV2GenerateSubmissionImageParams },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV2GenerateSubmissionImage>>,
- TError,
- { params: PostV2GenerateSubmissionImageParams },
- TContext
-> => {
- const mutationKey = ["postV2GenerateSubmissionImage"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV2GenerateSubmissionImage>>,
- { params: PostV2GenerateSubmissionImageParams }
- > = (props) => {
- const { params } = props ?? {};
-
- return postV2GenerateSubmissionImage(params, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV2GenerateSubmissionImageMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV2GenerateSubmissionImage>>
->;
-
-export type PostV2GenerateSubmissionImageMutationError = HTTPValidationError;
-
-/**
- * @summary Generate submission image
- */
-export const usePostV2GenerateSubmissionImage = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2GenerateSubmissionImage>>,
- TError,
- { params: PostV2GenerateSubmissionImageParams },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV2GenerateSubmissionImage>>,
- TError,
- { params: PostV2GenerateSubmissionImageParams },
- TContext
-> => {
- const mutationOptions =
- getPostV2GenerateSubmissionImageMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
-/**
- * Download the agent file by streaming its content.
-
-Args:
- store_listing_version_id (str): The ID of the agent to download
-
-Returns:
- StreamingResponse: A streaming response containing the agent's graph data.
-
-Raises:
- HTTPException: If the agent is not found or an unexpected error occurs.
- * @summary Download agent file
- */
-export type getV2DownloadAgentFileResponse200 = {
- data: unknown;
- status: 200;
-};
-
-export type getV2DownloadAgentFileResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type getV2DownloadAgentFileResponseComposite =
- | getV2DownloadAgentFileResponse200
- | getV2DownloadAgentFileResponse422;
-
-export type getV2DownloadAgentFileResponse =
- getV2DownloadAgentFileResponseComposite & {
- headers: Headers;
- };
-
-export const getGetV2DownloadAgentFileUrl = (storeListingVersionId: string) => {
- return `/api/store/download/agents/${storeListingVersionId}`;
-};
-
-export const getV2DownloadAgentFile = async (
- storeListingVersionId: string,
- options?: RequestInit,
-): Promise<getV2DownloadAgentFileResponse> => {
- return customMutator<getV2DownloadAgentFileResponse>(
- getGetV2DownloadAgentFileUrl(storeListingVersionId),
- {
- ...options,
- method: "GET",
- },
- );
-};
-
-export const getGetV2DownloadAgentFileQueryKey = (
- storeListingVersionId?: string,
-) => {
- return [`/api/store/download/agents/${storeListingVersionId}`] as const;
-};
-
-export const getGetV2DownloadAgentFileQueryOptions = <
- TData = Awaited<ReturnType<typeof getV2DownloadAgentFile>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2DownloadAgentFile>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-) => {
- const { query: queryOptions, request: requestOptions } = options ?? {};
-
- const queryKey =
- queryOptions?.queryKey ??
- getGetV2DownloadAgentFileQueryKey(storeListingVersionId);
-
- const queryFn: QueryFunction<
- Awaited<ReturnType<typeof getV2DownloadAgentFile>>
- > = ({ signal }) =>
- getV2DownloadAgentFile(storeListingVersionId, {
- signal,
- ...requestOptions,
- });
-
- return {
- queryKey,
- queryFn,
- enabled: !!storeListingVersionId,
- ...queryOptions,
- } as UseQueryOptions<
- Awaited<ReturnType<typeof getV2DownloadAgentFile>>,
- TError,
- TData
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-};
-
-export type GetV2DownloadAgentFileQueryResult = NonNullable<
- Awaited<ReturnType<typeof getV2DownloadAgentFile>>
->;
-export type GetV2DownloadAgentFileQueryError = HTTPValidationError;
-
-export function useGetV2DownloadAgentFile<
- TData = Awaited<ReturnType<typeof getV2DownloadAgentFile>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options: {
- query: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2DownloadAgentFile>>,
- TError,
- TData
- >
- > &
- Pick<
- DefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2DownloadAgentFile>>,
- TError,
- Awaited<ReturnType<typeof getV2DownloadAgentFile>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): DefinedUseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2DownloadAgentFile<
- TData = Awaited<ReturnType<typeof getV2DownloadAgentFile>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2DownloadAgentFile>>,
- TError,
- TData
- >
- > &
- Pick<
- UndefinedInitialDataOptions<
- Awaited<ReturnType<typeof getV2DownloadAgentFile>>,
- TError,
- Awaited<ReturnType<typeof getV2DownloadAgentFile>>
- >,
- "initialData"
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-export function useGetV2DownloadAgentFile<
- TData = Awaited<ReturnType<typeof getV2DownloadAgentFile>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2DownloadAgentFile>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-};
-/**
- * @summary Download agent file
- */
-
-export function useGetV2DownloadAgentFile<
- TData = Awaited<ReturnType<typeof getV2DownloadAgentFile>>,
- TError = HTTPValidationError,
->(
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2DownloadAgentFile>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseQueryResult<TData, TError> & {
- queryKey: DataTag<QueryKey, TData, TError>;
-} {
- const queryOptions = getGetV2DownloadAgentFileQueryOptions(
- storeListingVersionId,
- options,
- );
-
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
- TData,
- TError
- > & { queryKey: DataTag<QueryKey, TData, TError> };
-
- query.queryKey = queryOptions.queryKey;
-
- return query;
-}
-
-/**
- * @summary Download agent file
- */
-export const prefetchGetV2DownloadAgentFileQuery = async <
- TData = Awaited<ReturnType<typeof getV2DownloadAgentFile>>,
- TError = HTTPValidationError,
->(
- queryClient: QueryClient,
- storeListingVersionId: string,
- options?: {
- query?: Partial<
- UseQueryOptions<
- Awaited<ReturnType<typeof getV2DownloadAgentFile>>,
- TError,
- TData
- >
- >;
- request?: SecondParameter<typeof customMutator>;
- },
-): Promise<QueryClient> => {
- const queryOptions = getGetV2DownloadAgentFileQueryOptions(
- storeListingVersionId,
- options,
- );
-
- await queryClient.prefetchQuery(queryOptions);
-
- return queryClient;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/turnstile/turnstile.ts b/autogpt_platform/frontend/src/app/api/__generated__/endpoints/turnstile/turnstile.ts
deleted file mode 100644
index a6ac9453af..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/endpoints/turnstile/turnstile.ts
+++ /dev/null
@@ -1,140 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import { useMutation } from "@tanstack/react-query";
-import type {
- MutationFunction,
- QueryClient,
- UseMutationOptions,
- UseMutationResult,
-} from "@tanstack/react-query";
-
-import type { HTTPValidationError } from "../../models/hTTPValidationError";
-
-import type { TurnstileVerifyRequest } from "../../models/turnstileVerifyRequest";
-
-import type { TurnstileVerifyResponse } from "../../models/turnstileVerifyResponse";
-
-import { customMutator } from "../../../mutators/custom-mutator";
-
-type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
-
-/**
- * Verify a Cloudflare Turnstile token.
-This endpoint verifies a token returned by the Cloudflare Turnstile challenge
-on the client side. It returns whether the verification was successful.
- * @summary Verify Turnstile Token
- */
-export type postV2VerifyTurnstileTokenResponse200 = {
- data: TurnstileVerifyResponse;
- status: 200;
-};
-
-export type postV2VerifyTurnstileTokenResponse422 = {
- data: HTTPValidationError;
- status: 422;
-};
-
-export type postV2VerifyTurnstileTokenResponseComposite =
- | postV2VerifyTurnstileTokenResponse200
- | postV2VerifyTurnstileTokenResponse422;
-
-export type postV2VerifyTurnstileTokenResponse =
- postV2VerifyTurnstileTokenResponseComposite & {
- headers: Headers;
- };
-
-export const getPostV2VerifyTurnstileTokenUrl = () => {
- return `/api/turnstile/verify`;
-};
-
-export const postV2VerifyTurnstileToken = async (
- turnstileVerifyRequest: TurnstileVerifyRequest,
- options?: RequestInit,
-): Promise<postV2VerifyTurnstileTokenResponse> => {
- return customMutator<postV2VerifyTurnstileTokenResponse>(
- getPostV2VerifyTurnstileTokenUrl(),
- {
- ...options,
- method: "POST",
- headers: { "Content-Type": "application/json", ...options?.headers },
- body: JSON.stringify(turnstileVerifyRequest),
- },
- );
-};
-
-export const getPostV2VerifyTurnstileTokenMutationOptions = <
- TError = HTTPValidationError,
- TContext = unknown,
->(options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2VerifyTurnstileToken>>,
- TError,
- { data: TurnstileVerifyRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
-}): UseMutationOptions<
- Awaited<ReturnType<typeof postV2VerifyTurnstileToken>>,
- TError,
- { data: TurnstileVerifyRequest },
- TContext
-> => {
- const mutationKey = ["postV2VerifyTurnstileToken"];
- const { mutation: mutationOptions, request: requestOptions } = options
- ? options.mutation &&
- "mutationKey" in options.mutation &&
- options.mutation.mutationKey
- ? options
- : { ...options, mutation: { ...options.mutation, mutationKey } }
- : { mutation: { mutationKey }, request: undefined };
-
- const mutationFn: MutationFunction<
- Awaited<ReturnType<typeof postV2VerifyTurnstileToken>>,
- { data: TurnstileVerifyRequest }
- > = (props) => {
- const { data } = props ?? {};
-
- return postV2VerifyTurnstileToken(data, requestOptions);
- };
-
- return { mutationFn, ...mutationOptions };
-};
-
-export type PostV2VerifyTurnstileTokenMutationResult = NonNullable<
- Awaited<ReturnType<typeof postV2VerifyTurnstileToken>>
->;
-export type PostV2VerifyTurnstileTokenMutationBody = TurnstileVerifyRequest;
-export type PostV2VerifyTurnstileTokenMutationError = HTTPValidationError;
-
-/**
- * @summary Verify Turnstile Token
- */
-export const usePostV2VerifyTurnstileToken = <
- TError = HTTPValidationError,
- TContext = unknown,
->(
- options?: {
- mutation?: UseMutationOptions<
- Awaited<ReturnType<typeof postV2VerifyTurnstileToken>>,
- TError,
- { data: TurnstileVerifyRequest },
- TContext
- >;
- request?: SecondParameter<typeof customMutator>;
- },
- queryClient?: QueryClient,
-): UseMutationResult<
- Awaited<ReturnType<typeof postV2VerifyTurnstileToken>>,
- TError,
- { data: TurnstileVerifyRequest },
- TContext
-> => {
- const mutationOptions = getPostV2VerifyTurnstileTokenMutationOptions(options);
-
- return useMutation(mutationOptions, queryClient);
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyCredentials.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyCredentials.ts
deleted file mode 100644
index db33c3115d..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyCredentials.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { APIKeyCredentialsTitle } from "./aPIKeyCredentialsTitle";
-import type { APIKeyCredentialsExpiresAt } from "./aPIKeyCredentialsExpiresAt";
-
-export interface APIKeyCredentials {
- id?: string;
- provider: string;
- title?: APIKeyCredentialsTitle;
- type?: "api_key";
- api_key: string;
- /** Unix timestamp (seconds) indicating when the API key expires (if at all) */
- expires_at?: APIKeyCredentialsExpiresAt;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyCredentialsExpiresAt.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyCredentialsExpiresAt.ts
deleted file mode 100644
index 4f08e5803b..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyCredentialsExpiresAt.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Unix timestamp (seconds) indicating when the API key expires (if at all)
- */
-export type APIKeyCredentialsExpiresAt = number | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyCredentialsTitle.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyCredentialsTitle.ts
deleted file mode 100644
index 3dc35e83bf..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyCredentialsTitle.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type APIKeyCredentialsTitle = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyPermission.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyPermission.ts
deleted file mode 100644
index e7f9c58d76..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyPermission.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type APIKeyPermission =
- (typeof APIKeyPermission)[keyof typeof APIKeyPermission];
-
-// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const APIKeyPermission = {
- EXECUTE_GRAPH: "EXECUTE_GRAPH",
- READ_GRAPH: "READ_GRAPH",
- EXECUTE_BLOCK: "EXECUTE_BLOCK",
- READ_BLOCK: "READ_BLOCK",
-} as const;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyStatus.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyStatus.ts
deleted file mode 100644
index 8a0ccd17d4..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyStatus.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type APIKeyStatus = (typeof APIKeyStatus)[keyof typeof APIKeyStatus];
-
-// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const APIKeyStatus = {
- ACTIVE: "ACTIVE",
- REVOKED: "REVOKED",
- SUSPENDED: "SUSPENDED",
-} as const;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyWithoutHash.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyWithoutHash.ts
deleted file mode 100644
index cfa9f297f3..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyWithoutHash.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { APIKeyStatus } from "./aPIKeyStatus";
-import type { APIKeyPermission } from "./aPIKeyPermission";
-import type { APIKeyWithoutHashLastUsedAt } from "./aPIKeyWithoutHashLastUsedAt";
-import type { APIKeyWithoutHashRevokedAt } from "./aPIKeyWithoutHashRevokedAt";
-import type { APIKeyWithoutHashDescription } from "./aPIKeyWithoutHashDescription";
-
-export interface APIKeyWithoutHash {
- id: string;
- name: string;
- prefix: string;
- postfix: string;
- status: APIKeyStatus;
- permissions: APIKeyPermission[];
- created_at: string;
- last_used_at: APIKeyWithoutHashLastUsedAt;
- revoked_at: APIKeyWithoutHashRevokedAt;
- description: APIKeyWithoutHashDescription;
- user_id: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyWithoutHashDescription.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyWithoutHashDescription.ts
deleted file mode 100644
index 8baa96b0d7..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyWithoutHashDescription.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type APIKeyWithoutHashDescription = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyWithoutHashLastUsedAt.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyWithoutHashLastUsedAt.ts
deleted file mode 100644
index 4bee029900..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyWithoutHashLastUsedAt.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type APIKeyWithoutHashLastUsedAt = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyWithoutHashRevokedAt.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyWithoutHashRevokedAt.ts
deleted file mode 100644
index 85e8c74c48..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/aPIKeyWithoutHashRevokedAt.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type APIKeyWithoutHashRevokedAt = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/addUserCreditsResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/addUserCreditsResponse.ts
deleted file mode 100644
index a9b4d411bf..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/addUserCreditsResponse.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface AddUserCreditsResponse {
- new_balance: number;
- transaction_key: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/agentExecutionStatus.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/agentExecutionStatus.ts
deleted file mode 100644
index c89586f2c1..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/agentExecutionStatus.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type AgentExecutionStatus =
- (typeof AgentExecutionStatus)[keyof typeof AgentExecutionStatus];
-
-// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const AgentExecutionStatus = {
- INCOMPLETE: "INCOMPLETE",
- QUEUED: "QUEUED",
- RUNNING: "RUNNING",
- COMPLETED: "COMPLETED",
- TERMINATED: "TERMINATED",
- FAILED: "FAILED",
-} as const;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/apiResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/apiResponse.ts
deleted file mode 100644
index 96b0634d31..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/apiResponse.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { Document } from "./document";
-
-export interface ApiResponse {
- answer: string;
- documents: Document[];
- success: boolean;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/autoTopUpConfig.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/autoTopUpConfig.ts
deleted file mode 100644
index fc741b84de..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/autoTopUpConfig.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface AutoTopUpConfig {
- amount: number;
- threshold: number;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/ayrshareSSOResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/ayrshareSSOResponse.ts
deleted file mode 100644
index d314b33bfc..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/ayrshareSSOResponse.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface AyrshareSSOResponse {
- /** The SSO URL for Ayrshare integration */
- sso_url: string;
- /** ISO timestamp when the URL expires */
- expires_at: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphInput.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphInput.ts
deleted file mode 100644
index e56d3932c5..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphInput.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { Node } from "./node";
-import type { Link } from "./link";
-import type { BaseGraphInputForkedFromId } from "./baseGraphInputForkedFromId";
-import type { BaseGraphInputForkedFromVersion } from "./baseGraphInputForkedFromVersion";
-
-export interface BaseGraphInput {
- id?: string;
- version?: number;
- is_active?: boolean;
- name: string;
- description: string;
- nodes?: Node[];
- links?: Link[];
- forked_from_id?: BaseGraphInputForkedFromId;
- forked_from_version?: BaseGraphInputForkedFromVersion;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphInputForkedFromId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphInputForkedFromId.ts
deleted file mode 100644
index 0ac2e11ead..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphInputForkedFromId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type BaseGraphInputForkedFromId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphInputForkedFromVersion.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphInputForkedFromVersion.ts
deleted file mode 100644
index 3a0b9d380e..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphInputForkedFromVersion.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type BaseGraphInputForkedFromVersion = number | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutput.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutput.ts
deleted file mode 100644
index 3a1c8b954a..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutput.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { Node } from "./node";
-import type { Link } from "./link";
-import type { BaseGraphOutputForkedFromId } from "./baseGraphOutputForkedFromId";
-import type { BaseGraphOutputForkedFromVersion } from "./baseGraphOutputForkedFromVersion";
-import type { BaseGraphOutputInputSchema } from "./baseGraphOutputInputSchema";
-import type { BaseGraphOutputOutputSchema } from "./baseGraphOutputOutputSchema";
-
-export interface BaseGraphOutput {
- id?: string;
- version?: number;
- is_active?: boolean;
- name: string;
- description: string;
- nodes?: Node[];
- links?: Link[];
- forked_from_id?: BaseGraphOutputForkedFromId;
- forked_from_version?: BaseGraphOutputForkedFromVersion;
- readonly input_schema: BaseGraphOutputInputSchema;
- readonly output_schema: BaseGraphOutputOutputSchema;
- readonly has_external_trigger: boolean;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutputForkedFromId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutputForkedFromId.ts
deleted file mode 100644
index e21c6966b5..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutputForkedFromId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type BaseGraphOutputForkedFromId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutputForkedFromVersion.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutputForkedFromVersion.ts
deleted file mode 100644
index b39f82f7fb..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutputForkedFromVersion.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type BaseGraphOutputForkedFromVersion = number | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutputInputSchema.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutputInputSchema.ts
deleted file mode 100644
index c7594ab209..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutputInputSchema.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type BaseGraphOutputInputSchema = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutputOutputSchema.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutputOutputSchema.ts
deleted file mode 100644
index b13047d6f1..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/baseGraphOutputOutputSchema.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type BaseGraphOutputOutputSchema = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1Callback.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1Callback.ts
deleted file mode 100644
index 83dc881417..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1Callback.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface BodyPostV1Callback {
- code: string;
- state_token: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1ExecuteGraphAgent.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1ExecuteGraphAgent.ts
deleted file mode 100644
index e7362708d7..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1ExecuteGraphAgent.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { BodyPostV1ExecuteGraphAgentInputs } from "./bodyPostV1ExecuteGraphAgentInputs";
-import type { BodyPostV1ExecuteGraphAgentCredentialsInputs } from "./bodyPostV1ExecuteGraphAgentCredentialsInputs";
-
-export interface BodyPostV1ExecuteGraphAgent {
- inputs?: BodyPostV1ExecuteGraphAgentInputs;
- credentials_inputs?: BodyPostV1ExecuteGraphAgentCredentialsInputs;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1ExecuteGraphAgentCredentialsInputs.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1ExecuteGraphAgentCredentialsInputs.ts
deleted file mode 100644
index c529e18d65..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1ExecuteGraphAgentCredentialsInputs.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { CredentialsMetaInput } from "./credentialsMetaInput";
-
-export type BodyPostV1ExecuteGraphAgentCredentialsInputs = {
- [key: string]: CredentialsMetaInput;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1ExecuteGraphAgentInputs.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1ExecuteGraphAgentInputs.ts
deleted file mode 100644
index 7261d9def0..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1ExecuteGraphAgentInputs.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type BodyPostV1ExecuteGraphAgentInputs = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1LogRawAnalytics.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1LogRawAnalytics.ts
deleted file mode 100644
index ed6338b90a..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1LogRawAnalytics.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { BodyPostV1LogRawAnalyticsData } from "./bodyPostV1LogRawAnalyticsData";
-
-export interface BodyPostV1LogRawAnalytics {
- type: string;
- /** The data to log */
- data: BodyPostV1LogRawAnalyticsData;
- /** Indexable field for any count based analytical measures like page order clicking, tutorial step completion, etc. */
- data_index: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1LogRawAnalyticsData.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1LogRawAnalyticsData.ts
deleted file mode 100644
index 8de8b79ca6..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1LogRawAnalyticsData.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * The data to log
- */
-export type BodyPostV1LogRawAnalyticsData = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1UploadFileToCloudStorage.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1UploadFileToCloudStorage.ts
deleted file mode 100644
index d8f909a39b..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV1UploadFileToCloudStorage.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface BodyPostV1UploadFileToCloudStorage {
- file: Blob;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV2AddCreditsToUser.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV2AddCreditsToUser.ts
deleted file mode 100644
index 50ea748b7b..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV2AddCreditsToUser.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface BodyPostV2AddCreditsToUser {
- user_id: string;
- amount: number;
- comments: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV2AddMarketplaceAgent.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV2AddMarketplaceAgent.ts
deleted file mode 100644
index 4a19691ec6..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV2AddMarketplaceAgent.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface BodyPostV2AddMarketplaceAgent {
- store_listing_version_id: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV2ExecuteAPreset.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV2ExecuteAPreset.ts
deleted file mode 100644
index 80ad4778ca..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV2ExecuteAPreset.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { BodyPostV2ExecuteAPresetInputs } from "./bodyPostV2ExecuteAPresetInputs";
-
-export interface BodyPostV2ExecuteAPreset {
- inputs?: BodyPostV2ExecuteAPresetInputs;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV2ExecuteAPresetInputs.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV2ExecuteAPresetInputs.ts
deleted file mode 100644
index ef2b84f8e6..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV2ExecuteAPresetInputs.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type BodyPostV2ExecuteAPresetInputs = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV2UploadSubmissionMedia.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV2UploadSubmissionMedia.ts
deleted file mode 100644
index 9a45ec5bcc..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/bodyPostV2UploadSubmissionMedia.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface BodyPostV2UploadSubmissionMedia {
- file: Blob;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/chatRequest.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/chatRequest.ts
deleted file mode 100644
index a90ce1202c..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/chatRequest.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { Message } from "./message";
-import type { ChatRequestGraphId } from "./chatRequestGraphId";
-
-export interface ChatRequest {
- query: string;
- conversation_history: Message[];
- message_id: string;
- include_graph_data?: boolean;
- graph_id?: ChatRequestGraphId;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/chatRequestGraphId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/chatRequestGraphId.ts
deleted file mode 100644
index cd2e3a9a62..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/chatRequestGraphId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type ChatRequestGraphId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/createAPIKeyRequest.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/createAPIKeyRequest.ts
deleted file mode 100644
index f56e6b774f..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/createAPIKeyRequest.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { APIKeyPermission } from "./aPIKeyPermission";
-import type { CreateAPIKeyRequestDescription } from "./createAPIKeyRequestDescription";
-
-export interface CreateAPIKeyRequest {
- name: string;
- permissions: APIKeyPermission[];
- description?: CreateAPIKeyRequestDescription;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/createAPIKeyRequestDescription.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/createAPIKeyRequestDescription.ts
deleted file mode 100644
index 54b48d5995..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/createAPIKeyRequestDescription.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type CreateAPIKeyRequestDescription = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/createAPIKeyResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/createAPIKeyResponse.ts
deleted file mode 100644
index 02b762fa98..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/createAPIKeyResponse.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { APIKeyWithoutHash } from "./aPIKeyWithoutHash";
-
-export interface CreateAPIKeyResponse {
- api_key: APIKeyWithoutHash;
- plain_text_key: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/createGraph.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/createGraph.ts
deleted file mode 100644
index 90b4405349..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/createGraph.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { Graph } from "./graph";
-
-export interface CreateGraph {
- graph: Graph;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/creator.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/creator.ts
deleted file mode 100644
index eb4297bebe..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/creator.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface Creator {
- name: string;
- username: string;
- description: string;
- avatar_url: string;
- num_agents: number;
- agent_rating: number;
- agent_runs: number;
- is_featured: boolean;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/creatorDetails.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/creatorDetails.ts
deleted file mode 100644
index 6890fe6a76..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/creatorDetails.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface CreatorDetails {
- name: string;
- username: string;
- description: string;
- links: string[];
- avatar_url: string;
- agent_rating: number;
- agent_runs: number;
- top_categories: string[];
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/creatorsResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/creatorsResponse.ts
deleted file mode 100644
index f91afe8ba2..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/creatorsResponse.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { Creator } from "./creator";
-import type { Pagination } from "./pagination";
-
-export interface CreatorsResponse {
- creators: Creator[];
- pagination: Pagination;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsDeletionNeedsConfirmationResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsDeletionNeedsConfirmationResponse.ts
deleted file mode 100644
index 344aa96da9..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsDeletionNeedsConfirmationResponse.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface CredentialsDeletionNeedsConfirmationResponse {
- deleted?: false;
- need_confirmation?: true;
- message: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsDeletionResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsDeletionResponse.ts
deleted file mode 100644
index 35641f44c4..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsDeletionResponse.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { CredentialsDeletionResponseRevoked } from "./credentialsDeletionResponseRevoked";
-
-export interface CredentialsDeletionResponse {
- deleted?: true;
- /** Indicates whether the credentials were also revoked by their provider. `None`/`null` if not applicable, e.g. when deleting non-revocable credentials such as API keys. */
- revoked: CredentialsDeletionResponseRevoked;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsDeletionResponseRevoked.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsDeletionResponseRevoked.ts
deleted file mode 100644
index d6ca8dde75..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsDeletionResponseRevoked.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Indicates whether the credentials were also revoked by their provider. `None`/`null` if not applicable, e.g. when deleting non-revocable credentials such as API keys.
- */
-export type CredentialsDeletionResponseRevoked = boolean | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaInput.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaInput.ts
deleted file mode 100644
index 04354551a1..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaInput.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { CredentialsMetaInputTitle } from "./credentialsMetaInputTitle";
-import type { CredentialsMetaInputType } from "./credentialsMetaInputType";
-
-export interface CredentialsMetaInput {
- id: string;
- title?: CredentialsMetaInputTitle;
- /** Provider name for integrations. Can be any string value, including custom provider names. */
- provider: string;
- type: CredentialsMetaInputType;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaInputTitle.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaInputTitle.ts
deleted file mode 100644
index e992e11df5..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaInputTitle.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type CredentialsMetaInputTitle = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaInputType.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaInputType.ts
deleted file mode 100644
index 1caa474a13..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaInputType.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type CredentialsMetaInputType =
- (typeof CredentialsMetaInputType)[keyof typeof CredentialsMetaInputType];
-
-// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const CredentialsMetaInputType = {
- api_key: "api_key",
- oauth2: "oauth2",
- user_password: "user_password",
- host_scoped: "host_scoped",
-} as const;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponse.ts
deleted file mode 100644
index 84c32faa2c..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponse.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { CredentialsMetaResponseType } from "./credentialsMetaResponseType";
-import type { CredentialsMetaResponseTitle } from "./credentialsMetaResponseTitle";
-import type { CredentialsMetaResponseScopes } from "./credentialsMetaResponseScopes";
-import type { CredentialsMetaResponseUsername } from "./credentialsMetaResponseUsername";
-import type { CredentialsMetaResponseHost } from "./credentialsMetaResponseHost";
-
-export interface CredentialsMetaResponse {
- id: string;
- provider: string;
- type: CredentialsMetaResponseType;
- title: CredentialsMetaResponseTitle;
- scopes: CredentialsMetaResponseScopes;
- username: CredentialsMetaResponseUsername;
- /** Host pattern for host-scoped credentials */
- host?: CredentialsMetaResponseHost;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponseHost.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponseHost.ts
deleted file mode 100644
index 6d31a47661..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponseHost.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Host pattern for host-scoped credentials
- */
-export type CredentialsMetaResponseHost = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponseScopes.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponseScopes.ts
deleted file mode 100644
index 045a490d75..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponseScopes.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type CredentialsMetaResponseScopes = string[] | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponseTitle.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponseTitle.ts
deleted file mode 100644
index 40466aa543..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponseTitle.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type CredentialsMetaResponseTitle = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponseType.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponseType.ts
deleted file mode 100644
index ee71d0194a..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponseType.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type CredentialsMetaResponseType =
- (typeof CredentialsMetaResponseType)[keyof typeof CredentialsMetaResponseType];
-
-// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const CredentialsMetaResponseType = {
- api_key: "api_key",
- oauth2: "oauth2",
- user_password: "user_password",
- host_scoped: "host_scoped",
-} as const;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponseUsername.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponseUsername.ts
deleted file mode 100644
index d2333d0076..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/credentialsMetaResponseUsername.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type CredentialsMetaResponseUsername = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/creditTransactionType.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/creditTransactionType.ts
deleted file mode 100644
index bfb7099b86..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/creditTransactionType.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type CreditTransactionType =
- (typeof CreditTransactionType)[keyof typeof CreditTransactionType];
-
-// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const CreditTransactionType = {
- TOP_UP: "TOP_UP",
- USAGE: "USAGE",
- GRANT: "GRANT",
- REFUND: "REFUND",
- CARD_CHECK: "CARD_CHECK",
-} as const;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/deleteGraphResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/deleteGraphResponse.ts
deleted file mode 100644
index baea42c23f..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/deleteGraphResponse.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface DeleteGraphResponse {
- version_counts: number;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/deleteV1DeleteCredentials200.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/deleteV1DeleteCredentials200.ts
deleted file mode 100644
index c397687ee5..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/deleteV1DeleteCredentials200.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { CredentialsDeletionResponse } from "./credentialsDeletionResponse";
-import type { CredentialsDeletionNeedsConfirmationResponse } from "./credentialsDeletionNeedsConfirmationResponse";
-
-export type DeleteV1DeleteCredentials200 =
- | CredentialsDeletionResponse
- | CredentialsDeletionNeedsConfirmationResponse;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/deleteV1DeleteCredentialsParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/deleteV1DeleteCredentialsParams.ts
deleted file mode 100644
index 71ade6f455..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/deleteV1DeleteCredentialsParams.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type DeleteV1DeleteCredentialsParams = {
- force?: boolean;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/deleteV1DeleteExecutionSchedule200.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/deleteV1DeleteExecutionSchedule200.ts
deleted file mode 100644
index ab00f542db..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/deleteV1DeleteExecutionSchedule200.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type DeleteV1DeleteExecutionSchedule200 = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/document.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/document.ts
deleted file mode 100644
index e99947a320..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/document.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface Document {
- url: string;
- relevance_score: number;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/executeGraphResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/executeGraphResponse.ts
deleted file mode 100644
index 060ef8eea7..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/executeGraphResponse.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface ExecuteGraphResponse {
- graph_exec_id: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetCredential200.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetCredential200.ts
deleted file mode 100644
index 3b58f3c05f..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetCredential200.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { OAuth2Credentials } from "./oAuth2Credentials";
-import type { APIKeyCredentials } from "./aPIKeyCredentials";
-import type { UserPasswordCredentials } from "./userPasswordCredentials";
-import type { HostScopedCredentialsOutput } from "./hostScopedCredentialsOutput";
-
-export type GetV1GetCredential200 =
- | OAuth2Credentials
- | APIKeyCredentials
- | UserPasswordCredentials
- | HostScopedCredentialsOutput;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetCreditHistoryParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetCreditHistoryParams.ts
deleted file mode 100644
index 5e0d6008ff..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetCreditHistoryParams.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GetV1GetCreditHistoryParams = {
- transaction_time?: string | null;
- transaction_type?: string | null;
- transaction_count_limit?: number;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetExecutionDetails200.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetExecutionDetails200.ts
deleted file mode 100644
index c2699a490d..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetExecutionDetails200.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { GraphExecution } from "./graphExecution";
-import type { GraphExecutionWithNodes } from "./graphExecutionWithNodes";
-
-export type GetV1GetExecutionDetails200 =
- | GraphExecution
- | GraphExecutionWithNodes;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetGraphVersionParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetGraphVersionParams.ts
deleted file mode 100644
index b11665aa2f..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetGraphVersionParams.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GetV1GetGraphVersionParams = {
- for_export?: boolean;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetSpecificGraphParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetSpecificGraphParams.ts
deleted file mode 100644
index 1056d088c1..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetSpecificGraphParams.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GetV1GetSpecificGraphParams = {
- version?: number | null;
- for_export?: boolean;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetUserCredits200.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetUserCredits200.ts
deleted file mode 100644
index c96ecae2d9..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1GetUserCredits200.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GetV1GetUserCredits200 = { [key: string]: number };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1ListAvailableBlocks200Item.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV1ListAvailableBlocks200Item.ts
deleted file mode 100644
index 8feabac281..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1ListAvailableBlocks200Item.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GetV1ListAvailableBlocks200Item = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1ListUserApiKeys200.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV1ListUserApiKeys200.ts
deleted file mode 100644
index 283f237d38..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1ListUserApiKeys200.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { APIKeyWithoutHash } from "./aPIKeyWithoutHash";
-import type { GetV1ListUserApiKeys200AnyOf } from "./getV1ListUserApiKeys200AnyOf";
-
-export type GetV1ListUserApiKeys200 =
- | APIKeyWithoutHash[]
- | GetV1ListUserApiKeys200AnyOf;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1ListUserApiKeys200AnyOf.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV1ListUserApiKeys200AnyOf.ts
deleted file mode 100644
index fab27705e5..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1ListUserApiKeys200AnyOf.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GetV1ListUserApiKeys200AnyOf = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1LoginParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV1LoginParams.ts
deleted file mode 100644
index a6a10a0ac5..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1LoginParams.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GetV1LoginParams = {
- scopes?: string;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1ManagePaymentMethods200.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV1ManagePaymentMethods200.ts
deleted file mode 100644
index a2594e7cb0..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV1ManagePaymentMethods200.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GetV1ManagePaymentMethods200 = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2GetAdminListingsHistoryParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV2GetAdminListingsHistoryParams.ts
deleted file mode 100644
index 7d3d4db4be..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2GetAdminListingsHistoryParams.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { SubmissionStatus } from "./submissionStatus";
-
-export type GetV2GetAdminListingsHistoryParams = {
- status?: SubmissionStatus | null;
- search?: string | null;
- page?: number;
- page_size?: number;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2GetAgentByStoreId200.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV2GetAgentByStoreId200.ts
deleted file mode 100644
index 94b6c2ec48..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2GetAgentByStoreId200.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { LibraryAgent } from "./libraryAgent";
-
-export type GetV2GetAgentByStoreId200 = LibraryAgent | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2GetAllUsersHistoryParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV2GetAllUsersHistoryParams.ts
deleted file mode 100644
index 86be9dfcf6..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2GetAllUsersHistoryParams.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { CreditTransactionType } from "./creditTransactionType";
-
-export type GetV2GetAllUsersHistoryParams = {
- search?: string | null;
- page?: number;
- page_size?: number;
- transaction_filter?: CreditTransactionType | null;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2GetLibraryAgentByGraphIdParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV2GetLibraryAgentByGraphIdParams.ts
deleted file mode 100644
index 2f4189d321..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2GetLibraryAgentByGraphIdParams.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GetV2GetLibraryAgentByGraphIdParams = {
- version?: number | null;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2GetMyAgentsParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV2GetMyAgentsParams.ts
deleted file mode 100644
index 82ea487185..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2GetMyAgentsParams.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GetV2GetMyAgentsParams = {
- /**
- * @minimum 1
- */
- page?: number;
- /**
- * @minimum 1
- */
- page_size?: number;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2ListLibraryAgentsParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV2ListLibraryAgentsParams.ts
deleted file mode 100644
index 1dce1643bb..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2ListLibraryAgentsParams.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { LibraryAgentSort } from "./libraryAgentSort";
-
-export type GetV2ListLibraryAgentsParams = {
- /**
- * Search term to filter agents
- */
- search_term?: string | null;
- /**
- * Criteria to sort results by
- */
- sort_by?: LibraryAgentSort;
- /**
- * Page number to retrieve (must be >= 1)
- * @minimum 1
- */
- page?: number;
- /**
- * Number of agents per page (must be >= 1)
- * @minimum 1
- */
- page_size?: number;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2ListMySubmissionsParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV2ListMySubmissionsParams.ts
deleted file mode 100644
index 280104c37b..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2ListMySubmissionsParams.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GetV2ListMySubmissionsParams = {
- page?: number;
- page_size?: number;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2ListPresetsParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV2ListPresetsParams.ts
deleted file mode 100644
index 748271b2a7..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2ListPresetsParams.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GetV2ListPresetsParams = {
- /**
- * @minimum 1
- */
- page?: number;
- /**
- * @minimum 1
- */
- page_size?: number;
- /**
- * Allows to filter presets by a specific agent graph
- */
- graph_id: string | null;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2ListStoreAgentsParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV2ListStoreAgentsParams.ts
deleted file mode 100644
index 7baeca9e2f..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2ListStoreAgentsParams.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GetV2ListStoreAgentsParams = {
- featured?: boolean;
- creator?: string | null;
- sorted_by?: string | null;
- search_query?: string | null;
- category?: string | null;
- page?: number;
- page_size?: number;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2ListStoreCreatorsParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/getV2ListStoreCreatorsParams.ts
deleted file mode 100644
index 7d1ec79f48..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/getV2ListStoreCreatorsParams.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GetV2ListStoreCreatorsParams = {
- featured?: boolean;
- search_query?: string | null;
- sorted_by?: string | null;
- page?: number;
- page_size?: number;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graph.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graph.ts
deleted file mode 100644
index f81c13ac1f..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graph.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { Node } from "./node";
-import type { Link } from "./link";
-import type { GraphForkedFromId } from "./graphForkedFromId";
-import type { GraphForkedFromVersion } from "./graphForkedFromVersion";
-import type { BaseGraphInput } from "./baseGraphInput";
-
-export interface Graph {
- id?: string;
- version?: number;
- is_active?: boolean;
- name: string;
- description: string;
- nodes?: Node[];
- links?: Link[];
- forked_from_id?: GraphForkedFromId;
- forked_from_version?: GraphForkedFromVersion;
- sub_graphs?: BaseGraphInput[];
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecution.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecution.ts
deleted file mode 100644
index 3d12f7ebaf..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecution.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { GraphExecutionPresetId } from "./graphExecutionPresetId";
-import type { AgentExecutionStatus } from "./agentExecutionStatus";
-import type { GraphExecutionStats } from "./graphExecutionStats";
-import type { GraphExecutionInputs } from "./graphExecutionInputs";
-import type { GraphExecutionOutputs } from "./graphExecutionOutputs";
-
-export interface GraphExecution {
- id?: string;
- user_id: string;
- graph_id: string;
- graph_version: number;
- preset_id?: GraphExecutionPresetId;
- status: AgentExecutionStatus;
- started_at: string;
- ended_at: string;
- stats: GraphExecutionStats;
- inputs: GraphExecutionInputs;
- outputs: GraphExecutionOutputs;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionInputs.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionInputs.ts
deleted file mode 100644
index 58d10088d1..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionInputs.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphExecutionInputs = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionJobInfo.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionJobInfo.ts
deleted file mode 100644
index c869e58951..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionJobInfo.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { GraphExecutionJobInfoInputData } from "./graphExecutionJobInfoInputData";
-import type { GraphExecutionJobInfoInputCredentials } from "./graphExecutionJobInfoInputCredentials";
-
-export interface GraphExecutionJobInfo {
- user_id: string;
- graph_id: string;
- graph_version: number;
- cron: string;
- input_data: GraphExecutionJobInfoInputData;
- input_credentials?: GraphExecutionJobInfoInputCredentials;
- id: string;
- name: string;
- next_run_time: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionJobInfoInputCredentials.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionJobInfoInputCredentials.ts
deleted file mode 100644
index f17fc9b9d1..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionJobInfoInputCredentials.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { CredentialsMetaInput } from "./credentialsMetaInput";
-
-export type GraphExecutionJobInfoInputCredentials = {
- [key: string]: CredentialsMetaInput;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionJobInfoInputData.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionJobInfoInputData.ts
deleted file mode 100644
index ecf7de58c1..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionJobInfoInputData.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphExecutionJobInfoInputData = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionMeta.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionMeta.ts
deleted file mode 100644
index 2a0b45ee54..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionMeta.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { GraphExecutionMetaPresetId } from "./graphExecutionMetaPresetId";
-import type { AgentExecutionStatus } from "./agentExecutionStatus";
-import type { GraphExecutionMetaStats } from "./graphExecutionMetaStats";
-
-export interface GraphExecutionMeta {
- id?: string;
- user_id: string;
- graph_id: string;
- graph_version: number;
- preset_id?: GraphExecutionMetaPresetId;
- status: AgentExecutionStatus;
- started_at: string;
- ended_at: string;
- stats: GraphExecutionMetaStats;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionMetaPresetId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionMetaPresetId.ts
deleted file mode 100644
index 8d4e81bd21..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionMetaPresetId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphExecutionMetaPresetId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionMetaStats.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionMetaStats.ts
deleted file mode 100644
index e0cd7a5f3b..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionMetaStats.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { Stats } from "./stats";
-
-export type GraphExecutionMetaStats = Stats | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionOutputs.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionOutputs.ts
deleted file mode 100644
index 4bcf072600..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionOutputs.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphExecutionOutputs = { [key: string]: unknown[] };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionPresetId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionPresetId.ts
deleted file mode 100644
index e1dc5cea82..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionPresetId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphExecutionPresetId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionStats.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionStats.ts
deleted file mode 100644
index 1c7508e63f..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionStats.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { Stats } from "./stats";
-
-export type GraphExecutionStats = Stats | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionWithNodes.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionWithNodes.ts
deleted file mode 100644
index dadb331ccc..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionWithNodes.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { GraphExecutionWithNodesPresetId } from "./graphExecutionWithNodesPresetId";
-import type { AgentExecutionStatus } from "./agentExecutionStatus";
-import type { GraphExecutionWithNodesStats } from "./graphExecutionWithNodesStats";
-import type { GraphExecutionWithNodesInputs } from "./graphExecutionWithNodesInputs";
-import type { GraphExecutionWithNodesOutputs } from "./graphExecutionWithNodesOutputs";
-import type { NodeExecutionResult } from "./nodeExecutionResult";
-
-export interface GraphExecutionWithNodes {
- id?: string;
- user_id: string;
- graph_id: string;
- graph_version: number;
- preset_id?: GraphExecutionWithNodesPresetId;
- status: AgentExecutionStatus;
- started_at: string;
- ended_at: string;
- stats: GraphExecutionWithNodesStats;
- inputs: GraphExecutionWithNodesInputs;
- outputs: GraphExecutionWithNodesOutputs;
- node_executions: NodeExecutionResult[];
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionWithNodesInputs.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionWithNodesInputs.ts
deleted file mode 100644
index 0cbae6a2d8..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionWithNodesInputs.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphExecutionWithNodesInputs = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionWithNodesOutputs.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionWithNodesOutputs.ts
deleted file mode 100644
index 773b7f339e..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionWithNodesOutputs.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphExecutionWithNodesOutputs = { [key: string]: unknown[] };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionWithNodesPresetId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionWithNodesPresetId.ts
deleted file mode 100644
index b381ae221d..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionWithNodesPresetId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphExecutionWithNodesPresetId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionWithNodesStats.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionWithNodesStats.ts
deleted file mode 100644
index f020edabc8..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphExecutionWithNodesStats.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { Stats } from "./stats";
-
-export type GraphExecutionWithNodesStats = Stats | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphForkedFromId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphForkedFromId.ts
deleted file mode 100644
index ee5bbe73af..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphForkedFromId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphForkedFromId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphForkedFromVersion.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphForkedFromVersion.ts
deleted file mode 100644
index 3d195cf238..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphForkedFromVersion.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphForkedFromVersion = number | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMeta.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMeta.ts
deleted file mode 100644
index 2c605629cb..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMeta.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { GraphMetaForkedFromId } from "./graphMetaForkedFromId";
-import type { GraphMetaForkedFromVersion } from "./graphMetaForkedFromVersion";
-import type { BaseGraphOutput } from "./baseGraphOutput";
-import type { GraphMetaInputSchema } from "./graphMetaInputSchema";
-import type { GraphMetaOutputSchema } from "./graphMetaOutputSchema";
-import type { GraphMetaCredentialsInputSchema } from "./graphMetaCredentialsInputSchema";
-
-export interface GraphMeta {
- id?: string;
- version?: number;
- is_active?: boolean;
- name: string;
- description: string;
- forked_from_id?: GraphMetaForkedFromId;
- forked_from_version?: GraphMetaForkedFromVersion;
- sub_graphs?: BaseGraphOutput[];
- user_id: string;
- readonly input_schema: GraphMetaInputSchema;
- readonly output_schema: GraphMetaOutputSchema;
- readonly has_external_trigger: boolean;
- readonly credentials_input_schema: GraphMetaCredentialsInputSchema;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaCredentialsInputSchema.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaCredentialsInputSchema.ts
deleted file mode 100644
index 246da4a83a..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaCredentialsInputSchema.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphMetaCredentialsInputSchema = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaForkedFromId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaForkedFromId.ts
deleted file mode 100644
index 715129a797..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaForkedFromId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphMetaForkedFromId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaForkedFromVersion.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaForkedFromVersion.ts
deleted file mode 100644
index c1c7e8be80..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaForkedFromVersion.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphMetaForkedFromVersion = number | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaInputSchema.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaInputSchema.ts
deleted file mode 100644
index 128d191588..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaInputSchema.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphMetaInputSchema = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaOutputSchema.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaOutputSchema.ts
deleted file mode 100644
index b70e5e2bbb..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphMetaOutputSchema.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphMetaOutputSchema = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphModel.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphModel.ts
deleted file mode 100644
index 136b20162e..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphModel.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { NodeModel } from "./nodeModel";
-import type { Link } from "./link";
-import type { GraphModelForkedFromId } from "./graphModelForkedFromId";
-import type { GraphModelForkedFromVersion } from "./graphModelForkedFromVersion";
-import type { BaseGraphOutput } from "./baseGraphOutput";
-import type { GraphModelInputSchema } from "./graphModelInputSchema";
-import type { GraphModelOutputSchema } from "./graphModelOutputSchema";
-import type { GraphModelCredentialsInputSchema } from "./graphModelCredentialsInputSchema";
-
-export interface GraphModel {
- id?: string;
- version?: number;
- is_active?: boolean;
- name: string;
- description: string;
- nodes?: NodeModel[];
- links?: Link[];
- forked_from_id?: GraphModelForkedFromId;
- forked_from_version?: GraphModelForkedFromVersion;
- sub_graphs?: BaseGraphOutput[];
- user_id: string;
- readonly input_schema: GraphModelInputSchema;
- readonly output_schema: GraphModelOutputSchema;
- readonly has_external_trigger: boolean;
- readonly credentials_input_schema: GraphModelCredentialsInputSchema;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphModelCredentialsInputSchema.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphModelCredentialsInputSchema.ts
deleted file mode 100644
index 6160ff09c2..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphModelCredentialsInputSchema.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphModelCredentialsInputSchema = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphModelForkedFromId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphModelForkedFromId.ts
deleted file mode 100644
index 19dc51cb6e..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphModelForkedFromId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphModelForkedFromId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphModelForkedFromVersion.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphModelForkedFromVersion.ts
deleted file mode 100644
index 3bcc5feb0c..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphModelForkedFromVersion.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphModelForkedFromVersion = number | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphModelInputSchema.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphModelInputSchema.ts
deleted file mode 100644
index 75e92e1999..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphModelInputSchema.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphModelInputSchema = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/graphModelOutputSchema.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/graphModelOutputSchema.ts
deleted file mode 100644
index dc7be1af5b..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/graphModelOutputSchema.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type GraphModelOutputSchema = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/hTTPValidationError.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/hTTPValidationError.ts
deleted file mode 100644
index 94fc953565..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/hTTPValidationError.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { ValidationError } from "./validationError";
-
-export interface HTTPValidationError {
- detail?: ValidationError[];
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsInput.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsInput.ts
deleted file mode 100644
index 43bd78b2cf..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsInput.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { HostScopedCredentialsInputTitle } from "./hostScopedCredentialsInputTitle";
-import type { HostScopedCredentialsInputHeaders } from "./hostScopedCredentialsInputHeaders";
-
-export interface HostScopedCredentialsInput {
- id?: string;
- provider: string;
- title?: HostScopedCredentialsInputTitle;
- type?: "host_scoped";
- /** The host/URI pattern to match against request URLs */
- host: string;
- /** Key-value header map to add to matching requests */
- headers?: HostScopedCredentialsInputHeaders;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsInputHeaders.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsInputHeaders.ts
deleted file mode 100644
index 55a8dfda1b..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsInputHeaders.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Key-value header map to add to matching requests
- */
-export type HostScopedCredentialsInputHeaders = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsInputTitle.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsInputTitle.ts
deleted file mode 100644
index 8ecc19013a..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsInputTitle.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type HostScopedCredentialsInputTitle = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsOutput.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsOutput.ts
deleted file mode 100644
index d9ecf8c483..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsOutput.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { HostScopedCredentialsOutputTitle } from "./hostScopedCredentialsOutputTitle";
-import type { HostScopedCredentialsOutputHeaders } from "./hostScopedCredentialsOutputHeaders";
-
-export interface HostScopedCredentialsOutput {
- id?: string;
- provider: string;
- title?: HostScopedCredentialsOutputTitle;
- type?: "host_scoped";
- /** The host/URI pattern to match against request URLs */
- host: string;
- /** Key-value header map to add to matching requests */
- headers?: HostScopedCredentialsOutputHeaders;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsOutputHeaders.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsOutputHeaders.ts
deleted file mode 100644
index 3456cf0547..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsOutputHeaders.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Key-value header map to add to matching requests
- */
-export type HostScopedCredentialsOutputHeaders = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsOutputTitle.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsOutputTitle.ts
deleted file mode 100644
index 22ac767d43..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/hostScopedCredentialsOutputTitle.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type HostScopedCredentialsOutputTitle = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgent.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgent.ts
deleted file mode 100644
index 743c85d4ba..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgent.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { LibraryAgentImageUrl } from "./libraryAgentImageUrl";
-import type { LibraryAgentStatus } from "./libraryAgentStatus";
-import type { LibraryAgentInputSchema } from "./libraryAgentInputSchema";
-import type { LibraryAgentCredentialsInputSchema } from "./libraryAgentCredentialsInputSchema";
-import type { LibraryAgentTriggerSetupInfo } from "./libraryAgentTriggerSetupInfo";
-
-/**
- * Represents an agent in the library, including metadata for display and
-user interaction within the system.
- */
-export interface LibraryAgent {
- id: string;
- graph_id: string;
- graph_version: number;
- image_url: LibraryAgentImageUrl;
- creator_name: string;
- creator_image_url: string;
- status: LibraryAgentStatus;
- updated_at: string;
- name: string;
- description: string;
- input_schema: LibraryAgentInputSchema;
- /** Input schema for credentials required by the agent */
- credentials_input_schema: LibraryAgentCredentialsInputSchema;
- /** Whether the agent has an external trigger (e.g. webhook) node */
- has_external_trigger: boolean;
- trigger_setup_info?: LibraryAgentTriggerSetupInfo;
- new_output: boolean;
- can_access_graph: boolean;
- is_latest_version: boolean;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentCredentialsInputSchema.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentCredentialsInputSchema.ts
deleted file mode 100644
index 2cb4da8eb2..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentCredentialsInputSchema.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { LibraryAgentCredentialsInputSchemaAnyOf } from "./libraryAgentCredentialsInputSchemaAnyOf";
-
-/**
- * Input schema for credentials required by the agent
- */
-export type LibraryAgentCredentialsInputSchema =
- LibraryAgentCredentialsInputSchemaAnyOf | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentCredentialsInputSchemaAnyOf.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentCredentialsInputSchemaAnyOf.ts
deleted file mode 100644
index afcf0f754b..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentCredentialsInputSchemaAnyOf.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type LibraryAgentCredentialsInputSchemaAnyOf = {
- [key: string]: unknown;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentImageUrl.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentImageUrl.ts
deleted file mode 100644
index 715e6b2ca4..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentImageUrl.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type LibraryAgentImageUrl = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentInputSchema.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentInputSchema.ts
deleted file mode 100644
index 7765d42598..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentInputSchema.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type LibraryAgentInputSchema = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPreset.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPreset.ts
deleted file mode 100644
index e35759a232..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPreset.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { LibraryAgentPresetInputs } from "./libraryAgentPresetInputs";
-import type { LibraryAgentPresetCredentials } from "./libraryAgentPresetCredentials";
-import type { LibraryAgentPresetWebhookId } from "./libraryAgentPresetWebhookId";
-
-/**
- * Represents a preset configuration for a library agent.
- */
-export interface LibraryAgentPreset {
- graph_id: string;
- graph_version: number;
- inputs: LibraryAgentPresetInputs;
- credentials: LibraryAgentPresetCredentials;
- name: string;
- description: string;
- is_active?: boolean;
- webhook_id?: LibraryAgentPresetWebhookId;
- id: string;
- user_id: string;
- updated_at: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCreatable.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCreatable.ts
deleted file mode 100644
index f944a84d38..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCreatable.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { LibraryAgentPresetCreatableInputs } from "./libraryAgentPresetCreatableInputs";
-import type { LibraryAgentPresetCreatableCredentials } from "./libraryAgentPresetCreatableCredentials";
-import type { LibraryAgentPresetCreatableWebhookId } from "./libraryAgentPresetCreatableWebhookId";
-
-/**
- * Request model used when creating a new preset for a library agent.
- */
-export interface LibraryAgentPresetCreatable {
- graph_id: string;
- graph_version: number;
- inputs: LibraryAgentPresetCreatableInputs;
- credentials: LibraryAgentPresetCreatableCredentials;
- name: string;
- description: string;
- is_active?: boolean;
- webhook_id?: LibraryAgentPresetCreatableWebhookId;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCreatableCredentials.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCreatableCredentials.ts
deleted file mode 100644
index cda39b0b87..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCreatableCredentials.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { CredentialsMetaInput } from "./credentialsMetaInput";
-
-export type LibraryAgentPresetCreatableCredentials = {
- [key: string]: CredentialsMetaInput;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCreatableFromGraphExecution.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCreatableFromGraphExecution.ts
deleted file mode 100644
index 31ea3c017b..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCreatableFromGraphExecution.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Request model used when creating a new preset for a library agent.
- */
-export interface LibraryAgentPresetCreatableFromGraphExecution {
- graph_execution_id: string;
- name: string;
- description: string;
- is_active?: boolean;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCreatableInputs.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCreatableInputs.ts
deleted file mode 100644
index d6da1b4fb1..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCreatableInputs.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type LibraryAgentPresetCreatableInputs = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCreatableWebhookId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCreatableWebhookId.ts
deleted file mode 100644
index da0faf3a61..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCreatableWebhookId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type LibraryAgentPresetCreatableWebhookId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCredentials.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCredentials.ts
deleted file mode 100644
index c092d1cbca..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetCredentials.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { CredentialsMetaInput } from "./credentialsMetaInput";
-
-export type LibraryAgentPresetCredentials = {
- [key: string]: CredentialsMetaInput;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetInputs.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetInputs.ts
deleted file mode 100644
index 2f6fe282d3..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetInputs.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type LibraryAgentPresetInputs = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetResponse.ts
deleted file mode 100644
index ebbdf0a700..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetResponse.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { LibraryAgentPreset } from "./libraryAgentPreset";
-import type { Pagination } from "./pagination";
-
-/**
- * Response schema for a list of agent presets and pagination info.
- */
-export interface LibraryAgentPresetResponse {
- presets: LibraryAgentPreset[];
- pagination: Pagination;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatable.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatable.ts
deleted file mode 100644
index ce996b838c..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatable.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { LibraryAgentPresetUpdatableInputs } from "./libraryAgentPresetUpdatableInputs";
-import type { LibraryAgentPresetUpdatableCredentials } from "./libraryAgentPresetUpdatableCredentials";
-import type { LibraryAgentPresetUpdatableName } from "./libraryAgentPresetUpdatableName";
-import type { LibraryAgentPresetUpdatableDescription } from "./libraryAgentPresetUpdatableDescription";
-import type { LibraryAgentPresetUpdatableIsActive } from "./libraryAgentPresetUpdatableIsActive";
-
-/**
- * Request model used when updating a preset for a library agent.
- */
-export interface LibraryAgentPresetUpdatable {
- inputs?: LibraryAgentPresetUpdatableInputs;
- credentials?: LibraryAgentPresetUpdatableCredentials;
- name?: LibraryAgentPresetUpdatableName;
- description?: LibraryAgentPresetUpdatableDescription;
- is_active?: LibraryAgentPresetUpdatableIsActive;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableCredentials.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableCredentials.ts
deleted file mode 100644
index a16ec716f7..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableCredentials.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { LibraryAgentPresetUpdatableCredentialsAnyOf } from "./libraryAgentPresetUpdatableCredentialsAnyOf";
-
-export type LibraryAgentPresetUpdatableCredentials =
- LibraryAgentPresetUpdatableCredentialsAnyOf | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableCredentialsAnyOf.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableCredentialsAnyOf.ts
deleted file mode 100644
index 9282f78f55..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableCredentialsAnyOf.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { CredentialsMetaInput } from "./credentialsMetaInput";
-
-export type LibraryAgentPresetUpdatableCredentialsAnyOf = {
- [key: string]: CredentialsMetaInput;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableDescription.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableDescription.ts
deleted file mode 100644
index db2982ed3e..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableDescription.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type LibraryAgentPresetUpdatableDescription = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableInputs.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableInputs.ts
deleted file mode 100644
index 22a0af3df9..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableInputs.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { LibraryAgentPresetUpdatableInputsAnyOf } from "./libraryAgentPresetUpdatableInputsAnyOf";
-
-export type LibraryAgentPresetUpdatableInputs =
- LibraryAgentPresetUpdatableInputsAnyOf | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableInputsAnyOf.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableInputsAnyOf.ts
deleted file mode 100644
index 4893dc9b61..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableInputsAnyOf.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type LibraryAgentPresetUpdatableInputsAnyOf = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableIsActive.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableIsActive.ts
deleted file mode 100644
index 8edc618a16..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableIsActive.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type LibraryAgentPresetUpdatableIsActive = boolean | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableName.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableName.ts
deleted file mode 100644
index d373b71589..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetUpdatableName.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type LibraryAgentPresetUpdatableName = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetWebhookId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetWebhookId.ts
deleted file mode 100644
index 13613d5e07..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentPresetWebhookId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type LibraryAgentPresetWebhookId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentResponse.ts
deleted file mode 100644
index d048ff8e18..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentResponse.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { LibraryAgent } from "./libraryAgent";
-import type { Pagination } from "./pagination";
-
-/**
- * Response schema for a list of library agents and pagination info.
- */
-export interface LibraryAgentResponse {
- agents: LibraryAgent[];
- pagination: Pagination;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentSort.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentSort.ts
deleted file mode 100644
index cf18dad4b4..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentSort.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Possible sort options for sorting library agents.
- */
-export type LibraryAgentSort =
- (typeof LibraryAgentSort)[keyof typeof LibraryAgentSort];
-
-// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const LibraryAgentSort = {
- createdAt: "createdAt",
- updatedAt: "updatedAt",
-} as const;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentStatus.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentStatus.ts
deleted file mode 100644
index 938069b3aa..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentStatus.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type LibraryAgentStatus =
- (typeof LibraryAgentStatus)[keyof typeof LibraryAgentStatus];
-
-// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const LibraryAgentStatus = {
- COMPLETED: "COMPLETED",
- HEALTHY: "HEALTHY",
- WAITING: "WAITING",
- ERROR: "ERROR",
-} as const;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerInfo.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerInfo.ts
deleted file mode 100644
index 68996ee30c..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerInfo.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { LibraryAgentTriggerInfoConfigSchema } from "./libraryAgentTriggerInfoConfigSchema";
-import type { LibraryAgentTriggerInfoCredentialsInputName } from "./libraryAgentTriggerInfoCredentialsInputName";
-
-export interface LibraryAgentTriggerInfo {
- /** Provider name for integrations. Can be any string value, including custom provider names. */
- provider: string;
- /** Input schema for the trigger block */
- config_schema: LibraryAgentTriggerInfoConfigSchema;
- credentials_input_name: LibraryAgentTriggerInfoCredentialsInputName;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerInfoConfigSchema.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerInfoConfigSchema.ts
deleted file mode 100644
index ecd59ab49d..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerInfoConfigSchema.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Input schema for the trigger block
- */
-export type LibraryAgentTriggerInfoConfigSchema = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerInfoCredentialsInputName.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerInfoCredentialsInputName.ts
deleted file mode 100644
index 9e38a8536c..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerInfoCredentialsInputName.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type LibraryAgentTriggerInfoCredentialsInputName = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerSetupInfo.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerSetupInfo.ts
deleted file mode 100644
index f6312e302d..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentTriggerSetupInfo.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { LibraryAgentTriggerInfo } from "./libraryAgentTriggerInfo";
-
-export type LibraryAgentTriggerSetupInfo = LibraryAgentTriggerInfo | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentUpdateRequest.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentUpdateRequest.ts
deleted file mode 100644
index 71232ca82a..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentUpdateRequest.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { LibraryAgentUpdateRequestAutoUpdateVersion } from "./libraryAgentUpdateRequestAutoUpdateVersion";
-import type { LibraryAgentUpdateRequestIsFavorite } from "./libraryAgentUpdateRequestIsFavorite";
-import type { LibraryAgentUpdateRequestIsArchived } from "./libraryAgentUpdateRequestIsArchived";
-
-/**
- * Schema for updating a library agent via PUT.
-
-Includes flags for auto-updating version, marking as favorite,
-archiving, or deleting.
- */
-export interface LibraryAgentUpdateRequest {
- /** Auto-update the agent version */
- auto_update_version?: LibraryAgentUpdateRequestAutoUpdateVersion;
- /** Mark the agent as a favorite */
- is_favorite?: LibraryAgentUpdateRequestIsFavorite;
- /** Archive the agent */
- is_archived?: LibraryAgentUpdateRequestIsArchived;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentUpdateRequestAutoUpdateVersion.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentUpdateRequestAutoUpdateVersion.ts
deleted file mode 100644
index dcf14c3250..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentUpdateRequestAutoUpdateVersion.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Auto-update the agent version
- */
-export type LibraryAgentUpdateRequestAutoUpdateVersion = boolean | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentUpdateRequestIsArchived.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentUpdateRequestIsArchived.ts
deleted file mode 100644
index 79cb8b20ac..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentUpdateRequestIsArchived.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Archive the agent
- */
-export type LibraryAgentUpdateRequestIsArchived = boolean | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentUpdateRequestIsFavorite.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentUpdateRequestIsFavorite.ts
deleted file mode 100644
index 0e11424eca..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/libraryAgentUpdateRequestIsFavorite.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Mark the agent as a favorite
- */
-export type LibraryAgentUpdateRequestIsFavorite = boolean | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/link.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/link.ts
deleted file mode 100644
index dbeb4d1e88..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/link.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface Link {
- id?: string;
- source_id: string;
- sink_id: string;
- source_name: string;
- sink_name: string;
- is_static?: boolean;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/logRawMetricRequest.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/logRawMetricRequest.ts
deleted file mode 100644
index 9b97251deb..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/logRawMetricRequest.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface LogRawMetricRequest {
- /** @minLength 1 */
- metric_name: string;
- metric_value: number;
- /** @minLength 1 */
- data_string: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/loginResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/loginResponse.ts
deleted file mode 100644
index dd2de341f0..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/loginResponse.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface LoginResponse {
- login_url: string;
- state_token: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/message.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/message.ts
deleted file mode 100644
index 430119f485..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/message.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface Message {
- query: string;
- response: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/myAgent.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/myAgent.ts
deleted file mode 100644
index b58f8c0361..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/myAgent.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { MyAgentAgentImage } from "./myAgentAgentImage";
-
-export interface MyAgent {
- agent_id: string;
- agent_version: number;
- agent_name: string;
- agent_image?: MyAgentAgentImage;
- description: string;
- last_edited: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/myAgentAgentImage.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/myAgentAgentImage.ts
deleted file mode 100644
index c23b0ed55c..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/myAgentAgentImage.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type MyAgentAgentImage = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/myAgentsResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/myAgentsResponse.ts
deleted file mode 100644
index 2b60ce4a0a..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/myAgentsResponse.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { MyAgent } from "./myAgent";
-import type { Pagination } from "./pagination";
-
-export interface MyAgentsResponse {
- agents: MyAgent[];
- pagination: Pagination;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/node.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/node.ts
deleted file mode 100644
index afa0dc7545..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/node.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { NodeInputDefault } from "./nodeInputDefault";
-import type { NodeMetadata } from "./nodeMetadata";
-import type { Link } from "./link";
-
-export interface Node {
- id?: string;
- block_id: string;
- input_default?: NodeInputDefault;
- metadata?: NodeMetadata;
- input_links?: Link[];
- output_links?: Link[];
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResult.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResult.ts
deleted file mode 100644
index 6eea046605..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResult.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { AgentExecutionStatus } from "./agentExecutionStatus";
-import type { NodeExecutionResultInputData } from "./nodeExecutionResultInputData";
-import type { NodeExecutionResultOutputData } from "./nodeExecutionResultOutputData";
-import type { NodeExecutionResultQueueTime } from "./nodeExecutionResultQueueTime";
-import type { NodeExecutionResultStartTime } from "./nodeExecutionResultStartTime";
-import type { NodeExecutionResultEndTime } from "./nodeExecutionResultEndTime";
-
-export interface NodeExecutionResult {
- user_id: string;
- graph_id: string;
- graph_version: number;
- graph_exec_id: string;
- node_exec_id: string;
- node_id: string;
- block_id: string;
- status: AgentExecutionStatus;
- input_data: NodeExecutionResultInputData;
- output_data: NodeExecutionResultOutputData;
- add_time: string;
- queue_time: NodeExecutionResultQueueTime;
- start_time: NodeExecutionResultStartTime;
- end_time: NodeExecutionResultEndTime;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResultEndTime.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResultEndTime.ts
deleted file mode 100644
index b98b5d81e5..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResultEndTime.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type NodeExecutionResultEndTime = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResultInputData.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResultInputData.ts
deleted file mode 100644
index 173dd27f52..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResultInputData.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type NodeExecutionResultInputData = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResultOutputData.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResultOutputData.ts
deleted file mode 100644
index 74cff61b50..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResultOutputData.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type NodeExecutionResultOutputData = { [key: string]: unknown[] };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResultQueueTime.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResultQueueTime.ts
deleted file mode 100644
index cd5e5844bb..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResultQueueTime.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type NodeExecutionResultQueueTime = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResultStartTime.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResultStartTime.ts
deleted file mode 100644
index 357f382d83..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeExecutionResultStartTime.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type NodeExecutionResultStartTime = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeInputDefault.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/nodeInputDefault.ts
deleted file mode 100644
index c28bc8a246..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeInputDefault.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type NodeInputDefault = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeMetadata.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/nodeMetadata.ts
deleted file mode 100644
index d3c65d1226..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeMetadata.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type NodeMetadata = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeModel.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/nodeModel.ts
deleted file mode 100644
index dcd57c84f2..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeModel.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { NodeModelInputDefault } from "./nodeModelInputDefault";
-import type { NodeModelMetadata } from "./nodeModelMetadata";
-import type { Link } from "./link";
-import type { NodeModelWebhookId } from "./nodeModelWebhookId";
-import type { NodeModelWebhook } from "./nodeModelWebhook";
-
-export interface NodeModel {
- id?: string;
- block_id: string;
- input_default?: NodeModelInputDefault;
- metadata?: NodeModelMetadata;
- input_links?: Link[];
- output_links?: Link[];
- graph_id: string;
- graph_version: number;
- webhook_id?: NodeModelWebhookId;
- webhook?: NodeModelWebhook;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeModelInputDefault.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/nodeModelInputDefault.ts
deleted file mode 100644
index 95303e4a01..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeModelInputDefault.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type NodeModelInputDefault = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeModelMetadata.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/nodeModelMetadata.ts
deleted file mode 100644
index e99956dda4..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeModelMetadata.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type NodeModelMetadata = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeModelWebhook.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/nodeModelWebhook.ts
deleted file mode 100644
index 7ea60974a2..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeModelWebhook.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { Webhook } from "./webhook";
-
-export type NodeModelWebhook = Webhook | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeModelWebhookId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/nodeModelWebhookId.ts
deleted file mode 100644
index beb57543f8..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/nodeModelWebhookId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type NodeModelWebhookId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/notificationPreference.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/notificationPreference.ts
deleted file mode 100644
index 66da450627..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/notificationPreference.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { NotificationPreferencePreferences } from "./notificationPreferencePreferences";
-
-export interface NotificationPreference {
- user_id: string;
- email: string;
- /** Which notifications the user wants */
- preferences?: NotificationPreferencePreferences;
- daily_limit?: number;
- emails_sent_today?: number;
- last_reset_date?: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/notificationPreferenceDTO.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/notificationPreferenceDTO.ts
deleted file mode 100644
index 47b0f1d875..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/notificationPreferenceDTO.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { NotificationPreferenceDTOPreferences } from "./notificationPreferenceDTOPreferences";
-
-export interface NotificationPreferenceDTO {
- /** User's email address */
- email: string;
- /** Which notifications the user wants */
- preferences: NotificationPreferenceDTOPreferences;
- /** Max emails per day */
- daily_limit: number;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/notificationPreferenceDTOPreferences.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/notificationPreferenceDTOPreferences.ts
deleted file mode 100644
index 05e3105a10..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/notificationPreferenceDTOPreferences.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Which notifications the user wants
- */
-export type NotificationPreferenceDTOPreferences = { [key: string]: boolean };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/notificationPreferencePreferences.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/notificationPreferencePreferences.ts
deleted file mode 100644
index 33b1e2a27e..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/notificationPreferencePreferences.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Which notifications the user wants
- */
-export type NotificationPreferencePreferences = { [key: string]: boolean };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/notificationType.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/notificationType.ts
deleted file mode 100644
index f7450f44a4..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/notificationType.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type NotificationType =
- (typeof NotificationType)[keyof typeof NotificationType];
-
-// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const NotificationType = {
- AGENT_RUN: "AGENT_RUN",
- ZERO_BALANCE: "ZERO_BALANCE",
- LOW_BALANCE: "LOW_BALANCE",
- BLOCK_EXECUTION_FAILED: "BLOCK_EXECUTION_FAILED",
- CONTINUOUS_AGENT_ERROR: "CONTINUOUS_AGENT_ERROR",
- DAILY_SUMMARY: "DAILY_SUMMARY",
- WEEKLY_SUMMARY: "WEEKLY_SUMMARY",
- MONTHLY_SUMMARY: "MONTHLY_SUMMARY",
- REFUND_REQUEST: "REFUND_REQUEST",
- REFUND_PROCESSED: "REFUND_PROCESSED",
-} as const;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2Credentials.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2Credentials.ts
deleted file mode 100644
index cb479e8c58..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2Credentials.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { OAuth2CredentialsTitle } from "./oAuth2CredentialsTitle";
-import type { OAuth2CredentialsUsername } from "./oAuth2CredentialsUsername";
-import type { OAuth2CredentialsAccessTokenExpiresAt } from "./oAuth2CredentialsAccessTokenExpiresAt";
-import type { OAuth2CredentialsRefreshToken } from "./oAuth2CredentialsRefreshToken";
-import type { OAuth2CredentialsRefreshTokenExpiresAt } from "./oAuth2CredentialsRefreshTokenExpiresAt";
-import type { OAuth2CredentialsMetadata } from "./oAuth2CredentialsMetadata";
-
-export interface OAuth2Credentials {
- id?: string;
- provider: string;
- title?: OAuth2CredentialsTitle;
- type?: "oauth2";
- username?: OAuth2CredentialsUsername;
- access_token: string;
- access_token_expires_at?: OAuth2CredentialsAccessTokenExpiresAt;
- refresh_token?: OAuth2CredentialsRefreshToken;
- refresh_token_expires_at?: OAuth2CredentialsRefreshTokenExpiresAt;
- scopes: string[];
- metadata?: OAuth2CredentialsMetadata;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsAccessTokenExpiresAt.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsAccessTokenExpiresAt.ts
deleted file mode 100644
index 5d199398f7..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsAccessTokenExpiresAt.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type OAuth2CredentialsAccessTokenExpiresAt = number | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsMetadata.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsMetadata.ts
deleted file mode 100644
index a11a1e542c..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsMetadata.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type OAuth2CredentialsMetadata = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsRefreshToken.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsRefreshToken.ts
deleted file mode 100644
index 1547417315..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsRefreshToken.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type OAuth2CredentialsRefreshToken = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsRefreshTokenExpiresAt.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsRefreshTokenExpiresAt.ts
deleted file mode 100644
index 61484af6e0..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsRefreshTokenExpiresAt.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type OAuth2CredentialsRefreshTokenExpiresAt = number | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsTitle.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsTitle.ts
deleted file mode 100644
index 4f370a1711..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsTitle.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type OAuth2CredentialsTitle = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsUsername.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsUsername.ts
deleted file mode 100644
index 1a7c862565..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/oAuth2CredentialsUsername.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type OAuth2CredentialsUsername = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/onboardingStep.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/onboardingStep.ts
deleted file mode 100644
index b4edb7813e..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/onboardingStep.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type OnboardingStep =
- (typeof OnboardingStep)[keyof typeof OnboardingStep];
-
-// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const OnboardingStep = {
- WELCOME: "WELCOME",
- USAGE_REASON: "USAGE_REASON",
- INTEGRATIONS: "INTEGRATIONS",
- AGENT_CHOICE: "AGENT_CHOICE",
- AGENT_NEW_RUN: "AGENT_NEW_RUN",
- AGENT_INPUT: "AGENT_INPUT",
- CONGRATS: "CONGRATS",
- GET_RESULTS: "GET_RESULTS",
- RUN_AGENTS: "RUN_AGENTS",
- MARKETPLACE_VISIT: "MARKETPLACE_VISIT",
- MARKETPLACE_ADD_AGENT: "MARKETPLACE_ADD_AGENT",
- MARKETPLACE_RUN_AGENT: "MARKETPLACE_RUN_AGENT",
- BUILDER_OPEN: "BUILDER_OPEN",
- BUILDER_SAVE_AGENT: "BUILDER_SAVE_AGENT",
- BUILDER_RUN_AGENT: "BUILDER_RUN_AGENT",
-} as const;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/pagination.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/pagination.ts
deleted file mode 100644
index e1bc141e31..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/pagination.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface Pagination {
- /** Total number of items. */
- total_items: number;
- /** Total number of pages. */
- total_pages: number;
- /** Current_page page number. */
- current_page: number;
- /** Number of items per page. */
- page_size: number;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1CreateCredentials201.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postV1CreateCredentials201.ts
deleted file mode 100644
index 073743006d..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1CreateCredentials201.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { OAuth2Credentials } from "./oAuth2Credentials";
-import type { APIKeyCredentials } from "./aPIKeyCredentials";
-import type { UserPasswordCredentials } from "./userPasswordCredentials";
-import type { HostScopedCredentialsOutput } from "./hostScopedCredentialsOutput";
-
-export type PostV1CreateCredentials201 =
- | OAuth2Credentials
- | APIKeyCredentials
- | UserPasswordCredentials
- | HostScopedCredentialsOutput;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1CreateCredentialsBody.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postV1CreateCredentialsBody.ts
deleted file mode 100644
index 4a57654c7e..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1CreateCredentialsBody.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { OAuth2Credentials } from "./oAuth2Credentials";
-import type { APIKeyCredentials } from "./aPIKeyCredentials";
-import type { UserPasswordCredentials } from "./userPasswordCredentials";
-import type { HostScopedCredentialsInput } from "./hostScopedCredentialsInput";
-
-export type PostV1CreateCredentialsBody =
- | OAuth2Credentials
- | APIKeyCredentials
- | UserPasswordCredentials
- | HostScopedCredentialsInput;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1ExecuteGraphAgentParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postV1ExecuteGraphAgentParams.ts
deleted file mode 100644
index 8060b5f762..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1ExecuteGraphAgentParams.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostV1ExecuteGraphAgentParams = {
- preset_id?: string | null;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1ExecuteGraphBlock200.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postV1ExecuteGraphBlock200.ts
deleted file mode 100644
index da9f179afb..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1ExecuteGraphBlock200.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostV1ExecuteGraphBlock200 = { [key: string]: unknown[] };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1ExecuteGraphBlockBody.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postV1ExecuteGraphBlockBody.ts
deleted file mode 100644
index 60785e88dc..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1ExecuteGraphBlockBody.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostV1ExecuteGraphBlockBody = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1HandlePostmarkEmailWebhooksBody.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postV1HandlePostmarkEmailWebhooksBody.ts
deleted file mode 100644
index 74bfa90241..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1HandlePostmarkEmailWebhooksBody.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { PostmarkDeliveryWebhook } from "./postmarkDeliveryWebhook";
-import type { PostmarkBounceWebhook } from "./postmarkBounceWebhook";
-import type { PostmarkSpamComplaintWebhook } from "./postmarkSpamComplaintWebhook";
-import type { PostmarkOpenWebhook } from "./postmarkOpenWebhook";
-import type { PostmarkClickWebhook } from "./postmarkClickWebhook";
-import type { PostmarkSubscriptionChangeWebhook } from "./postmarkSubscriptionChangeWebhook";
-
-export type PostV1HandlePostmarkEmailWebhooksBody =
- | PostmarkDeliveryWebhook
- | PostmarkBounceWebhook
- | PostmarkSpamComplaintWebhook
- | PostmarkOpenWebhook
- | PostmarkClickWebhook
- | PostmarkSubscriptionChangeWebhook;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1OneClickEmailUnsubscribeParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postV1OneClickEmailUnsubscribeParams.ts
deleted file mode 100644
index 874539eee0..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1OneClickEmailUnsubscribeParams.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostV1OneClickEmailUnsubscribeParams = {
- token: string;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1RefundCreditTransactionBody.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postV1RefundCreditTransactionBody.ts
deleted file mode 100644
index a8042a0499..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1RefundCreditTransactionBody.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostV1RefundCreditTransactionBody = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1StopGraphExecution200.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postV1StopGraphExecution200.ts
deleted file mode 100644
index 072a2d4316..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1StopGraphExecution200.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { GraphExecutionMeta } from "./graphExecutionMeta";
-
-export type PostV1StopGraphExecution200 = GraphExecutionMeta | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1StopGraphExecutionsParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postV1StopGraphExecutionsParams.ts
deleted file mode 100644
index 8ab146040c..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1StopGraphExecutionsParams.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.10.0 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostV1StopGraphExecutionsParams = {
- graph_id: string;
- graph_exec_id: string;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1UpdateUserEmail200.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postV1UpdateUserEmail200.ts
deleted file mode 100644
index 4529bd9120..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1UpdateUserEmail200.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostV1UpdateUserEmail200 = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1UploadFileToCloudStorageParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postV1UploadFileToCloudStorageParams.ts
deleted file mode 100644
index 36d44c6364..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postV1UploadFileToCloudStorageParams.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostV1UploadFileToCloudStorageParams = {
- provider?: string;
- expiration_hours?: number;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postV2CreateANewPresetBody.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postV2CreateANewPresetBody.ts
deleted file mode 100644
index db6940fc40..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postV2CreateANewPresetBody.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { LibraryAgentPresetCreatable } from "./libraryAgentPresetCreatable";
-import type { LibraryAgentPresetCreatableFromGraphExecution } from "./libraryAgentPresetCreatableFromGraphExecution";
-
-export type PostV2CreateANewPresetBody =
- | LibraryAgentPresetCreatable
- | LibraryAgentPresetCreatableFromGraphExecution;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postV2ExecuteAPreset200.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postV2ExecuteAPreset200.ts
deleted file mode 100644
index fc07741e51..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postV2ExecuteAPreset200.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostV2ExecuteAPreset200 = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postV2GenerateSubmissionImageParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postV2GenerateSubmissionImageParams.ts
deleted file mode 100644
index 683a1aec88..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postV2GenerateSubmissionImageParams.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostV2GenerateSubmissionImageParams = {
- agent_id: string;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkBounceEnum.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkBounceEnum.ts
deleted file mode 100644
index bec835faf2..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkBounceEnum.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostmarkBounceEnum =
- (typeof PostmarkBounceEnum)[keyof typeof PostmarkBounceEnum];
-
-// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const PostmarkBounceEnum = {
- NUMBER_1: 1,
- NUMBER_2: 2,
- NUMBER_16: 16,
- NUMBER_32: 32,
- NUMBER_64: 64,
- NUMBER_128: 128,
- NUMBER_256: 256,
- NUMBER_512: 512,
- NUMBER_1024: 1024,
- NUMBER_2048: 2048,
- NUMBER_4096: 4096,
- NUMBER_8192: 8192,
- NUMBER_16384: 16384,
- NUMBER_100000: 100000,
- NUMBER_100001: 100001,
- NUMBER_100002: 100002,
- NUMBER_100003: 100003,
- NUMBER_100006: 100006,
- NUMBER_100007: 100007,
- NUMBER_100008: 100008,
- NUMBER_100009: 100009,
- NUMBER_100010: 100010,
-} as const;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkBounceWebhook.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkBounceWebhook.ts
deleted file mode 100644
index 6a81e5bcf4..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkBounceWebhook.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { PostmarkBounceEnum } from "./postmarkBounceEnum";
-import type { PostmarkBounceWebhookMetadata } from "./postmarkBounceWebhookMetadata";
-
-export interface PostmarkBounceWebhook {
- RecordType?: "Bounce";
- ID: number;
- Type: string;
- TypeCode: PostmarkBounceEnum;
- Tag: string;
- MessageID: string;
- Details: string;
- Email: string;
- From: string;
- BouncedAt: string;
- Inactive: boolean;
- DumpAvailable: boolean;
- CanActivate: boolean;
- Subject: string;
- ServerID: number;
- MessageStream: string;
- Content: string;
- Name: string;
- Description: string;
- Metadata: PostmarkBounceWebhookMetadata;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkBounceWebhookMetadata.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkBounceWebhookMetadata.ts
deleted file mode 100644
index 7e2d8d7b32..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkBounceWebhookMetadata.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostmarkBounceWebhookMetadata = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkClickWebhook.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkClickWebhook.ts
deleted file mode 100644
index 3f33abe34f..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkClickWebhook.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { PostmarkClickWebhookMetadata } from "./postmarkClickWebhookMetadata";
-import type { PostmarkClickWebhookOS } from "./postmarkClickWebhookOS";
-import type { PostmarkClickWebhookClient } from "./postmarkClickWebhookClient";
-import type { PostmarkClickWebhookGeo } from "./postmarkClickWebhookGeo";
-
-export interface PostmarkClickWebhook {
- RecordType?: "Click";
- MessageStream: string;
- Metadata: PostmarkClickWebhookMetadata;
- Recipient: string;
- MessageID: string;
- ReceivedAt: string;
- Platform: string;
- ClickLocation: string;
- OriginalLink: string;
- Tag: string;
- UserAgent: string;
- OS: PostmarkClickWebhookOS;
- Client: PostmarkClickWebhookClient;
- Geo: PostmarkClickWebhookGeo;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkClickWebhookClient.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkClickWebhookClient.ts
deleted file mode 100644
index 91853b51bd..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkClickWebhookClient.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostmarkClickWebhookClient = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkClickWebhookGeo.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkClickWebhookGeo.ts
deleted file mode 100644
index 442ca7cf4b..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkClickWebhookGeo.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostmarkClickWebhookGeo = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkClickWebhookMetadata.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkClickWebhookMetadata.ts
deleted file mode 100644
index 2eb89ea2e3..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkClickWebhookMetadata.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostmarkClickWebhookMetadata = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkClickWebhookOS.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkClickWebhookOS.ts
deleted file mode 100644
index 4c2d75ae56..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkClickWebhookOS.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostmarkClickWebhookOS = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkDeliveryWebhook.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkDeliveryWebhook.ts
deleted file mode 100644
index e0d56ab8cd..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkDeliveryWebhook.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { PostmarkDeliveryWebhookMetadata } from "./postmarkDeliveryWebhookMetadata";
-
-export interface PostmarkDeliveryWebhook {
- RecordType?: "Delivery";
- ServerID: number;
- MessageStream: string;
- MessageID: string;
- Recipient: string;
- Tag: string;
- DeliveredAt: string;
- Details: string;
- Metadata: PostmarkDeliveryWebhookMetadata;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkDeliveryWebhookMetadata.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkDeliveryWebhookMetadata.ts
deleted file mode 100644
index 750b1f44c7..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkDeliveryWebhookMetadata.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostmarkDeliveryWebhookMetadata = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkOpenWebhook.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkOpenWebhook.ts
deleted file mode 100644
index bb2fbd5c0b..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkOpenWebhook.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { PostmarkOpenWebhookMetadata } from "./postmarkOpenWebhookMetadata";
-import type { PostmarkOpenWebhookOS } from "./postmarkOpenWebhookOS";
-import type { PostmarkOpenWebhookClient } from "./postmarkOpenWebhookClient";
-import type { PostmarkOpenWebhookGeo } from "./postmarkOpenWebhookGeo";
-
-export interface PostmarkOpenWebhook {
- RecordType?: "Open";
- MessageStream: string;
- Metadata: PostmarkOpenWebhookMetadata;
- FirstOpen: boolean;
- Recipient: string;
- MessageID: string;
- ReceivedAt: string;
- Platform: string;
- ReadSeconds: number;
- Tag: string;
- UserAgent: string;
- OS: PostmarkOpenWebhookOS;
- Client: PostmarkOpenWebhookClient;
- Geo: PostmarkOpenWebhookGeo;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkOpenWebhookClient.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkOpenWebhookClient.ts
deleted file mode 100644
index bad8588b8a..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkOpenWebhookClient.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostmarkOpenWebhookClient = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkOpenWebhookGeo.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkOpenWebhookGeo.ts
deleted file mode 100644
index ed109aa339..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkOpenWebhookGeo.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostmarkOpenWebhookGeo = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkOpenWebhookMetadata.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkOpenWebhookMetadata.ts
deleted file mode 100644
index afe2c745eb..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkOpenWebhookMetadata.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostmarkOpenWebhookMetadata = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkOpenWebhookOS.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkOpenWebhookOS.ts
deleted file mode 100644
index b342ee169a..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkOpenWebhookOS.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostmarkOpenWebhookOS = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkSpamComplaintWebhook.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkSpamComplaintWebhook.ts
deleted file mode 100644
index 5f446c460f..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkSpamComplaintWebhook.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { PostmarkSpamComplaintWebhookMetadata } from "./postmarkSpamComplaintWebhookMetadata";
-
-export interface PostmarkSpamComplaintWebhook {
- RecordType?: "SpamComplaint";
- ID: number;
- Type: string;
- TypeCode: number;
- Tag: string;
- MessageID: string;
- Details: string;
- Email: string;
- From: string;
- BouncedAt: string;
- Inactive: boolean;
- DumpAvailable: boolean;
- CanActivate: boolean;
- Subject: string;
- ServerID: number;
- MessageStream: string;
- Content: string;
- Name: string;
- Description: string;
- Metadata: PostmarkSpamComplaintWebhookMetadata;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkSpamComplaintWebhookMetadata.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkSpamComplaintWebhookMetadata.ts
deleted file mode 100644
index 3e51c1ef85..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkSpamComplaintWebhookMetadata.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostmarkSpamComplaintWebhookMetadata = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkSubscriptionChangeWebhook.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkSubscriptionChangeWebhook.ts
deleted file mode 100644
index dca12abcf8..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkSubscriptionChangeWebhook.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { PostmarkSubscriptionChangeWebhookMetadata } from "./postmarkSubscriptionChangeWebhookMetadata";
-
-export interface PostmarkSubscriptionChangeWebhook {
- RecordType?: "SubscriptionChange";
- MessageID: string;
- ServerID: number;
- MessageStream: string;
- ChangedAt: string;
- Recipient: string;
- Origin: string;
- SuppressSending: boolean;
- SuppressionReason: string;
- Tag: string;
- Metadata: PostmarkSubscriptionChangeWebhookMetadata;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkSubscriptionChangeWebhookMetadata.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkSubscriptionChangeWebhookMetadata.ts
deleted file mode 100644
index c5f229e28d..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/postmarkSubscriptionChangeWebhookMetadata.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type PostmarkSubscriptionChangeWebhookMetadata = {
- [key: string]: string;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/profile.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/profile.ts
deleted file mode 100644
index c0091c92ea..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/profile.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface Profile {
- name: string;
- username: string;
- description: string;
- links: string[];
- avatar_url: string;
- is_featured?: boolean;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/profileDetails.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/profileDetails.ts
deleted file mode 100644
index 72a6c78db9..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/profileDetails.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { ProfileDetailsAvatarUrl } from "./profileDetailsAvatarUrl";
-
-export interface ProfileDetails {
- name: string;
- username: string;
- description: string;
- links: string[];
- avatar_url?: ProfileDetailsAvatarUrl;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/profileDetailsAvatarUrl.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/profileDetailsAvatarUrl.ts
deleted file mode 100644
index 06559a80e7..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/profileDetailsAvatarUrl.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type ProfileDetailsAvatarUrl = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/providerConstants.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/providerConstants.ts
deleted file mode 100644
index 72fbb7929f..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/providerConstants.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { ProviderConstantsPROVIDERNAMES } from "./providerConstantsPROVIDERNAMES";
-
-/**
- * Model that exposes all provider names as a constant in the OpenAPI schema.
-This is designed to be converted by Orval into a TypeScript constant.
- */
-export interface ProviderConstants {
- /** All available provider names as a constant mapping */
- PROVIDER_NAMES?: ProviderConstantsPROVIDERNAMES;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/providerConstantsPROVIDERNAMES.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/providerConstantsPROVIDERNAMES.ts
deleted file mode 100644
index be2a856e2e..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/providerConstantsPROVIDERNAMES.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * All available provider names as a constant mapping
- */
-export type ProviderConstantsPROVIDERNAMES = { [key: string]: string };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/providerEnumResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/providerEnumResponse.ts
deleted file mode 100644
index eb51fa7dac..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/providerEnumResponse.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Response containing a provider from the enum.
- */
-export interface ProviderEnumResponse {
- /** A provider name from the complete list of providers */
- provider: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/providerName.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/providerName.ts
deleted file mode 100644
index 198bb7a5bf..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/providerName.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
- * Generated by orval v7.10.0 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type ProviderName = (typeof ProviderName)[keyof typeof ProviderName];
-
-// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const ProviderName = {
- aiml_api: "aiml_api",
- anthropic: "anthropic",
- apollo: "apollo",
- compass: "compass",
- discord: "discord",
- d_id: "d_id",
- e2b: "e2b",
- exa: "exa",
- fal: "fal",
- generic_webhook: "generic_webhook",
- github: "github",
- google: "google",
- google_maps: "google_maps",
- groq: "groq",
- http: "http",
- hubspot: "hubspot",
- ideogram: "ideogram",
- jina: "jina",
- linear: "linear",
- llama_api: "llama_api",
- medium: "medium",
- mem0: "mem0",
- notion: "notion",
- nvidia: "nvidia",
- ollama: "ollama",
- openai: "openai",
- openweathermap: "openweathermap",
- open_router: "open_router",
- pinecone: "pinecone",
- reddit: "reddit",
- replicate: "replicate",
- revid: "revid",
- screenshotone: "screenshotone",
- slant3d: "slant3d",
- smartlead: "smartlead",
- smtp: "smtp",
- twitter: "twitter",
- todoist: "todoist",
- unreal_speech: "unreal_speech",
- zerobounce: "zerobounce",
-} as const;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/providerNamesResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/providerNamesResponse.ts
deleted file mode 100644
index d81daa0b4c..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/providerNamesResponse.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Response containing list of all provider names.
- */
-export interface ProviderNamesResponse {
- /** List of all available provider names */
- providers?: string[];
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/refundRequest.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/refundRequest.ts
deleted file mode 100644
index c5ba921f58..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/refundRequest.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { RefundRequestResult } from "./refundRequestResult";
-
-export interface RefundRequest {
- id: string;
- user_id: string;
- transaction_key: string;
- amount: number;
- reason: string;
- result?: RefundRequestResult;
- status: string;
- created_at: string;
- updated_at: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/refundRequestResult.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/refundRequestResult.ts
deleted file mode 100644
index 89425f4be5..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/refundRequestResult.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type RefundRequestResult = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/requestTopUp.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/requestTopUp.ts
deleted file mode 100644
index 2c8603991f..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/requestTopUp.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface RequestTopUp {
- credit_amount: number;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/reviewSubmissionRequest.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/reviewSubmissionRequest.ts
deleted file mode 100644
index 013371e26a..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/reviewSubmissionRequest.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { ReviewSubmissionRequestInternalComments } from "./reviewSubmissionRequestInternalComments";
-
-export interface ReviewSubmissionRequest {
- store_listing_version_id: string;
- is_approved: boolean;
- comments: string;
- internal_comments?: ReviewSubmissionRequestInternalComments;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/reviewSubmissionRequestInternalComments.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/reviewSubmissionRequestInternalComments.ts
deleted file mode 100644
index e97188a029..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/reviewSubmissionRequestInternalComments.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type ReviewSubmissionRequestInternalComments = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/scheduleCreationRequest.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/scheduleCreationRequest.ts
deleted file mode 100644
index 30ffb20a10..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/scheduleCreationRequest.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { ScheduleCreationRequestGraphVersion } from "./scheduleCreationRequestGraphVersion";
-import type { ScheduleCreationRequestInputs } from "./scheduleCreationRequestInputs";
-import type { ScheduleCreationRequestCredentials } from "./scheduleCreationRequestCredentials";
-
-export interface ScheduleCreationRequest {
- graph_version?: ScheduleCreationRequestGraphVersion;
- name: string;
- cron: string;
- inputs: ScheduleCreationRequestInputs;
- credentials?: ScheduleCreationRequestCredentials;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/scheduleCreationRequestCredentials.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/scheduleCreationRequestCredentials.ts
deleted file mode 100644
index 98e15686b8..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/scheduleCreationRequestCredentials.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { CredentialsMetaInput } from "./credentialsMetaInput";
-
-export type ScheduleCreationRequestCredentials = {
- [key: string]: CredentialsMetaInput;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/scheduleCreationRequestGraphVersion.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/scheduleCreationRequestGraphVersion.ts
deleted file mode 100644
index 7012289ef2..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/scheduleCreationRequestGraphVersion.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type ScheduleCreationRequestGraphVersion = number | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/scheduleCreationRequestInputs.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/scheduleCreationRequestInputs.ts
deleted file mode 100644
index 9485efd07e..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/scheduleCreationRequestInputs.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type ScheduleCreationRequestInputs = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/setGraphActiveVersion.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/setGraphActiveVersion.ts
deleted file mode 100644
index 4477d9a4e9..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/setGraphActiveVersion.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface SetGraphActiveVersion {
- active_graph_version: number;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/stats.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/stats.ts
deleted file mode 100644
index ef9e1f18f2..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/stats.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { StatsError } from "./statsError";
-import type { StatsActivityStatus } from "./statsActivityStatus";
-
-export interface Stats {
- /** Execution cost (cents) */
- cost?: number;
- /** Seconds from start to end of run */
- duration?: number;
- /** CPU sec of duration */
- duration_cpu_only?: number;
- /** Seconds of total node runtime */
- node_exec_time?: number;
- /** CPU sec of node_exec_time */
- node_exec_time_cpu_only?: number;
- /** Number of node executions */
- node_exec_count?: number;
- /** Number of node errors */
- node_error_count?: number;
- /** Error message if any */
- error?: StatsError;
- /** AI-generated summary of what the agent did */
- activity_status?: StatsActivityStatus;
- [key: string]: unknown;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/statsActivityStatus.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/statsActivityStatus.ts
deleted file mode 100644
index 3005273f02..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/statsActivityStatus.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * AI-generated summary of what the agent did
- */
-export type StatsActivityStatus = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/statsError.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/statsError.ts
deleted file mode 100644
index fd461030b8..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/statsError.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Error message if any
- */
-export type StatsError = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeAgent.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeAgent.ts
deleted file mode 100644
index aef41f5a4c..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeAgent.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface StoreAgent {
- slug: string;
- agent_name: string;
- agent_image: string;
- creator: string;
- creator_avatar: string;
- sub_heading: string;
- description: string;
- runs: number;
- rating: number;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeAgentDetails.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeAgentDetails.ts
deleted file mode 100644
index caf2b470bb..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeAgentDetails.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { StoreAgentDetailsActiveVersionId } from "./storeAgentDetailsActiveVersionId";
-
-export interface StoreAgentDetails {
- store_listing_version_id: string;
- slug: string;
- agent_name: string;
- agent_video: string;
- agent_image: string[];
- creator: string;
- creator_avatar: string;
- sub_heading: string;
- description: string;
- categories: string[];
- runs: number;
- rating: number;
- versions: string[];
- last_updated: string;
- active_version_id?: StoreAgentDetailsActiveVersionId;
- has_approved_version?: boolean;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeAgentDetailsActiveVersionId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeAgentDetailsActiveVersionId.ts
deleted file mode 100644
index 46286d0bfa..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeAgentDetailsActiveVersionId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type StoreAgentDetailsActiveVersionId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeAgentsResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeAgentsResponse.ts
deleted file mode 100644
index 24095dfad2..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeAgentsResponse.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { StoreAgent } from "./storeAgent";
-import type { Pagination } from "./pagination";
-
-export interface StoreAgentsResponse {
- agents: StoreAgent[];
- pagination: Pagination;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeListingWithVersions.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeListingWithVersions.ts
deleted file mode 100644
index 8fb265f545..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeListingWithVersions.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { StoreListingWithVersionsActiveVersionId } from "./storeListingWithVersionsActiveVersionId";
-import type { StoreListingWithVersionsCreatorEmail } from "./storeListingWithVersionsCreatorEmail";
-import type { StoreListingWithVersionsLatestVersion } from "./storeListingWithVersionsLatestVersion";
-import type { StoreSubmission } from "./storeSubmission";
-
-/**
- * A store listing with its version history
- */
-export interface StoreListingWithVersions {
- listing_id: string;
- slug: string;
- agent_id: string;
- agent_version: number;
- active_version_id?: StoreListingWithVersionsActiveVersionId;
- has_approved_version?: boolean;
- creator_email?: StoreListingWithVersionsCreatorEmail;
- latest_version?: StoreListingWithVersionsLatestVersion;
- versions?: StoreSubmission[];
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeListingWithVersionsActiveVersionId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeListingWithVersionsActiveVersionId.ts
deleted file mode 100644
index 3060e273d0..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeListingWithVersionsActiveVersionId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type StoreListingWithVersionsActiveVersionId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeListingWithVersionsCreatorEmail.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeListingWithVersionsCreatorEmail.ts
deleted file mode 100644
index 9240be5da0..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeListingWithVersionsCreatorEmail.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type StoreListingWithVersionsCreatorEmail = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeListingWithVersionsLatestVersion.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeListingWithVersionsLatestVersion.ts
deleted file mode 100644
index 2f9ff16437..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeListingWithVersionsLatestVersion.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { StoreSubmission } from "./storeSubmission";
-
-export type StoreListingWithVersionsLatestVersion = StoreSubmission | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeListingsWithVersionsResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeListingsWithVersionsResponse.ts
deleted file mode 100644
index fab5936a76..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeListingsWithVersionsResponse.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { StoreListingWithVersions } from "./storeListingWithVersions";
-import type { Pagination } from "./pagination";
-
-/**
- * Response model for listings with version history
- */
-export interface StoreListingsWithVersionsResponse {
- listings: StoreListingWithVersions[];
- pagination: Pagination;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeReview.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeReview.ts
deleted file mode 100644
index 9facb322f1..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeReview.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { StoreReviewComments } from "./storeReviewComments";
-
-export interface StoreReview {
- score: number;
- comments?: StoreReviewComments;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeReviewComments.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeReviewComments.ts
deleted file mode 100644
index 7fe6381d3c..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeReviewComments.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type StoreReviewComments = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeReviewCreate.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeReviewCreate.ts
deleted file mode 100644
index 290d3add9d..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeReviewCreate.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { StoreReviewCreateComments } from "./storeReviewCreateComments";
-
-export interface StoreReviewCreate {
- store_listing_version_id: string;
- score: number;
- comments?: StoreReviewCreateComments;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeReviewCreateComments.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeReviewCreateComments.ts
deleted file mode 100644
index 4d07635fc9..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeReviewCreateComments.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type StoreReviewCreateComments = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmission.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmission.ts
deleted file mode 100644
index 076e64f83e..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmission.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { SubmissionStatus } from "./submissionStatus";
-import type { StoreSubmissionStoreListingVersionId } from "./storeSubmissionStoreListingVersionId";
-import type { StoreSubmissionVersion } from "./storeSubmissionVersion";
-import type { StoreSubmissionReviewerId } from "./storeSubmissionReviewerId";
-import type { StoreSubmissionReviewComments } from "./storeSubmissionReviewComments";
-import type { StoreSubmissionInternalComments } from "./storeSubmissionInternalComments";
-import type { StoreSubmissionReviewedAt } from "./storeSubmissionReviewedAt";
-import type { StoreSubmissionChangesSummary } from "./storeSubmissionChangesSummary";
-
-export interface StoreSubmission {
- agent_id: string;
- agent_version: number;
- name: string;
- sub_heading: string;
- slug: string;
- description: string;
- image_urls: string[];
- date_submitted: string;
- status: SubmissionStatus;
- runs: number;
- rating: number;
- store_listing_version_id?: StoreSubmissionStoreListingVersionId;
- version?: StoreSubmissionVersion;
- reviewer_id?: StoreSubmissionReviewerId;
- review_comments?: StoreSubmissionReviewComments;
- internal_comments?: StoreSubmissionInternalComments;
- reviewed_at?: StoreSubmissionReviewedAt;
- changes_summary?: StoreSubmissionChangesSummary;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionChangesSummary.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionChangesSummary.ts
deleted file mode 100644
index 9a150e6290..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionChangesSummary.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type StoreSubmissionChangesSummary = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionInternalComments.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionInternalComments.ts
deleted file mode 100644
index b61a339cb8..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionInternalComments.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type StoreSubmissionInternalComments = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionRequest.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionRequest.ts
deleted file mode 100644
index 5b48e3ff8a..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionRequest.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { StoreSubmissionRequestVideoUrl } from "./storeSubmissionRequestVideoUrl";
-import type { StoreSubmissionRequestChangesSummary } from "./storeSubmissionRequestChangesSummary";
-
-export interface StoreSubmissionRequest {
- agent_id: string;
- agent_version: number;
- slug: string;
- name: string;
- sub_heading: string;
- video_url?: StoreSubmissionRequestVideoUrl;
- image_urls?: string[];
- description?: string;
- categories?: string[];
- changes_summary?: StoreSubmissionRequestChangesSummary;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionRequestChangesSummary.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionRequestChangesSummary.ts
deleted file mode 100644
index d23b038052..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionRequestChangesSummary.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type StoreSubmissionRequestChangesSummary = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionRequestVideoUrl.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionRequestVideoUrl.ts
deleted file mode 100644
index 89e624fdc6..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionRequestVideoUrl.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type StoreSubmissionRequestVideoUrl = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionReviewComments.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionReviewComments.ts
deleted file mode 100644
index 00bb6b7d90..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionReviewComments.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type StoreSubmissionReviewComments = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionReviewedAt.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionReviewedAt.ts
deleted file mode 100644
index 550da198b7..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionReviewedAt.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type StoreSubmissionReviewedAt = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionReviewerId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionReviewerId.ts
deleted file mode 100644
index 993ccd23e2..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionReviewerId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type StoreSubmissionReviewerId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionStoreListingVersionId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionStoreListingVersionId.ts
deleted file mode 100644
index fd6a783dcc..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionStoreListingVersionId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type StoreSubmissionStoreListingVersionId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionVersion.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionVersion.ts
deleted file mode 100644
index d599b96869..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionVersion.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type StoreSubmissionVersion = number | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionsResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionsResponse.ts
deleted file mode 100644
index f7c8836d52..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/storeSubmissionsResponse.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { StoreSubmission } from "./storeSubmission";
-import type { Pagination } from "./pagination";
-
-export interface StoreSubmissionsResponse {
- submissions: StoreSubmission[];
- pagination: Pagination;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/submissionStatus.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/submissionStatus.ts
deleted file mode 100644
index edea44c678..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/submissionStatus.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type SubmissionStatus =
- (typeof SubmissionStatus)[keyof typeof SubmissionStatus];
-
-// eslint-disable-next-line @typescript-eslint/no-redeclare
-export const SubmissionStatus = {
- DRAFT: "DRAFT",
- PENDING: "PENDING",
- APPROVED: "APPROVED",
- REJECTED: "REJECTED",
-} as const;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/transactionHistory.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/transactionHistory.ts
deleted file mode 100644
index eb72694dcb..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/transactionHistory.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { UserTransaction } from "./userTransaction";
-import type { TransactionHistoryNextTransactionTime } from "./transactionHistoryNextTransactionTime";
-
-export interface TransactionHistory {
- transactions: UserTransaction[];
- next_transaction_time: TransactionHistoryNextTransactionTime;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/transactionHistoryNextTransactionTime.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/transactionHistoryNextTransactionTime.ts
deleted file mode 100644
index da4f75144a..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/transactionHistoryNextTransactionTime.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type TransactionHistoryNextTransactionTime = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupParams.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupParams.ts
deleted file mode 100644
index 005fbf1042..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupParams.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Generated by orval v7.10.0 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { TriggeredPresetSetupParamsTriggerConfig } from "./triggeredPresetSetupParamsTriggerConfig";
-import type { TriggeredPresetSetupParamsAgentCredentials } from "./triggeredPresetSetupParamsAgentCredentials";
-
-export interface TriggeredPresetSetupParams {
- name: string;
- description?: string;
- trigger_config: TriggeredPresetSetupParamsTriggerConfig;
- agent_credentials?: TriggeredPresetSetupParamsAgentCredentials;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupParamsAgentCredentials.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupParamsAgentCredentials.ts
deleted file mode 100644
index 03f52d444f..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupParamsAgentCredentials.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.10.0 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { CredentialsMetaInput } from "./credentialsMetaInput";
-
-export type TriggeredPresetSetupParamsAgentCredentials = {
- [key: string]: CredentialsMetaInput;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupParamsTriggerConfig.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupParamsTriggerConfig.ts
deleted file mode 100644
index 3d515dfd09..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupParamsTriggerConfig.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.10.0 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type TriggeredPresetSetupParamsTriggerConfig = {
- [key: string]: unknown;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequest.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequest.ts
deleted file mode 100644
index e41836a1d0..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequest.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { TriggeredPresetSetupRequestTriggerConfig } from "./triggeredPresetSetupRequestTriggerConfig";
-import type { TriggeredPresetSetupRequestAgentCredentials } from "./triggeredPresetSetupRequestAgentCredentials";
-
-export interface TriggeredPresetSetupRequest {
- name: string;
- description?: string;
- graph_id: string;
- graph_version: number;
- trigger_config: TriggeredPresetSetupRequestTriggerConfig;
- agent_credentials?: TriggeredPresetSetupRequestAgentCredentials;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequestAgentCredentials.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequestAgentCredentials.ts
deleted file mode 100644
index ba3e7d2810..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequestAgentCredentials.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { CredentialsMetaInput } from "./credentialsMetaInput";
-
-export type TriggeredPresetSetupRequestAgentCredentials = {
- [key: string]: CredentialsMetaInput;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequestTriggerConfig.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequestTriggerConfig.ts
deleted file mode 100644
index fb54ebf3d8..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/triggeredPresetSetupRequestTriggerConfig.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type TriggeredPresetSetupRequestTriggerConfig = {
- [key: string]: unknown;
-};
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyRequest.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyRequest.ts
deleted file mode 100644
index 6448a9de08..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyRequest.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { TurnstileVerifyRequestAction } from "./turnstileVerifyRequestAction";
-
-/**
- * Request model for verifying a Turnstile token.
- */
-export interface TurnstileVerifyRequest {
- /** The Turnstile token to verify */
- token: string;
- /** The action that the user is attempting to perform */
- action?: TurnstileVerifyRequestAction;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyRequestAction.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyRequestAction.ts
deleted file mode 100644
index 58afa20310..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyRequestAction.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * The action that the user is attempting to perform
- */
-export type TurnstileVerifyRequestAction = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyResponse.ts
deleted file mode 100644
index 1ecc9f8120..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyResponse.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { TurnstileVerifyResponseError } from "./turnstileVerifyResponseError";
-import type { TurnstileVerifyResponseChallengeTimestamp } from "./turnstileVerifyResponseChallengeTimestamp";
-import type { TurnstileVerifyResponseHostname } from "./turnstileVerifyResponseHostname";
-import type { TurnstileVerifyResponseAction } from "./turnstileVerifyResponseAction";
-
-/**
- * Response model for the Turnstile verification endpoint.
- */
-export interface TurnstileVerifyResponse {
- /** Whether the token verification was successful */
- success: boolean;
- /** Error message if verification failed */
- error?: TurnstileVerifyResponseError;
- /** Timestamp of the challenge (ISO format) */
- challenge_timestamp?: TurnstileVerifyResponseChallengeTimestamp;
- /** Hostname of the site where the challenge was solved */
- hostname?: TurnstileVerifyResponseHostname;
- /** The action associated with this verification */
- action?: TurnstileVerifyResponseAction;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyResponseAction.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyResponseAction.ts
deleted file mode 100644
index 641ad560d8..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyResponseAction.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * The action associated with this verification
- */
-export type TurnstileVerifyResponseAction = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyResponseChallengeTimestamp.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyResponseChallengeTimestamp.ts
deleted file mode 100644
index 1096f3368b..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyResponseChallengeTimestamp.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Timestamp of the challenge (ISO format)
- */
-export type TurnstileVerifyResponseChallengeTimestamp = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyResponseError.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyResponseError.ts
deleted file mode 100644
index 877a2f6781..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyResponseError.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Error message if verification failed
- */
-export type TurnstileVerifyResponseError = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyResponseHostname.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyResponseHostname.ts
deleted file mode 100644
index cbdaab9406..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/turnstileVerifyResponseHostname.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-/**
- * Hostname of the site where the challenge was solved
- */
-export type TurnstileVerifyResponseHostname = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/updatePermissionsRequest.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/updatePermissionsRequest.ts
deleted file mode 100644
index c98b6aafa6..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/updatePermissionsRequest.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { APIKeyPermission } from "./aPIKeyPermission";
-
-export interface UpdatePermissionsRequest {
- permissions: APIKeyPermission[];
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/uploadFileResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/uploadFileResponse.ts
deleted file mode 100644
index 981ec060d4..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/uploadFileResponse.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export interface UploadFileResponse {
- file_uri: string;
- file_name: string;
- size: number;
- content_type: string;
- expires_in_hours: number;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userHistoryResponse.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userHistoryResponse.ts
deleted file mode 100644
index a7d99904cf..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userHistoryResponse.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { UserTransaction } from "./userTransaction";
-import type { Pagination } from "./pagination";
-
-/**
- * Response model for listings with version history
- */
-export interface UserHistoryResponse {
- history: UserTransaction[];
- pagination: Pagination;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdate.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdate.ts
deleted file mode 100644
index 1fcb4ecd8e..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdate.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { UserOnboardingUpdateCompletedSteps } from "./userOnboardingUpdateCompletedSteps";
-import type { UserOnboardingUpdateNotificationDot } from "./userOnboardingUpdateNotificationDot";
-import type { UserOnboardingUpdateNotified } from "./userOnboardingUpdateNotified";
-import type { UserOnboardingUpdateUsageReason } from "./userOnboardingUpdateUsageReason";
-import type { UserOnboardingUpdateIntegrations } from "./userOnboardingUpdateIntegrations";
-import type { UserOnboardingUpdateOtherIntegrations } from "./userOnboardingUpdateOtherIntegrations";
-import type { UserOnboardingUpdateSelectedStoreListingVersionId } from "./userOnboardingUpdateSelectedStoreListingVersionId";
-import type { UserOnboardingUpdateAgentInput } from "./userOnboardingUpdateAgentInput";
-import type { UserOnboardingUpdateOnboardingAgentExecutionId } from "./userOnboardingUpdateOnboardingAgentExecutionId";
-import type { UserOnboardingUpdateAgentRuns } from "./userOnboardingUpdateAgentRuns";
-
-export interface UserOnboardingUpdate {
- completedSteps?: UserOnboardingUpdateCompletedSteps;
- notificationDot?: UserOnboardingUpdateNotificationDot;
- notified?: UserOnboardingUpdateNotified;
- usageReason?: UserOnboardingUpdateUsageReason;
- integrations?: UserOnboardingUpdateIntegrations;
- otherIntegrations?: UserOnboardingUpdateOtherIntegrations;
- selectedStoreListingVersionId?: UserOnboardingUpdateSelectedStoreListingVersionId;
- agentInput?: UserOnboardingUpdateAgentInput;
- onboardingAgentExecutionId?: UserOnboardingUpdateOnboardingAgentExecutionId;
- agentRuns?: UserOnboardingUpdateAgentRuns;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateAgentInput.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateAgentInput.ts
deleted file mode 100644
index bf6a8fb004..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateAgentInput.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { UserOnboardingUpdateAgentInputAnyOf } from "./userOnboardingUpdateAgentInputAnyOf";
-
-export type UserOnboardingUpdateAgentInput =
- UserOnboardingUpdateAgentInputAnyOf | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateAgentInputAnyOf.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateAgentInputAnyOf.ts
deleted file mode 100644
index 5e8108656b..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateAgentInputAnyOf.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserOnboardingUpdateAgentInputAnyOf = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateAgentRuns.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateAgentRuns.ts
deleted file mode 100644
index a2d79914dd..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateAgentRuns.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserOnboardingUpdateAgentRuns = number | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateCompletedSteps.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateCompletedSteps.ts
deleted file mode 100644
index 3431794b57..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateCompletedSteps.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { OnboardingStep } from "./onboardingStep";
-
-export type UserOnboardingUpdateCompletedSteps = OnboardingStep[] | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateIntegrations.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateIntegrations.ts
deleted file mode 100644
index 7fbadec949..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateIntegrations.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserOnboardingUpdateIntegrations = string[] | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateNotificationDot.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateNotificationDot.ts
deleted file mode 100644
index 309a84be0e..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateNotificationDot.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserOnboardingUpdateNotificationDot = boolean | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateNotified.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateNotified.ts
deleted file mode 100644
index 6b9e5656a8..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateNotified.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { OnboardingStep } from "./onboardingStep";
-
-export type UserOnboardingUpdateNotified = OnboardingStep[] | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateOnboardingAgentExecutionId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateOnboardingAgentExecutionId.ts
deleted file mode 100644
index 56f7b0b7c6..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateOnboardingAgentExecutionId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserOnboardingUpdateOnboardingAgentExecutionId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateOtherIntegrations.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateOtherIntegrations.ts
deleted file mode 100644
index 4022cd4fec..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateOtherIntegrations.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserOnboardingUpdateOtherIntegrations = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateSelectedStoreListingVersionId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateSelectedStoreListingVersionId.ts
deleted file mode 100644
index f8bfe32822..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateSelectedStoreListingVersionId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserOnboardingUpdateSelectedStoreListingVersionId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateUsageReason.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateUsageReason.ts
deleted file mode 100644
index 1ff7ff2b5e..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userOnboardingUpdateUsageReason.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserOnboardingUpdateUsageReason = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userPasswordCredentials.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userPasswordCredentials.ts
deleted file mode 100644
index 7cbae66cbe..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userPasswordCredentials.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { UserPasswordCredentialsTitle } from "./userPasswordCredentialsTitle";
-
-export interface UserPasswordCredentials {
- id?: string;
- provider: string;
- title?: UserPasswordCredentialsTitle;
- type?: "user_password";
- username: string;
- password: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userPasswordCredentialsTitle.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userPasswordCredentialsTitle.ts
deleted file mode 100644
index 323e65567d..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userPasswordCredentialsTitle.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserPasswordCredentialsTitle = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransaction.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userTransaction.ts
deleted file mode 100644
index 90449d97ea..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransaction.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { CreditTransactionType } from "./creditTransactionType";
-import type { UserTransactionDescription } from "./userTransactionDescription";
-import type { UserTransactionUsageGraphId } from "./userTransactionUsageGraphId";
-import type { UserTransactionUsageExecutionId } from "./userTransactionUsageExecutionId";
-import type { UserTransactionUserEmail } from "./userTransactionUserEmail";
-import type { UserTransactionReason } from "./userTransactionReason";
-import type { UserTransactionAdminEmail } from "./userTransactionAdminEmail";
-import type { UserTransactionExtraData } from "./userTransactionExtraData";
-
-export interface UserTransaction {
- transaction_key?: string;
- transaction_time?: string;
- transaction_type?: CreditTransactionType;
- amount?: number;
- running_balance?: number;
- current_balance?: number;
- description?: UserTransactionDescription;
- usage_graph_id?: UserTransactionUsageGraphId;
- usage_execution_id?: UserTransactionUsageExecutionId;
- usage_node_count?: number;
- usage_start_time?: string;
- user_id: string;
- user_email?: UserTransactionUserEmail;
- reason?: UserTransactionReason;
- admin_email?: UserTransactionAdminEmail;
- extra_data?: UserTransactionExtraData;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionAdminEmail.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionAdminEmail.ts
deleted file mode 100644
index 83f4e9a82f..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionAdminEmail.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserTransactionAdminEmail = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionDescription.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionDescription.ts
deleted file mode 100644
index 6eec819a1b..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionDescription.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserTransactionDescription = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionExtraData.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionExtraData.ts
deleted file mode 100644
index 81e2570286..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionExtraData.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserTransactionExtraData = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionReason.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionReason.ts
deleted file mode 100644
index ba2d5b142f..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionReason.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserTransactionReason = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionUsageExecutionId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionUsageExecutionId.ts
deleted file mode 100644
index ea19cb4a91..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionUsageExecutionId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserTransactionUsageExecutionId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionUsageGraphId.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionUsageGraphId.ts
deleted file mode 100644
index 96f369db0a..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionUsageGraphId.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserTransactionUsageGraphId = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionUserEmail.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionUserEmail.ts
deleted file mode 100644
index 89eaea75a2..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/userTransactionUserEmail.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type UserTransactionUserEmail = string | null;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/validationError.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/validationError.ts
deleted file mode 100644
index 52370d4fe4..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/validationError.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { ValidationErrorLocItem } from "./validationErrorLocItem";
-
-export interface ValidationError {
- loc: ValidationErrorLocItem[];
- msg: string;
- type: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/validationErrorLocItem.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/validationErrorLocItem.ts
deleted file mode 100644
index 2aa44f59ec..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/validationErrorLocItem.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type ValidationErrorLocItem = string | number;
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/webhook.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/webhook.ts
deleted file mode 100644
index 6db3838f69..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/webhook.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-import type { WebhookConfig } from "./webhookConfig";
-
-export interface Webhook {
- id?: string;
- user_id: string;
- /** Provider name for integrations. Can be any string value, including custom provider names. */
- provider: string;
- credentials_id: string;
- webhook_type: string;
- resource: string;
- events: string[];
- config?: WebhookConfig;
- secret: string;
- provider_webhook_id: string;
- readonly url: string;
-}
diff --git a/autogpt_platform/frontend/src/app/api/__generated__/models/webhookConfig.ts b/autogpt_platform/frontend/src/app/api/__generated__/models/webhookConfig.ts
deleted file mode 100644
index 06a2920a64..0000000000
--- a/autogpt_platform/frontend/src/app/api/__generated__/models/webhookConfig.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/**
- * Generated by orval v7.11.2 🍺
- * Do not edit manually.
- * AutoGPT Agent Server
- * This server is used to execute agents that are created by the AutoGPT system.
- * OpenAPI spec version: 0.1
- */
-
-export type WebhookConfig = { [key: string]: unknown };
diff --git a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentSelectStep/useAgentSelectStep.ts b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentSelectStep/useAgentSelectStep.ts
index 47ffbb3acd..d69ff462db 100644
--- a/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentSelectStep/useAgentSelectStep.ts
+++ b/autogpt_platform/frontend/src/components/contextual/PublishAgentModal/components/AgentSelectStep/useAgentSelectStep.ts
@@ -35,7 +35,7 @@ export function useAgentSelectStep({
const agents: Agent[] =
(myAgents?.status === 200 &&
myAgents?.data?.agents
- ?.map((agent) => ({
+ ?.map((agent: any) => ({
name: agent.agent_name,
id: agent.agent_id,
version: agent.agent_version,
@@ -44,7 +44,7 @@ export function useAgentSelectStep({
description: agent.description || "",
}))
.sort(
- (a, b) =>
+ (a: Agent, b: Agent) =>
new Date(b.lastEdited).getTime() - new Date(a.lastEdited).getTime(),
)) ||
[];
diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/useAgentActivityDropdown.ts b/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/useAgentActivityDropdown.ts
index d0dbc69511..540434e2f4 100644
--- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/useAgentActivityDropdown.ts
+++ b/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/useAgentActivityDropdown.ts
@@ -1,11 +1,11 @@
import { useGetV1GetAllExecutions } from "@/app/api/__generated__/endpoints/graphs/graphs";
import { useGetV2ListLibraryAgents } from "@/app/api/__generated__/endpoints/library/library";
-import { LibraryAgentResponse } from "@/app/api/__generated__/models/libraryAgentResponse";
import BackendAPI from "@/lib/autogpt-server-api/client";
import type { GraphExecution, GraphID } from "@/lib/autogpt-server-api/types";
import { useCallback, useEffect, useState } from "react";
import * as Sentry from "@sentry/nextjs";
+import { toast } from "sonner";
import {
NotificationState,
categorizeExecutions,
@@ -48,9 +48,35 @@ export function useAgentActivityDropdown() {
// Create a map of library agents
useEffect(() => {
+ if (agentsError) {
+ Sentry.captureException(agentsError, {
+ tags: {
+ context: "library_agents_fetch",
+ },
+ });
+ toast.error("Failed to load agent information", {
+ description:
+ "There was a problem connecting to our servers. Agent activity may be limited.",
+ });
+ return;
+ }
+
if (agents && agentsSuccess) {
- // SafeCast: library agents loaded
- const libraryAgents = agents.data as LibraryAgentResponse;
+ if (agents.status !== 200) {
+ Sentry.captureException(new Error("Failed to load library agents"), {
+ extra: {
+ status: agents.status,
+ error: agents.data,
+ },
+ });
+ toast.error("Invalid agent data received", {
+ description:
+ "The server returned invalid data. Agent activity may be limited.",
+ });
+ return;
+ }
+
+ const libraryAgents = agents.data;
if (!libraryAgents.agents || !libraryAgents.agents.length) return;
@@ -71,7 +97,7 @@ export function useAgentActivityDropdown() {
setAgentInfoMap(agentMap);
}
- }, [agents, agentsSuccess]);
+ }, [agents, agentsSuccess, agentsError]);
// Handle real-time execution updates
const handleExecutionEvent = useCallback(