From 39ac2956f8a70448f0a4d45f321df85d5790d660 Mon Sep 17 00:00:00 2001 From: larryro <371767072@qq.com> Date: Thu, 9 Apr 2026 16:31:14 +0800 Subject: [PATCH 1/9] feat(platform): add OpenAI Chat Completions API compatibility layer Add /api/v1/chat/completions and /api/v1/models endpoints that follow the OpenAI API schema, enabling existing OpenAI integrations to work with the platform without modification. Closes #1199 --- services/platform/convex/http.ts | 31 ++ .../platform/convex/lib/rate_limiter/index.ts | 6 + .../convex/openai_compat/http_actions.ts | 489 ++++++++++++++++++ .../convex/openai_compat/internal_actions.ts | 181 +++++++ .../openai_compat/internal_mutations.ts | 58 +++ .../convex/openai_compat/internal_queries.ts | 87 ++++ .../convex/openai_compat/response_format.ts | 134 +++++ 7 files changed, 986 insertions(+) create mode 100644 services/platform/convex/openai_compat/http_actions.ts create mode 100644 services/platform/convex/openai_compat/internal_actions.ts create mode 100644 services/platform/convex/openai_compat/internal_mutations.ts create mode 100644 services/platform/convex/openai_compat/internal_queries.ts create mode 100644 services/platform/convex/openai_compat/response_format.ts diff --git a/services/platform/convex/http.ts b/services/platform/convex/http.ts index 37e86a07a..4816867c3 100644 --- a/services/platform/convex/http.ts +++ b/services/platform/convex/http.ts @@ -14,6 +14,12 @@ import { RateLimitExceededError, } from './lib/rate_limiter/helpers'; import { toId } from './lib/type_cast_helpers'; +import { + chatCompletionsHandler, + chatCompletionsOptionsHandler, + modelsListHandler, + modelsOptionsHandler, +} from './openai_compat/http_actions'; import { ssoDiscoverHandler, ssoAuthorizeHandler, @@ -188,6 +194,31 @@ http.route({ handler: apiTriggerOptionsHandler, }); +// OpenAI-Compatible API Routes +http.route({ + path: '/api/v1/chat/completions', + method: 'POST', + handler: chatCompletionsHandler, +}); + +http.route({ + path: '/api/v1/chat/completions', + method: 'OPTIONS', + handler: chatCompletionsOptionsHandler, +}); + +http.route({ + path: '/api/v1/models', + method: 'GET', + handler: modelsListHandler, +}); + +http.route({ + path: '/api/v1/models', + method: 'OPTIONS', + handler: modelsOptionsHandler, +}); + // API Gateway Routes - Handle /api/run/* paths with session cookie or API key authentication http.route({ pathPrefix: '/api/run/', diff --git a/services/platform/convex/lib/rate_limiter/index.ts b/services/platform/convex/lib/rate_limiter/index.ts index 9230726e4..fcbea2da6 100644 --- a/services/platform/convex/lib/rate_limiter/index.ts +++ b/services/platform/convex/lib/rate_limiter/index.ts @@ -171,6 +171,12 @@ export const rateLimiter = new RateLimiter(components.rateLimiter, { period: MINUTE, capacity: 50, }, + 'openai:chat': { + kind: 'token bucket', + rate: 30, + period: MINUTE, + capacity: 50, + }, 'agent:document-list': { kind: 'fixed window', rate: 30, diff --git a/services/platform/convex/openai_compat/http_actions.ts b/services/platform/convex/openai_compat/http_actions.ts new file mode 100644 index 000000000..29670e9b6 --- /dev/null +++ b/services/platform/convex/openai_compat/http_actions.ts @@ -0,0 +1,489 @@ +/** + * HTTP actions for OpenAI-compatible Chat Completions API. + * + * Endpoints: + * POST /api/v1/chat/completions + * OPTIONS /api/v1/chat/completions + * GET /api/v1/models + * OPTIONS /api/v1/models + */ + +import type { StreamId } from '@convex-dev/persistent-text-streaming'; + +import { internal } from '../_generated/api'; +import type { ActionCtx } from '../_generated/server'; +import { httpAction } from '../_generated/server'; +import { createAuth } from '../auth'; +import { + checkIpRateLimit, + RateLimitExceededError, +} from '../lib/rate_limiter/helpers'; +import { persistentStreaming } from '../streaming/helpers'; +import { extractClientIp } from '../workflows/triggers/helpers/validate'; +import { + buildChatCompletion, + buildChatCompletionChunk, + formatSSEChunk, + formatSSEDone, + openAIErrorResponse, +} from './response_format'; + +/** + * Maximum time (ms) to poll for agent generation results. + * Aligns with the platform hard limit in generate_response.ts (540s / 9 min). + */ +const MAX_POLL_MS = 540_000; +const POLL_INTERVAL_MS = 100; + +const CORS_HEADERS = { + 'Access-Control-Allow-Origin': '*', + 'Access-Control-Allow-Methods': 'POST, GET, OPTIONS', + 'Access-Control-Allow-Headers': + 'Content-Type, Authorization, X-Organization-Slug, X-Thread-Id', +}; + +// --------------------------------------------------------------------------- +// Helpers +// --------------------------------------------------------------------------- + +interface OpenAIMessage { + role: 'system' | 'user' | 'assistant' | 'tool'; + content: string; +} + +interface ChatCompletionsRequestBody { + model?: string; + messages?: OpenAIMessage[]; + stream?: boolean; +} + +async function authenticateRequest( + ctx: Parameters[0]>[0], + request: Request, +): Promise<{ userId: string; email: string; name: string }> { + const authHeader = request.headers.get('authorization'); + if (!authHeader || !authHeader.startsWith('Bearer ')) { + throw new AuthError('Missing or invalid Authorization header'); + } + + const apiKey = authHeader.slice('Bearer '.length).trim(); + if (!apiKey) { + throw new AuthError('Empty API key'); + } + + // Create synthetic headers for better-auth's apiKey plugin + const syntheticHeaders = new Headers(); + syntheticHeaders.set('x-api-key', apiKey); + + const auth = createAuth(ctx); + try { + const session = await auth.api.getSession({ + headers: syntheticHeaders, + }); + + if (!session?.user) { + throw new AuthError('Invalid API key or session'); + } + + return { + userId: session.user.id, + email: session.user.email ?? '', + name: session.user.name ?? '', + }; + } catch (error) { + if (error instanceof AuthError) throw error; + throw new AuthError('Invalid API key or session'); + } +} + +class AuthError extends Error { + constructor(message: string) { + super(message); + this.name = 'AuthError'; + } +} + +// --------------------------------------------------------------------------- +// POST /api/v1/chat/completions +// --------------------------------------------------------------------------- + +export const chatCompletionsHandler = httpAction(async (ctx, request) => { + // Rate limit by IP + const ip = extractClientIp(request.headers); + try { + await checkIpRateLimit(ctx, 'openai:chat', ip); + } catch (error) { + if (error instanceof RateLimitExceededError) { + return openAIErrorResponse( + 'Rate limit exceeded', + 'rate_limit_exceeded', + 429, + 'rate_limit_exceeded', + ); + } + throw error; + } + + // Authenticate + let user: { userId: string; email: string; name: string }; + try { + user = await authenticateRequest(ctx, request); + } catch (error) { + if (error instanceof AuthError) { + return openAIErrorResponse( + error.message, + 'invalid_request_error', + 401, + 'invalid_api_key', + ); + } + throw error; + } + + // Resolve organization + const orgSlugHeader = + request.headers.get('x-organization-slug') ?? + request.headers.get('X-Organization-Slug'); + + let orgInfo: { organizationId: string; orgSlug: string }; + try { + orgInfo = await ctx.runQuery( + internal.openai_compat.internal_queries.resolveUserOrganization, + { + userId: user.userId, + orgSlug: orgSlugHeader ?? undefined, + }, + ); + } catch (error) { + const msg = + error instanceof Error ? error.message : 'Failed to resolve organization'; + return openAIErrorResponse(msg, 'invalid_request_error', 400); + } + + // Parse request body + let body: ChatCompletionsRequestBody; + try { + body = await request.json(); + } catch { + return openAIErrorResponse( + 'Invalid JSON body', + 'invalid_request_error', + 400, + ); + } + + // Validate required fields + const model = body.model; + if (!model || typeof model !== 'string') { + return openAIErrorResponse( + 'Missing or invalid "model" field', + 'invalid_request_error', + 400, + 'model_required', + ); + } + + const messages = body.messages; + if (!Array.isArray(messages) || messages.length === 0) { + return openAIErrorResponse( + 'Missing or empty "messages" array', + 'invalid_request_error', + 400, + ); + } + + // Extract last user message + const lastUserMessage = messages.findLast((m) => m.role === 'user'); + if (!lastUserMessage || typeof lastUserMessage.content !== 'string') { + return openAIErrorResponse( + 'No user message found in messages array', + 'invalid_request_error', + 400, + ); + } + + const shouldStream = body.stream === true; + const threadId = + request.headers.get('x-thread-id') ?? + request.headers.get('X-Thread-Id') ?? + undefined; + + // Start chat via internal action + let chatResult: { threadId: string; streamId: string }; + try { + chatResult = await ctx.runAction( + internal.openai_compat.internal_actions.chatViaOpenAI, + { + agentSlug: model, + organizationId: orgInfo.organizationId, + userId: user.userId, + userEmail: user.email, + userName: user.name, + message: lastUserMessage.content, + threadId, + enableStreaming: shouldStream, + }, + ); + } catch (error) { + const msg = error instanceof Error ? error.message : 'Failed to start chat'; + + // Detect specific error types + if (msg.includes('Agent not found')) { + return openAIErrorResponse( + `Model '${model}' not found`, + 'invalid_request_error', + 404, + 'model_not_found', + ); + } + if (msg.includes('Not a member') || msg.includes('disabled')) { + return openAIErrorResponse(msg, 'permission_error', 403); + } + + return openAIErrorResponse(msg, 'server_error', 500); + } + + if (shouldStream) { + return streamOpenAIResponse(ctx, chatResult, model); + } + + return pollOpenAIResponse(ctx, chatResult, model); +}); + +// --------------------------------------------------------------------------- +// Non-streaming: poll until done +// --------------------------------------------------------------------------- + +async function pollOpenAIResponse( + ctx: ActionCtx, + chatResult: { threadId: string; streamId: string }, + model: string, +) { + // oxlint-disable-next-line typescript/no-unsafe-type-assertion -- StreamId is a branded string from the persistent-streaming SDK; runMutation returns plain string + const streamId = chatResult.streamId as StreamId; + const maxPolls = Math.ceil(MAX_POLL_MS / POLL_INTERVAL_MS); + const created = Math.floor(Date.now() / 1000); + + for (let i = 0; i < maxPolls; i++) { + const body = await persistentStreaming.getStreamBody(ctx, streamId); + + if (body.status === 'done') { + const response = buildChatCompletion( + chatResult.streamId, + model, + body.text, + created, + ); + return new Response(JSON.stringify(response), { + status: 200, + headers: { + 'Content-Type': 'application/json', + 'Access-Control-Allow-Origin': '*', + }, + }); + } + + if (body.status === 'error' || body.status === 'timeout') { + return openAIErrorResponse('Generation failed', 'server_error', 500); + } + + await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS)); + } + + return openAIErrorResponse( + 'Response timed out', + 'server_error', + 504, + 'timeout', + ); +} + +// --------------------------------------------------------------------------- +// Streaming: SSE with OpenAI chunk format +// --------------------------------------------------------------------------- + +async function streamOpenAIResponse( + ctx: ActionCtx, + chatResult: { threadId: string; streamId: string }, + model: string, +) { + // oxlint-disable-next-line typescript/no-unsafe-type-assertion -- StreamId is a branded string from the persistent-streaming SDK; runMutation returns plain string + const streamId = chatResult.streamId as StreamId; + const encoder = new TextEncoder(); + const maxPolls = Math.ceil(MAX_POLL_MS / POLL_INTERVAL_MS); + const created = Math.floor(Date.now() / 1000); + const completionId = chatResult.streamId; + + const { readable, writable } = new TransformStream(); + const writer = writable.getWriter(); + + void (async () => { + try { + // First chunk: role announcement + const roleChunk = buildChatCompletionChunk( + completionId, + model, + { role: 'assistant' }, + null, + created, + ); + await writer.write(encoder.encode(formatSSEChunk(roleChunk))); + + let lastLength = 0; + let streamDone = false; + + for (let i = 0; i < maxPolls; i++) { + const body = await persistentStreaming.getStreamBody(ctx, streamId); + + if (body.text.length > lastLength) { + const delta = body.text.slice(lastLength); + const chunk = buildChatCompletionChunk( + completionId, + model, + { content: delta }, + null, + created, + ); + await writer.write(encoder.encode(formatSSEChunk(chunk))); + lastLength = body.text.length; + } + + if ( + body.status === 'done' || + body.status === 'error' || + body.status === 'timeout' + ) { + streamDone = true; + break; + } + + await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS)); + } + + // Final chunk with finish_reason + if (streamDone) { + const finalChunk = buildChatCompletionChunk( + completionId, + model, + {}, + 'stop', + created, + ); + await writer.write(encoder.encode(formatSSEChunk(finalChunk))); + } + + // Terminate SSE stream + await writer.write(encoder.encode(formatSSEDone())); + } catch (error) { + console.error('[openai_compat] Stream polling error:', error); + } finally { + await writer.close(); + } + })(); + + return new Response(readable, { + status: 200, + headers: { + 'Content-Type': 'text/event-stream', + 'Cache-Control': 'no-cache', + Connection: 'keep-alive', + ...CORS_HEADERS, + }, + }); +} + +// --------------------------------------------------------------------------- +// GET /api/v1/models +// --------------------------------------------------------------------------- + +export const modelsListHandler = httpAction(async (ctx, request) => { + // Authenticate + let user: { userId: string; email: string; name: string }; + try { + user = await authenticateRequest(ctx, request); + } catch (error) { + if (error instanceof AuthError) { + return openAIErrorResponse( + error.message, + 'invalid_request_error', + 401, + 'invalid_api_key', + ); + } + throw error; + } + + // Resolve organization + const orgSlugHeader = + request.headers.get('x-organization-slug') ?? + request.headers.get('X-Organization-Slug'); + + let orgInfo: { organizationId: string; orgSlug: string }; + try { + orgInfo = await ctx.runQuery( + internal.openai_compat.internal_queries.resolveUserOrganization, + { + userId: user.userId, + orgSlug: orgSlugHeader ?? undefined, + }, + ); + } catch (error) { + const msg = + error instanceof Error ? error.message : 'Failed to resolve organization'; + return openAIErrorResponse(msg, 'invalid_request_error', 400); + } + + // List agents + // oxlint-disable-next-line typescript/no-explicit-any -- listVisibleAgents returns v.any(); shape is validated at runtime + let agents: any[]; + try { + agents = await ctx.runAction( + internal.openai_compat.internal_actions.listVisibleAgents, + { orgSlug: orgInfo.orgSlug }, + ); + } catch (error) { + const msg = + error instanceof Error ? error.message : 'Failed to list models'; + return openAIErrorResponse(msg, 'server_error', 500); + } + + const created = Math.floor(Date.now() / 1000); + const data = agents.map((agent) => ({ + id: String(agent.name ?? ''), + object: 'model' as const, + created, + owned_by: orgInfo.orgSlug, + })); + + return new Response(JSON.stringify({ object: 'list', data }), { + status: 200, + headers: { + 'Content-Type': 'application/json', + 'Access-Control-Allow-Origin': '*', + }, + }); +}); + +// --------------------------------------------------------------------------- +// OPTIONS handlers (CORS preflight) +// --------------------------------------------------------------------------- + +export const chatCompletionsOptionsHandler = httpAction(async () => { + return new Response(null, { + status: 204, + headers: { + ...CORS_HEADERS, + 'Access-Control-Max-Age': '86400', + }, + }); +}); + +export const modelsOptionsHandler = httpAction(async () => { + return new Response(null, { + status: 204, + headers: { + ...CORS_HEADERS, + 'Access-Control-Max-Age': '86400', + }, + }); +}); diff --git a/services/platform/convex/openai_compat/internal_actions.ts b/services/platform/convex/openai_compat/internal_actions.ts new file mode 100644 index 000000000..bbf2ebc52 --- /dev/null +++ b/services/platform/convex/openai_compat/internal_actions.ts @@ -0,0 +1,181 @@ +'use node'; + +/** + * Internal actions for OpenAI-compatible endpoint. + * + * Handles agent config resolution, PII scrubbing, and agent listing. + */ + +import { readdir } from 'node:fs/promises'; + +import { v } from 'convex/values'; + +import { isRecord, getString } from '../../lib/utils/type-guards'; +import { components, internal } from '../_generated/api'; +import { internalAction } from '../_generated/server'; +import { + agentNameFromFileName, + resolveAgentsDir, + validateAgentName, +} from '../agents/file_utils'; +import { scrubPii, type PiiConfig } from '../governance/pii'; + +// --------------------------------------------------------------------------- +// Chat initiation (agent config + PII scrubbing) +// --------------------------------------------------------------------------- + +export const chatViaOpenAI = internalAction({ + args: { + agentSlug: v.string(), + organizationId: v.string(), + userId: v.string(), + userEmail: v.optional(v.string()), + userName: v.optional(v.string()), + message: v.string(), + threadId: v.optional(v.string()), + enableStreaming: v.optional(v.boolean()), + }, + returns: v.object({ + threadId: v.string(), + streamId: v.string(), + }), + handler: async ( + ctx, + args, + ): Promise<{ threadId: string; streamId: string }> => { + // Resolve org slug from organizationId + const org = await ctx.runQuery(components.betterAuth.adapter.findOne, { + model: 'organization', + where: [{ field: '_id', value: args.organizationId, operator: 'eq' }], + }); + + const orgRecord = isRecord(org) ? org : undefined; + const orgSlug = orgRecord ? getString(orgRecord, 'slug') : undefined; + if (!orgSlug) { + throw new Error('Organization not found'); + } + + // PII scrubbing (same pattern as unified_chat.ts) + let message = args.message; + const piiPolicy = await ctx.runQuery( + internal.governance.internal_queries.getPiiConfigInternal, + { organizationId: args.organizationId }, + ); + + if (piiPolicy?.enabled && piiPolicy.config) { + const piiConfig: PiiConfig = { + enabled: true, + mode: piiPolicy.config.mode, + enabledPatterns: piiPolicy.config.enabledPatterns, + customPatterns: piiPolicy.config.customPatterns, + }; + + const result = scrubPii(message, piiConfig); + message = result.text; + + if (result.matchCount > 0) { + await ctx.runMutation( + internal.audit_logs.internal_mutations.createAuditLog, + { + organizationId: args.organizationId, + actorId: args.userId, + actorEmail: args.userEmail ?? '', + actorType: 'api', + action: 'pii.detected_in_chat', + category: 'security', + resourceType: 'chat_message', + resourceId: 'openai_compat', + status: 'success', + metadata: { + detectedTypes: result.detectedTypes, + matchCount: result.matchCount, + mode: piiConfig.mode, + agentSlug: args.agentSlug, + source: 'openai_compat', + }, + }, + ); + } + } + + // Resolve agent config from filesystem + const agentConfig = await ctx.runAction( + internal.agents.file_actions.resolveAgentConfig, + { + orgSlug, + agentSlug: args.agentSlug, + organizationId: args.organizationId, + }, + ); + + // Start the chat (creates thread, stream, saves message, schedules generation) + return ctx.runMutation( + internal.openai_compat.internal_mutations.startOpenAIChat, + { + agentSlug: args.agentSlug, + organizationId: args.organizationId, + userId: args.userId, + userEmail: args.userEmail, + userName: args.userName, + message, + threadId: args.threadId, + enableStreaming: args.enableStreaming, + agentConfig, + }, + ); + }, +}); + +// --------------------------------------------------------------------------- +// List visible agents (for /api/v1/models) +// --------------------------------------------------------------------------- + +export const listVisibleAgents = internalAction({ + args: { + orgSlug: v.string(), + }, + returns: v.any(), + handler: async (_ctx, args) => { + const dir = resolveAgentsDir(args.orgSlug); + let entries: string[]; + try { + entries = await readdir(dir); + } catch { + return []; + } + + const jsonFiles = entries.filter( + (e) => e.endsWith('.json') && !e.startsWith('.'), + ); + + // Dynamic import to avoid circular dependencies with file_actions + const { readJsonFile } = await import('../lib/file_io'); + const { parseAgentJson, resolveAgentFilePath, MAX_FILE_SIZE_BYTES } = + await import('../agents/file_utils'); + + const results = await Promise.all( + jsonFiles.map(async (fileName) => { + const agentName = agentNameFromFileName(fileName); + if (!validateAgentName(agentName)) return null; + + const filePath = resolveAgentFilePath(args.orgSlug, agentName); + const result = await readJsonFile( + filePath, + MAX_FILE_SIZE_BYTES, + parseAgentJson, + ); + + if (!result.ok) return null; + if (!result.data.visibleInChat) return null; + + return { + name: agentName, + displayName: result.data.displayName, + description: result.data.description, + }; + }), + ); + + return results.filter(Boolean); + }, +}); diff --git a/services/platform/convex/openai_compat/internal_mutations.ts b/services/platform/convex/openai_compat/internal_mutations.ts new file mode 100644 index 000000000..61fefd630 --- /dev/null +++ b/services/platform/convex/openai_compat/internal_mutations.ts @@ -0,0 +1,58 @@ +/** + * Internal mutations for OpenAI-compatible endpoint. + * + * Handles thread creation, RLS validation, and chat start. + */ + +import { v } from 'convex/values'; + +import { internalMutation } from '../_generated/server'; +import { startAgentChat } from '../lib/agent_chat'; +import { getOrganizationMember } from '../lib/rls'; +import { createChatThread } from '../threads/create_chat_thread'; + +export const startOpenAIChat = internalMutation({ + args: { + agentSlug: v.string(), + organizationId: v.string(), + userId: v.string(), + userEmail: v.optional(v.string()), + userName: v.optional(v.string()), + message: v.string(), + threadId: v.optional(v.string()), + enableStreaming: v.optional(v.boolean()), + agentConfig: v.any(), + }, + returns: v.object({ + threadId: v.string(), + streamId: v.string(), + }), + handler: async (ctx, args) => { + // RLS: verify user is an active member of the organization + await getOrganizationMember(ctx, args.organizationId, { + userId: args.userId, + email: args.userEmail, + name: args.userName, + }); + + const threadId = + args.threadId ?? + (await createChatThread(ctx, args.userId, undefined, 'general')); + + const result = await startAgentChat({ + ctx, + agentType: 'custom', + threadId, + organizationId: args.organizationId, + message: args.message, + agentConfig: args.agentConfig, + model: args.agentConfig.model ?? 'default', + provider: args.agentConfig.provider, + agentSlug: args.agentSlug, + debugTag: `[${args.agentSlug}:openai]`, + enableStreaming: args.enableStreaming ?? true, + }); + + return { threadId, streamId: result.streamId }; + }, +}); diff --git a/services/platform/convex/openai_compat/internal_queries.ts b/services/platform/convex/openai_compat/internal_queries.ts new file mode 100644 index 000000000..328a151e8 --- /dev/null +++ b/services/platform/convex/openai_compat/internal_queries.ts @@ -0,0 +1,87 @@ +/** + * Internal queries for OpenAI-compatible endpoint. + * + * Provides organization resolution from API key user context. + */ + +import { v } from 'convex/values'; + +import { isRecord, getString } from '../../lib/utils/type-guards'; +import { components } from '../_generated/api'; +import { internalQuery } from '../_generated/server'; + +/** + * Resolve the user's organization. + * + * - If orgSlug is provided, look up the organization by slug and return its ID. + * - If not, find the user's memberships and auto-select when exactly one exists. + */ +export const resolveUserOrganization = internalQuery({ + args: { + userId: v.string(), + orgSlug: v.optional(v.string()), + }, + returns: v.object({ + organizationId: v.string(), + orgSlug: v.string(), + }), + handler: async (ctx, args) => { + if (args.orgSlug) { + const org = await ctx.runQuery(components.betterAuth.adapter.findOne, { + model: 'organization', + where: [{ field: 'slug', value: args.orgSlug, operator: 'eq' }], + }); + + const orgRecord = isRecord(org) ? org : undefined; + const orgId = orgRecord ? getString(orgRecord, '_id') : undefined; + if (!orgId) { + throw new Error(`Organization not found: ${args.orgSlug}`); + } + + return { organizationId: orgId, orgSlug: args.orgSlug }; + } + + // No slug provided — auto-resolve from user memberships + const memberResult = await ctx.runQuery( + components.betterAuth.adapter.findMany, + { + model: 'member', + paginationOpts: { cursor: null, numItems: 100 }, + where: [{ field: 'userId', value: args.userId, operator: 'eq' }], + }, + ); + + const members = (memberResult?.page ?? []).filter( + (m: Record) => getString(m, 'role') !== 'disabled', + ); + + if (members.length === 0) { + throw new Error('User has no organization memberships'); + } + + if (members.length > 1) { + throw new Error( + 'User belongs to multiple organizations. Provide X-Organization-Slug header.', + ); + } + + const orgId = getString(members[0], 'organizationId'); + if (!orgId) { + throw new Error('Organization ID missing from membership record'); + } + + // Look up the slug for downstream use + const org = await ctx.runQuery(components.betterAuth.adapter.findOne, { + model: 'organization', + where: [{ field: '_id', value: orgId, operator: 'eq' }], + }); + + const orgRecord = isRecord(org) ? org : undefined; + const slug = orgRecord ? getString(orgRecord, 'slug') : undefined; + if (!slug) { + throw new Error('Organization slug not found'); + } + + return { organizationId: orgId, orgSlug: slug }; + }, +}); diff --git a/services/platform/convex/openai_compat/response_format.ts b/services/platform/convex/openai_compat/response_format.ts new file mode 100644 index 000000000..d95e355aa --- /dev/null +++ b/services/platform/convex/openai_compat/response_format.ts @@ -0,0 +1,134 @@ +/** + * OpenAI Chat Completions API response format helpers. + * + * Pure functions for building OpenAI-compatible JSON responses + * for both streaming (SSE) and non-streaming modes. + */ + +// --------------------------------------------------------------------------- +// Non-streaming response +// --------------------------------------------------------------------------- + +interface ChatCompletionResponse { + id: string; + object: 'chat.completion'; + created: number; + model: string; + choices: Array<{ + index: number; + message: { role: 'assistant'; content: string }; + finish_reason: 'stop' | 'length'; + }>; + usage: { + prompt_tokens: number; + completion_tokens: number; + total_tokens: number; + }; +} + +export function buildChatCompletion( + id: string, + model: string, + content: string, + created: number, +): ChatCompletionResponse { + return { + id: `chatcmpl-${id}`, + object: 'chat.completion', + created, + model, + choices: [ + { + index: 0, + message: { role: 'assistant', content }, + finish_reason: 'stop', + }, + ], + usage: { prompt_tokens: 0, completion_tokens: 0, total_tokens: 0 }, + }; +} + +// --------------------------------------------------------------------------- +// Streaming chunk +// --------------------------------------------------------------------------- + +interface ChatCompletionChunk { + id: string; + object: 'chat.completion.chunk'; + created: number; + model: string; + choices: Array<{ + index: number; + delta: { role?: 'assistant'; content?: string }; + finish_reason: 'stop' | 'length' | null; + }>; +} + +export function buildChatCompletionChunk( + id: string, + model: string, + delta: { role?: 'assistant'; content?: string }, + finishReason: 'stop' | 'length' | null, + created: number, +): ChatCompletionChunk { + return { + id: `chatcmpl-${id}`, + object: 'chat.completion.chunk', + created, + model, + choices: [{ index: 0, delta, finish_reason: finishReason }], + }; +} + +// --------------------------------------------------------------------------- +// SSE formatting +// --------------------------------------------------------------------------- + +export function formatSSEChunk(data: unknown): string { + return `data: ${JSON.stringify(data)}\n\n`; +} + +export function formatSSEDone(): string { + return 'data: [DONE]\n\n'; +} + +// --------------------------------------------------------------------------- +// Error response (OpenAI format) +// --------------------------------------------------------------------------- + +interface OpenAIErrorBody { + error: { + message: string; + type: string; + param: string | null; + code: string | null; + }; +} + +export function buildOpenAIErrorBody( + message: string, + type: string, + code: string | null = null, +): OpenAIErrorBody { + return { + error: { message, type, param: null, code }, + }; +} + +export function openAIErrorResponse( + message: string, + type: string, + status: number, + code: string | null = null, +): Response { + return new Response( + JSON.stringify(buildOpenAIErrorBody(message, type, code)), + { + status, + headers: { + 'Content-Type': 'application/json', + 'Access-Control-Allow-Origin': '*', + }, + }, + ); +} From 620949820fe95fc52318814a30571bddd4f55fc3 Mon Sep 17 00:00:00 2001 From: larryro <371767072@qq.com> Date: Thu, 9 Apr 2026 16:31:28 +0800 Subject: [PATCH 2/9] chore(platform): update auto-generated api.d.ts --- services/platform/convex/_generated/api.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/services/platform/convex/_generated/api.d.ts b/services/platform/convex/_generated/api.d.ts index 77e87f696..22e41ef0f 100644 --- a/services/platform/convex/_generated/api.d.ts +++ b/services/platform/convex/_generated/api.d.ts @@ -513,6 +513,11 @@ import type * as onedrive_upload_and_create_document_deps from "../onedrive/uplo import type * as onedrive_upload_to_storage from "../onedrive/upload_to_storage.js"; import type * as onedrive_validators from "../onedrive/validators.js"; import type * as onedrive_with_microsoft_token from "../onedrive/with_microsoft_token.js"; +import type * as openai_compat_http_actions from "../openai_compat/http_actions.js"; +import type * as openai_compat_internal_actions from "../openai_compat/internal_actions.js"; +import type * as openai_compat_internal_mutations from "../openai_compat/internal_mutations.js"; +import type * as openai_compat_internal_queries from "../openai_compat/internal_queries.js"; +import type * as openai_compat_response_format from "../openai_compat/response_format.js"; import type * as organizations_actions from "../organizations/actions.js"; import type * as organizations_create_organization from "../organizations/create_organization.js"; import type * as organizations_delete_organization from "../organizations/delete_organization.js"; @@ -1401,6 +1406,11 @@ declare const fullApi: ApiFromModules<{ "onedrive/upload_to_storage": typeof onedrive_upload_to_storage; "onedrive/validators": typeof onedrive_validators; "onedrive/with_microsoft_token": typeof onedrive_with_microsoft_token; + "openai_compat/http_actions": typeof openai_compat_http_actions; + "openai_compat/internal_actions": typeof openai_compat_internal_actions; + "openai_compat/internal_mutations": typeof openai_compat_internal_mutations; + "openai_compat/internal_queries": typeof openai_compat_internal_queries; + "openai_compat/response_format": typeof openai_compat_response_format; "organizations/actions": typeof organizations_actions; "organizations/create_organization": typeof organizations_create_organization; "organizations/delete_organization": typeof organizations_delete_organization; From 4989e81a785f29ac06da844319d2605300d99413 Mon Sep 17 00:00:00 2001 From: larryro <371767072@qq.com> Date: Thu, 9 Apr 2026 17:30:06 +0800 Subject: [PATCH 3/9] feat(platform): add client tool calling and generation params to OpenAI compat endpoint Support two modes in the Chat Completions API: agent mode (server-side tools, async generation) and client tool mode (client-defined tools, direct streamText). Thread generation parameters (temperature, max_tokens, top_p, etc.) from the OpenAI request through to the underlying LLM call. --- services/platform/convex/_generated/api.d.ts | 2 + services/platform/convex/betterAuth/schema.ts | 2 + .../convex/lib/agent_chat/internal_actions.ts | 3 + .../convex/lib/agent_chat/start_agent_chat.ts | 9 +- .../platform/convex/lib/agent_chat/types.ts | 15 + .../lib/agent_response/generate_response.ts | 37 ++ .../convex/lib/agent_response/types.ts | 9 + .../convex/openai_compat/http_actions.ts | 469 +++++++++++++++--- .../convex/openai_compat/internal_actions.ts | 309 +++++++++--- .../openai_compat/internal_mutations.ts | 66 ++- .../convex/openai_compat/response_format.ts | 61 ++- .../convex/openai_compat/tool_conversion.ts | 61 +++ .../platform/scripts/test_openai_compat.py | 370 ++++++++++++++ 13 files changed, 1290 insertions(+), 123 deletions(-) create mode 100644 services/platform/convex/openai_compat/tool_conversion.ts create mode 100644 services/platform/scripts/test_openai_compat.py diff --git a/services/platform/convex/_generated/api.d.ts b/services/platform/convex/_generated/api.d.ts index 22e41ef0f..d8d54f5ef 100644 --- a/services/platform/convex/_generated/api.d.ts +++ b/services/platform/convex/_generated/api.d.ts @@ -518,6 +518,7 @@ import type * as openai_compat_internal_actions from "../openai_compat/internal_ import type * as openai_compat_internal_mutations from "../openai_compat/internal_mutations.js"; import type * as openai_compat_internal_queries from "../openai_compat/internal_queries.js"; import type * as openai_compat_response_format from "../openai_compat/response_format.js"; +import type * as openai_compat_tool_conversion from "../openai_compat/tool_conversion.js"; import type * as organizations_actions from "../organizations/actions.js"; import type * as organizations_create_organization from "../organizations/create_organization.js"; import type * as organizations_delete_organization from "../organizations/delete_organization.js"; @@ -1411,6 +1412,7 @@ declare const fullApi: ApiFromModules<{ "openai_compat/internal_mutations": typeof openai_compat_internal_mutations; "openai_compat/internal_queries": typeof openai_compat_internal_queries; "openai_compat/response_format": typeof openai_compat_response_format; + "openai_compat/tool_conversion": typeof openai_compat_tool_conversion; "organizations/actions": typeof organizations_actions; "organizations/create_organization": typeof organizations_create_organization; "organizations/delete_organization": typeof organizations_delete_organization; diff --git a/services/platform/convex/betterAuth/schema.ts b/services/platform/convex/betterAuth/schema.ts index 84f5eaab6..1905243ea 100644 --- a/services/platform/convex/betterAuth/schema.ts +++ b/services/platform/convex/betterAuth/schema.ts @@ -15,6 +15,8 @@ import { tables as generatedTables } from './generated_schema'; // Extend the generated tables with custom indexes export const tables = { ...generatedTables, + // Add index on key field for efficient API key lookups + apikey: generatedTables.apikey.index('key', ['key']), // Add custom index for [organizationId, userId] queries on member table member: generatedTables.member.index('organizationId_userId', [ 'organizationId', diff --git a/services/platform/convex/lib/agent_chat/internal_actions.ts b/services/platform/convex/lib/agent_chat/internal_actions.ts index 134a6cf47..c3bb76df7 100644 --- a/services/platform/convex/lib/agent_chat/internal_actions.ts +++ b/services/platform/convex/lib/agent_chat/internal_actions.ts @@ -133,6 +133,7 @@ export const runAgentGeneration = internalAction({ promptMessageId: v.optional(v.string()), maxSteps: v.optional(v.number()), deadlineMs: v.optional(v.number()), + generationParams: v.optional(v.any()), }, handler: async (ctx, args) => { const actionStartTime = Date.now(); @@ -162,6 +163,7 @@ export const runAgentGeneration = internalAction({ promptMessageId, maxSteps, deadlineMs, + generationParams, } = args; const agentType = narrowStringUnion( @@ -360,6 +362,7 @@ export const runAgentGeneration = internalAction({ promptMessageId, maxSteps, deadlineMs, + generationParams, }, ); diff --git a/services/platform/convex/lib/agent_chat/start_agent_chat.ts b/services/platform/convex/lib/agent_chat/start_agent_chat.ts index 3c381253c..c5e9a5690 100644 --- a/services/platform/convex/lib/agent_chat/start_agent_chat.ts +++ b/services/platform/convex/lib/agent_chat/start_agent_chat.ts @@ -26,7 +26,11 @@ import { computeDeduplicationState, type AgentListMessagesResult, } from '../message_deduplication'; -import type { SerializableAgentConfig, AgentHooksConfig } from './types'; +import type { + SerializableAgentConfig, + AgentHooksConfig, + GenerationParams, +} from './types'; const debugLog = createDebugLog('DEBUG_CHAT_AGENT', '[startAgentChat]'); @@ -81,6 +85,8 @@ export interface StartAgentChatArgs { agentSlug?: string; /** @deprecated Use agentSlug instead */ agentId?: Id<'agentBindings'>; + /** Optional per-request generation parameters (temperature, etc.) */ + generationParams?: GenerationParams; } export interface StartAgentChatResult { @@ -236,6 +242,7 @@ export async function startAgentChat( additionalContext, userContext, deadlineMs, + generationParams: args.generationParams, }, ); diff --git a/services/platform/convex/lib/agent_chat/types.ts b/services/platform/convex/lib/agent_chat/types.ts index 028d111b8..c229dc980 100644 --- a/services/platform/convex/lib/agent_chat/types.ts +++ b/services/platform/convex/lib/agent_chat/types.ts @@ -91,6 +91,19 @@ export interface AgentRuntimeConfig { * Arguments for runAgentGeneration action. * These are the serialized arguments passed through scheduler. */ +/** + * Optional LLM generation parameters (temperature, etc.). + * Only set fields that are explicitly provided; omit to use model defaults. + */ +export interface GenerationParams { + temperature?: number; + maxTokens?: number; + topP?: number; + frequencyPenalty?: number; + presencePenalty?: number; + stopSequences?: string[]; +} + export interface RunAgentGenerationArgs { agentType: string; agentConfig: SerializableAgentConfig; @@ -116,6 +129,8 @@ export interface RunAgentGenerationArgs { streamId?: string; promptMessageId?: string; maxSteps?: number; + /** Optional per-request generation parameters from OpenAI compat endpoint */ + generationParams?: GenerationParams; } /** diff --git a/services/platform/convex/lib/agent_response/generate_response.ts b/services/platform/convex/lib/agent_response/generate_response.ts index 9e7449180..8f0b5086e 100644 --- a/services/platform/convex/lib/agent_response/generate_response.ts +++ b/services/platform/convex/lib/agent_response/generate_response.ts @@ -191,6 +191,7 @@ export async function generateAgentResponse( streamId, promptMessageId, maxSteps: _maxSteps, + generationParams, } = args; const debugLog = createDebugLog( @@ -618,6 +619,24 @@ export async function generateAgentResponse( system: systemPrompt, prompt: promptToSend, abortSignal: abortController.signal, + ...(generationParams?.temperature != null && { + temperature: generationParams.temperature, + }), + ...(generationParams?.maxTokens != null && { + maxTokens: generationParams.maxTokens, + }), + ...(generationParams?.topP != null && { + topP: generationParams.topP, + }), + ...(generationParams?.frequencyPenalty != null && { + frequencyPenalty: generationParams.frequencyPenalty, + }), + ...(generationParams?.presencePenalty != null && { + presencePenalty: generationParams.presencePenalty, + }), + ...(generationParams?.stopSequences != null && { + stopSequences: generationParams.stopSequences, + }), onChunk: ({ chunk }: { chunk: { type: string } }) => { if (firstTokenTime === null && chunk.type === 'text-delta') { firstTokenTime = Date.now(); @@ -712,6 +731,24 @@ export async function generateAgentResponse( prompt: promptMessage, abortSignal: abortController.signal, ...(promptMessageId ? { promptMessageId } : {}), + ...(generationParams?.temperature != null && { + temperature: generationParams.temperature, + }), + ...(generationParams?.maxTokens != null && { + maxTokens: generationParams.maxTokens, + }), + ...(generationParams?.topP != null && { + topP: generationParams.topP, + }), + ...(generationParams?.frequencyPenalty != null && { + frequencyPenalty: generationParams.frequencyPenalty, + }), + ...(generationParams?.presencePenalty != null && { + presencePenalty: generationParams.presencePenalty, + }), + ...(generationParams?.stopSequences != null && { + stopSequences: generationParams.stopSequences, + }), }, { contextOptions: { diff --git a/services/platform/convex/lib/agent_response/types.ts b/services/platform/convex/lib/agent_response/types.ts index a1ef1df8b..af6b3af88 100644 --- a/services/platform/convex/lib/agent_response/types.ts +++ b/services/platform/convex/lib/agent_response/types.ts @@ -125,6 +125,15 @@ export interface GenerateResponseArgs { maxSteps?: number; /** Absolute deadline (Date.now()-based) by which this generation must complete */ deadlineMs?: number; + /** Optional per-request generation parameters from OpenAI compat endpoint */ + generationParams?: { + temperature?: number; + maxTokens?: number; + topP?: number; + frequencyPenalty?: number; + presencePenalty?: number; + stopSequences?: string[]; + }; } /** diff --git a/services/platform/convex/openai_compat/http_actions.ts b/services/platform/convex/openai_compat/http_actions.ts index 29670e9b6..81c087444 100644 --- a/services/platform/convex/openai_compat/http_actions.ts +++ b/services/platform/convex/openai_compat/http_actions.ts @@ -6,6 +6,10 @@ * OPTIONS /api/v1/chat/completions * GET /api/v1/models * OPTIONS /api/v1/models + * + * Two modes: + * - Agent mode (no `tools` param): uses server-side agent tools, async generation + * - Client tool mode (`tools` param present): uses client-defined tools, direct streamText */ import type { StreamId } from '@convex-dev/persistent-text-streaming'; @@ -23,15 +27,13 @@ import { extractClientIp } from '../workflows/triggers/helpers/validate'; import { buildChatCompletion, buildChatCompletionChunk, + buildChatCompletionWithToolCalls, formatSSEChunk, formatSSEDone, openAIErrorResponse, + type OpenAIToolCall, } from './response_format'; -/** - * Maximum time (ms) to poll for agent generation results. - * Aligns with the platform hard limit in generate_response.ts (540s / 9 min). - */ const MAX_POLL_MS = 540_000; const POLL_INTERVAL_MS = 100; @@ -43,18 +45,49 @@ const CORS_HEADERS = { }; // --------------------------------------------------------------------------- -// Helpers +// Types // --------------------------------------------------------------------------- interface OpenAIMessage { role: 'system' | 'user' | 'assistant' | 'tool'; - content: string; + content: string | null; + tool_calls?: Array<{ + id: string; + type: 'function'; + function: { name: string; arguments: string }; + }>; + tool_call_id?: string; } interface ChatCompletionsRequestBody { model?: string; messages?: OpenAIMessage[]; stream?: boolean; + temperature?: number; + max_tokens?: number; + top_p?: number; + frequency_penalty?: number; + presence_penalty?: number; + stop?: string | string[]; + response_format?: { type?: string }; + tools?: Array<{ + type: 'function'; + function: { name: string; description?: string; parameters?: unknown }; + }>; + tool_choice?: unknown; + seed?: number; + n?: number; +} + +// --------------------------------------------------------------------------- +// Auth helper +// --------------------------------------------------------------------------- + +class AuthError extends Error { + constructor(message: string) { + super(message); + this.name = 'AuthError'; + } } async function authenticateRequest( @@ -71,7 +104,6 @@ async function authenticateRequest( throw new AuthError('Empty API key'); } - // Create synthetic headers for better-auth's apiKey plugin const syntheticHeaders = new Headers(); syntheticHeaders.set('x-api-key', apiKey); @@ -96,11 +128,61 @@ async function authenticateRequest( } } -class AuthError extends Error { - constructor(message: string) { - super(message); - this.name = 'AuthError'; +// --------------------------------------------------------------------------- +// Build generation params from request body +// --------------------------------------------------------------------------- + +function buildGenerationParams(body: ChatCompletionsRequestBody) { + const params: Record = {}; + if (body.temperature != null) params.temperature = body.temperature; + if (body.max_tokens != null) params.maxTokens = body.max_tokens; + if (body.top_p != null) params.topP = body.top_p; + if (body.frequency_penalty != null) + params.frequencyPenalty = body.frequency_penalty; + if (body.presence_penalty != null) + params.presencePenalty = body.presence_penalty; + if (body.stop != null) { + params.stopSequences = Array.isArray(body.stop) ? body.stop : [body.stop]; + } + return Object.keys(params).length > 0 ? params : undefined; +} + +// --------------------------------------------------------------------------- +// Build tool messages for continuation requests +// --------------------------------------------------------------------------- + +function extractToolMessages(messages: OpenAIMessage[]) { + const toolMessages: Array<{ role: string; content: unknown }> = []; + + for (const msg of messages) { + if (msg.role === 'assistant' && msg.tool_calls) { + // Save the assistant message with tool_calls + toolMessages.push({ + role: 'assistant', + content: msg.tool_calls.map((tc) => ({ + type: 'tool-call', + toolCallId: tc.id, + toolName: tc.function.name, + args: JSON.parse(tc.function.arguments), + })), + }); + } else if (msg.role === 'tool' && msg.tool_call_id) { + // Save the tool result message + toolMessages.push({ + role: 'tool', + content: [ + { + type: 'tool-result', + toolCallId: msg.tool_call_id, + toolName: '', + result: msg.content, + }, + ], + }); + } } + + return toolMessages.length > 0 ? toolMessages : undefined; } // --------------------------------------------------------------------------- @@ -108,7 +190,7 @@ class AuthError extends Error { // --------------------------------------------------------------------------- export const chatCompletionsHandler = httpAction(async (ctx, request) => { - // Rate limit by IP + // Rate limit const ip = extractClientIp(request.headers); try { await checkIpRateLimit(ctx, 'openai:chat', ip); @@ -124,7 +206,7 @@ export const chatCompletionsHandler = httpAction(async (ctx, request) => { throw error; } - // Authenticate + // Auth let user: { userId: string; email: string; name: string }; try { user = await authenticateRequest(ctx, request); @@ -140,7 +222,7 @@ export const chatCompletionsHandler = httpAction(async (ctx, request) => { throw error; } - // Resolve organization + // Org const orgSlugHeader = request.headers.get('x-organization-slug') ?? request.headers.get('X-Organization-Slug'); @@ -149,10 +231,7 @@ export const chatCompletionsHandler = httpAction(async (ctx, request) => { try { orgInfo = await ctx.runQuery( internal.openai_compat.internal_queries.resolveUserOrganization, - { - userId: user.userId, - orgSlug: orgSlugHeader ?? undefined, - }, + { userId: user.userId, orgSlug: orgSlugHeader ?? undefined }, ); } catch (error) { const msg = @@ -160,7 +239,7 @@ export const chatCompletionsHandler = httpAction(async (ctx, request) => { return openAIErrorResponse(msg, 'invalid_request_error', 400); } - // Parse request body + // Parse body let body: ChatCompletionsRequestBody; try { body = await request.json(); @@ -172,7 +251,7 @@ export const chatCompletionsHandler = httpAction(async (ctx, request) => { ); } - // Validate required fields + // Validate const model = body.model; if (!model || typeof model !== 'string') { return openAIErrorResponse( @@ -192,7 +271,6 @@ export const chatCompletionsHandler = httpAction(async (ctx, request) => { ); } - // Extract last user message const lastUserMessage = messages.findLast((m) => m.role === 'user'); if (!lastUserMessage || typeof lastUserMessage.content !== 'string') { return openAIErrorResponse( @@ -207,8 +285,31 @@ export const chatCompletionsHandler = httpAction(async (ctx, request) => { request.headers.get('x-thread-id') ?? request.headers.get('X-Thread-Id') ?? undefined; + const generationParams = buildGenerationParams(body); + const responseFormat = body.response_format?.type; + const hasClientTools = Array.isArray(body.tools) && body.tools.length > 0; + + // ----------------------------------------------------------------------- + // Client tool mode: direct streamText with client-defined tools + // ----------------------------------------------------------------------- + if (hasClientTools) { + return handleToolCallingMode(ctx, { + model, + messages, + lastUserMessage: lastUserMessage.content, + tools: body.tools ?? [], + shouldStream, + threadId, + generationParams, + responseFormat, + orgInfo, + user, + }); + } - // Start chat via internal action + // ----------------------------------------------------------------------- + // Agent mode: server-side tools, async generation via persistent stream + // ----------------------------------------------------------------------- let chatResult: { threadId: string; streamId: string }; try { chatResult = await ctx.runAction( @@ -222,36 +323,303 @@ export const chatCompletionsHandler = httpAction(async (ctx, request) => { message: lastUserMessage.content, threadId, enableStreaming: shouldStream, + generationParams, + responseFormat, }, ); } catch (error) { - const msg = error instanceof Error ? error.message : 'Failed to start chat'; + return handleChatError(error, model); + } - // Detect specific error types - if (msg.includes('Agent not found')) { - return openAIErrorResponse( - `Model '${model}' not found`, - 'invalid_request_error', - 404, - 'model_not_found', + if (shouldStream) { + return streamOpenAIResponse(ctx, chatResult, model); + } + return pollOpenAIResponse(ctx, chatResult, model); +}); + +// --------------------------------------------------------------------------- +// Client tool calling mode handler +// --------------------------------------------------------------------------- + +async function handleToolCallingMode( + ctx: ActionCtx, + opts: { + model: string; + messages: OpenAIMessage[]; + lastUserMessage: string; + tools: ChatCompletionsRequestBody['tools']; + shouldStream: boolean; + threadId?: string; + generationParams?: Record; + responseFormat?: string; + orgInfo: { organizationId: string; orgSlug: string }; + user: { userId: string; email: string; name: string }; + }, +) { + const toolMessages = extractToolMessages(opts.messages); + const created = Math.floor(Date.now() / 1000); + + let result: { + threadId: string; + text: string | null; + toolCalls: OpenAIToolCall[] | null; + finishReason: string; + }; + + try { + result = await ctx.runAction( + internal.openai_compat.internal_actions.chatViaOpenAIWithTools, + { + agentSlug: opts.model, + organizationId: opts.orgInfo.organizationId, + userId: opts.user.userId, + userEmail: opts.user.email, + userName: opts.user.name, + message: opts.lastUserMessage, + threadId: opts.threadId, + tools: opts.tools, + toolMessages, + generationParams: opts.generationParams, + responseFormat: opts.responseFormat, + }, + ); + } catch (error) { + return handleChatError(error, opts.model); + } + + const completionId = result.threadId; + + // Tool calls returned — return them to client + if (result.toolCalls && result.toolCalls.length > 0) { + if (opts.shouldStream) { + return streamToolCallsResponse( + completionId, + opts.model, + result.toolCalls, + result.text, + result.threadId, + created, ); } - if (msg.includes('Not a member') || msg.includes('disabled')) { - return openAIErrorResponse(msg, 'permission_error', 403); - } - return openAIErrorResponse(msg, 'server_error', 500); + const response = buildChatCompletionWithToolCalls( + completionId, + opts.model, + result.toolCalls, + created, + result.text, + ); + return jsonResponseWithThreadId(response, result.threadId); } - if (shouldStream) { - return streamOpenAIResponse(ctx, chatResult, model); + // No tool calls — return text + if (opts.shouldStream) { + return streamDirectTextResponse( + completionId, + opts.model, + result.text ?? '', + result.threadId, + created, + ); } - return pollOpenAIResponse(ctx, chatResult, model); -}); + const response = buildChatCompletion( + completionId, + opts.model, + result.text ?? '', + created, + ); + return jsonResponseWithThreadId(response, result.threadId); +} + +function jsonResponseWithThreadId(body: unknown, threadId: string): Response { + return new Response(JSON.stringify(body), { + status: 200, + headers: { + 'Content-Type': 'application/json', + 'Access-Control-Allow-Origin': '*', + 'X-Thread-Id': threadId, + }, + }); +} // --------------------------------------------------------------------------- -// Non-streaming: poll until done +// Stream tool_calls response (for client tool mode + streaming) +// --------------------------------------------------------------------------- + +function streamToolCallsResponse( + completionId: string, + model: string, + toolCalls: OpenAIToolCall[], + text: string | null, + threadId: string, + created: number, +): Response { + const encoder = new TextEncoder(); + const { readable, writable } = new TransformStream(); + const writer = writable.getWriter(); + + void (async () => { + try { + // Role chunk + const roleChunk = buildChatCompletionChunk( + completionId, + model, + { role: 'assistant' }, + null, + created, + ); + await writer.write(encoder.encode(formatSSEChunk(roleChunk))); + + // Text content if any + if (text) { + const textChunk = buildChatCompletionChunk( + completionId, + model, + { content: text }, + null, + created, + ); + await writer.write(encoder.encode(formatSSEChunk(textChunk))); + } + + // Tool calls chunk + const toolCallsChunk = buildChatCompletionChunk( + completionId, + model, + { + tool_calls: toolCalls.map((tc, index) => ({ + index, + id: tc.id, + type: tc.type, + function: tc.function, + })), + }, + null, + created, + ); + await writer.write(encoder.encode(formatSSEChunk(toolCallsChunk))); + + // Finish chunk + const finishChunk = buildChatCompletionChunk( + completionId, + model, + {}, + 'tool_calls', + created, + ); + await writer.write(encoder.encode(formatSSEChunk(finishChunk))); + + await writer.write(encoder.encode(formatSSEDone())); + } catch (error) { + console.error('[openai_compat] Tool calls stream error:', error); + } finally { + await writer.close(); + } + })(); + + return new Response(readable, { + status: 200, + headers: { + 'Content-Type': 'text/event-stream', + 'Cache-Control': 'no-cache', + Connection: 'keep-alive', + 'X-Thread-Id': threadId, + ...CORS_HEADERS, + }, + }); +} + +// --------------------------------------------------------------------------- +// Stream direct text response (for client tool mode, text result) +// --------------------------------------------------------------------------- + +function streamDirectTextResponse( + completionId: string, + model: string, + text: string, + threadId: string, + created: number, +): Response { + const encoder = new TextEncoder(); + const { readable, writable } = new TransformStream(); + const writer = writable.getWriter(); + + void (async () => { + try { + const roleChunk = buildChatCompletionChunk( + completionId, + model, + { role: 'assistant' }, + null, + created, + ); + await writer.write(encoder.encode(formatSSEChunk(roleChunk))); + + if (text) { + const contentChunk = buildChatCompletionChunk( + completionId, + model, + { content: text }, + null, + created, + ); + await writer.write(encoder.encode(formatSSEChunk(contentChunk))); + } + + const finishChunk = buildChatCompletionChunk( + completionId, + model, + {}, + 'stop', + created, + ); + await writer.write(encoder.encode(formatSSEChunk(finishChunk))); + + await writer.write(encoder.encode(formatSSEDone())); + } catch (error) { + console.error('[openai_compat] Direct text stream error:', error); + } finally { + await writer.close(); + } + })(); + + return new Response(readable, { + status: 200, + headers: { + 'Content-Type': 'text/event-stream', + 'Cache-Control': 'no-cache', + Connection: 'keep-alive', + 'X-Thread-Id': threadId, + ...CORS_HEADERS, + }, + }); +} + +// --------------------------------------------------------------------------- +// Error handler +// --------------------------------------------------------------------------- + +function handleChatError(error: unknown, model: string): Response { + const msg = error instanceof Error ? error.message : 'Failed to start chat'; + + if (msg.includes('Agent not found')) { + return openAIErrorResponse( + `Model '${model}' not found`, + 'invalid_request_error', + 404, + 'model_not_found', + ); + } + if (msg.includes('Not a member') || msg.includes('disabled')) { + return openAIErrorResponse(msg, 'permission_error', 403); + } + + return openAIErrorResponse(msg, 'server_error', 500); +} + +// --------------------------------------------------------------------------- +// Agent mode: poll until done (non-streaming) // --------------------------------------------------------------------------- async function pollOpenAIResponse( @@ -299,7 +667,7 @@ async function pollOpenAIResponse( } // --------------------------------------------------------------------------- -// Streaming: SSE with OpenAI chunk format +// Agent mode: SSE streaming // --------------------------------------------------------------------------- async function streamOpenAIResponse( @@ -319,7 +687,6 @@ async function streamOpenAIResponse( void (async () => { try { - // First chunk: role announcement const roleChunk = buildChatCompletionChunk( completionId, model, @@ -360,7 +727,6 @@ async function streamOpenAIResponse( await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS)); } - // Final chunk with finish_reason if (streamDone) { const finalChunk = buildChatCompletionChunk( completionId, @@ -372,7 +738,6 @@ async function streamOpenAIResponse( await writer.write(encoder.encode(formatSSEChunk(finalChunk))); } - // Terminate SSE stream await writer.write(encoder.encode(formatSSEDone())); } catch (error) { console.error('[openai_compat] Stream polling error:', error); @@ -397,7 +762,6 @@ async function streamOpenAIResponse( // --------------------------------------------------------------------------- export const modelsListHandler = httpAction(async (ctx, request) => { - // Authenticate let user: { userId: string; email: string; name: string }; try { user = await authenticateRequest(ctx, request); @@ -413,7 +777,6 @@ export const modelsListHandler = httpAction(async (ctx, request) => { throw error; } - // Resolve organization const orgSlugHeader = request.headers.get('x-organization-slug') ?? request.headers.get('X-Organization-Slug'); @@ -422,10 +785,7 @@ export const modelsListHandler = httpAction(async (ctx, request) => { try { orgInfo = await ctx.runQuery( internal.openai_compat.internal_queries.resolveUserOrganization, - { - userId: user.userId, - orgSlug: orgSlugHeader ?? undefined, - }, + { userId: user.userId, orgSlug: orgSlugHeader ?? undefined }, ); } catch (error) { const msg = @@ -433,7 +793,6 @@ export const modelsListHandler = httpAction(async (ctx, request) => { return openAIErrorResponse(msg, 'invalid_request_error', 400); } - // List agents // oxlint-disable-next-line typescript/no-explicit-any -- listVisibleAgents returns v.any(); shape is validated at runtime let agents: any[]; try { @@ -471,19 +830,13 @@ export const modelsListHandler = httpAction(async (ctx, request) => { export const chatCompletionsOptionsHandler = httpAction(async () => { return new Response(null, { status: 204, - headers: { - ...CORS_HEADERS, - 'Access-Control-Max-Age': '86400', - }, + headers: { ...CORS_HEADERS, 'Access-Control-Max-Age': '86400' }, }); }); export const modelsOptionsHandler = httpAction(async () => { return new Response(null, { status: 204, - headers: { - ...CORS_HEADERS, - 'Access-Control-Max-Age': '86400', - }, + headers: { ...CORS_HEADERS, 'Access-Control-Max-Age': '86400' }, }); }); diff --git a/services/platform/convex/openai_compat/internal_actions.ts b/services/platform/convex/openai_compat/internal_actions.ts index bbf2ebc52..573c060a5 100644 --- a/services/platform/convex/openai_compat/internal_actions.ts +++ b/services/platform/convex/openai_compat/internal_actions.ts @@ -3,15 +3,18 @@ /** * Internal actions for OpenAI-compatible endpoint. * - * Handles agent config resolution, PII scrubbing, and agent listing. + * Handles agent config resolution, PII scrubbing, agent listing, + * and direct tool-calling mode. */ import { readdir } from 'node:fs/promises'; +import { streamText } from 'ai'; import { v } from 'convex/values'; import { isRecord, getString } from '../../lib/utils/type-guards'; import { components, internal } from '../_generated/api'; +import type { ActionCtx } from '../_generated/server'; import { internalAction } from '../_generated/server'; import { agentNameFromFileName, @@ -19,9 +22,80 @@ import { validateAgentName, } from '../agents/file_utils'; import { scrubPii, type PiiConfig } from '../governance/pii'; +import { resolveLanguageModelWithFallback } from '../providers/failover'; +import { convertOpenAITools, generateToolCallId } from './tool_conversion'; // --------------------------------------------------------------------------- -// Chat initiation (agent config + PII scrubbing) +// Shared helpers +// --------------------------------------------------------------------------- + +async function resolveOrgSlug( + ctx: ActionCtx, + organizationId: string, +): Promise { + const org = await ctx.runQuery(components.betterAuth.adapter.findOne, { + model: 'organization', + where: [{ field: '_id', value: organizationId, operator: 'eq' }], + }); + const orgRecord = isRecord(org) ? org : undefined; + const slug = orgRecord ? getString(orgRecord, 'slug') : undefined; + if (!slug) throw new Error('Organization not found'); + return slug; +} + +async function scrubMessagePii( + ctx: ActionCtx, + message: string, + organizationId: string, + userId: string, + userEmail: string, + agentSlug: string, +): Promise { + const piiPolicy = await ctx.runQuery( + internal.governance.internal_queries.getPiiConfigInternal, + { organizationId }, + ); + + if (!piiPolicy?.enabled || !piiPolicy.config) return message; + + const piiConfig: PiiConfig = { + enabled: true, + mode: piiPolicy.config.mode, + enabledPatterns: piiPolicy.config.enabledPatterns, + customPatterns: piiPolicy.config.customPatterns, + }; + + const result = scrubPii(message, piiConfig); + + if (result.matchCount > 0) { + await ctx.runMutation( + internal.audit_logs.internal_mutations.createAuditLog, + { + organizationId, + actorId: userId, + actorEmail: userEmail, + actorType: 'api', + action: 'pii.detected_in_chat', + category: 'security', + resourceType: 'chat_message', + resourceId: 'openai_compat', + status: 'success', + metadata: { + detectedTypes: result.detectedTypes, + matchCount: result.matchCount, + mode: piiConfig.mode, + agentSlug, + source: 'openai_compat', + }, + }, + ); + } + + return result.text; +} + +// --------------------------------------------------------------------------- +// Agent mode: chat via scheduled generation (no client tools) // --------------------------------------------------------------------------- export const chatViaOpenAI = internalAction({ @@ -34,6 +108,8 @@ export const chatViaOpenAI = internalAction({ message: v.string(), threadId: v.optional(v.string()), enableStreaming: v.optional(v.boolean()), + generationParams: v.optional(v.any()), + responseFormat: v.optional(v.string()), }, returns: v.object({ threadId: v.string(), @@ -43,62 +119,17 @@ export const chatViaOpenAI = internalAction({ ctx, args, ): Promise<{ threadId: string; streamId: string }> => { - // Resolve org slug from organizationId - const org = await ctx.runQuery(components.betterAuth.adapter.findOne, { - model: 'organization', - where: [{ field: '_id', value: args.organizationId, operator: 'eq' }], - }); - - const orgRecord = isRecord(org) ? org : undefined; - const orgSlug = orgRecord ? getString(orgRecord, 'slug') : undefined; - if (!orgSlug) { - throw new Error('Organization not found'); - } + const orgSlug = await resolveOrgSlug(ctx, args.organizationId); - // PII scrubbing (same pattern as unified_chat.ts) - let message = args.message; - const piiPolicy = await ctx.runQuery( - internal.governance.internal_queries.getPiiConfigInternal, - { organizationId: args.organizationId }, + const message = await scrubMessagePii( + ctx, + args.message, + args.organizationId, + args.userId, + args.userEmail ?? '', + args.agentSlug, ); - if (piiPolicy?.enabled && piiPolicy.config) { - const piiConfig: PiiConfig = { - enabled: true, - mode: piiPolicy.config.mode, - enabledPatterns: piiPolicy.config.enabledPatterns, - customPatterns: piiPolicy.config.customPatterns, - }; - - const result = scrubPii(message, piiConfig); - message = result.text; - - if (result.matchCount > 0) { - await ctx.runMutation( - internal.audit_logs.internal_mutations.createAuditLog, - { - organizationId: args.organizationId, - actorId: args.userId, - actorEmail: args.userEmail ?? '', - actorType: 'api', - action: 'pii.detected_in_chat', - category: 'security', - resourceType: 'chat_message', - resourceId: 'openai_compat', - status: 'success', - metadata: { - detectedTypes: result.detectedTypes, - matchCount: result.matchCount, - mode: piiConfig.mode, - agentSlug: args.agentSlug, - source: 'openai_compat', - }, - }, - ); - } - } - - // Resolve agent config from filesystem const agentConfig = await ctx.runAction( internal.agents.file_actions.resolveAgentConfig, { @@ -108,7 +139,11 @@ export const chatViaOpenAI = internalAction({ }, ); - // Start the chat (creates thread, stream, saves message, schedules generation) + // Apply response_format override + if (args.responseFormat === 'json_object') { + agentConfig.outputFormat = 'json'; + } + return ctx.runMutation( internal.openai_compat.internal_mutations.startOpenAIChat, { @@ -121,8 +156,169 @@ export const chatViaOpenAI = internalAction({ threadId: args.threadId, enableStreaming: args.enableStreaming, agentConfig, + generationParams: args.generationParams, + }, + ); + }, +}); + +// --------------------------------------------------------------------------- +// Client tool mode: direct streamText with client-defined tools +// --------------------------------------------------------------------------- + +interface ToolCallResult { + threadId: string; + text: string | null; + toolCalls: Array<{ + id: string; + type: 'function'; + function: { name: string; arguments: string }; + }> | null; + finishReason: string; +} + +export const chatViaOpenAIWithTools = internalAction({ + args: { + agentSlug: v.string(), + organizationId: v.string(), + userId: v.string(), + userEmail: v.optional(v.string()), + userName: v.optional(v.string()), + message: v.string(), + threadId: v.optional(v.string()), + tools: v.any(), + toolMessages: v.optional(v.any()), + generationParams: v.optional(v.any()), + responseFormat: v.optional(v.string()), + }, + returns: v.any(), + handler: async (ctx, args): Promise => { + const orgSlug = await resolveOrgSlug(ctx, args.organizationId); + + const message = await scrubMessagePii( + ctx, + args.message, + args.organizationId, + args.userId, + args.userEmail ?? '', + args.agentSlug, + ); + + // Resolve agent config (for system prompt + model) + // oxlint-disable-next-line typescript/no-explicit-any -- resolveAgentConfig returns v.any(); fields accessed dynamically + const agentConfig: any = await ctx.runAction( + internal.agents.file_actions.resolveAgentConfig, + { + orgSlug, + agentSlug: args.agentSlug, + organizationId: args.organizationId, }, ); + + if (args.responseFormat === 'json_object') { + agentConfig.outputFormat = 'json'; + } + + // Resolve language model + const modelId = String(agentConfig.model ?? 'default'); + const providerName = agentConfig.provider + ? String(agentConfig.provider) + : undefined; + const resolved = await resolveLanguageModelWithFallback(ctx, { + modelId, + providerName, + tag: 'chat', + }); + + // Convert client tools to AI SDK format (no execute functions) + // oxlint-disable-next-line typescript/no-unsafe-type-assertion -- Tool definitions are dynamically converted from OpenAI format; the ToolSet branded type requires exact static shape + const aiTools = convertOpenAITools( + args.tools ?? [], + ) as unknown as Parameters[0]['tools']; + + // Create or reuse thread, save user message + const threadId: string = await ctx.runMutation( + internal.openai_compat.internal_mutations.createThreadAndSaveMessage, + { + organizationId: args.organizationId, + userId: args.userId, + userEmail: args.userEmail, + userName: args.userName, + threadId: args.threadId, + message, + }, + ); + + // If continuation: save tool result messages to thread + if (args.toolMessages && Array.isArray(args.toolMessages)) { + await ctx.runMutation( + internal.openai_compat.internal_mutations.saveToolMessages, + { + threadId, + messages: args.toolMessages, + }, + ); + } + + // Build system prompt from agent instructions + const systemPrompt: string = + String(agentConfig.instructions ?? '') || + `You are ${String(agentConfig.name ?? 'assistant')}, a helpful assistant.`; + + // Build generation params + // oxlint-disable-next-line typescript/no-unsafe-type-assertion -- generationParams is v.any() from Convex validator; shape is controlled by http_actions.ts buildGenerationParams + const genParams = (args.generationParams ?? {}) as Record; + + // Direct streamText call with client tools (no auto-execute) + const result = streamText({ + model: resolved.languageModel, + system: systemPrompt, + prompt: message, + tools: aiTools, + ...(genParams.temperature != null && { + temperature: Number(genParams.temperature), + }), + ...(genParams.maxTokens != null && { + maxTokens: Number(genParams.maxTokens), + }), + ...(genParams.topP != null && { topP: Number(genParams.topP) }), + ...(genParams.frequencyPenalty != null && { + frequencyPenalty: Number(genParams.frequencyPenalty), + }), + ...(genParams.presencePenalty != null && { + presencePenalty: Number(genParams.presencePenalty), + }), + ...(Array.isArray(genParams.stopSequences) && { + stopSequences: genParams.stopSequences, + }), + }); + + const text: string = await result.text; + const finishReason: string = await result.finishReason; + const steps = await result.steps; + + // Extract tool calls from steps + interface StepWithToolCalls { + toolCalls?: Array<{ toolName: string; args: unknown }>; + } + const typedSteps: StepWithToolCalls[] = Array.isArray(steps) ? steps : []; + const toolCalls = typedSteps + .flatMap((step) => step.toolCalls ?? []) + .map((tc) => ({ + id: generateToolCallId(), + type: 'function' as const, + function: { + name: tc.toolName, + arguments: JSON.stringify(tc.args ?? {}), + }, + })); + + return { + threadId, + text: text || null, + toolCalls: toolCalls.length > 0 ? toolCalls : null, + finishReason, + }; }, }); @@ -148,7 +344,6 @@ export const listVisibleAgents = internalAction({ (e) => e.endsWith('.json') && !e.startsWith('.'), ); - // Dynamic import to avoid circular dependencies with file_actions const { readJsonFile } = await import('../lib/file_io'); const { parseAgentJson, resolveAgentFilePath, MAX_FILE_SIZE_BYTES } = await import('../agents/file_utils'); diff --git a/services/platform/convex/openai_compat/internal_mutations.ts b/services/platform/convex/openai_compat/internal_mutations.ts index 61fefd630..50f079301 100644 --- a/services/platform/convex/openai_compat/internal_mutations.ts +++ b/services/platform/convex/openai_compat/internal_mutations.ts @@ -1,11 +1,13 @@ /** * Internal mutations for OpenAI-compatible endpoint. * - * Handles thread creation, RLS validation, and chat start. + * Handles thread creation, RLS validation, chat start, and tool message saving. */ +import { saveMessage } from '@convex-dev/agent'; import { v } from 'convex/values'; +import { components } from '../_generated/api'; import { internalMutation } from '../_generated/server'; import { startAgentChat } from '../lib/agent_chat'; import { getOrganizationMember } from '../lib/rls'; @@ -22,6 +24,7 @@ export const startOpenAIChat = internalMutation({ threadId: v.optional(v.string()), enableStreaming: v.optional(v.boolean()), agentConfig: v.any(), + generationParams: v.optional(v.any()), }, returns: v.object({ threadId: v.string(), @@ -51,8 +54,69 @@ export const startOpenAIChat = internalMutation({ agentSlug: args.agentSlug, debugTag: `[${args.agentSlug}:openai]`, enableStreaming: args.enableStreaming ?? true, + generationParams: args.generationParams, }); return { threadId, streamId: result.streamId }; }, }); + +/** + * Create a thread and save a user message for tool-calling mode. + * Returns threadId for use in direct streamText calls. + */ +export const createThreadAndSaveMessage = internalMutation({ + args: { + organizationId: v.string(), + userId: v.string(), + userEmail: v.optional(v.string()), + userName: v.optional(v.string()), + threadId: v.optional(v.string()), + message: v.string(), + }, + returns: v.string(), + handler: async (ctx, args) => { + await getOrganizationMember(ctx, args.organizationId, { + userId: args.userId, + email: args.userEmail, + name: args.userName, + }); + + const threadId = + args.threadId ?? + (await createChatThread(ctx, args.userId, undefined, 'general')); + + await saveMessage(ctx, components.agent, { + threadId, + message: { role: 'user', content: args.message }, + }); + + return threadId; + }, +}); + +/** + * Save tool result messages to a thread for tool-calling continuation. + */ +export const saveToolMessages = internalMutation({ + args: { + threadId: v.string(), + messages: v.array( + v.object({ + role: v.string(), + content: v.any(), + }), + ), + }, + returns: v.null(), + handler: async (ctx, args) => { + for (const msg of args.messages) { + // oxlint-disable-next-line typescript/no-unsafe-type-assertion -- Tool messages are dynamically constructed from OpenAI format; the SaveMessageArgs type requires exact role literals that can't be statically inferred from the generic validator + await saveMessage(ctx, components.agent, { + threadId: args.threadId, + message: msg, + } as unknown as Parameters[2]); + } + return null; + }, +}); diff --git a/services/platform/convex/openai_compat/response_format.ts b/services/platform/convex/openai_compat/response_format.ts index d95e355aa..db025e0f3 100644 --- a/services/platform/convex/openai_compat/response_format.ts +++ b/services/platform/convex/openai_compat/response_format.ts @@ -9,6 +9,14 @@ // Non-streaming response // --------------------------------------------------------------------------- +export interface OpenAIToolCall { + id: string; + type: 'function'; + function: { name: string; arguments: string }; +} + +type FinishReason = 'stop' | 'length' | 'tool_calls'; + interface ChatCompletionResponse { id: string; object: 'chat.completion'; @@ -16,8 +24,12 @@ interface ChatCompletionResponse { model: string; choices: Array<{ index: number; - message: { role: 'assistant'; content: string }; - finish_reason: 'stop' | 'length'; + message: { + role: 'assistant'; + content: string | null; + tool_calls?: OpenAIToolCall[]; + }; + finish_reason: FinishReason; }>; usage: { prompt_tokens: number; @@ -48,10 +60,47 @@ export function buildChatCompletion( }; } +/** + * Build a non-streaming response with tool_calls. + */ +export function buildChatCompletionWithToolCalls( + id: string, + model: string, + toolCalls: OpenAIToolCall[], + created: number, + content: string | null = null, +): ChatCompletionResponse { + return { + id: `chatcmpl-${id}`, + object: 'chat.completion', + created, + model, + choices: [ + { + index: 0, + message: { role: 'assistant', content, tool_calls: toolCalls }, + finish_reason: 'tool_calls', + }, + ], + usage: { prompt_tokens: 0, completion_tokens: 0, total_tokens: 0 }, + }; +} + // --------------------------------------------------------------------------- // Streaming chunk // --------------------------------------------------------------------------- +interface ChatCompletionChunkDelta { + role?: 'assistant'; + content?: string; + tool_calls?: Array<{ + index: number; + id?: string; + type?: 'function'; + function?: { name?: string; arguments?: string }; + }>; +} + interface ChatCompletionChunk { id: string; object: 'chat.completion.chunk'; @@ -59,16 +108,16 @@ interface ChatCompletionChunk { model: string; choices: Array<{ index: number; - delta: { role?: 'assistant'; content?: string }; - finish_reason: 'stop' | 'length' | null; + delta: ChatCompletionChunkDelta; + finish_reason: FinishReason | null; }>; } export function buildChatCompletionChunk( id: string, model: string, - delta: { role?: 'assistant'; content?: string }, - finishReason: 'stop' | 'length' | null, + delta: ChatCompletionChunkDelta, + finishReason: FinishReason | null, created: number, ): ChatCompletionChunk { return { diff --git a/services/platform/convex/openai_compat/tool_conversion.ts b/services/platform/convex/openai_compat/tool_conversion.ts new file mode 100644 index 000000000..ac374c47f --- /dev/null +++ b/services/platform/convex/openai_compat/tool_conversion.ts @@ -0,0 +1,61 @@ +/** + * Convert OpenAI-format tool definitions to AI SDK tool format. + * + * Tools are created WITHOUT execute functions so the AI SDK returns + * tool_calls to the caller instead of auto-executing them. + */ + +import { jsonSchema } from 'ai'; + +interface OpenAIFunctionTool { + type: 'function'; + function: { + name: string; + description?: string; + parameters?: Record; + }; +} + +/** + * Convert an array of OpenAI-format tool definitions to an AI SDK ToolSet. + * + * The resulting tools have NO execute function, which causes the AI SDK + * to return `finishReason: "tool-calls"` instead of auto-executing. + */ +export function convertOpenAITools( + openaiTools: OpenAIFunctionTool[], +): Record< + string, + { description: string; parameters: ReturnType } +> { + const toolSet: Record< + string, + { description: string; parameters: ReturnType } + > = {}; + + for (const t of openaiTools) { + if (t.type !== 'function' || !t.function?.name) continue; + + const fn = t.function; + toolSet[fn.name] = { + description: fn.description ?? '', + parameters: jsonSchema( + fn.parameters ?? { type: 'object', properties: {} }, + ), + }; + } + + return toolSet; +} + +/** + * Generate a unique tool call ID in OpenAI format. + */ +export function generateToolCallId(): string { + const chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; + let id = 'call_'; + for (let i = 0; i < 24; i++) { + id += chars[Math.floor(Math.random() * chars.length)]; + } + return id; +} diff --git a/services/platform/scripts/test_openai_compat.py b/services/platform/scripts/test_openai_compat.py new file mode 100644 index 000000000..12c4c8236 --- /dev/null +++ b/services/platform/scripts/test_openai_compat.py @@ -0,0 +1,370 @@ +""" +End-to-end test for the OpenAI-compatible Chat Completions API. + +Tests all features: + 1. GET /api/v1/models + 2. Basic chat (non-streaming) + 3. Basic chat (streaming) + 4. Generation params (temperature, max_tokens) + 5. response_format: json_object + 6. Tool calling (single round) + 7. Tool calling (multi-round continuation) + 8. Tool calling (streaming) + 9. Error cases +""" + +import json +import sys + +from openai import OpenAI + +BASE_URL = "http://127.0.0.1:3211/api/v1" +API_KEY = sys.argv[1] if len(sys.argv) > 1 else "test" +ORG_SLUG = sys.argv[2] if len(sys.argv) > 2 else "default" +MODEL = sys.argv[3] if len(sys.argv) > 3 else "chat-agent" + +client = OpenAI( + base_url=BASE_URL, + api_key=API_KEY, + default_headers={"X-Organization-Slug": ORG_SLUG}, +) + +passed = 0 +failed = 0 + + +def test(name: str): + print(f"\n{'=' * 60}") + print(f"TEST: {name}") + print(f"{'=' * 60}") + + +def ok(msg: str = ""): + global passed + passed += 1 + print(f" PASS {msg}") + + +def fail(msg: str): + global failed + failed += 1 + print(f" FAIL {msg}") + + +# ------------------------------------------------------------------------- +# 1. List models +# ------------------------------------------------------------------------- +test("1. GET /v1/models") +try: + models = client.models.list() + model_ids = [m.id for m in models.data] + print(f" Models: {model_ids}") + if len(model_ids) > 0: + ok(f"Found {len(model_ids)} models") + else: + fail("No models returned") +except Exception as e: + fail(str(e)) + +# ------------------------------------------------------------------------- +# 2. Basic chat (non-streaming) +# ------------------------------------------------------------------------- +test("2. Basic chat (non-streaming)") +try: + response = client.chat.completions.create( + model=MODEL, + messages=[{"role": "user", "content": "Say hello in exactly 2 words."}], + ) + content = response.choices[0].message.content + finish = response.choices[0].finish_reason + print(f" Response: {content!r}") + print(f" Finish reason: {finish}") + if content and finish == "stop": + ok() + else: + fail(f"Unexpected: content={content!r}, finish={finish}") +except Exception as e: + fail(str(e)) + +# ------------------------------------------------------------------------- +# 3. Basic chat (streaming) +# ------------------------------------------------------------------------- +test("3. Basic chat (streaming)") +try: + stream = client.chat.completions.create( + model=MODEL, + messages=[{"role": "user", "content": "Say hi in one word."}], + stream=True, + ) + chunks = [] + full_content = "" + finish_reason = None + for chunk in stream: + delta = chunk.choices[0].delta + if delta.content: + full_content += delta.content + if chunk.choices[0].finish_reason: + finish_reason = chunk.choices[0].finish_reason + chunks.append(chunk) + + print(f" Chunks received: {len(chunks)}") + print(f" Full content: {full_content!r}") + print(f" Finish reason: {finish_reason}") + if full_content and finish_reason == "stop": + ok() + else: + fail(f"content={full_content!r}, finish={finish_reason}") +except Exception as e: + fail(str(e)) + +# ------------------------------------------------------------------------- +# 4. Generation params +# ------------------------------------------------------------------------- +test("4. Generation params (temperature=0.1, max_tokens=15)") +try: + response = client.chat.completions.create( + model=MODEL, + messages=[{"role": "user", "content": "Count from 1 to 100."}], + temperature=0.1, + max_tokens=15, + ) + content = response.choices[0].message.content + print(f" Response: {content!r}") + if content: + ok(f"Response length: {len(content)} chars") + else: + fail("No content") +except Exception as e: + fail(str(e)) + +# ------------------------------------------------------------------------- +# 5. response_format: json_object +# ------------------------------------------------------------------------- +test("5. response_format: json_object") +try: + response = client.chat.completions.create( + model=MODEL, + messages=[ + { + "role": "user", + "content": "Return a JSON object with key 'status' and value 'ok'.", + } + ], + response_format={"type": "json_object"}, + ) + content = response.choices[0].message.content + print(f" Response: {content!r}") + if content and ("status" in content.lower()): + ok("JSON content contains 'status'") + else: + fail(f"content={content!r}") +except Exception as e: + fail(str(e)) + +# ------------------------------------------------------------------------- +# 6. Tool calling (single round) +# ------------------------------------------------------------------------- +test("6. Tool calling (single round)") +try: + tools = [ + { + "type": "function", + "function": { + "name": "get_weather", + "description": "Get current weather for a location", + "parameters": { + "type": "object", + "properties": { + "city": {"type": "string", "description": "City name"}, + }, + "required": ["city"], + }, + }, + } + ] + response = client.chat.completions.create( + model=MODEL, + messages=[{"role": "user", "content": "What's the weather in Berlin?"}], + tools=tools, + ) + choice = response.choices[0] + print(f" Finish reason: {choice.finish_reason}") + print(f" Content: {choice.message.content!r}") + if choice.message.tool_calls: + for tc in choice.message.tool_calls: + print(f" Tool call: {tc.function.name}({tc.function.arguments})") + ok(f"{len(choice.message.tool_calls)} tool call(s)") + else: + fail("No tool_calls in response") +except Exception as e: + fail(str(e)) + +# ------------------------------------------------------------------------- +# 7. Tool calling (multi-round continuation) +# ------------------------------------------------------------------------- +test("7. Tool calling (multi-round continuation)") +try: + tools = [ + { + "type": "function", + "function": { + "name": "calculator", + "description": "Calculate a math expression", + "parameters": { + "type": "object", + "properties": { + "expression": { + "type": "string", + "description": "Math expression", + }, + }, + "required": ["expression"], + }, + }, + } + ] + + messages = [{"role": "user", "content": "What is 42 * 17? Use calculator."}] + + # Step 1: Get tool calls + response = client.chat.completions.create( + model=MODEL, messages=messages, tools=tools + ) + choice = response.choices[0] + print(f" Step 1 finish: {choice.finish_reason}") + + if choice.finish_reason == "tool_calls" and choice.message.tool_calls: + tc = choice.message.tool_calls[0] + print(f" Tool call: {tc.function.name}({tc.function.arguments})") + + # Get thread_id from response headers (via raw response) + # For continuation, we use the messages array pattern + # Step 2: Send tool result + messages.append(choice.message.model_dump()) + messages.append( + { + "role": "tool", + "tool_call_id": tc.id, + "content": "714", + } + ) + + response2 = client.chat.completions.create( + model=MODEL, messages=messages, tools=tools + ) + choice2 = response2.choices[0] + print(f" Step 2 finish: {choice2.finish_reason}") + print(f" Step 2 content: {choice2.message.content!r}") + + if choice2.message.content and "714" in choice2.message.content: + ok("Model used tool result correctly") + elif choice2.message.content: + ok(f"Got response: {choice2.message.content[:80]!r}") + else: + fail("No content in step 2") + elif choice.finish_reason == "stop": + print(f" Model answered directly: {choice.message.content!r}") + ok("Model answered without tools (acceptable)") + else: + fail( + f"Unexpected: finish={choice.finish_reason}, tool_calls={choice.message.tool_calls}" + ) +except Exception as e: + fail(str(e)) + +# ------------------------------------------------------------------------- +# 8. Tool calling (streaming) +# ------------------------------------------------------------------------- +test("8. Tool calling (streaming)") +try: + tools = [ + { + "type": "function", + "function": { + "name": "search", + "description": "Search the web", + "parameters": { + "type": "object", + "properties": { + "query": {"type": "string"}, + }, + "required": ["query"], + }, + }, + } + ] + stream = client.chat.completions.create( + model=MODEL, + messages=[{"role": "user", "content": "Search for 'Python tutorial'"}], + tools=tools, + stream=True, + ) + chunks = [] + finish_reason = None + has_tool_calls = False + for chunk in stream: + if chunk.choices[0].delta.tool_calls: + has_tool_calls = True + if chunk.choices[0].finish_reason: + finish_reason = chunk.choices[0].finish_reason + chunks.append(chunk) + + print(f" Chunks: {len(chunks)}") + print(f" Finish reason: {finish_reason}") + print(f" Has tool_calls: {has_tool_calls}") + if finish_reason == "tool_calls" and has_tool_calls: + ok() + elif finish_reason == "stop": + ok("Model responded with text (acceptable)") + else: + fail(f"finish={finish_reason}, tool_calls={has_tool_calls}") +except Exception as e: + fail(str(e)) + +# ------------------------------------------------------------------------- +# 9. Error cases +# ------------------------------------------------------------------------- +test("9a. Error: invalid model") +try: + client.chat.completions.create( + model="nonexistent-model-xyz", + messages=[{"role": "user", "content": "hi"}], + ) + fail("Should have raised an error") +except Exception as e: + error_str = str(e) + if "not found" in error_str.lower() or "404" in error_str: + ok(f"Got expected error: {error_str[:80]}") + else: + fail(f"Unexpected error: {error_str[:80]}") + +test("9b. Error: invalid API key") +try: + bad_client = OpenAI( + base_url=BASE_URL, + api_key="invalid_key", + default_headers={"X-Organization-Slug": ORG_SLUG}, + ) + bad_client.chat.completions.create( + model=MODEL, + messages=[{"role": "user", "content": "hi"}], + ) + fail("Should have raised an error") +except Exception as e: + error_str = str(e) + if ( + "401" in error_str + or "api_key" in error_str.lower() + or "unauthorized" in error_str.lower() + ): + ok(f"Got expected 401: {error_str[:80]}") + else: + fail(f"Unexpected error: {error_str[:80]}") + +# ------------------------------------------------------------------------- +# Summary +# ------------------------------------------------------------------------- +print(f"\n{'=' * 60}") +print(f"RESULTS: {passed} passed, {failed} failed out of {passed + failed} tests") +print(f"{'=' * 60}") +sys.exit(1 if failed > 0 else 0) From 9ab6d4419436fe8113281aea7f1709a83efdd510 Mon Sep 17 00:00:00 2001 From: larryro <371767072@qq.com> Date: Thu, 9 Apr 2026 19:38:04 +0800 Subject: [PATCH 4/9] feat(platform): improve OpenAI compat tool calling with full conversation history and tool_choice Convert full OpenAI message history to AI SDK ModelMessage format for multi-round tool calling instead of extracting only tool messages. Add tool_choice mapping (auto/none/required/specific function) from OpenAI format to AI SDK format. Update tool call extraction for AI SDK v6 content-based step format. Also expand e2e test coverage from 9 to 16 tests and fix CLI exit handling to use process.exit(1) and parseAsync(). --- services/platform/convex/_generated/api.d.ts | 2 + .../convex/openai_compat/http_actions.ts | 90 ++- .../convex/openai_compat/internal_actions.ts | 90 ++- .../platform/scripts/test_openai_compat.py | 528 ++++++++++++------ tools/cli/src/index.ts | 6 +- 5 files changed, 491 insertions(+), 225 deletions(-) diff --git a/services/platform/convex/_generated/api.d.ts b/services/platform/convex/_generated/api.d.ts index d8d54f5ef..f55c6fc4f 100644 --- a/services/platform/convex/_generated/api.d.ts +++ b/services/platform/convex/_generated/api.d.ts @@ -424,6 +424,7 @@ import type * as lib_rls_wrappers_with_organization_rls from "../lib/rls/wrapper import type * as lib_rls_wrappers_with_resource_rls from "../lib/rls/wrappers/with_resource_rls.js"; import type * as lib_shared_schemas_utils_json_value from "../lib/shared/schemas/utils/json_value.js"; import type * as lib_sops from "../lib/sops.js"; +import type * as lib_strip_nulls from "../lib/strip_nulls.js"; import type * as lib_summarization_auto_summarize from "../lib/summarization/auto_summarize.js"; import type * as lib_summarization_index from "../lib/summarization/index.js"; import type * as lib_summarization_internal_actions from "../lib/summarization/internal_actions.js"; @@ -1318,6 +1319,7 @@ declare const fullApi: ApiFromModules<{ "lib/rls/wrappers/with_resource_rls": typeof lib_rls_wrappers_with_resource_rls; "lib/shared/schemas/utils/json_value": typeof lib_shared_schemas_utils_json_value; "lib/sops": typeof lib_sops; + "lib/strip_nulls": typeof lib_strip_nulls; "lib/summarization/auto_summarize": typeof lib_summarization_auto_summarize; "lib/summarization/index": typeof lib_summarization_index; "lib/summarization/internal_actions": typeof lib_summarization_internal_actions; diff --git a/services/platform/convex/openai_compat/http_actions.ts b/services/platform/convex/openai_compat/http_actions.ts index 81c087444..1a051f5ac 100644 --- a/services/platform/convex/openai_compat/http_actions.ts +++ b/services/platform/convex/openai_compat/http_actions.ts @@ -148,41 +148,83 @@ function buildGenerationParams(body: ChatCompletionsRequestBody) { } // --------------------------------------------------------------------------- -// Build tool messages for continuation requests +// Convert OpenAI messages to AI SDK ModelMessage format for continuation // --------------------------------------------------------------------------- -function extractToolMessages(messages: OpenAIMessage[]) { - const toolMessages: Array<{ role: string; content: unknown }> = []; +function hasToolInteraction(messages: OpenAIMessage[]): boolean { + return messages.some( + (m) => + (m.role === 'assistant' && m.tool_calls && m.tool_calls.length > 0) || + m.role === 'tool', + ); +} + +/** + * Convert the full OpenAI messages array to AI SDK ModelMessage format. + * Used for tool-calling continuation so the LLM sees the complete conversation + * including previous tool_calls and tool results. + */ +function convertToModelMessages( + messages: OpenAIMessage[], +): Array> { + const result: Array> = []; for (const msg of messages) { - if (msg.role === 'assistant' && msg.tool_calls) { - // Save the assistant message with tool_calls - toolMessages.push({ - role: 'assistant', - content: msg.tool_calls.map((tc) => ({ - type: 'tool-call', - toolCallId: tc.id, - toolName: tc.function.name, - args: JSON.parse(tc.function.arguments), - })), - }); + if (msg.role === 'user') { + result.push({ role: 'user', content: msg.content ?? '' }); + } else if (msg.role === 'system') { + result.push({ role: 'system', content: msg.content ?? '' }); + } else if (msg.role === 'assistant') { + if (msg.tool_calls && msg.tool_calls.length > 0) { + // Assistant message with tool calls + const content: Array> = []; + if (msg.content) { + content.push({ type: 'text', text: msg.content }); + } + for (const tc of msg.tool_calls) { + content.push({ + type: 'tool-call', + toolCallId: tc.id, + toolName: tc.function.name, + args: JSON.parse(tc.function.arguments || '{}'), + }); + } + result.push({ role: 'assistant', content }); + } else { + result.push({ + role: 'assistant', + content: msg.content ?? '', + }); + } } else if (msg.role === 'tool' && msg.tool_call_id) { - // Save the tool result message - toolMessages.push({ + // Look up tool name from the preceding assistant message's tool_calls + const toolName = + messages + .filter( + ( + m, + ): m is OpenAIMessage & { + tool_calls: NonNullable; + } => m.role === 'assistant' && !!m.tool_calls, + ) + .flatMap((m) => m.tool_calls) + .find((tc) => tc.id === msg.tool_call_id)?.function.name ?? ''; + + result.push({ role: 'tool', content: [ { type: 'tool-result', toolCallId: msg.tool_call_id, - toolName: '', - result: msg.content, + toolName, + output: { type: 'text', value: msg.content ?? '' }, }, ], }); } } - return toolMessages.length > 0 ? toolMessages : undefined; + return result; } // --------------------------------------------------------------------------- @@ -298,6 +340,7 @@ export const chatCompletionsHandler = httpAction(async (ctx, request) => { messages, lastUserMessage: lastUserMessage.content, tools: body.tools ?? [], + toolChoice: body.tool_choice, shouldStream, threadId, generationParams, @@ -348,6 +391,7 @@ async function handleToolCallingMode( messages: OpenAIMessage[]; lastUserMessage: string; tools: ChatCompletionsRequestBody['tools']; + toolChoice?: unknown; shouldStream: boolean; threadId?: string; generationParams?: Record; @@ -356,7 +400,10 @@ async function handleToolCallingMode( user: { userId: string; email: string; name: string }; }, ) { - const toolMessages = extractToolMessages(opts.messages); + const isContinuation = hasToolInteraction(opts.messages); + const conversationMessages = isContinuation + ? convertToModelMessages(opts.messages) + : undefined; const created = Math.floor(Date.now() / 1000); let result: { @@ -378,7 +425,8 @@ async function handleToolCallingMode( message: opts.lastUserMessage, threadId: opts.threadId, tools: opts.tools, - toolMessages, + toolChoice: opts.toolChoice, + conversationMessages, generationParams: opts.generationParams, responseFormat: opts.responseFormat, }, diff --git a/services/platform/convex/openai_compat/internal_actions.ts b/services/platform/convex/openai_compat/internal_actions.ts index 573c060a5..a96e9ade4 100644 --- a/services/platform/convex/openai_compat/internal_actions.ts +++ b/services/platform/convex/openai_compat/internal_actions.ts @@ -9,7 +9,7 @@ import { readdir } from 'node:fs/promises'; -import { streamText } from 'ai'; +import { streamText, type ModelMessage } from 'ai'; import { v } from 'convex/values'; import { isRecord, getString } from '../../lib/utils/type-guards'; @@ -25,6 +25,37 @@ import { scrubPii, type PiiConfig } from '../governance/pii'; import { resolveLanguageModelWithFallback } from '../providers/failover'; import { convertOpenAITools, generateToolCallId } from './tool_conversion'; +/** + * Map OpenAI tool_choice to AI SDK toolChoice format. + * OpenAI: "auto" | "none" | "required" | { type: "function", function: { name: "..." } } + * AI SDK: "auto" | "none" | "required" | { type: "tool", toolName: "..." } + */ +function mapToolChoice( + openaiChoice: unknown, +): 'auto' | 'none' | 'required' | { type: 'tool'; toolName: string } { + if (typeof openaiChoice === 'string') { + if (openaiChoice === 'required') return 'required'; + if (openaiChoice === 'none') return 'none'; + return 'auto'; + } + if ( + typeof openaiChoice === 'object' && + openaiChoice !== null && + 'type' in openaiChoice && + (openaiChoice as Record).type === 'function' && + 'function' in openaiChoice + ) { + const fn = (openaiChoice as Record).function; + if (typeof fn === 'object' && fn !== null && 'name' in fn) { + return { + type: 'tool', + toolName: String((fn as Record).name), + }; + } + } + return 'auto'; +} + // --------------------------------------------------------------------------- // Shared helpers // --------------------------------------------------------------------------- @@ -187,7 +218,8 @@ export const chatViaOpenAIWithTools = internalAction({ message: v.string(), threadId: v.optional(v.string()), tools: v.any(), - toolMessages: v.optional(v.any()), + toolChoice: v.optional(v.any()), + conversationMessages: v.optional(v.any()), generationParams: v.optional(v.any()), responseFormat: v.optional(v.string()), }, @@ -249,17 +281,6 @@ export const chatViaOpenAIWithTools = internalAction({ }, ); - // If continuation: save tool result messages to thread - if (args.toolMessages && Array.isArray(args.toolMessages)) { - await ctx.runMutation( - internal.openai_compat.internal_mutations.saveToolMessages, - { - threadId, - messages: args.toolMessages, - }, - ); - } - // Build system prompt from agent instructions const systemPrompt: string = String(agentConfig.instructions ?? '') || @@ -270,11 +291,26 @@ export const chatViaOpenAIWithTools = internalAction({ const genParams = (args.generationParams ?? {}) as Record; // Direct streamText call with client tools (no auto-execute) + // Always use messages format for proper tool calling support. + // For continuation, use the full conversation history from the client. + const hasConversation = + args.conversationMessages && + Array.isArray(args.conversationMessages) && + args.conversationMessages.length > 0; + + const messages: ModelMessage[] = hasConversation + ? // oxlint-disable-next-line typescript/no-unsafe-type-assertion -- conversationMessages is built by convertToModelMessages in http_actions.ts; shape matches ModelMessage[] + (args.conversationMessages as ModelMessage[]) + : [{ role: 'user' as const, content: message }]; + const result = streamText({ model: resolved.languageModel, system: systemPrompt, - prompt: message, + messages, tools: aiTools, + ...(args.toolChoice != null && { + toolChoice: mapToolChoice(args.toolChoice), + }), ...(genParams.temperature != null && { temperature: Number(genParams.temperature), }), @@ -297,19 +333,27 @@ export const chatViaOpenAIWithTools = internalAction({ const finishReason: string = await result.finishReason; const steps = await result.steps; - // Extract tool calls from steps - interface StepWithToolCalls { - toolCalls?: Array<{ toolName: string; args: unknown }>; + // Extract tool calls from steps. + // AI SDK v6 stores tool calls in step.content[] as { type: "tool-call", toolCallId, toolName, input } + interface ToolCallContent { + type: string; + toolCallId?: string; + toolName?: string; + input?: unknown; } - const typedSteps: StepWithToolCalls[] = Array.isArray(steps) ? steps : []; - const toolCalls = typedSteps - .flatMap((step) => step.toolCalls ?? []) + // oxlint-disable-next-line typescript/no-unsafe-type-assertion -- StepResult serialized to extract tool-call content parts; shape is known from AI SDK v6 + const rawSteps = JSON.parse(JSON.stringify(steps)) as Array<{ + content?: ToolCallContent[]; + }>; + const toolCalls = rawSteps + .flatMap((step) => step.content ?? []) + .filter((part): part is ToolCallContent => part.type === 'tool-call') .map((tc) => ({ - id: generateToolCallId(), + id: tc.toolCallId ?? generateToolCallId(), type: 'function' as const, function: { - name: tc.toolName, - arguments: JSON.stringify(tc.args ?? {}), + name: tc.toolName ?? '', + arguments: JSON.stringify(tc.input ?? {}), }, })); diff --git a/services/platform/scripts/test_openai_compat.py b/services/platform/scripts/test_openai_compat.py index 12c4c8236..002fd0211 100644 --- a/services/platform/scripts/test_openai_compat.py +++ b/services/platform/scripts/test_openai_compat.py @@ -1,16 +1,23 @@ """ -End-to-end test for the OpenAI-compatible Chat Completions API. - -Tests all features: - 1. GET /api/v1/models - 2. Basic chat (non-streaming) - 3. Basic chat (streaming) - 4. Generation params (temperature, max_tokens) - 5. response_format: json_object - 6. Tool calling (single round) - 7. Tool calling (multi-round continuation) - 8. Tool calling (streaming) - 9. Error cases +Comprehensive end-to-end test for the OpenAI-compatible Chat Completions API. + +Tests: + 1. GET /v1/models + 2. Basic chat (non-streaming) + 3. Basic chat (streaming) + 4. Generation params (temperature, max_tokens) + 5. response_format: json_object + 6. Tool calling (single round, tool_choice=required) + 7. Tool calling (multi-round continuation) + 8. Tool calling (streaming) + 9. Multiple tools defined + 10. Tool calling with tool_choice=auto (model decides) + 11. Agent mode with no tools (server-side tools, streaming) + 12. stop sequences + 13. Error: invalid model (404) + 14. Error: invalid API key (401) + 15. Error: missing messages (400) + 16. Error: no user message (400) """ import json @@ -42,18 +49,18 @@ def test(name: str): def ok(msg: str = ""): global passed passed += 1 - print(f" PASS {msg}") + print(f" \033[32mPASS\033[0m {msg}") def fail(msg: str): global failed failed += 1 - print(f" FAIL {msg}") + print(f" \033[31mFAIL\033[0m {msg}") -# ------------------------------------------------------------------------- +# ========================================================================= # 1. List models -# ------------------------------------------------------------------------- +# ========================================================================= test("1. GET /v1/models") try: models = client.models.list() @@ -64,31 +71,32 @@ def fail(msg: str): else: fail("No models returned") except Exception as e: - fail(str(e)) + fail(str(e)[:120]) -# ------------------------------------------------------------------------- +# ========================================================================= # 2. Basic chat (non-streaming) -# ------------------------------------------------------------------------- +# ========================================================================= test("2. Basic chat (non-streaming)") try: - response = client.chat.completions.create( + r = client.chat.completions.create( model=MODEL, messages=[{"role": "user", "content": "Say hello in exactly 2 words."}], ) - content = response.choices[0].message.content - finish = response.choices[0].finish_reason - print(f" Response: {content!r}") - print(f" Finish reason: {finish}") - if content and finish == "stop": - ok() - else: - fail(f"Unexpected: content={content!r}, finish={finish}") + content = r.choices[0].message.content + finish = r.choices[0].finish_reason + print(f" Content: {content!r}") + print(f" Finish: {finish}, ID: {r.id}, Object: {r.object}") + assert content, "No content" + assert finish == "stop" + assert r.id.startswith("chatcmpl-") + assert r.object == "chat.completion" + ok() except Exception as e: - fail(str(e)) + fail(str(e)[:120]) -# ------------------------------------------------------------------------- +# ========================================================================= # 3. Basic chat (streaming) -# ------------------------------------------------------------------------- +# ========================================================================= test("3. Basic chat (streaming)") try: stream = client.chat.completions.create( @@ -96,75 +104,67 @@ def fail(msg: str): messages=[{"role": "user", "content": "Say hi in one word."}], stream=True, ) - chunks = [] - full_content = "" - finish_reason = None - for chunk in stream: - delta = chunk.choices[0].delta - if delta.content: - full_content += delta.content - if chunk.choices[0].finish_reason: - finish_reason = chunk.choices[0].finish_reason - chunks.append(chunk) - - print(f" Chunks received: {len(chunks)}") - print(f" Full content: {full_content!r}") - print(f" Finish reason: {finish_reason}") - if full_content and finish_reason == "stop": - ok() - else: - fail(f"content={full_content!r}, finish={finish_reason}") + chunks = list(stream) + full_content = "".join(c.choices[0].delta.content or "" for c in chunks) + finish = next( + (c.choices[0].finish_reason for c in chunks if c.choices[0].finish_reason), + None, + ) + has_role = any(c.choices[0].delta.role == "assistant" for c in chunks) + print(f" Chunks: {len(chunks)}, Content: {full_content!r}, Finish: {finish}") + print(f" Has role chunk: {has_role}") + assert full_content, "No content" + assert finish == "stop" + assert has_role, "Missing role announcement chunk" + assert chunks[0].object == "chat.completion.chunk" + ok() except Exception as e: - fail(str(e)) + fail(str(e)[:120]) -# ------------------------------------------------------------------------- +# ========================================================================= # 4. Generation params -# ------------------------------------------------------------------------- +# ========================================================================= test("4. Generation params (temperature=0.1, max_tokens=15)") try: - response = client.chat.completions.create( + r = client.chat.completions.create( model=MODEL, messages=[{"role": "user", "content": "Count from 1 to 100."}], temperature=0.1, max_tokens=15, ) - content = response.choices[0].message.content - print(f" Response: {content!r}") - if content: - ok(f"Response length: {len(content)} chars") - else: - fail("No content") + content = r.choices[0].message.content + print(f" Content: {content!r}") + assert content, "No content" + ok(f"Length: {len(content)} chars") except Exception as e: - fail(str(e)) + fail(str(e)[:120]) -# ------------------------------------------------------------------------- +# ========================================================================= # 5. response_format: json_object -# ------------------------------------------------------------------------- +# ========================================================================= test("5. response_format: json_object") try: - response = client.chat.completions.create( + r = client.chat.completions.create( model=MODEL, messages=[ { "role": "user", - "content": "Return a JSON object with key 'status' and value 'ok'.", + "content": "Return a JSON object with key 'status' and value 'ok'. Only output the JSON, nothing else.", } ], response_format={"type": "json_object"}, ) - content = response.choices[0].message.content - print(f" Response: {content!r}") - if content and ("status" in content.lower()): - ok("JSON content contains 'status'") - else: - fail(f"content={content!r}") + content = r.choices[0].message.content + print(f" Content: {content!r}") + assert content and "status" in content.lower() + ok() except Exception as e: - fail(str(e)) + fail(str(e)[:120]) -# ------------------------------------------------------------------------- -# 6. Tool calling (single round) -# ------------------------------------------------------------------------- -test("6. Tool calling (single round)") +# ========================================================================= +# 6. Tool calling (single round, tool_choice=required) +# ========================================================================= +test("6. Tool calling (single round, tool_choice=required)") try: tools = [ { @@ -182,26 +182,27 @@ def fail(msg: str): }, } ] - response = client.chat.completions.create( + r = client.chat.completions.create( model=MODEL, messages=[{"role": "user", "content": "What's the weather in Berlin?"}], tools=tools, + tool_choice="required", ) - choice = response.choices[0] - print(f" Finish reason: {choice.finish_reason}") - print(f" Content: {choice.message.content!r}") + choice = r.choices[0] + print(f" Finish: {choice.finish_reason}") if choice.message.tool_calls: for tc in choice.message.tool_calls: - print(f" Tool call: {tc.function.name}({tc.function.arguments})") + print(f" Tool: {tc.function.name}({tc.function.arguments})") + assert choice.finish_reason == "tool_calls" ok(f"{len(choice.message.tool_calls)} tool call(s)") else: - fail("No tool_calls in response") + fail("No tool_calls") except Exception as e: - fail(str(e)) + fail(str(e)[:120]) -# ------------------------------------------------------------------------- +# ========================================================================= # 7. Tool calling (multi-round continuation) -# ------------------------------------------------------------------------- +# ========================================================================= test("7. Tool calling (multi-round continuation)") try: tools = [ @@ -209,7 +210,7 @@ def fail(msg: str): "type": "function", "function": { "name": "calculator", - "description": "Calculate a math expression", + "description": "Calculate a math expression and return the result", "parameters": { "type": "object", "properties": { @@ -224,57 +225,40 @@ def fail(msg: str): } ] - messages = [{"role": "user", "content": "What is 42 * 17? Use calculator."}] + messages = [ + {"role": "user", "content": "What is 42 * 17? Use the calculator tool."} + ] - # Step 1: Get tool calls - response = client.chat.completions.create( - model=MODEL, messages=messages, tools=tools + # Step 1 + r1 = client.chat.completions.create( + model=MODEL, messages=messages, tools=tools, tool_choice="required" ) - choice = response.choices[0] - print(f" Step 1 finish: {choice.finish_reason}") - - if choice.finish_reason == "tool_calls" and choice.message.tool_calls: - tc = choice.message.tool_calls[0] - print(f" Tool call: {tc.function.name}({tc.function.arguments})") - - # Get thread_id from response headers (via raw response) - # For continuation, we use the messages array pattern - # Step 2: Send tool result - messages.append(choice.message.model_dump()) - messages.append( - { - "role": "tool", - "tool_call_id": tc.id, - "content": "714", - } - ) - - response2 = client.chat.completions.create( - model=MODEL, messages=messages, tools=tools - ) - choice2 = response2.choices[0] - print(f" Step 2 finish: {choice2.finish_reason}") - print(f" Step 2 content: {choice2.message.content!r}") - - if choice2.message.content and "714" in choice2.message.content: - ok("Model used tool result correctly") - elif choice2.message.content: - ok(f"Got response: {choice2.message.content[:80]!r}") - else: - fail("No content in step 2") - elif choice.finish_reason == "stop": - print(f" Model answered directly: {choice.message.content!r}") - ok("Model answered without tools (acceptable)") + c1 = r1.choices[0] + print(f" Step 1: finish={c1.finish_reason}") + + assert c1.finish_reason == "tool_calls" and c1.message.tool_calls + tc = c1.message.tool_calls[0] + print(f" Tool: {tc.function.name}({tc.function.arguments}), id={tc.id}") + + # Step 2: send tool result + messages.append(c1.message.model_dump()) + messages.append({"role": "tool", "tool_call_id": tc.id, "content": "714"}) + + r2 = client.chat.completions.create(model=MODEL, messages=messages, tools=tools) + c2 = r2.choices[0] + print(f" Step 2: finish={c2.finish_reason}, content={c2.message.content!r}") + + assert c2.message.content, "No content in step 2" + if "714" in c2.message.content: + ok("Model used tool result correctly") else: - fail( - f"Unexpected: finish={choice.finish_reason}, tool_calls={choice.message.tool_calls}" - ) + ok(f"Got response (may not echo exact number): {c2.message.content[:80]!r}") except Exception as e: - fail(str(e)) + fail(str(e)[:200]) -# ------------------------------------------------------------------------- +# ========================================================================= # 8. Tool calling (streaming) -# ------------------------------------------------------------------------- +# ========================================================================= test("8. Tool calling (streaming)") try: tools = [ @@ -285,9 +269,7 @@ def fail(msg: str): "description": "Search the web", "parameters": { "type": "object", - "properties": { - "query": {"type": "string"}, - }, + "properties": {"query": {"type": "string"}}, "required": ["query"], }, }, @@ -297,74 +279,264 @@ def fail(msg: str): model=MODEL, messages=[{"role": "user", "content": "Search for 'Python tutorial'"}], tools=tools, + tool_choice="required", + stream=True, + ) + chunks = list(stream) + finish = next( + (c.choices[0].finish_reason for c in chunks if c.choices[0].finish_reason), + None, + ) + has_tool_calls = any(c.choices[0].delta.tool_calls for c in chunks) + print( + f" Chunks: {len(chunks)}, Finish: {finish}, Has tool_calls: {has_tool_calls}" + ) + assert finish == "tool_calls" and has_tool_calls + ok() +except Exception as e: + fail(str(e)[:120]) + +# ========================================================================= +# 9. Multiple tools defined +# ========================================================================= +test("9. Multiple tools defined") +try: + tools = [ + { + "type": "function", + "function": { + "name": "get_weather", + "description": "Get weather for a city", + "parameters": { + "type": "object", + "properties": {"city": {"type": "string"}}, + "required": ["city"], + }, + }, + }, + { + "type": "function", + "function": { + "name": "get_time", + "description": "Get current time in a timezone", + "parameters": { + "type": "object", + "properties": {"timezone": {"type": "string"}}, + "required": ["timezone"], + }, + }, + }, + ] + r = client.chat.completions.create( + model=MODEL, + messages=[{"role": "user", "content": "What's the weather in Tokyo?"}], + tools=tools, + tool_choice="required", + ) + choice = r.choices[0] + if choice.message.tool_calls: + names = [tc.function.name for tc in choice.message.tool_calls] + print(f" Tools called: {names}") + assert "get_weather" in names or "get_time" in names + ok(f"Called: {names}") + else: + fail("No tool_calls with multiple tools") +except Exception as e: + fail(str(e)[:120]) + +# ========================================================================= +# 10. Tool calling with tool_choice=auto +# ========================================================================= +test("10. Tool calling with tool_choice=auto (model decides)") +try: + tools = [ + { + "type": "function", + "function": { + "name": "calculator", + "description": "Calculate math", + "parameters": { + "type": "object", + "properties": {"expr": {"type": "string"}}, + "required": ["expr"], + }, + }, + } + ] + r = client.chat.completions.create( + model=MODEL, + messages=[{"role": "user", "content": "What is the capital of France?"}], + tools=tools, + tool_choice="auto", + ) + choice = r.choices[0] + print(f" Finish: {choice.finish_reason}") + print(f" Content: {choice.message.content!r}") + print(f" Tool calls: {choice.message.tool_calls}") + # Model should answer directly without tools since it's a knowledge question + if choice.finish_reason == "stop" and choice.message.content: + ok("Model answered directly without tools (correct)") + elif choice.finish_reason == "tool_calls": + ok("Model chose to use tool (acceptable)") + else: + fail(f"Unexpected: finish={choice.finish_reason}") +except Exception as e: + fail(str(e)[:120]) + +# ========================================================================= +# 11. Agent mode (no tools param) - server-side tools, streaming +# ========================================================================= +test("11. Agent mode (no tools, streaming) - server tools auto-execute") +try: + stream = client.chat.completions.create( + model=MODEL, + messages=[ + {"role": "user", "content": "Say 'agent mode works' in one sentence."} + ], stream=True, ) - chunks = [] - finish_reason = None - has_tool_calls = False - for chunk in stream: - if chunk.choices[0].delta.tool_calls: - has_tool_calls = True - if chunk.choices[0].finish_reason: - finish_reason = chunk.choices[0].finish_reason - chunks.append(chunk) - - print(f" Chunks: {len(chunks)}") - print(f" Finish reason: {finish_reason}") - print(f" Has tool_calls: {has_tool_calls}") - if finish_reason == "tool_calls" and has_tool_calls: - ok() - elif finish_reason == "stop": - ok("Model responded with text (acceptable)") + chunks = list(stream) + full = "".join(c.choices[0].delta.content or "" for c in chunks) + finish = next( + (c.choices[0].finish_reason for c in chunks if c.choices[0].finish_reason), + None, + ) + print(f" Content: {full!r}, Finish: {finish}") + assert full and finish == "stop" + ok() +except Exception as e: + fail(str(e)[:120]) + +# ========================================================================= +# 12. stop sequences +# ========================================================================= +test("12. stop sequences") +try: + r = client.chat.completions.create( + model=MODEL, + messages=[{"role": "user", "content": "Count: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10"}], + stop=["5"], + ) + content = r.choices[0].message.content + print(f" Content: {content!r}") + # The response should stop before or at "5" + if content: + ok(f"Got response, length: {len(content)}") else: - fail(f"finish={finish_reason}, tool_calls={has_tool_calls}") + ok("Empty response (stop triggered immediately)") except Exception as e: - fail(str(e)) + fail(str(e)[:120]) -# ------------------------------------------------------------------------- -# 9. Error cases -# ------------------------------------------------------------------------- -test("9a. Error: invalid model") +# ========================================================================= +# 13. Error: invalid model +# ========================================================================= +test("13. Error: invalid model (404)") try: client.chat.completions.create( model="nonexistent-model-xyz", messages=[{"role": "user", "content": "hi"}], ) - fail("Should have raised an error") + fail("Should have raised") except Exception as e: - error_str = str(e) - if "not found" in error_str.lower() or "404" in error_str: - ok(f"Got expected error: {error_str[:80]}") + s = str(e) + if "404" in s or "not found" in s.lower(): + ok(f"{s[:80]}") else: - fail(f"Unexpected error: {error_str[:80]}") + fail(f"Unexpected: {s[:80]}") -test("9b. Error: invalid API key") +# ========================================================================= +# 14. Error: invalid API key +# ========================================================================= +test("14. Error: invalid API key (401)") try: - bad_client = OpenAI( + bad = OpenAI( base_url=BASE_URL, - api_key="invalid_key", + api_key="bad_key", default_headers={"X-Organization-Slug": ORG_SLUG}, ) - bad_client.chat.completions.create( + bad.chat.completions.create( + model=MODEL, messages=[{"role": "user", "content": "hi"}] + ) + fail("Should have raised") +except Exception as e: + s = str(e) + if "401" in s or "api_key" in s.lower(): + ok(f"{s[:80]}") + else: + fail(f"Unexpected: {s[:80]}") + +# ========================================================================= +# 15. Error: missing messages +# ========================================================================= +test("15. Error: missing messages (400)") +try: + import httpx + + resp = httpx.post( + f"{BASE_URL}/chat/completions", + headers={ + "Authorization": f"Bearer {API_KEY}", + "X-Organization-Slug": ORG_SLUG, + "Content-Type": "application/json", + }, + json={"model": MODEL}, + ) + print(f" Status: {resp.status_code}") + assert resp.status_code == 400 + body = resp.json() + print(f" Error: {body['error']['message']}") + ok() +except ImportError: + # httpx not available, use raw request + import urllib.request + + req = urllib.request.Request( + f"{BASE_URL}/chat/completions", + data=json.dumps({"model": MODEL}).encode(), + headers={ + "Authorization": f"Bearer {API_KEY}", + "X-Organization-Slug": ORG_SLUG, + "Content-Type": "application/json", + }, + ) + try: + urllib.request.urlopen(req) + fail("Should have raised") + except urllib.error.HTTPError as e: + if e.code == 400: + ok(f"HTTP 400") + else: + fail(f"HTTP {e.code}") +except Exception as e: + fail(str(e)[:120]) + +# ========================================================================= +# 16. Error: no user message +# ========================================================================= +test("16. Error: no user message in messages (400)") +try: + client.chat.completions.create( model=MODEL, - messages=[{"role": "user", "content": "hi"}], + messages=[{"role": "system", "content": "You are helpful."}], ) - fail("Should have raised an error") + fail("Should have raised") except Exception as e: - error_str = str(e) - if ( - "401" in error_str - or "api_key" in error_str.lower() - or "unauthorized" in error_str.lower() - ): - ok(f"Got expected 401: {error_str[:80]}") + s = str(e) + if "400" in s or "No user message" in s: + ok(f"{s[:80]}") else: - fail(f"Unexpected error: {error_str[:80]}") + fail(f"Unexpected: {s[:80]}") -# ------------------------------------------------------------------------- +# ========================================================================= # Summary -# ------------------------------------------------------------------------- +# ========================================================================= +total = passed + failed print(f"\n{'=' * 60}") -print(f"RESULTS: {passed} passed, {failed} failed out of {passed + failed} tests") +if failed == 0: + print(f"\033[32m ALL PASSED: {passed}/{total} tests \033[0m") +else: + print( + f"\033[31m RESULTS: {passed} passed, {failed} failed out of {total} tests \033[0m" + ) print(f"{'=' * 60}") sys.exit(1 if failed > 0 else 0) diff --git a/tools/cli/src/index.ts b/tools/cli/src/index.ts index 59e63a440..d09f70c66 100644 --- a/tools/cli/src/index.ts +++ b/tools/cli/src/index.ts @@ -18,13 +18,13 @@ import * as logger from './utils/logger'; process.on('uncaughtException', (err) => { logger.error(`Fatal: ${err.message}`); logger.debug(err.stack ?? ''); - process.exitCode = 1; + process.exit(1); }); process.on('unhandledRejection', (reason) => { const msg = reason instanceof Error ? reason.message : String(reason); logger.error(`Fatal: ${msg}`); if (reason instanceof Error) logger.debug(reason.stack ?? ''); - process.exitCode = 1; + process.exit(1); }); program @@ -44,4 +44,4 @@ program.addCommand(createRollbackCommand()); program.addCommand(createResetCommand()); program.addCommand(createCleanupCommand()); -program.parse(); +await program.parseAsync(); From c31d7b51d3afc2a5eab6697ee65278e9a8ec5f71 Mon Sep 17 00:00:00 2001 From: larryro <371767072@qq.com> Date: Thu, 9 Apr 2026 19:47:07 +0800 Subject: [PATCH 5/9] docs(platform): add OpenAI compat API docs and OpenAPI spec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add comprehensive API documentation for OpenAI-compatible endpoints to docs/api-reference.md with Python, Node.js, curl examples - Inject /api/v1/chat/completions and /api/v1/models paths into the generated OpenAPI spec with full request/response schemas - Update convex-helpers patch version 0.1.113 → 0.1.114 - Regenerate public/openapi.json with OpenAI Compatible tag and schemas Closes #1199 --- docs/api-reference.md | 147 +- package.json | 2 +- ...113.patch => convex-helpers@0.1.114.patch} | 0 services/platform/public/openapi.json | 36135 +++++++++++----- services/platform/scripts/generate-openapi.ts | 315 + 5 files changed, 25980 insertions(+), 10619 deletions(-) rename patches/{convex-helpers@0.1.113.patch => convex-helpers@0.1.114.patch} (100%) diff --git a/docs/api-reference.md b/docs/api-reference.md index 684941455..0fe5c5a46 100644 --- a/docs/api-reference.md +++ b/docs/api-reference.md @@ -145,6 +145,149 @@ GET /api/v1/websites/{domain}/urls ## Platform API -The Platform service exposes a public API at `/api/v1/*` for programmatic access to your data. Authenticate using an `x-api-key` header with a key from Settings > API Keys. +The Platform service exposes a public API at `/api/v1/*` for programmatic access to your data. Authenticate using an API key from **Settings > API Keys**. -Full API documentation: `https://yourdomain.com/api/v1/openapi.json` +### OpenAI-compatible chat completions + +The platform provides an interface fully compatible with the [OpenAI Chat Completions API](https://platform.openai.com/docs/api-reference/chat). Any client or SDK that supports OpenAI (Python, Node, curl, LiteLLM, etc.) can connect by pointing `base_url` to your Tale instance. + +#### Quick start + + + +```python Python +from openai import OpenAI + +client = OpenAI( + base_url="https://your-tale-instance.com/api/v1", + api_key="tale_...", # from Settings > API Keys + default_headers={"X-Organization-Slug": "default"}, +) + +response = client.chat.completions.create( + model="chat-agent", # agent slug from your Agents page + messages=[{"role": "user", "content": "Hello!"}], +) +print(response.choices[0].message.content) +``` + +```typescript Node.js +import OpenAI from "openai"; + +const client = new OpenAI({ + baseURL: "https://your-tale-instance.com/api/v1", + apiKey: "tale_...", + defaultHeaders: { "X-Organization-Slug": "default" }, +}); + +const response = await client.chat.completions.create({ + model: "chat-agent", + messages: [{ role: "user", content: "Hello!" }], +}); +console.log(response.choices[0].message.content); +``` + +```bash curl +curl https://your-tale-instance.com/api/v1/chat/completions \ + -H "Authorization: Bearer tale_..." \ + -H "X-Organization-Slug: default" \ + -H "Content-Type: application/json" \ + -d '{"model":"chat-agent","messages":[{"role":"user","content":"Hello!"}]}' +``` + + + +#### Authentication + +All requests require a Bearer token in the `Authorization` header: + +```text +Authorization: Bearer tale_... +``` + +Create API keys in **Settings > API Keys** in the platform UI. + +#### Headers + +| Header | Required | Description | +| --- | --- | --- | +| `Authorization` | Yes | `Bearer ` | +| `X-Organization-Slug` | No | Organization slug. Auto-resolved if user belongs to one org. | +| `X-Thread-Id` | No | Reuse a conversation thread across requests. | + +#### Endpoints + +##### POST /api/v1/chat/completions + +Send a chat message and receive a response. Supports streaming and tool calling. + +**Request body:** + +| Field | Type | Description | +| --- | --- | --- | +| `model` | string | **Required.** Agent slug (e.g., `chat-agent`). | +| `messages` | array | **Required.** Conversation messages with `role` and `content`. | +| `stream` | boolean | Enable SSE streaming. Default: `false`. | +| `temperature` | number | Sampling temperature (0–2). | +| `max_tokens` | number | Maximum tokens to generate. | +| `top_p` | number | Nucleus sampling parameter. | +| `frequency_penalty` | number | Penalize repeated tokens. | +| `presence_penalty` | number | Penalize tokens already present. | +| `stop` | string or array | Stop sequences. | +| `response_format` | object | Set `{"type": "json_object"}` for JSON mode. | +| `tools` | array | Tool definitions for client-side tool calling. | +| `tool_choice` | string or object | `"auto"`, `"required"`, `"none"`, or `{"type":"function","function":{"name":"..."}}`. | + +**Two modes:** + +- **Agent mode** (no `tools`): The agent uses its pre-configured server-side tools (RAG, web search, etc.) and auto-executes them. The response contains the final text. +- **Client tool mode** (`tools` provided): Only the client-defined tools are available. The model returns `tool_calls` for the client to execute. Send results back with `role: "tool"` messages. + +**Tool calling example:** + +```python +# Step 1: send tools +response = client.chat.completions.create( + model="chat-agent", + messages=[{"role": "user", "content": "What's the weather?"}], + tools=[{ + "type": "function", + "function": { + "name": "get_weather", + "description": "Get weather for a city", + "parameters": { + "type": "object", + "properties": {"city": {"type": "string"}}, + "required": ["city"], + }, + }, + }], + tool_choice="required", +) + +# Step 2: execute tool and send result +tc = response.choices[0].message.tool_calls[0] +messages = [ + {"role": "user", "content": "What's the weather?"}, + response.choices[0].message.model_dump(), + {"role": "tool", "tool_call_id": tc.id, "content": '{"temp": 20}'}, +] +final = client.chat.completions.create( + model="chat-agent", messages=messages, tools=tools +) +print(final.choices[0].message.content) +``` + +##### GET /api/v1/models + +List available agents (models). + +```json +{ + "object": "list", + "data": [ + {"id": "chat-agent", "object": "model", "owned_by": "default"}, + {"id": "workflow-assistant", "object": "model", "owned_by": "default"} + ] +} +``` diff --git a/package.json b/package.json index d7d8defbd..61ac5e6b0 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "esbuild" ], "patchedDependencies": { - "convex-helpers@0.1.113": "patches/convex-helpers@0.1.113.patch" + "convex-helpers@0.1.114": "patches/convex-helpers@0.1.114.patch" }, "overrides": { "react-is": "19.2.5", diff --git a/patches/convex-helpers@0.1.113.patch b/patches/convex-helpers@0.1.114.patch similarity index 100% rename from patches/convex-helpers@0.1.113.patch rename to patches/convex-helpers@0.1.114.patch diff --git a/services/platform/public/openapi.json b/services/platform/public/openapi.json index 252c53e60..397a62a2e 100644 --- a/services/platform/public/openapi.json +++ b/services/platform/public/openapi.json @@ -17,6 +17,10 @@ } ], "tags": [ + { + "name": "OpenAI Compatible", + "description": "OpenAI Chat Completions compatible API. Use any OpenAI SDK by pointing base_url to this server." + }, { "name": "query", "description": "Read-only functions that fetch data" @@ -31,15 +35,17 @@ } ], "paths": { - "/api/run/accounts/queries/hasMicrosoftAccount": { + "/api/run/accounts/queries/hasCredentialAccount": { "post": { - "summary": "Calls a query at the path accounts/queries.js:hasMicrosoftAccount", - "tags": ["query"], + "summary": "Calls a query at the path accounts/queries.js:hasCredentialAccount", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_accounts.queries.hasMicrosoftAccount" + "$ref": "#/components/schemas/Request_accounts.queries.hasCredentialAccount" } } }, @@ -51,7 +57,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_accounts.queries.hasMicrosoftAccount" + "$ref": "#/components/schemas/Response_accounts.queries.hasCredentialAccount" } } } @@ -79,15 +85,17 @@ } } }, - "/api/run/agents/chat/mutations/chatWithAgent": { + "/api/run/accounts/queries/hasMicrosoftAccount": { "post": { - "summary": "Calls a mutation at the path agents/chat/mutations.js:chatWithAgent", - "tags": ["mutation"], + "summary": "Calls a query at the path accounts/queries.js:hasMicrosoftAccount", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_agents.chat.mutations.chatWithAgent" + "$ref": "#/components/schemas/Request_accounts.queries.hasMicrosoftAccount" } } }, @@ -99,7 +107,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_agents.chat.mutations.chatWithAgent" + "$ref": "#/components/schemas/Response_accounts.queries.hasMicrosoftAccount" } } } @@ -127,15 +135,17 @@ } } }, - "/api/run/agents/crm/mutations/chatWithCrmAgent": { + "/api/run/agents/file_actions/deleteAgent": { "post": { - "summary": "Calls a mutation at the path agents/crm/mutations.js:chatWithCrmAgent", - "tags": ["mutation"], + "summary": "Calls a action at the path agents/file_actions.js:deleteAgent", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_agents.crm.mutations.chatWithCrmAgent" + "$ref": "#/components/schemas/Request_agents.file_actions.deleteAgent" } } }, @@ -147,7 +157,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_agents.crm.mutations.chatWithCrmAgent" + "$ref": "#/components/schemas/Response_agents.file_actions.deleteAgent" } } } @@ -175,15 +185,17 @@ } } }, - "/api/run/agents/document/mutations/chatWithDocumentAgent": { + "/api/run/agents/file_actions/duplicateAgent": { "post": { - "summary": "Calls a mutation at the path agents/document/mutations.js:chatWithDocumentAgent", - "tags": ["mutation"], + "summary": "Calls a action at the path agents/file_actions.js:duplicateAgent", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_agents.document.mutations.chatWithDocumentAgent" + "$ref": "#/components/schemas/Request_agents.file_actions.duplicateAgent" } } }, @@ -195,7 +207,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_agents.document.mutations.chatWithDocumentAgent" + "$ref": "#/components/schemas/Response_agents.file_actions.duplicateAgent" } } } @@ -223,15 +235,17 @@ } } }, - "/api/run/agents/integration/mutations/chatWithIntegrationAgent": { + "/api/run/agents/file_actions/listAgents": { "post": { - "summary": "Calls a mutation at the path agents/integration/mutations.js:chatWithIntegrationAgent", - "tags": ["mutation"], + "summary": "Calls a action at the path agents/file_actions.js:listAgents", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_agents.integration.mutations.chatWithIntegrationAgent" + "$ref": "#/components/schemas/Request_agents.file_actions.listAgents" } } }, @@ -243,7 +257,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_agents.integration.mutations.chatWithIntegrationAgent" + "$ref": "#/components/schemas/Response_agents.file_actions.listAgents" } } } @@ -271,15 +285,17 @@ } } }, - "/api/run/agents/web/mutations/chatWithWebAgent": { + "/api/run/agents/file_actions/listHistory": { "post": { - "summary": "Calls a mutation at the path agents/web/mutations.js:chatWithWebAgent", - "tags": ["mutation"], + "summary": "Calls a action at the path agents/file_actions.js:listHistory", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_agents.web.mutations.chatWithWebAgent" + "$ref": "#/components/schemas/Request_agents.file_actions.listHistory" } } }, @@ -291,7 +307,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_agents.web.mutations.chatWithWebAgent" + "$ref": "#/components/schemas/Response_agents.file_actions.listHistory" } } } @@ -319,15 +335,17 @@ } } }, - "/api/run/agents/workflow/actions/chatWithWorkflowAssistant": { + "/api/run/agents/file_actions/readHistoryEntry": { "post": { - "summary": "Calls a action at the path agents/workflow/actions.js:chatWithWorkflowAssistant", - "tags": ["action"], + "summary": "Calls a action at the path agents/file_actions.js:readHistoryEntry", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_agents.workflow.actions.chatWithWorkflowAssistant" + "$ref": "#/components/schemas/Request_agents.file_actions.readHistoryEntry" } } }, @@ -339,7 +357,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_agents.workflow.actions.chatWithWorkflowAssistant" + "$ref": "#/components/schemas/Response_agents.file_actions.readHistoryEntry" } } } @@ -367,15 +385,17 @@ } } }, - "/api/run/agents/workflow/mutations/chatWithWorkflowAgent": { + "/api/run/agents/file_actions/restoreFromHistory": { "post": { - "summary": "Calls a mutation at the path agents/workflow/mutations.js:chatWithWorkflowAgent", - "tags": ["mutation"], + "summary": "Calls a action at the path agents/file_actions.js:restoreFromHistory", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_agents.workflow.mutations.chatWithWorkflowAgent" + "$ref": "#/components/schemas/Request_agents.file_actions.restoreFromHistory" } } }, @@ -387,7 +407,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_agents.workflow.mutations.chatWithWorkflowAgent" + "$ref": "#/components/schemas/Response_agents.file_actions.restoreFromHistory" } } } @@ -415,15 +435,17 @@ } } }, - "/api/run/approvals/actions/executeApprovedWorkflowCreation": { + "/api/run/agents/file_actions/saveAgent": { "post": { - "summary": "Calls a action at the path approvals/actions.js:executeApprovedWorkflowCreation", - "tags": ["action"], + "summary": "Calls a action at the path agents/file_actions.js:saveAgent", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_approvals.actions.executeApprovedWorkflowCreation" + "$ref": "#/components/schemas/Request_agents.file_actions.saveAgent" } } }, @@ -435,7 +457,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_approvals.actions.executeApprovedWorkflowCreation" + "$ref": "#/components/schemas/Response_agents.file_actions.saveAgent" } } } @@ -463,15 +485,17 @@ } } }, - "/api/run/approvals/actions/executeApprovedIntegrationOperation": { + "/api/run/agents/file_actions/snapshotToHistory": { "post": { - "summary": "Calls a action at the path approvals/actions.js:executeApprovedIntegrationOperation", - "tags": ["action"], + "summary": "Calls a action at the path agents/file_actions.js:snapshotToHistory", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_approvals.actions.executeApprovedIntegrationOperation" + "$ref": "#/components/schemas/Request_agents.file_actions.snapshotToHistory" } } }, @@ -483,7 +507,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_approvals.actions.executeApprovedIntegrationOperation" + "$ref": "#/components/schemas/Response_agents.file_actions.snapshotToHistory" } } } @@ -511,15 +535,17 @@ } } }, - "/api/run/approvals/mutations/updateApprovalStatus": { + "/api/run/agents/file_actions/translateAgentFields": { "post": { - "summary": "Calls a mutation at the path approvals/mutations.js:updateApprovalStatus", - "tags": ["mutation"], + "summary": "Calls a action at the path agents/file_actions.js:translateAgentFields", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_approvals.mutations.updateApprovalStatus" + "$ref": "#/components/schemas/Request_agents.file_actions.translateAgentFields" } } }, @@ -531,7 +557,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_approvals.mutations.updateApprovalStatus" + "$ref": "#/components/schemas/Response_agents.file_actions.translateAgentFields" } } } @@ -559,15 +585,17 @@ } } }, - "/api/run/approvals/mutations/removeRecommendedProduct": { + "/api/run/agents/file_actions/readAgent": { "post": { - "summary": "Calls a mutation at the path approvals/mutations.js:removeRecommendedProduct", - "tags": ["mutation"], + "summary": "Calls a action at the path agents/file_actions.js:readAgent", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_approvals.mutations.removeRecommendedProduct" + "$ref": "#/components/schemas/Request_agents.file_actions.readAgent" } } }, @@ -579,7 +607,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_approvals.mutations.removeRecommendedProduct" + "$ref": "#/components/schemas/Response_agents.file_actions.readAgent" } } } @@ -607,15 +635,17 @@ } } }, - "/api/run/approvals/queries/listApprovalsByOrganization": { + "/api/run/agents/mutations/updateAgentBindings": { "post": { - "summary": "Calls a query at the path approvals/queries.js:listApprovalsByOrganization", - "tags": ["query"], + "summary": "Calls a mutation at the path agents/mutations.js:updateAgentBindings", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_approvals.queries.listApprovalsByOrganization" + "$ref": "#/components/schemas/Request_agents.mutations.updateAgentBindings" } } }, @@ -627,7 +657,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_approvals.queries.listApprovalsByOrganization" + "$ref": "#/components/schemas/Response_agents.mutations.updateAgentBindings" } } } @@ -655,15 +685,17 @@ } } }, - "/api/run/approvals/queries/getPendingIntegrationApprovalsForThread": { + "/api/run/agents/mutations/addKnowledgeFile": { "post": { - "summary": "Calls a query at the path approvals/queries.js:getPendingIntegrationApprovalsForThread", - "tags": ["query"], + "summary": "Calls a mutation at the path agents/mutations.js:addKnowledgeFile", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_approvals.queries.getPendingIntegrationApprovalsForThread" + "$ref": "#/components/schemas/Request_agents.mutations.addKnowledgeFile" } } }, @@ -675,7 +707,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_approvals.queries.getPendingIntegrationApprovalsForThread" + "$ref": "#/components/schemas/Response_agents.mutations.addKnowledgeFile" } } } @@ -703,15 +735,17 @@ } } }, - "/api/run/approvals/queries/getWorkflowCreationApprovalsForThread": { + "/api/run/agents/mutations/removeKnowledgeFile": { "post": { - "summary": "Calls a query at the path approvals/queries.js:getWorkflowCreationApprovalsForThread", - "tags": ["query"], + "summary": "Calls a mutation at the path agents/mutations.js:removeKnowledgeFile", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_approvals.queries.getWorkflowCreationApprovalsForThread" + "$ref": "#/components/schemas/Request_agents.mutations.removeKnowledgeFile" } } }, @@ -723,7 +757,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_approvals.queries.getWorkflowCreationApprovalsForThread" + "$ref": "#/components/schemas/Response_agents.mutations.removeKnowledgeFile" } } } @@ -751,15 +785,17 @@ } } }, - "/api/run/approvals/queries/getHumanInputRequestsForThread": { + "/api/run/agents/queries/getBindingByAgent": { "post": { - "summary": "Calls a query at the path approvals/queries.js:getHumanInputRequestsForThread", - "tags": ["query"], + "summary": "Calls a query at the path agents/queries.js:getBindingByAgent", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_approvals.queries.getHumanInputRequestsForThread" + "$ref": "#/components/schemas/Request_agents.queries.getBindingByAgent" } } }, @@ -771,7 +807,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_approvals.queries.getHumanInputRequestsForThread" + "$ref": "#/components/schemas/Response_agents.queries.getBindingByAgent" } } } @@ -799,15 +835,17 @@ } } }, - "/api/run/audit_logs/queries/listAuditLogs": { + "/api/run/agents/queries/hasBindingsByTeam": { "post": { - "summary": "Calls a query at the path audit_logs/queries.js:listAuditLogs", - "tags": ["query"], + "summary": "Calls a query at the path agents/queries.js:hasBindingsByTeam", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_audit_logs.queries.listAuditLogs" + "$ref": "#/components/schemas/Request_agents.queries.hasBindingsByTeam" } } }, @@ -819,7 +857,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_audit_logs.queries.listAuditLogs" + "$ref": "#/components/schemas/Response_agents.queries.hasBindingsByTeam" } } } @@ -847,15 +885,17 @@ } } }, - "/api/run/audit_logs/queries/getResourceAuditTrail": { + "/api/run/agents/queries/getAvailableTools": { "post": { - "summary": "Calls a query at the path audit_logs/queries.js:getResourceAuditTrail", - "tags": ["query"], + "summary": "Calls a query at the path agents/queries.js:getAvailableTools", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_audit_logs.queries.getResourceAuditTrail" + "$ref": "#/components/schemas/Request_agents.queries.getAvailableTools" } } }, @@ -867,7 +907,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_audit_logs.queries.getResourceAuditTrail" + "$ref": "#/components/schemas/Response_agents.queries.getAvailableTools" } } } @@ -895,15 +935,17 @@ } } }, - "/api/run/audit_logs/queries/getActivitySummary": { + "/api/run/agents/queries/getAvailableIntegrations": { "post": { - "summary": "Calls a query at the path audit_logs/queries.js:getActivitySummary", - "tags": ["query"], + "summary": "Calls a query at the path agents/queries.js:getAvailableIntegrations", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_audit_logs.queries.getActivitySummary" + "$ref": "#/components/schemas/Request_agents.queries.getAvailableIntegrations" } } }, @@ -915,7 +957,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_audit_logs.queries.getActivitySummary" + "$ref": "#/components/schemas/Response_agents.queries.getAvailableIntegrations" } } } @@ -943,15 +985,17 @@ } } }, - "/api/run/conversations/mutations/addMessageToConversation": { + "/api/run/agents/unified_chat/chatWithAgent": { "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:addMessageToConversation", - "tags": ["mutation"], + "summary": "Calls a action at the path agents/unified_chat.js:chatWithAgent", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.addMessageToConversation" + "$ref": "#/components/schemas/Request_agents.unified_chat.chatWithAgent" } } }, @@ -963,7 +1007,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.addMessageToConversation" + "$ref": "#/components/schemas/Response_agents.unified_chat.chatWithAgent" } } } @@ -991,15 +1035,17 @@ } } }, - "/api/run/conversations/mutations/bulkCloseConversations": { + "/api/run/agents/webhooks/mutations/createWebhook": { "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:bulkCloseConversations", - "tags": ["mutation"], + "summary": "Calls a mutation at the path agents/webhooks/mutations.js:createWebhook", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.bulkCloseConversations" + "$ref": "#/components/schemas/Request_agents.webhooks.mutations.createWebhook" } } }, @@ -1011,7 +1057,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.bulkCloseConversations" + "$ref": "#/components/schemas/Response_agents.webhooks.mutations.createWebhook" } } } @@ -1039,15 +1085,17 @@ } } }, - "/api/run/conversations/mutations/bulkReopenConversations": { + "/api/run/agents/webhooks/mutations/toggleWebhook": { "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:bulkReopenConversations", - "tags": ["mutation"], + "summary": "Calls a mutation at the path agents/webhooks/mutations.js:toggleWebhook", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.bulkReopenConversations" + "$ref": "#/components/schemas/Request_agents.webhooks.mutations.toggleWebhook" } } }, @@ -1059,7 +1107,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.bulkReopenConversations" + "$ref": "#/components/schemas/Response_agents.webhooks.mutations.toggleWebhook" } } } @@ -1087,15 +1135,17 @@ } } }, - "/api/run/conversations/mutations/closeConversation": { + "/api/run/agents/webhooks/mutations/deleteWebhook": { "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:closeConversation", - "tags": ["mutation"], + "summary": "Calls a mutation at the path agents/webhooks/mutations.js:deleteWebhook", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.closeConversation" + "$ref": "#/components/schemas/Request_agents.webhooks.mutations.deleteWebhook" } } }, @@ -1107,7 +1157,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.closeConversation" + "$ref": "#/components/schemas/Response_agents.webhooks.mutations.deleteWebhook" } } } @@ -1135,15 +1185,17 @@ } } }, - "/api/run/conversations/mutations/markConversationAsRead": { + "/api/run/agents/webhooks/queries/getWebhooks": { "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:markConversationAsRead", - "tags": ["mutation"], + "summary": "Calls a query at the path agents/webhooks/queries.js:getWebhooks", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.markConversationAsRead" + "$ref": "#/components/schemas/Request_agents.webhooks.queries.getWebhooks" } } }, @@ -1155,7 +1207,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.markConversationAsRead" + "$ref": "#/components/schemas/Response_agents.webhooks.queries.getWebhooks" } } } @@ -1183,15 +1235,17 @@ } } }, - "/api/run/conversations/mutations/markConversationAsSpam": { + "/api/run/approvals/actions/executeApprovedDocumentWrite": { "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:markConversationAsSpam", - "tags": ["mutation"], + "summary": "Calls a action at the path approvals/actions.js:executeApprovedDocumentWrite", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.markConversationAsSpam" + "$ref": "#/components/schemas/Request_approvals.actions.executeApprovedDocumentWrite" } } }, @@ -1203,7 +1257,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.markConversationAsSpam" + "$ref": "#/components/schemas/Response_approvals.actions.executeApprovedDocumentWrite" } } } @@ -1231,15 +1285,17 @@ } } }, - "/api/run/conversations/mutations/reopenConversation": { + "/api/run/approvals/actions/executeApprovedWorkflowCreation": { "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:reopenConversation", - "tags": ["mutation"], + "summary": "Calls a action at the path approvals/actions.js:executeApprovedWorkflowCreation", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.reopenConversation" + "$ref": "#/components/schemas/Request_approvals.actions.executeApprovedWorkflowCreation" } } }, @@ -1251,7 +1307,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.reopenConversation" + "$ref": "#/components/schemas/Response_approvals.actions.executeApprovedWorkflowCreation" } } } @@ -1279,15 +1335,17 @@ } } }, - "/api/run/conversations/mutations/sendMessageViaEmail": { + "/api/run/approvals/actions/executeApprovedWorkflowRun": { "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:sendMessageViaEmail", - "tags": ["mutation"], + "summary": "Calls a action at the path approvals/actions.js:executeApprovedWorkflowRun", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.sendMessageViaEmail" + "$ref": "#/components/schemas/Request_approvals.actions.executeApprovedWorkflowRun" } } }, @@ -1299,7 +1357,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.sendMessageViaEmail" + "$ref": "#/components/schemas/Response_approvals.actions.executeApprovedWorkflowRun" } } } @@ -1327,15 +1385,17 @@ } } }, - "/api/run/conversations/mutations/updateConversation": { + "/api/run/approvals/actions/executeApprovedWorkflowUpdate": { "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:updateConversation", - "tags": ["mutation"], + "summary": "Calls a action at the path approvals/actions.js:executeApprovedWorkflowUpdate", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.updateConversation" + "$ref": "#/components/schemas/Request_approvals.actions.executeApprovedWorkflowUpdate" } } }, @@ -1347,7 +1407,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.updateConversation" + "$ref": "#/components/schemas/Response_approvals.actions.executeApprovedWorkflowUpdate" } } } @@ -1375,15 +1435,17 @@ } } }, - "/api/run/conversations/queries/getConversation": { + "/api/run/approvals/actions/executeApprovedIntegrationOperation": { "post": { - "summary": "Calls a query at the path conversations/queries.js:getConversation", - "tags": ["query"], + "summary": "Calls a action at the path approvals/actions.js:executeApprovedIntegrationOperation", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_conversations.queries.getConversation" + "$ref": "#/components/schemas/Request_approvals.actions.executeApprovedIntegrationOperation" } } }, @@ -1395,7 +1457,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_conversations.queries.getConversation" + "$ref": "#/components/schemas/Response_approvals.actions.executeApprovedIntegrationOperation" } } } @@ -1423,15 +1485,17 @@ } } }, - "/api/run/conversations/queries/getConversationWithMessages": { + "/api/run/approvals/mutations/updateApprovalStatus": { "post": { - "summary": "Calls a query at the path conversations/queries.js:getConversationWithMessages", - "tags": ["query"], + "summary": "Calls a mutation at the path approvals/mutations.js:updateApprovalStatus", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_conversations.queries.getConversationWithMessages" + "$ref": "#/components/schemas/Request_approvals.mutations.updateApprovalStatus" } } }, @@ -1443,7 +1507,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_conversations.queries.getConversationWithMessages" + "$ref": "#/components/schemas/Response_approvals.mutations.updateApprovalStatus" } } } @@ -1471,15 +1535,17 @@ } } }, - "/api/run/conversations/queries/hasConversations": { + "/api/run/approvals/mutations/removeRecommendedProduct": { "post": { - "summary": "Calls a query at the path conversations/queries.js:hasConversations", - "tags": ["query"], + "summary": "Calls a mutation at the path approvals/mutations.js:removeRecommendedProduct", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_conversations.queries.hasConversations" + "$ref": "#/components/schemas/Request_approvals.mutations.removeRecommendedProduct" } } }, @@ -1491,7 +1557,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_conversations.queries.hasConversations" + "$ref": "#/components/schemas/Response_approvals.mutations.removeRecommendedProduct" } } } @@ -1519,15 +1585,17 @@ } } }, - "/api/run/conversations/queries/listConversations": { + "/api/run/approvals/queries/getApproval": { "post": { - "summary": "Calls a query at the path conversations/queries.js:listConversations", - "tags": ["query"], + "summary": "Calls a query at the path approvals/queries.js:getApproval", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_conversations.queries.listConversations" + "$ref": "#/components/schemas/Request_approvals.queries.getApproval" } } }, @@ -1539,7 +1607,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_conversations.queries.listConversations" + "$ref": "#/components/schemas/Response_approvals.queries.getApproval" } } } @@ -1567,15 +1635,17 @@ } } }, - "/api/run/customers/mutations/bulkCreateCustomers": { + "/api/run/approvals/queries/approxCountApprovalsByStatus": { "post": { - "summary": "Calls a mutation at the path customers/mutations.js:bulkCreateCustomers", - "tags": ["mutation"], + "summary": "Calls a query at the path approvals/queries.js:approxCountApprovalsByStatus", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_customers.mutations.bulkCreateCustomers" + "$ref": "#/components/schemas/Request_approvals.queries.approxCountApprovalsByStatus" } } }, @@ -1587,7 +1657,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_customers.mutations.bulkCreateCustomers" + "$ref": "#/components/schemas/Response_approvals.queries.approxCountApprovalsByStatus" } } } @@ -1615,15 +1685,17 @@ } } }, - "/api/run/customers/mutations/deleteCustomer": { + "/api/run/approvals/queries/listApprovalsPaginated": { "post": { - "summary": "Calls a mutation at the path customers/mutations.js:deleteCustomer", - "tags": ["mutation"], + "summary": "Calls a query at the path approvals/queries.js:listApprovalsPaginated", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_customers.mutations.deleteCustomer" + "$ref": "#/components/schemas/Request_approvals.queries.listApprovalsPaginated" } } }, @@ -1635,7 +1707,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_customers.mutations.deleteCustomer" + "$ref": "#/components/schemas/Response_approvals.queries.listApprovalsPaginated" } } } @@ -1663,15 +1735,17 @@ } } }, - "/api/run/customers/mutations/updateCustomer": { + "/api/run/approvals/queries/listApprovalsByOrganization": { "post": { - "summary": "Calls a mutation at the path customers/mutations.js:updateCustomer", - "tags": ["mutation"], + "summary": "Calls a query at the path approvals/queries.js:listApprovalsByOrganization", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_customers.mutations.updateCustomer" + "$ref": "#/components/schemas/Request_approvals.queries.listApprovalsByOrganization" } } }, @@ -1683,7 +1757,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_customers.mutations.updateCustomer" + "$ref": "#/components/schemas/Response_approvals.queries.listApprovalsByOrganization" } } } @@ -1711,15 +1785,17 @@ } } }, - "/api/run/customers/queries/getCustomer": { + "/api/run/approvals/queries/listActiveApprovalsByOrganization": { "post": { - "summary": "Calls a query at the path customers/queries.js:getCustomer", - "tags": ["query"], + "summary": "Calls a query at the path approvals/queries.js:listActiveApprovalsByOrganization", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_customers.queries.getCustomer" + "$ref": "#/components/schemas/Request_approvals.queries.listActiveApprovalsByOrganization" } } }, @@ -1731,7 +1807,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_customers.queries.getCustomer" + "$ref": "#/components/schemas/Response_approvals.queries.listActiveApprovalsByOrganization" } } } @@ -1759,15 +1835,17 @@ } } }, - "/api/run/customers/queries/getCustomerByEmail": { + "/api/run/approvals/queries/getPendingIntegrationApprovalsForThread": { "post": { - "summary": "Calls a query at the path customers/queries.js:getCustomerByEmail", - "tags": ["query"], + "summary": "Calls a query at the path approvals/queries.js:getPendingIntegrationApprovalsForThread", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_customers.queries.getCustomerByEmail" + "$ref": "#/components/schemas/Request_approvals.queries.getPendingIntegrationApprovalsForThread" } } }, @@ -1779,7 +1857,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_customers.queries.getCustomerByEmail" + "$ref": "#/components/schemas/Response_approvals.queries.getPendingIntegrationApprovalsForThread" } } } @@ -1807,15 +1885,17 @@ } } }, - "/api/run/customers/queries/hasCustomers": { + "/api/run/approvals/queries/getWorkflowCreationApprovalsForThread": { "post": { - "summary": "Calls a query at the path customers/queries.js:hasCustomers", - "tags": ["query"], + "summary": "Calls a query at the path approvals/queries.js:getWorkflowCreationApprovalsForThread", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_customers.queries.hasCustomers" + "$ref": "#/components/schemas/Request_approvals.queries.getWorkflowCreationApprovalsForThread" } } }, @@ -1827,7 +1907,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_customers.queries.hasCustomers" + "$ref": "#/components/schemas/Response_approvals.queries.getWorkflowCreationApprovalsForThread" } } } @@ -1855,15 +1935,17 @@ } } }, - "/api/run/customers/queries/listCustomers": { + "/api/run/approvals/queries/getHumanInputRequestsForThread": { "post": { - "summary": "Calls a query at the path customers/queries.js:listCustomers", - "tags": ["query"], + "summary": "Calls a query at the path approvals/queries.js:getHumanInputRequestsForThread", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_customers.queries.listCustomers" + "$ref": "#/components/schemas/Request_approvals.queries.getHumanInputRequestsForThread" } } }, @@ -1875,7 +1957,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_customers.queries.listCustomers" + "$ref": "#/components/schemas/Response_approvals.queries.getHumanInputRequestsForThread" } } } @@ -1903,15 +1985,17 @@ } } }, - "/api/run/documents/actions/retryRagIndexing": { + "/api/run/audit_logs/queries/listAuditLogs": { "post": { - "summary": "Calls a action at the path documents/actions.js:retryRagIndexing", - "tags": ["action"], + "summary": "Calls a query at the path audit_logs/queries.js:listAuditLogs", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_documents.actions.retryRagIndexing" + "$ref": "#/components/schemas/Request_audit_logs.queries.listAuditLogs" } } }, @@ -1923,7 +2007,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_documents.actions.retryRagIndexing" + "$ref": "#/components/schemas/Response_audit_logs.queries.listAuditLogs" } } } @@ -1951,15 +2035,17 @@ } } }, - "/api/run/documents/mutations/updateDocument": { + "/api/run/audit_logs/queries/listAuditLogsPaginated": { "post": { - "summary": "Calls a mutation at the path documents/mutations.js:updateDocument", - "tags": ["mutation"], + "summary": "Calls a query at the path audit_logs/queries.js:listAuditLogsPaginated", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_documents.mutations.updateDocument" + "$ref": "#/components/schemas/Request_audit_logs.queries.listAuditLogsPaginated" } } }, @@ -1971,7 +2057,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_documents.mutations.updateDocument" + "$ref": "#/components/schemas/Response_audit_logs.queries.listAuditLogsPaginated" } } } @@ -1999,15 +2085,17 @@ } } }, - "/api/run/documents/mutations/deleteDocument": { + "/api/run/audit_logs/queries/getResourceAuditTrail": { "post": { - "summary": "Calls a mutation at the path documents/mutations.js:deleteDocument", - "tags": ["mutation"], + "summary": "Calls a query at the path audit_logs/queries.js:getResourceAuditTrail", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_documents.mutations.deleteDocument" + "$ref": "#/components/schemas/Request_audit_logs.queries.getResourceAuditTrail" } } }, @@ -2019,7 +2107,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_documents.mutations.deleteDocument" + "$ref": "#/components/schemas/Response_audit_logs.queries.getResourceAuditTrail" } } } @@ -2047,15 +2135,17 @@ } } }, - "/api/run/documents/mutations/createDocumentFromUpload": { + "/api/run/audit_logs/queries/getActivitySummary": { "post": { - "summary": "Calls a mutation at the path documents/mutations.js:createDocumentFromUpload", - "tags": ["mutation"], + "summary": "Calls a query at the path audit_logs/queries.js:getActivitySummary", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_documents.mutations.createDocumentFromUpload" + "$ref": "#/components/schemas/Request_audit_logs.queries.getActivitySummary" } } }, @@ -2067,7 +2157,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_documents.mutations.createDocumentFromUpload" + "$ref": "#/components/schemas/Response_audit_logs.queries.getActivitySummary" } } } @@ -2095,15 +2185,17 @@ } } }, - "/api/run/documents/queries/getDocumentById": { + "/api/run/branding/mutations/upsertBrandingBindings": { "post": { - "summary": "Calls a query at the path documents/queries.js:getDocumentById", - "tags": ["query"], + "summary": "Calls a mutation at the path branding/mutations.js:upsertBrandingBindings", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_documents.queries.getDocumentById" + "$ref": "#/components/schemas/Request_branding.mutations.upsertBrandingBindings" } } }, @@ -2115,7 +2207,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_documents.queries.getDocumentById" + "$ref": "#/components/schemas/Response_branding.mutations.upsertBrandingBindings" } } } @@ -2143,15 +2235,17 @@ } } }, - "/api/run/documents/queries/getDocumentByPath": { + "/api/run/branding/mutations/clearBrandingBindings": { "post": { - "summary": "Calls a query at the path documents/queries.js:getDocumentByPath", - "tags": ["query"], + "summary": "Calls a mutation at the path branding/mutations.js:clearBrandingBindings", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_documents.queries.getDocumentByPath" + "$ref": "#/components/schemas/Request_branding.mutations.clearBrandingBindings" } } }, @@ -2163,7 +2257,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_documents.queries.getDocumentByPath" + "$ref": "#/components/schemas/Response_branding.mutations.clearBrandingBindings" } } } @@ -2191,15 +2285,17 @@ } } }, - "/api/run/documents/queries/listDocuments": { + "/api/run/conversations/actions/improveMessage": { "post": { - "summary": "Calls a query at the path documents/queries.js:listDocuments", - "tags": ["query"], + "summary": "Calls a action at the path conversations/actions.js:improveMessage", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_documents.queries.listDocuments" + "$ref": "#/components/schemas/Request_conversations.actions.improveMessage" } } }, @@ -2211,7 +2307,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_documents.queries.listDocuments" + "$ref": "#/components/schemas/Response_conversations.actions.improveMessage" } } } @@ -2239,15 +2335,17 @@ } } }, - "/api/run/email_providers/actions/createOAuth2Provider": { + "/api/run/conversations/mutations/addMessageToConversation": { "post": { - "summary": "Calls a action at the path email_providers/actions.js:createOAuth2Provider", - "tags": ["action"], + "summary": "Calls a mutation at the path conversations/mutations.js:addMessageToConversation", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_email_providers.actions.createOAuth2Provider" + "$ref": "#/components/schemas/Request_conversations.mutations.addMessageToConversation" } } }, @@ -2259,7 +2357,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_email_providers.actions.createOAuth2Provider" + "$ref": "#/components/schemas/Response_conversations.mutations.addMessageToConversation" } } } @@ -2287,15 +2385,17 @@ } } }, - "/api/run/email_providers/actions/generateOAuth2AuthUrl": { + "/api/run/conversations/mutations/bulkArchiveConversations": { "post": { - "summary": "Calls a action at the path email_providers/actions.js:generateOAuth2AuthUrl", - "tags": ["action"], + "summary": "Calls a mutation at the path conversations/mutations.js:bulkArchiveConversations", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_email_providers.actions.generateOAuth2AuthUrl" + "$ref": "#/components/schemas/Request_conversations.mutations.bulkArchiveConversations" } } }, @@ -2307,7 +2407,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_email_providers.actions.generateOAuth2AuthUrl" + "$ref": "#/components/schemas/Response_conversations.mutations.bulkArchiveConversations" } } } @@ -2335,15 +2435,17 @@ } } }, - "/api/run/email_providers/actions/storeOAuth2Tokens": { + "/api/run/conversations/mutations/bulkCloseConversations": { "post": { - "summary": "Calls a action at the path email_providers/actions.js:storeOAuth2Tokens", - "tags": ["action"], + "summary": "Calls a mutation at the path conversations/mutations.js:bulkCloseConversations", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_email_providers.actions.storeOAuth2Tokens" + "$ref": "#/components/schemas/Request_conversations.mutations.bulkCloseConversations" } } }, @@ -2355,7 +2457,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_email_providers.actions.storeOAuth2Tokens" + "$ref": "#/components/schemas/Response_conversations.mutations.bulkCloseConversations" } } } @@ -2383,15 +2485,17 @@ } } }, - "/api/run/email_providers/actions/testConnection": { + "/api/run/conversations/mutations/bulkReopenConversations": { "post": { - "summary": "Calls a action at the path email_providers/actions.js:testConnection", - "tags": ["action"], + "summary": "Calls a mutation at the path conversations/mutations.js:bulkReopenConversations", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_email_providers.actions.testConnection" + "$ref": "#/components/schemas/Request_conversations.mutations.bulkReopenConversations" } } }, @@ -2403,7 +2507,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_email_providers.actions.testConnection" + "$ref": "#/components/schemas/Response_conversations.mutations.bulkReopenConversations" } } } @@ -2431,15 +2535,17 @@ } } }, - "/api/run/email_providers/actions/testExistingProvider": { + "/api/run/conversations/mutations/bulkSpamConversations": { "post": { - "summary": "Calls a action at the path email_providers/actions.js:testExistingProvider", - "tags": ["action"], + "summary": "Calls a mutation at the path conversations/mutations.js:bulkSpamConversations", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_email_providers.actions.testExistingProvider" + "$ref": "#/components/schemas/Request_conversations.mutations.bulkSpamConversations" } } }, @@ -2451,7 +2557,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_email_providers.actions.testExistingProvider" + "$ref": "#/components/schemas/Response_conversations.mutations.bulkSpamConversations" } } } @@ -2479,15 +2585,17 @@ } } }, - "/api/run/email_providers/actions/updateOAuth2Provider": { + "/api/run/conversations/mutations/bulkUnarchiveConversations": { "post": { - "summary": "Calls a action at the path email_providers/actions.js:updateOAuth2Provider", - "tags": ["action"], + "summary": "Calls a mutation at the path conversations/mutations.js:bulkUnarchiveConversations", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_email_providers.actions.updateOAuth2Provider" + "$ref": "#/components/schemas/Request_conversations.mutations.bulkUnarchiveConversations" } } }, @@ -2499,7 +2607,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_email_providers.actions.updateOAuth2Provider" + "$ref": "#/components/schemas/Response_conversations.mutations.bulkUnarchiveConversations" } } } @@ -2527,15 +2635,17 @@ } } }, - "/api/run/email_providers/actions/create": { + "/api/run/conversations/mutations/closeConversation": { "post": { - "summary": "Calls a action at the path email_providers/actions.js:create", - "tags": ["action"], + "summary": "Calls a mutation at the path conversations/mutations.js:closeConversation", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_email_providers.actions.create" + "$ref": "#/components/schemas/Request_conversations.mutations.closeConversation" } } }, @@ -2547,7 +2657,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_email_providers.actions.create" + "$ref": "#/components/schemas/Response_conversations.mutations.closeConversation" } } } @@ -2575,15 +2685,17 @@ } } }, - "/api/run/email_providers/mutations/deleteProvider": { + "/api/run/conversations/mutations/deleteConversation": { "post": { - "summary": "Calls a mutation at the path email_providers/mutations.js:deleteProvider", - "tags": ["mutation"], + "summary": "Calls a mutation at the path conversations/mutations.js:deleteConversation", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_email_providers.mutations.deleteProvider" + "$ref": "#/components/schemas/Request_conversations.mutations.deleteConversation" } } }, @@ -2595,7 +2707,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_email_providers.mutations.deleteProvider" + "$ref": "#/components/schemas/Response_conversations.mutations.deleteConversation" } } } @@ -2623,15 +2735,17 @@ } } }, - "/api/run/email_providers/mutations/setDefault": { + "/api/run/conversations/mutations/downloadAttachments": { "post": { - "summary": "Calls a mutation at the path email_providers/mutations.js:setDefault", - "tags": ["mutation"], + "summary": "Calls a mutation at the path conversations/mutations.js:downloadAttachments", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_email_providers.mutations.setDefault" + "$ref": "#/components/schemas/Request_conversations.mutations.downloadAttachments" } } }, @@ -2643,7 +2757,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_email_providers.mutations.setDefault" + "$ref": "#/components/schemas/Response_conversations.mutations.downloadAttachments" } } } @@ -2671,15 +2785,17 @@ } } }, - "/api/run/email_providers/mutations/updateProvider": { + "/api/run/conversations/mutations/markConversationAsRead": { "post": { - "summary": "Calls a mutation at the path email_providers/mutations.js:updateProvider", - "tags": ["mutation"], + "summary": "Calls a mutation at the path conversations/mutations.js:markConversationAsRead", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_email_providers.mutations.updateProvider" + "$ref": "#/components/schemas/Request_conversations.mutations.markConversationAsRead" } } }, @@ -2691,7 +2807,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_email_providers.mutations.updateProvider" + "$ref": "#/components/schemas/Response_conversations.mutations.markConversationAsRead" } } } @@ -2719,15 +2835,17 @@ } } }, - "/api/run/email_providers/queries/list": { + "/api/run/conversations/mutations/markConversationAsSpam": { "post": { - "summary": "Calls a query at the path email_providers/queries.js:list", - "tags": ["query"], + "summary": "Calls a mutation at the path conversations/mutations.js:markConversationAsSpam", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_email_providers.queries.list" + "$ref": "#/components/schemas/Request_conversations.mutations.markConversationAsSpam" } } }, @@ -2739,7 +2857,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_email_providers.queries.list" + "$ref": "#/components/schemas/Response_conversations.mutations.markConversationAsSpam" } } } @@ -2767,15 +2885,17 @@ } } }, - "/api/run/files/queries/getFileUrl": { + "/api/run/conversations/mutations/reopenConversation": { "post": { - "summary": "Calls a query at the path files/queries.js:getFileUrl", - "tags": ["query"], + "summary": "Calls a mutation at the path conversations/mutations.js:reopenConversation", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_files.queries.getFileUrl" + "$ref": "#/components/schemas/Request_conversations.mutations.reopenConversation" } } }, @@ -2787,7 +2907,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_files.queries.getFileUrl" + "$ref": "#/components/schemas/Response_conversations.mutations.reopenConversation" } } } @@ -2815,15 +2935,17 @@ } } }, - "/api/run/integrations/queries/get": { + "/api/run/conversations/mutations/sendMessageViaIntegration": { "post": { - "summary": "Calls a query at the path integrations/queries.js:get", - "tags": ["query"], + "summary": "Calls a mutation at the path conversations/mutations.js:sendMessageViaIntegration", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_integrations.queries.get" + "$ref": "#/components/schemas/Request_conversations.mutations.sendMessageViaIntegration" } } }, @@ -2835,7 +2957,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_integrations.queries.get" + "$ref": "#/components/schemas/Response_conversations.mutations.sendMessageViaIntegration" } } } @@ -2863,15 +2985,17 @@ } } }, - "/api/run/integrations/queries/getByName": { + "/api/run/conversations/mutations/updateConversation": { "post": { - "summary": "Calls a query at the path integrations/queries.js:getByName", - "tags": ["query"], + "summary": "Calls a mutation at the path conversations/mutations.js:updateConversation", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_integrations.queries.getByName" + "$ref": "#/components/schemas/Request_conversations.mutations.updateConversation" } } }, @@ -2883,7 +3007,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_integrations.queries.getByName" + "$ref": "#/components/schemas/Response_conversations.mutations.updateConversation" } } } @@ -2911,15 +3035,17 @@ } } }, - "/api/run/integrations/queries/list": { + "/api/run/conversations/queries/approxCountConversationsByStatus": { "post": { - "summary": "Calls a query at the path integrations/queries.js:list", - "tags": ["query"], + "summary": "Calls a query at the path conversations/queries.js:approxCountConversationsByStatus", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_integrations.queries.list" + "$ref": "#/components/schemas/Request_conversations.queries.approxCountConversationsByStatus" } } }, @@ -2931,7 +3057,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_integrations.queries.list" + "$ref": "#/components/schemas/Response_conversations.queries.approxCountConversationsByStatus" } } } @@ -2959,15 +3085,17 @@ } } }, - "/api/run/members/mutations/addMember": { + "/api/run/conversations/queries/getConversationWithMessages": { "post": { - "summary": "Calls a mutation at the path members/mutations.js:addMember", - "tags": ["mutation"], + "summary": "Calls a query at the path conversations/queries.js:getConversationWithMessages", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_members.mutations.addMember" + "$ref": "#/components/schemas/Request_conversations.queries.getConversationWithMessages" } } }, @@ -2979,7 +3107,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_members.mutations.addMember" + "$ref": "#/components/schemas/Response_conversations.queries.getConversationWithMessages" } } } @@ -3007,15 +3135,17 @@ } } }, - "/api/run/members/mutations/removeMember": { + "/api/run/conversations/queries/listConversations": { "post": { - "summary": "Calls a mutation at the path members/mutations.js:removeMember", - "tags": ["mutation"], + "summary": "Calls a query at the path conversations/queries.js:listConversations", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_members.mutations.removeMember" + "$ref": "#/components/schemas/Request_conversations.queries.listConversations" } } }, @@ -3027,7 +3157,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_members.mutations.removeMember" + "$ref": "#/components/schemas/Response_conversations.queries.listConversations" } } } @@ -3055,15 +3185,17 @@ } } }, - "/api/run/members/mutations/updateMemberRole": { + "/api/run/conversations/queries/listConversationsPaginated": { "post": { - "summary": "Calls a mutation at the path members/mutations.js:updateMemberRole", - "tags": ["mutation"], + "summary": "Calls a query at the path conversations/queries.js:listConversationsPaginated", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_members.mutations.updateMemberRole" + "$ref": "#/components/schemas/Request_conversations.queries.listConversationsPaginated" } } }, @@ -3075,7 +3207,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_members.mutations.updateMemberRole" + "$ref": "#/components/schemas/Response_conversations.queries.listConversationsPaginated" } } } @@ -3103,15 +3235,17 @@ } } }, - "/api/run/members/mutations/updateMemberDisplayName": { + "/api/run/customers/mutations/bulkCreateCustomers": { "post": { - "summary": "Calls a mutation at the path members/mutations.js:updateMemberDisplayName", - "tags": ["mutation"], + "summary": "Calls a mutation at the path customers/mutations.js:bulkCreateCustomers", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_members.mutations.updateMemberDisplayName" + "$ref": "#/components/schemas/Request_customers.mutations.bulkCreateCustomers" } } }, @@ -3123,7 +3257,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_members.mutations.updateMemberDisplayName" + "$ref": "#/components/schemas/Response_customers.mutations.bulkCreateCustomers" } } } @@ -3151,15 +3285,17 @@ } } }, - "/api/run/members/queries/getCurrentMemberContext": { + "/api/run/customers/mutations/deleteCustomer": { "post": { - "summary": "Calls a query at the path members/queries.js:getCurrentMemberContext", - "tags": ["query"], + "summary": "Calls a mutation at the path customers/mutations.js:deleteCustomer", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_members.queries.getCurrentMemberContext" + "$ref": "#/components/schemas/Request_customers.mutations.deleteCustomer" } } }, @@ -3171,7 +3307,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_members.queries.getCurrentMemberContext" + "$ref": "#/components/schemas/Response_customers.mutations.deleteCustomer" } } } @@ -3199,15 +3335,17 @@ } } }, - "/api/run/members/queries/listByOrganization": { + "/api/run/customers/mutations/updateCustomer": { "post": { - "summary": "Calls a query at the path members/queries.js:listByOrganization", - "tags": ["query"], + "summary": "Calls a mutation at the path customers/mutations.js:updateCustomer", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_members.queries.listByOrganization" + "$ref": "#/components/schemas/Request_customers.mutations.updateCustomer" } } }, @@ -3219,7 +3357,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_members.queries.listByOrganization" + "$ref": "#/components/schemas/Response_customers.mutations.updateCustomer" } } } @@ -3247,15 +3385,17 @@ } } }, - "/api/run/members/queries/getUserIdByEmail": { + "/api/run/customers/queries/approxCountCustomers": { "post": { - "summary": "Calls a query at the path members/queries.js:getUserIdByEmail", - "tags": ["query"], + "summary": "Calls a query at the path customers/queries.js:approxCountCustomers", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_members.queries.getUserIdByEmail" + "$ref": "#/components/schemas/Request_customers.queries.approxCountCustomers" } } }, @@ -3267,7 +3407,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_members.queries.getUserIdByEmail" + "$ref": "#/components/schemas/Response_customers.queries.approxCountCustomers" } } } @@ -3295,15 +3435,17 @@ } } }, - "/api/run/members/queries/getUserOrganizationsList": { + "/api/run/customers/queries/listCustomers": { "post": { - "summary": "Calls a query at the path members/queries.js:getUserOrganizationsList", - "tags": ["query"], + "summary": "Calls a query at the path customers/queries.js:listCustomers", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_members.queries.getUserOrganizationsList" + "$ref": "#/components/schemas/Request_customers.queries.listCustomers" } } }, @@ -3315,7 +3457,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_members.queries.getUserOrganizationsList" + "$ref": "#/components/schemas/Response_customers.queries.listCustomers" } } } @@ -3343,15 +3485,17 @@ } } }, - "/api/run/members/queries/getMyTeams": { + "/api/run/customers/queries/listCustomersPaginated": { "post": { - "summary": "Calls a query at the path members/queries.js:getMyTeams", - "tags": ["query"], + "summary": "Calls a query at the path customers/queries.js:listCustomersPaginated", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_members.queries.getMyTeams" + "$ref": "#/components/schemas/Request_customers.queries.listCustomersPaginated" } } }, @@ -3363,7 +3507,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_members.queries.getMyTeams" + "$ref": "#/components/schemas/Response_customers.queries.listCustomersPaginated" } } } @@ -3391,15 +3535,17 @@ } } }, - "/api/run/message_metadata/queries/getMessageMetadata": { + "/api/run/documents/actions/retryRagIndexing": { "post": { - "summary": "Calls a query at the path message_metadata/queries.js:getMessageMetadata", - "tags": ["query"], + "summary": "Calls a action at the path documents/actions.js:retryRagIndexing", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_message_metadata.queries.getMessageMetadata" + "$ref": "#/components/schemas/Request_documents.actions.retryRagIndexing" } } }, @@ -3411,7 +3557,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_message_metadata.queries.getMessageMetadata" + "$ref": "#/components/schemas/Response_documents.actions.retryRagIndexing" } } } @@ -3439,15 +3585,17 @@ } } }, - "/api/run/onedrive/actions/importFiles": { + "/api/run/documents/mutations/updateDocument": { "post": { - "summary": "Calls a action at the path onedrive/actions.js:importFiles", - "tags": ["action"], + "summary": "Calls a mutation at the path documents/mutations.js:updateDocument", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_onedrive.actions.importFiles" + "$ref": "#/components/schemas/Request_documents.mutations.updateDocument" } } }, @@ -3459,7 +3607,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_onedrive.actions.importFiles" + "$ref": "#/components/schemas/Response_documents.mutations.updateDocument" } } } @@ -3487,15 +3635,17 @@ } } }, - "/api/run/onedrive/actions/listSharePointDrives": { + "/api/run/documents/mutations/deleteDocument": { "post": { - "summary": "Calls a action at the path onedrive/actions.js:listSharePointDrives", - "tags": ["action"], + "summary": "Calls a mutation at the path documents/mutations.js:deleteDocument", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_onedrive.actions.listSharePointDrives" + "$ref": "#/components/schemas/Request_documents.mutations.deleteDocument" } } }, @@ -3507,7 +3657,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_onedrive.actions.listSharePointDrives" + "$ref": "#/components/schemas/Response_documents.mutations.deleteDocument" } } } @@ -3535,15 +3685,17 @@ } } }, - "/api/run/onedrive/actions/listSharePointFiles": { + "/api/run/documents/mutations/createDocumentFromUpload": { "post": { - "summary": "Calls a action at the path onedrive/actions.js:listSharePointFiles", - "tags": ["action"], + "summary": "Calls a mutation at the path documents/mutations.js:createDocumentFromUpload", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_onedrive.actions.listSharePointFiles" + "$ref": "#/components/schemas/Request_documents.mutations.createDocumentFromUpload" } } }, @@ -3555,7 +3707,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_onedrive.actions.listSharePointFiles" + "$ref": "#/components/schemas/Response_documents.mutations.createDocumentFromUpload" } } } @@ -3583,15 +3735,17 @@ } } }, - "/api/run/onedrive/actions/listSharePointSites": { + "/api/run/documents/queries/approxCountDocuments": { "post": { - "summary": "Calls a action at the path onedrive/actions.js:listSharePointSites", - "tags": ["action"], + "summary": "Calls a query at the path documents/queries.js:approxCountDocuments", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_onedrive.actions.listSharePointSites" + "$ref": "#/components/schemas/Request_documents.queries.approxCountDocuments" } } }, @@ -3603,7 +3757,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_onedrive.actions.listSharePointSites" + "$ref": "#/components/schemas/Response_documents.queries.approxCountDocuments" } } } @@ -3631,15 +3785,17 @@ } } }, - "/api/run/onedrive/actions/listFiles": { + "/api/run/documents/queries/listDocuments": { "post": { - "summary": "Calls a action at the path onedrive/actions.js:listFiles", - "tags": ["action"], + "summary": "Calls a query at the path documents/queries.js:listDocuments", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_onedrive.actions.listFiles" + "$ref": "#/components/schemas/Request_documents.queries.listDocuments" } } }, @@ -3651,7 +3807,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_onedrive.actions.listFiles" + "$ref": "#/components/schemas/Response_documents.queries.listDocuments" } } } @@ -3679,15 +3835,17 @@ } } }, - "/api/run/organizations/actions/initializeDefaultWorkflows": { + "/api/run/documents/queries/listDocumentsPaginated": { "post": { - "summary": "Calls a action at the path organizations/actions.js:initializeDefaultWorkflows", - "tags": ["action"], + "summary": "Calls a query at the path documents/queries.js:listDocumentsPaginated", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_organizations.actions.initializeDefaultWorkflows" + "$ref": "#/components/schemas/Request_documents.queries.listDocumentsPaginated" } } }, @@ -3699,7 +3857,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_organizations.actions.initializeDefaultWorkflows" + "$ref": "#/components/schemas/Response_documents.queries.listDocumentsPaginated" } } } @@ -3727,15 +3885,17 @@ } } }, - "/api/run/organizations/queries/getOrganization": { + "/api/run/file_metadata/mutations/saveFileMetadata": { "post": { - "summary": "Calls a query at the path organizations/queries.js:getOrganization", - "tags": ["query"], + "summary": "Calls a mutation at the path file_metadata/mutations.js:saveFileMetadata", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_organizations.queries.getOrganization" + "$ref": "#/components/schemas/Request_file_metadata.mutations.saveFileMetadata" } } }, @@ -3747,7 +3907,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_organizations.queries.getOrganization" + "$ref": "#/components/schemas/Response_file_metadata.mutations.saveFileMetadata" } } } @@ -3775,15 +3935,17 @@ } } }, - "/api/run/products/mutations/createProduct": { + "/api/run/files/mutations/generateUploadUrl": { "post": { - "summary": "Calls a mutation at the path products/mutations.js:createProduct", - "tags": ["mutation"], + "summary": "Calls a mutation at the path files/mutations.js:generateUploadUrl", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_products.mutations.createProduct" + "$ref": "#/components/schemas/Request_files.mutations.generateUploadUrl" } } }, @@ -3795,7 +3957,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_products.mutations.createProduct" + "$ref": "#/components/schemas/Response_files.mutations.generateUploadUrl" } } } @@ -3823,15 +3985,17 @@ } } }, - "/api/run/products/mutations/deleteProduct": { + "/api/run/files/queries/getFileUrl": { "post": { - "summary": "Calls a mutation at the path products/mutations.js:deleteProduct", - "tags": ["mutation"], + "summary": "Calls a query at the path files/queries.js:getFileUrl", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_products.mutations.deleteProduct" + "$ref": "#/components/schemas/Request_files.queries.getFileUrl" } } }, @@ -3843,7 +4007,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_products.mutations.deleteProduct" + "$ref": "#/components/schemas/Response_files.queries.getFileUrl" } } } @@ -3871,15 +4035,17 @@ } } }, - "/api/run/products/mutations/updateProduct": { + "/api/run/files/queries/getFileUrls": { "post": { - "summary": "Calls a mutation at the path products/mutations.js:updateProduct", - "tags": ["mutation"], + "summary": "Calls a query at the path files/queries.js:getFileUrls", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_products.mutations.updateProduct" + "$ref": "#/components/schemas/Request_files.queries.getFileUrls" } } }, @@ -3891,7 +4057,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_products.mutations.updateProduct" + "$ref": "#/components/schemas/Response_files.queries.getFileUrls" } } } @@ -3919,15 +4085,17 @@ } } }, - "/api/run/products/mutations/upsertProductTranslation": { + "/api/run/folders/mutations/createFolder": { "post": { - "summary": "Calls a mutation at the path products/mutations.js:upsertProductTranslation", - "tags": ["mutation"], + "summary": "Calls a mutation at the path folders/mutations.js:createFolder", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_products.mutations.upsertProductTranslation" + "$ref": "#/components/schemas/Request_folders.mutations.createFolder" } } }, @@ -3939,7 +4107,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_products.mutations.upsertProductTranslation" + "$ref": "#/components/schemas/Response_folders.mutations.createFolder" } } } @@ -3967,15 +4135,17 @@ } } }, - "/api/run/products/queries/getProduct": { + "/api/run/folders/mutations/deleteFolder": { "post": { - "summary": "Calls a query at the path products/queries.js:getProduct", - "tags": ["query"], + "summary": "Calls a mutation at the path folders/mutations.js:deleteFolder", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_products.queries.getProduct" + "$ref": "#/components/schemas/Request_folders.mutations.deleteFolder" } } }, @@ -3987,7 +4157,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_products.queries.getProduct" + "$ref": "#/components/schemas/Response_folders.mutations.deleteFolder" } } } @@ -4015,15 +4185,17 @@ } } }, - "/api/run/products/queries/hasProducts": { + "/api/run/folders/mutations/renameFolder": { "post": { - "summary": "Calls a query at the path products/queries.js:hasProducts", - "tags": ["query"], + "summary": "Calls a mutation at the path folders/mutations.js:renameFolder", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_products.queries.hasProducts" + "$ref": "#/components/schemas/Request_folders.mutations.renameFolder" } } }, @@ -4035,7 +4207,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_products.queries.hasProducts" + "$ref": "#/components/schemas/Response_folders.mutations.renameFolder" } } } @@ -4063,15 +4235,17 @@ } } }, - "/api/run/products/queries/listProducts": { + "/api/run/folders/mutations/updateFolderTeams": { "post": { - "summary": "Calls a query at the path products/queries.js:listProducts", - "tags": ["query"], + "summary": "Calls a mutation at the path folders/mutations.js:updateFolderTeams", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_products.queries.listProducts" + "$ref": "#/components/schemas/Request_folders.mutations.updateFolderTeams" } } }, @@ -4083,7 +4257,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_products.queries.listProducts" + "$ref": "#/components/schemas/Response_folders.mutations.updateFolderTeams" } } } @@ -4111,15 +4285,17 @@ } } }, - "/api/run/sso_providers/queries/get": { + "/api/run/folders/queries/getFolder": { "post": { - "summary": "Calls a query at the path sso_providers/queries.js:get", - "tags": ["query"], + "summary": "Calls a query at the path folders/queries.js:getFolder", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_sso_providers.queries.get" + "$ref": "#/components/schemas/Request_folders.queries.getFolder" } } }, @@ -4131,7 +4307,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_sso_providers.queries.get" + "$ref": "#/components/schemas/Response_folders.queries.getFolder" } } } @@ -4159,15 +4335,17 @@ } } }, - "/api/run/sso_providers/queries/isSsoConfigured": { + "/api/run/folders/queries/getFolderBreadcrumb": { "post": { - "summary": "Calls a query at the path sso_providers/queries.js:isSsoConfigured", - "tags": ["query"], + "summary": "Calls a query at the path folders/queries.js:getFolderBreadcrumb", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_sso_providers.queries.isSsoConfigured" + "$ref": "#/components/schemas/Request_folders.queries.getFolderBreadcrumb" } } }, @@ -4179,7 +4357,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_sso_providers.queries.isSsoConfigured" + "$ref": "#/components/schemas/Response_folders.queries.getFolderBreadcrumb" } } } @@ -4207,15 +4385,17 @@ } } }, - "/api/run/sso_providers/queries/getMicrosoftToken": { + "/api/run/folders/queries/listFolders": { "post": { - "summary": "Calls a query at the path sso_providers/queries.js:getMicrosoftToken", - "tags": ["query"], + "summary": "Calls a query at the path folders/queries.js:listFolders", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_sso_providers.queries.getMicrosoftToken" + "$ref": "#/components/schemas/Request_folders.queries.listFolders" } } }, @@ -4227,7 +4407,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_sso_providers.queries.getMicrosoftToken" + "$ref": "#/components/schemas/Response_folders.queries.listFolders" } } } @@ -4255,15 +4435,17 @@ } } }, - "/api/run/threads/mutations/createChatThread": { + "/api/run/integrations/actions/generateOAuth2Url": { "post": { - "summary": "Calls a mutation at the path threads/mutations.js:createChatThread", - "tags": ["mutation"], + "summary": "Calls a action at the path integrations/actions.js:generateOAuth2Url", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_threads.mutations.createChatThread" + "$ref": "#/components/schemas/Request_integrations.actions.generateOAuth2Url" } } }, @@ -4275,7 +4457,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_threads.mutations.createChatThread" + "$ref": "#/components/schemas/Response_integrations.actions.generateOAuth2Url" } } } @@ -4303,15 +4485,17 @@ } } }, - "/api/run/threads/mutations/deleteChatThread": { + "/api/run/integrations/actions/saveOAuth2ClientCredentials": { "post": { - "summary": "Calls a mutation at the path threads/mutations.js:deleteChatThread", - "tags": ["mutation"], + "summary": "Calls a action at the path integrations/actions.js:saveOAuth2ClientCredentials", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_threads.mutations.deleteChatThread" + "$ref": "#/components/schemas/Request_integrations.actions.saveOAuth2ClientCredentials" } } }, @@ -4323,7 +4507,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_threads.mutations.deleteChatThread" + "$ref": "#/components/schemas/Response_integrations.actions.saveOAuth2ClientCredentials" } } } @@ -4351,15 +4535,17 @@ } } }, - "/api/run/threads/mutations/updateChatThread": { + "/api/run/integrations/actions/testConnection": { "post": { - "summary": "Calls a mutation at the path threads/mutations.js:updateChatThread", - "tags": ["mutation"], + "summary": "Calls a action at the path integrations/actions.js:testConnection", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_threads.mutations.updateChatThread" + "$ref": "#/components/schemas/Request_integrations.actions.testConnection" } } }, @@ -4371,7 +4557,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_threads.mutations.updateChatThread" + "$ref": "#/components/schemas/Response_integrations.actions.testConnection" } } } @@ -4399,15 +4585,17 @@ } } }, - "/api/run/threads/queries/listThreads": { + "/api/run/integrations/actions/saveCredentials": { "post": { - "summary": "Calls a query at the path threads/queries.js:listThreads", - "tags": ["query"], + "summary": "Calls a action at the path integrations/actions.js:saveCredentials", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_threads.queries.listThreads" + "$ref": "#/components/schemas/Request_integrations.actions.saveCredentials" } } }, @@ -4419,7 +4607,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_threads.queries.listThreads" + "$ref": "#/components/schemas/Response_integrations.actions.saveCredentials" } } } @@ -4447,15 +4635,17 @@ } } }, - "/api/run/threads/queries/getThreadMessagesStreaming": { + "/api/run/integrations/mutations/updateIcon": { "post": { - "summary": "Calls a query at the path threads/queries.js:getThreadMessagesStreaming", - "tags": ["query"], + "summary": "Calls a mutation at the path integrations/mutations.js:updateIcon", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_threads.queries.getThreadMessagesStreaming" + "$ref": "#/components/schemas/Request_integrations.mutations.updateIcon" } } }, @@ -4467,7 +4657,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_threads.queries.getThreadMessagesStreaming" + "$ref": "#/components/schemas/Response_integrations.mutations.updateIcon" } } } @@ -4495,15 +4685,17 @@ } } }, - "/api/run/users/mutations/updateUserPassword": { + "/api/run/integrations/mutations/deleteIntegration": { "post": { - "summary": "Calls a mutation at the path users/mutations.js:updateUserPassword", - "tags": ["mutation"], + "summary": "Calls a mutation at the path integrations/mutations.js:deleteIntegration", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_users.mutations.updateUserPassword" + "$ref": "#/components/schemas/Request_integrations.mutations.deleteIntegration" } } }, @@ -4515,7 +4707,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_users.mutations.updateUserPassword" + "$ref": "#/components/schemas/Response_integrations.mutations.deleteIntegration" } } } @@ -4543,15 +4735,17 @@ } } }, - "/api/run/users/mutations/createMember": { + "/api/run/integrations/queries/get": { "post": { - "summary": "Calls a mutation at the path users/mutations.js:createMember", - "tags": ["mutation"], + "summary": "Calls a query at the path integrations/queries.js:get", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_users.mutations.createMember" + "$ref": "#/components/schemas/Request_integrations.queries.get" } } }, @@ -4563,7 +4757,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_users.mutations.createMember" + "$ref": "#/components/schemas/Response_integrations.queries.get" } } } @@ -4591,15 +4785,17 @@ } } }, - "/api/run/users/queries/hasAnyUsers": { + "/api/run/integrations/queries/getByName": { "post": { - "summary": "Calls a query at the path users/queries.js:hasAnyUsers", - "tags": ["query"], + "summary": "Calls a query at the path integrations/queries.js:getByName", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_users.queries.hasAnyUsers" + "$ref": "#/components/schemas/Request_integrations.queries.getByName" } } }, @@ -4611,7 +4807,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_users.queries.hasAnyUsers" + "$ref": "#/components/schemas/Response_integrations.queries.getByName" } } } @@ -4639,15 +4835,17 @@ } } }, - "/api/run/users/queries/getCurrentUser": { + "/api/run/integrations/queries/list": { "post": { - "summary": "Calls a query at the path users/queries.js:getCurrentUser", - "tags": ["query"], + "summary": "Calls a query at the path integrations/queries.js:list", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_users.queries.getCurrentUser" + "$ref": "#/components/schemas/Request_integrations.queries.list" } } }, @@ -4659,7 +4857,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_users.queries.getCurrentUser" + "$ref": "#/components/schemas/Response_integrations.queries.list" } } } @@ -4687,15 +4885,17 @@ } } }, - "/api/run/vendors/mutations/bulkCreateVendors": { + "/api/run/integrations/queries/listRelatedAutomations": { "post": { - "summary": "Calls a mutation at the path vendors/mutations.js:bulkCreateVendors", - "tags": ["mutation"], + "summary": "Calls a query at the path integrations/queries.js:listRelatedAutomations", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_vendors.mutations.bulkCreateVendors" + "$ref": "#/components/schemas/Request_integrations.queries.listRelatedAutomations" } } }, @@ -4707,7 +4907,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_vendors.mutations.bulkCreateVendors" + "$ref": "#/components/schemas/Response_integrations.queries.listRelatedAutomations" } } } @@ -4735,15 +4935,17 @@ } } }, - "/api/run/vendors/mutations/deleteVendor": { + "/api/run/members/mutations/addMember": { "post": { - "summary": "Calls a mutation at the path vendors/mutations.js:deleteVendor", - "tags": ["mutation"], + "summary": "Calls a mutation at the path members/mutations.js:addMember", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_vendors.mutations.deleteVendor" + "$ref": "#/components/schemas/Request_members.mutations.addMember" } } }, @@ -4755,7 +4957,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_vendors.mutations.deleteVendor" + "$ref": "#/components/schemas/Response_members.mutations.addMember" } } } @@ -4783,15 +4985,17 @@ } } }, - "/api/run/vendors/mutations/updateVendor": { + "/api/run/members/mutations/removeMember": { "post": { - "summary": "Calls a mutation at the path vendors/mutations.js:updateVendor", - "tags": ["mutation"], + "summary": "Calls a mutation at the path members/mutations.js:removeMember", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_vendors.mutations.updateVendor" + "$ref": "#/components/schemas/Request_members.mutations.removeMember" } } }, @@ -4803,7 +5007,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_vendors.mutations.updateVendor" + "$ref": "#/components/schemas/Response_members.mutations.removeMember" } } } @@ -4831,15 +5035,17 @@ } } }, - "/api/run/vendors/queries/getVendor": { + "/api/run/members/mutations/updateMemberRole": { "post": { - "summary": "Calls a query at the path vendors/queries.js:getVendor", - "tags": ["query"], + "summary": "Calls a mutation at the path members/mutations.js:updateMemberRole", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_vendors.queries.getVendor" + "$ref": "#/components/schemas/Request_members.mutations.updateMemberRole" } } }, @@ -4851,7 +5057,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_vendors.queries.getVendor" + "$ref": "#/components/schemas/Response_members.mutations.updateMemberRole" } } } @@ -4879,15 +5085,17 @@ } } }, - "/api/run/vendors/queries/hasVendors": { + "/api/run/members/mutations/transferOwnership": { "post": { - "summary": "Calls a query at the path vendors/queries.js:hasVendors", - "tags": ["query"], + "summary": "Calls a mutation at the path members/mutations.js:transferOwnership", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_vendors.queries.hasVendors" + "$ref": "#/components/schemas/Request_members.mutations.transferOwnership" } } }, @@ -4899,7 +5107,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_vendors.queries.hasVendors" + "$ref": "#/components/schemas/Response_members.mutations.transferOwnership" } } } @@ -4927,15 +5135,17 @@ } } }, - "/api/run/vendors/queries/listVendors": { + "/api/run/members/mutations/updateMemberDisplayName": { "post": { - "summary": "Calls a query at the path vendors/queries.js:listVendors", - "tags": ["query"], + "summary": "Calls a mutation at the path members/mutations.js:updateMemberDisplayName", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_vendors.queries.listVendors" + "$ref": "#/components/schemas/Request_members.mutations.updateMemberDisplayName" } } }, @@ -4947,7 +5157,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_vendors.queries.listVendors" + "$ref": "#/components/schemas/Response_members.mutations.updateMemberDisplayName" } } } @@ -4975,15 +5185,17 @@ } } }, - "/api/run/websites/mutations/createWebsite": { + "/api/run/members/queries/getCurrentMemberContext": { "post": { - "summary": "Calls a mutation at the path websites/mutations.js:createWebsite", - "tags": ["mutation"], + "summary": "Calls a query at the path members/queries.js:getCurrentMemberContext", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_websites.mutations.createWebsite" + "$ref": "#/components/schemas/Request_members.queries.getCurrentMemberContext" } } }, @@ -4995,7 +5207,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_websites.mutations.createWebsite" + "$ref": "#/components/schemas/Response_members.queries.getCurrentMemberContext" } } } @@ -5023,15 +5235,17 @@ } } }, - "/api/run/websites/mutations/updateWebsite": { + "/api/run/members/queries/listByOrganization": { "post": { - "summary": "Calls a mutation at the path websites/mutations.js:updateWebsite", - "tags": ["mutation"], + "summary": "Calls a query at the path members/queries.js:listByOrganization", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_websites.mutations.updateWebsite" + "$ref": "#/components/schemas/Request_members.queries.listByOrganization" } } }, @@ -5043,7 +5257,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_websites.mutations.updateWebsite" + "$ref": "#/components/schemas/Response_members.queries.listByOrganization" } } } @@ -5071,15 +5285,17 @@ } } }, - "/api/run/websites/mutations/deleteWebsite": { + "/api/run/members/queries/getUserIdByEmail": { "post": { - "summary": "Calls a mutation at the path websites/mutations.js:deleteWebsite", - "tags": ["mutation"], + "summary": "Calls a query at the path members/queries.js:getUserIdByEmail", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_websites.mutations.deleteWebsite" + "$ref": "#/components/schemas/Request_members.queries.getUserIdByEmail" } } }, @@ -5091,7 +5307,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_websites.mutations.deleteWebsite" + "$ref": "#/components/schemas/Response_members.queries.getUserIdByEmail" } } } @@ -5119,15 +5335,17 @@ } } }, - "/api/run/websites/mutations/rescanWebsite": { + "/api/run/members/queries/getUserOrganizationsList": { "post": { - "summary": "Calls a mutation at the path websites/mutations.js:rescanWebsite", - "tags": ["mutation"], + "summary": "Calls a query at the path members/queries.js:getUserOrganizationsList", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_websites.mutations.rescanWebsite" + "$ref": "#/components/schemas/Request_members.queries.getUserOrganizationsList" } } }, @@ -5139,7 +5357,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_websites.mutations.rescanWebsite" + "$ref": "#/components/schemas/Response_members.queries.getUserOrganizationsList" } } } @@ -5167,15 +5385,17 @@ } } }, - "/api/run/websites/queries/hasWebsites": { + "/api/run/members/queries/approxCountMyTeams": { "post": { - "summary": "Calls a query at the path websites/queries.js:hasWebsites", - "tags": ["query"], + "summary": "Calls a query at the path members/queries.js:approxCountMyTeams", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_websites.queries.hasWebsites" + "$ref": "#/components/schemas/Request_members.queries.approxCountMyTeams" } } }, @@ -5187,7 +5407,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_websites.queries.hasWebsites" + "$ref": "#/components/schemas/Response_members.queries.approxCountMyTeams" } } } @@ -5215,15 +5435,17 @@ } } }, - "/api/run/websites/queries/listWebsites": { + "/api/run/members/queries/getMyTeams": { "post": { - "summary": "Calls a query at the path websites/queries.js:listWebsites", - "tags": ["query"], + "summary": "Calls a query at the path members/queries.js:getMyTeams", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_websites.queries.listWebsites" + "$ref": "#/components/schemas/Request_members.queries.getMyTeams" } } }, @@ -5235,7 +5457,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_websites.queries.listWebsites" + "$ref": "#/components/schemas/Response_members.queries.getMyTeams" } } } @@ -5263,15 +5485,17 @@ } } }, - "/api/run/wf_definitions/mutations/createDraftFromActive": { + "/api/run/members/queries/listOrgTeams": { "post": { - "summary": "Calls a mutation at the path wf_definitions/mutations.js:createDraftFromActive", - "tags": ["mutation"], + "summary": "Calls a query at the path members/queries.js:listOrgTeams", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_definitions.mutations.createDraftFromActive" + "$ref": "#/components/schemas/Request_members.queries.listOrgTeams" } } }, @@ -5283,7 +5507,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_definitions.mutations.createDraftFromActive" + "$ref": "#/components/schemas/Response_members.queries.listOrgTeams" } } } @@ -5311,15 +5535,17 @@ } } }, - "/api/run/wf_definitions/mutations/createWorkflowWithSteps": { + "/api/run/message_metadata/queries/getMessageMetadata": { "post": { - "summary": "Calls a mutation at the path wf_definitions/mutations.js:createWorkflowWithSteps", - "tags": ["mutation"], + "summary": "Calls a query at the path message_metadata/queries.js:getMessageMetadata", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_definitions.mutations.createWorkflowWithSteps" + "$ref": "#/components/schemas/Request_message_metadata.queries.getMessageMetadata" } } }, @@ -5331,7 +5557,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_definitions.mutations.createWorkflowWithSteps" + "$ref": "#/components/schemas/Response_message_metadata.queries.getMessageMetadata" } } } @@ -5359,15 +5585,17 @@ } } }, - "/api/run/wf_definitions/mutations/deleteWorkflow": { + "/api/run/onedrive/actions/importFiles": { "post": { - "summary": "Calls a mutation at the path wf_definitions/mutations.js:deleteWorkflow", - "tags": ["mutation"], + "summary": "Calls a action at the path onedrive/actions.js:importFiles", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_definitions.mutations.deleteWorkflow" + "$ref": "#/components/schemas/Request_onedrive.actions.importFiles" } } }, @@ -5379,7 +5607,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_definitions.mutations.deleteWorkflow" + "$ref": "#/components/schemas/Response_onedrive.actions.importFiles" } } } @@ -5407,15 +5635,17 @@ } } }, - "/api/run/wf_definitions/mutations/duplicateWorkflow": { + "/api/run/onedrive/actions/listSharePointDrives": { "post": { - "summary": "Calls a mutation at the path wf_definitions/mutations.js:duplicateWorkflow", - "tags": ["mutation"], + "summary": "Calls a action at the path onedrive/actions.js:listSharePointDrives", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_definitions.mutations.duplicateWorkflow" + "$ref": "#/components/schemas/Request_onedrive.actions.listSharePointDrives" } } }, @@ -5427,7 +5657,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_definitions.mutations.duplicateWorkflow" + "$ref": "#/components/schemas/Response_onedrive.actions.listSharePointDrives" } } } @@ -5455,15 +5685,17 @@ } } }, - "/api/run/wf_definitions/mutations/publishDraft": { + "/api/run/onedrive/actions/listSharePointFiles": { "post": { - "summary": "Calls a mutation at the path wf_definitions/mutations.js:publishDraft", - "tags": ["mutation"], + "summary": "Calls a action at the path onedrive/actions.js:listSharePointFiles", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_definitions.mutations.publishDraft" + "$ref": "#/components/schemas/Request_onedrive.actions.listSharePointFiles" } } }, @@ -5475,7 +5707,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_definitions.mutations.publishDraft" + "$ref": "#/components/schemas/Response_onedrive.actions.listSharePointFiles" } } } @@ -5503,15 +5735,17 @@ } } }, - "/api/run/wf_definitions/mutations/updateWorkflow": { + "/api/run/onedrive/actions/listSharePointSites": { "post": { - "summary": "Calls a mutation at the path wf_definitions/mutations.js:updateWorkflow", - "tags": ["mutation"], + "summary": "Calls a action at the path onedrive/actions.js:listSharePointSites", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_definitions.mutations.updateWorkflow" + "$ref": "#/components/schemas/Request_onedrive.actions.listSharePointSites" } } }, @@ -5523,7 +5757,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_definitions.mutations.updateWorkflow" + "$ref": "#/components/schemas/Response_onedrive.actions.listSharePointSites" } } } @@ -5551,15 +5785,17 @@ } } }, - "/api/run/wf_definitions/mutations/updateWorkflowMetadata": { + "/api/run/onedrive/actions/listFiles": { "post": { - "summary": "Calls a mutation at the path wf_definitions/mutations.js:updateWorkflowMetadata", - "tags": ["mutation"], + "summary": "Calls a action at the path onedrive/actions.js:listFiles", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_definitions.mutations.updateWorkflowMetadata" + "$ref": "#/components/schemas/Request_onedrive.actions.listFiles" } } }, @@ -5571,7 +5807,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_definitions.mutations.updateWorkflowMetadata" + "$ref": "#/components/schemas/Response_onedrive.actions.listFiles" } } } @@ -5599,15 +5835,17 @@ } } }, - "/api/run/wf_definitions/queries/dryRunWorkflow": { + "/api/run/organizations/actions/initializeDefaultWorkflows": { "post": { - "summary": "Calls a query at the path wf_definitions/queries.js:dryRunWorkflow", - "tags": ["query"], + "summary": "Calls a action at the path organizations/actions.js:initializeDefaultWorkflows", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_definitions.queries.dryRunWorkflow" + "$ref": "#/components/schemas/Request_organizations.actions.initializeDefaultWorkflows" } } }, @@ -5619,7 +5857,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_definitions.queries.dryRunWorkflow" + "$ref": "#/components/schemas/Response_organizations.actions.initializeDefaultWorkflows" } } } @@ -5647,15 +5885,17 @@ } } }, - "/api/run/wf_definitions/queries/getWorkflow": { + "/api/run/organizations/queries/getOrganization": { "post": { - "summary": "Calls a query at the path wf_definitions/queries.js:getWorkflow", - "tags": ["query"], + "summary": "Calls a query at the path organizations/queries.js:getOrganization", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_definitions.queries.getWorkflow" + "$ref": "#/components/schemas/Request_organizations.queries.getOrganization" } } }, @@ -5667,7 +5907,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_definitions.queries.getWorkflow" + "$ref": "#/components/schemas/Response_organizations.queries.getOrganization" } } } @@ -5695,15 +5935,17 @@ } } }, - "/api/run/wf_definitions/queries/hasAutomations": { + "/api/run/products/mutations/createProduct": { "post": { - "summary": "Calls a query at the path wf_definitions/queries.js:hasAutomations", - "tags": ["query"], + "summary": "Calls a mutation at the path products/mutations.js:createProduct", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_definitions.queries.hasAutomations" + "$ref": "#/components/schemas/Request_products.mutations.createProduct" } } }, @@ -5715,7 +5957,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_definitions.queries.hasAutomations" + "$ref": "#/components/schemas/Response_products.mutations.createProduct" } } } @@ -5743,15 +5985,17 @@ } } }, - "/api/run/wf_definitions/queries/listAutomations": { + "/api/run/products/mutations/deleteProduct": { "post": { - "summary": "Calls a query at the path wf_definitions/queries.js:listAutomations", - "tags": ["query"], + "summary": "Calls a mutation at the path products/mutations.js:deleteProduct", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_definitions.queries.listAutomations" + "$ref": "#/components/schemas/Request_products.mutations.deleteProduct" } } }, @@ -5763,7 +6007,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_definitions.queries.listAutomations" + "$ref": "#/components/schemas/Response_products.mutations.deleteProduct" } } } @@ -5791,15 +6035,17 @@ } } }, - "/api/run/wf_definitions/queries/listVersions": { + "/api/run/products/mutations/updateProduct": { "post": { - "summary": "Calls a query at the path wf_definitions/queries.js:listVersions", - "tags": ["query"], + "summary": "Calls a mutation at the path products/mutations.js:updateProduct", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_definitions.queries.listVersions" + "$ref": "#/components/schemas/Request_products.mutations.updateProduct" } } }, @@ -5811,7 +6057,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_definitions.queries.listVersions" + "$ref": "#/components/schemas/Response_products.mutations.updateProduct" } } } @@ -5839,15 +6085,17 @@ } } }, - "/api/run/wf_executions/queries/getExecutionStepJournal": { + "/api/run/products/mutations/upsertProductTranslation": { "post": { - "summary": "Calls a query at the path wf_executions/queries.js:getExecutionStepJournal", - "tags": ["query"], + "summary": "Calls a mutation at the path products/mutations.js:upsertProductTranslation", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_executions.queries.getExecutionStepJournal" + "$ref": "#/components/schemas/Request_products.mutations.upsertProductTranslation" } } }, @@ -5859,7 +6107,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_executions.queries.getExecutionStepJournal" + "$ref": "#/components/schemas/Response_products.mutations.upsertProductTranslation" } } } @@ -5887,15 +6135,17 @@ } } }, - "/api/run/wf_executions/queries/listExecutionsCursor": { + "/api/run/products/queries/approxCountProducts": { "post": { - "summary": "Calls a query at the path wf_executions/queries.js:listExecutionsCursor", - "tags": ["query"], + "summary": "Calls a query at the path products/queries.js:approxCountProducts", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_executions.queries.listExecutionsCursor" + "$ref": "#/components/schemas/Request_products.queries.approxCountProducts" } } }, @@ -5907,7 +6157,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_executions.queries.listExecutionsCursor" + "$ref": "#/components/schemas/Response_products.queries.approxCountProducts" } } } @@ -5935,15 +6185,17 @@ } } }, - "/api/run/wf_step_defs/mutations/createStep": { + "/api/run/products/queries/listProducts": { "post": { - "summary": "Calls a mutation at the path wf_step_defs/mutations.js:createStep", - "tags": ["mutation"], + "summary": "Calls a query at the path products/queries.js:listProducts", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_step_defs.mutations.createStep" + "$ref": "#/components/schemas/Request_products.queries.listProducts" } } }, @@ -5955,7 +6207,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_step_defs.mutations.createStep" + "$ref": "#/components/schemas/Response_products.queries.listProducts" } } } @@ -5983,15 +6235,17 @@ } } }, - "/api/run/wf_step_defs/mutations/updateStep": { + "/api/run/products/queries/listProductsPaginated": { "post": { - "summary": "Calls a mutation at the path wf_step_defs/mutations.js:updateStep", - "tags": ["mutation"], + "summary": "Calls a query at the path products/queries.js:listProductsPaginated", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_step_defs.mutations.updateStep" + "$ref": "#/components/schemas/Request_products.queries.listProductsPaginated" } } }, @@ -6003,7 +6257,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_step_defs.mutations.updateStep" + "$ref": "#/components/schemas/Response_products.queries.listProductsPaginated" } } } @@ -6031,15 +6285,17 @@ } } }, - "/api/run/wf_step_defs/queries/getWorkflowSteps": { + "/api/run/sso_providers/actions/getWithClientId": { "post": { - "summary": "Calls a query at the path wf_step_defs/queries.js:getWorkflowSteps", - "tags": ["query"], + "summary": "Calls a action at the path sso_providers/actions.js:getWithClientId", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_step_defs.queries.getWorkflowSteps" + "$ref": "#/components/schemas/Request_sso_providers.actions.getWithClientId" } } }, @@ -6051,7 +6307,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_step_defs.queries.getWorkflowSteps" + "$ref": "#/components/schemas/Response_sso_providers.actions.getWithClientId" } } } @@ -6079,15 +6335,17 @@ } } }, - "/api/run/wf_step_defs/queries/validateStep": { + "/api/run/sso_providers/actions/getSsoCredentialsForEmail": { "post": { - "summary": "Calls a query at the path wf_step_defs/queries.js:validateStep", - "tags": ["query"], + "summary": "Calls a action at the path sso_providers/actions.js:getSsoCredentialsForEmail", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_wf_step_defs.queries.validateStep" + "$ref": "#/components/schemas/Request_sso_providers.actions.getSsoCredentialsForEmail" } } }, @@ -6099,7 +6357,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_wf_step_defs.queries.validateStep" + "$ref": "#/components/schemas/Response_sso_providers.actions.getSsoCredentialsForEmail" } } } @@ -6127,15 +6385,17 @@ } } }, - "/api/run/agent_tools/human_input/mutations/submitHumanInputResponse": { + "/api/run/sso_providers/actions/upsert": { "post": { - "summary": "Calls a mutation at the path agent_tools/human_input/mutations.js:submitHumanInputResponse", - "tags": ["mutation"], + "summary": "Calls a action at the path sso_providers/actions.js:upsert", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_agent_tools.human_input.mutations.submitHumanInputResponse" + "$ref": "#/components/schemas/Request_sso_providers.actions.upsert" } } }, @@ -6147,7 +6407,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_agent_tools.human_input.mutations.submitHumanInputResponse" + "$ref": "#/components/schemas/Response_sso_providers.actions.upsert" } } } @@ -6175,15 +6435,17 @@ } } }, - "/api/run/files/mutations/generateUploadUrl": { + "/api/run/sso_providers/actions/remove": { "post": { - "summary": "Calls a mutation at the path files/mutations.js:generateUploadUrl", - "tags": ["mutation"], + "summary": "Calls a action at the path sso_providers/actions.js:remove", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_files.mutations.generateUploadUrl" + "$ref": "#/components/schemas/Request_sso_providers.actions.remove" } } }, @@ -6195,7 +6457,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_files.mutations.generateUploadUrl" + "$ref": "#/components/schemas/Response_sso_providers.actions.remove" } } } @@ -6223,15 +6485,17 @@ } } }, - "/api/run/improve_message/actions/improveMessage": { + "/api/run/sso_providers/actions/testConfig": { "post": { - "summary": "Calls a action at the path improve_message/actions.js:improveMessage", - "tags": ["action"], + "summary": "Calls a action at the path sso_providers/actions.js:testConfig", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_improve_message.actions.improveMessage" + "$ref": "#/components/schemas/Request_sso_providers.actions.testConfig" } } }, @@ -6243,7 +6507,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_improve_message.actions.improveMessage" + "$ref": "#/components/schemas/Response_sso_providers.actions.testConfig" } } } @@ -6271,15 +6535,17 @@ } } }, - "/api/run/integrations/actions/testConnection": { + "/api/run/sso_providers/actions/testExistingConfig": { "post": { - "summary": "Calls a action at the path integrations/actions.js:testConnection", - "tags": ["action"], + "summary": "Calls a action at the path sso_providers/actions.js:testExistingConfig", + "tags": [ + "action" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_integrations.actions.testConnection" + "$ref": "#/components/schemas/Request_sso_providers.actions.testExistingConfig" } } }, @@ -6291,7 +6557,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_integrations.actions.testConnection" + "$ref": "#/components/schemas/Response_sso_providers.actions.testExistingConfig" } } } @@ -6319,15 +6585,17 @@ } } }, - "/api/run/integrations/actions/update": { + "/api/run/sso_providers/queries/get": { "post": { - "summary": "Calls a action at the path integrations/actions.js:update", - "tags": ["action"], + "summary": "Calls a query at the path sso_providers/queries.js:get", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_integrations.actions.update" + "$ref": "#/components/schemas/Request_sso_providers.queries.get" } } }, @@ -6339,7 +6607,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_integrations.actions.update" + "$ref": "#/components/schemas/Response_sso_providers.queries.get" } } } @@ -6367,15 +6635,17 @@ } } }, - "/api/run/integrations/actions/create": { + "/api/run/sso_providers/queries/isSsoConfigured": { "post": { - "summary": "Calls a action at the path integrations/actions.js:create", - "tags": ["action"], + "summary": "Calls a query at the path sso_providers/queries.js:isSsoConfigured", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_integrations.actions.create" + "$ref": "#/components/schemas/Request_sso_providers.queries.isSsoConfigured" } } }, @@ -6387,7 +6657,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_integrations.actions.create" + "$ref": "#/components/schemas/Response_sso_providers.queries.isSsoConfigured" } } } @@ -6415,15 +6685,17 @@ } } }, - "/api/run/integrations/mutations/deleteIntegration": { + "/api/run/sso_providers/queries/getMicrosoftToken": { "post": { - "summary": "Calls a mutation at the path integrations/mutations.js:deleteIntegration", - "tags": ["mutation"], + "summary": "Calls a query at the path sso_providers/queries.js:getMicrosoftToken", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_integrations.mutations.deleteIntegration" + "$ref": "#/components/schemas/Request_sso_providers.queries.getMicrosoftToken" } } }, @@ -6435,7 +6707,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_integrations.mutations.deleteIntegration" + "$ref": "#/components/schemas/Response_sso_providers.queries.getMicrosoftToken" } } } @@ -6463,15 +6735,17 @@ } } }, - "/api/run/sso_providers/actions/getWithClientId": { + "/api/run/team_members/mutations/addMember": { "post": { - "summary": "Calls a action at the path sso_providers/actions.js:getWithClientId", - "tags": ["action"], + "summary": "Calls a mutation at the path team_members/mutations.js:addMember", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_sso_providers.actions.getWithClientId" + "$ref": "#/components/schemas/Request_team_members.mutations.addMember" } } }, @@ -6483,7 +6757,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_sso_providers.actions.getWithClientId" + "$ref": "#/components/schemas/Response_team_members.mutations.addMember" } } } @@ -6511,15 +6785,17 @@ } } }, - "/api/run/sso_providers/actions/getSsoCredentialsForEmail": { + "/api/run/team_members/mutations/removeMember": { "post": { - "summary": "Calls a action at the path sso_providers/actions.js:getSsoCredentialsForEmail", - "tags": ["action"], + "summary": "Calls a mutation at the path team_members/mutations.js:removeMember", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_sso_providers.actions.getSsoCredentialsForEmail" + "$ref": "#/components/schemas/Request_team_members.mutations.removeMember" } } }, @@ -6531,7 +6807,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_sso_providers.actions.getSsoCredentialsForEmail" + "$ref": "#/components/schemas/Response_team_members.mutations.removeMember" } } } @@ -6559,15 +6835,17 @@ } } }, - "/api/run/sso_providers/actions/upsert": { + "/api/run/team_members/queries/listByTeam": { "post": { - "summary": "Calls a action at the path sso_providers/actions.js:upsert", - "tags": ["action"], + "summary": "Calls a query at the path team_members/queries.js:listByTeam", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_sso_providers.actions.upsert" + "$ref": "#/components/schemas/Request_team_members.queries.listByTeam" } } }, @@ -6579,7 +6857,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_sso_providers.actions.upsert" + "$ref": "#/components/schemas/Response_team_members.queries.listByTeam" } } } @@ -6607,15 +6885,17 @@ } } }, - "/api/run/sso_providers/actions/remove": { + "/api/run/threads/get_message_error/getMessageError": { "post": { - "summary": "Calls a action at the path sso_providers/actions.js:remove", - "tags": ["action"], + "summary": "Calls a query at the path threads/get_message_error.js:getMessageError", + "tags": [ + "query" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_sso_providers.actions.remove" + "$ref": "#/components/schemas/Request_threads.get_message_error.getMessageError" } } }, @@ -6627,7 +6907,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_sso_providers.actions.remove" + "$ref": "#/components/schemas/Response_threads.get_message_error.getMessageError" } } } @@ -6655,15 +6935,17 @@ } } }, - "/api/run/sso_providers/actions/testConfig": { + "/api/run/threads/mutations/forkThread": { "post": { - "summary": "Calls a action at the path sso_providers/actions.js:testConfig", - "tags": ["action"], + "summary": "Calls a mutation at the path threads/mutations.js:forkThread", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_sso_providers.actions.testConfig" + "$ref": "#/components/schemas/Request_threads.mutations.forkThread" } } }, @@ -6675,7 +6957,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_sso_providers.actions.testConfig" + "$ref": "#/components/schemas/Response_threads.mutations.forkThread" } } } @@ -6703,15 +6985,17 @@ } } }, - "/api/run/sso_providers/actions/testExistingConfig": { + "/api/run/threads/mutations/shareThread": { "post": { - "summary": "Calls a action at the path sso_providers/actions.js:testExistingConfig", - "tags": ["action"], + "summary": "Calls a mutation at the path threads/mutations.js:shareThread", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_sso_providers.actions.testExistingConfig" + "$ref": "#/components/schemas/Request_threads.mutations.shareThread" } } }, @@ -6723,7 +7007,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_sso_providers.actions.testExistingConfig" + "$ref": "#/components/schemas/Response_threads.mutations.shareThread" } } } @@ -6751,15 +7035,17 @@ } } }, - "/api/run/team_members/mutations/addMember": { + "/api/run/threads/mutations/unshareThread": { "post": { - "summary": "Calls a mutation at the path team_members/mutations.js:addMember", - "tags": ["mutation"], + "summary": "Calls a mutation at the path threads/mutations.js:unshareThread", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_team_members.mutations.addMember" + "$ref": "#/components/schemas/Request_threads.mutations.unshareThread" } } }, @@ -6771,7 +7057,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_team_members.mutations.addMember" + "$ref": "#/components/schemas/Response_threads.mutations.unshareThread" } } } @@ -6799,15 +7085,17 @@ } } }, - "/api/run/team_members/mutations/removeMember": { + "/api/run/threads/mutations/createChatThread": { "post": { - "summary": "Calls a mutation at the path team_members/mutations.js:removeMember", - "tags": ["mutation"], + "summary": "Calls a mutation at the path threads/mutations.js:createChatThread", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_team_members.mutations.removeMember" + "$ref": "#/components/schemas/Request_threads.mutations.createChatThread" } } }, @@ -6819,7 +7107,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_team_members.mutations.removeMember" + "$ref": "#/components/schemas/Response_threads.mutations.createChatThread" } } } @@ -6847,15 +7135,17 @@ } } }, - "/api/run/team_members/queries/listByTeam": { + "/api/run/threads/mutations/deleteChatThread": { "post": { - "summary": "Calls a query at the path team_members/queries.js:listByTeam", - "tags": ["query"], + "summary": "Calls a mutation at the path threads/mutations.js:deleteChatThread", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_team_members.queries.listByTeam" + "$ref": "#/components/schemas/Request_threads.mutations.deleteChatThread" } } }, @@ -6867,7 +7157,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_team_members.queries.listByTeam" + "$ref": "#/components/schemas/Response_threads.mutations.deleteChatThread" } } } @@ -6895,15 +7185,17 @@ } } }, - "/api/run/workflow_engine/mutations/startWorkflow": { + "/api/run/threads/mutations/updateChatThread": { "post": { - "summary": "Calls a mutation at the path workflow_engine/mutations.js:startWorkflow", - "tags": ["mutation"], + "summary": "Calls a mutation at the path threads/mutations.js:updateChatThread", + "tags": [ + "mutation" + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_workflow_engine.mutations.startWorkflow" + "$ref": "#/components/schemas/Request_threads.mutations.updateChatThread" } } }, @@ -6915,7 +7207,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Response_workflow_engine.mutations.startWorkflow" + "$ref": "#/components/schemas/Response_threads.mutations.updateChatThread" } } } @@ -6942,2955 +7234,17943 @@ } } } - } - }, - "components": { - "securitySchemes": { - "apiKeyAuth": { - "type": "apiKey", - "in": "header", - "name": "x-api-key", - "description": "API key for authentication. Create one in Settings > API Keys." - } }, - "schemas": { - "Request_accounts.queries.hasMicrosoftAccount": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_accounts.queries.hasMicrosoftAccount": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + "/api/run/threads/mutations/cancelGeneration": { + "post": { + "summary": "Calls a mutation at the path threads/mutations.js:cancelGeneration", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_threads.mutations.cancelGeneration" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_threads.mutations.cancelGeneration" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "boolean" - } - } - }, - "Request_agents.chat.mutations.chatWithAgent": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["message", "organizationId", "threadId"], - "properties": { - "attachments": { - "type": "array", - "items": { - "type": "object", - "required": ["fileId", "fileName", "fileSize", "fileType"], - "properties": { - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "fileName": { - "type": "string" - }, - "fileSize": { - "type": "number" - }, - "fileType": { - "type": "string" - } - } + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } - }, - "maxSteps": { - "type": "number" - }, - "message": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "threadId": { - "type": "string" } } } } - }, - "Response_agents.chat.mutations.chatWithAgent": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" + } + }, + "/api/run/threads/mutations/archiveChatThread": { + "post": { + "summary": "Calls a mutation at the path threads/mutations.js:archiveChatThread", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_threads.mutations.archiveChatThread" + } + } }, - "errorData": { - "type": "object" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_threads.mutations.archiveChatThread" + } + } + } }, - "value": { - "type": "object", - "required": ["messageAlreadyExists", "streamId"], - "properties": { - "messageAlreadyExists": { - "type": "boolean" - }, - "streamId": { - "type": "string" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } - } - } - }, - "Request_agents.crm.mutations.chatWithCrmAgent": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["message", "organizationId", "threadId"], - "properties": { - "attachments": { - "type": "array", - "items": { - "type": "object", - "required": ["fileId", "fileName", "fileSize", "fileType"], - "properties": { - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "fileName": { - "type": "string" - }, - "fileSize": { - "type": "number" - }, - "fileType": { - "type": "string" - } - } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } - }, - "maxSteps": { - "type": "number" - }, - "message": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "threadId": { - "type": "string" } } } } - }, - "Response_agents.crm.mutations.chatWithCrmAgent": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" + } + }, + "/api/run/threads/mutations/unarchiveChatThread": { + "post": { + "summary": "Calls a mutation at the path threads/mutations.js:unarchiveChatThread", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_threads.mutations.unarchiveChatThread" + } + } }, - "errorData": { - "type": "object" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_threads.mutations.unarchiveChatThread" + } + } + } }, - "value": { - "type": "object", - "required": ["messageAlreadyExists", "streamId"], - "properties": { - "messageAlreadyExists": { - "type": "boolean" - }, - "streamId": { - "type": "string" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } - } - } - }, - "Request_agents.document.mutations.chatWithDocumentAgent": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["message", "organizationId", "threadId"], - "properties": { - "attachments": { - "type": "array", - "items": { - "type": "object", - "required": ["fileId", "fileName", "fileSize", "fileType"], - "properties": { - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "fileName": { - "type": "string" - }, - "fileSize": { - "type": "number" - }, - "fileType": { - "type": "string" - } - } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } - }, - "maxSteps": { - "type": "number" - }, - "message": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "threadId": { - "type": "string" } } } } - }, - "Response_agents.document.mutations.chatWithDocumentAgent": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/threads/queries/getSharedThread": { + "post": { + "summary": "Calls a query at the path threads/queries.js:getSharedThread", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_threads.queries.getSharedThread" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_threads.queries.getSharedThread" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "object", - "required": ["messageAlreadyExists", "streamId"], - "properties": { - "messageAlreadyExists": { - "type": "boolean" - }, - "streamId": { - "type": "string" + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Request_agents.integration.mutations.chatWithIntegrationAgent": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["message", "organizationId", "threadId"], - "properties": { - "attachments": { - "type": "array", - "items": { - "type": "object", - "required": ["fileId", "fileName", "fileSize", "fileType"], - "properties": { - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "fileName": { - "type": "string" - }, - "fileSize": { - "type": "number" - }, - "fileType": { - "type": "string" - } - } - } - }, - "maxSteps": { - "type": "number" - }, - "message": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "threadId": { - "type": "string" + } + }, + "/api/run/threads/queries/listThreads": { + "post": { + "summary": "Calls a query at the path threads/queries.js:listThreads", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_threads.queries.listThreads" } } - } - } - }, - "Response_agents.integration.mutations.chatWithIntegrationAgent": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" }, - "errorData": { - "type": "object" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_threads.queries.listThreads" + } + } + } }, - "value": { - "type": "object", - "required": ["messageAlreadyExists", "streamId"], - "properties": { - "messageAlreadyExists": { - "type": "boolean" - }, - "streamId": { - "type": "string" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } - } - } - }, - "Request_agents.web.mutations.chatWithWebAgent": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["message", "organizationId", "threadId"], - "properties": { - "attachments": { - "type": "array", - "items": { - "type": "object", - "required": ["fileId", "fileName", "fileSize", "fileType"], - "properties": { - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "fileName": { - "type": "string" - }, - "fileSize": { - "type": "number" - }, - "fileType": { - "type": "string" - } - } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } - }, - "maxSteps": { - "type": "number" - }, - "message": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "threadId": { - "type": "string" } } } } - }, - "Response_agents.web.mutations.chatWithWebAgent": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" + } + }, + "/api/run/threads/queries/listArchivedThreads": { + "post": { + "summary": "Calls a query at the path threads/queries.js:listArchivedThreads", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_threads.queries.listArchivedThreads" + } + } }, - "errorData": { - "type": "object" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_threads.queries.listArchivedThreads" + } + } + } }, - "value": { - "type": "object", - "required": ["messageAlreadyExists", "streamId"], - "properties": { - "messageAlreadyExists": { - "type": "boolean" - }, - "streamId": { - "type": "string" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } - } - } - }, - "Request_agents.workflow.actions.chatWithWorkflowAssistant": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["message", "organizationId", "threadId"], - "properties": { - "attachments": { - "type": "array", - "items": { - "type": "object", - "required": ["fileId", "fileName", "fileSize", "fileType"], - "properties": { - "fileId": { - "type": "string" - }, - "fileName": { - "type": "string" - }, - "fileSize": { - "type": "number" - }, - "fileType": { - "type": "string" - } - } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } - }, - "message": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "threadId": { - "type": "string" - }, - "workflowId": { - "type": "string", - "description": "ID from table \"wfDefinitions\"" } } } } - }, - "Response_agents.workflow.actions.chatWithWorkflowAssistant": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/threads/queries/isThreadGenerating": { + "post": { + "summary": "Calls a query at the path threads/queries.js:isThreadGenerating", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_threads.queries.isThreadGenerating" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_threads.queries.isThreadGenerating" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "object", - "required": ["success"], - "properties": { - "error": { - "type": "string" - }, - "success": { - "type": "boolean" + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Request_agents.workflow.mutations.chatWithWorkflowAgent": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["message", "organizationId", "threadId"], - "properties": { - "attachments": { - "type": "array", - "items": { - "type": "object", - "required": ["fileId", "fileName", "fileSize", "fileType"], - "properties": { - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "fileName": { - "type": "string" - }, - "fileSize": { - "type": "number" - }, - "fileType": { - "type": "string" - } - } - } - }, - "maxSteps": { - "type": "number" - }, - "message": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "threadId": { - "type": "string" + } + }, + "/api/run/threads/queries/getThreadMessagesStreaming": { + "post": { + "summary": "Calls a query at the path threads/queries.js:getThreadMessagesStreaming", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_threads.queries.getThreadMessagesStreaming" } } - } - } - }, - "Response_agents.workflow.mutations.chatWithWorkflowAgent": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_threads.queries.getThreadMessagesStreaming" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "object", - "required": ["messageAlreadyExists", "streamId"], - "properties": { - "messageAlreadyExists": { - "type": "boolean" - }, - "streamId": { - "type": "string" + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Request_approvals.actions.executeApprovedWorkflowCreation": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["approvalId"], - "properties": { - "approvalId": { - "type": "string", - "description": "ID from table \"approvals\"" + } + }, + "/api/run/threads/queries/getFailedMessageErrors": { + "post": { + "summary": "Calls a query at the path threads/queries.js:getFailedMessageErrors", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_threads.queries.getFailedMessageErrors" } } - } - } - }, - "Response_approvals.actions.executeApprovedWorkflowCreation": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_threads.queries.getFailedMessageErrors" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": {} - } - }, - "Request_approvals.actions.executeApprovedIntegrationOperation": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["approvalId"], - "properties": { - "approvalId": { - "type": "string", - "description": "ID from table \"approvals\"" + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Response_approvals.actions.executeApprovedIntegrationOperation": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/threads/queries/getThreadStatus": { + "post": { + "summary": "Calls a query at the path threads/queries.js:getThreadStatus", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_threads.queries.getThreadStatus" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_threads.queries.getThreadStatus" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": {} - } - }, - "Request_approvals.mutations.updateApprovalStatus": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["approvalId", "status"], - "properties": { - "approvalId": { - "type": "string", - "description": "ID from table \"approvals\"" - }, - "comments": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["pending"] - }, - { - "type": "string", - "enum": ["approved"] - }, - { - "type": "string", - "enum": ["rejected"] - } - ] + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Response_approvals.mutations.updateApprovalStatus": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/threads/queries/getThreadShareStatus": { + "post": { + "summary": "Calls a query at the path threads/queries.js:getThreadShareStatus", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_threads.queries.getThreadShareStatus" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_threads.queries.getThreadShareStatus" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_approvals.mutations.removeRecommendedProduct": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["approvalId", "productId"], - "properties": { - "approvalId": { - "type": "string", - "description": "ID from table \"approvals\"" - }, - "productId": { - "type": "string" + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Response_approvals.mutations.removeRecommendedProduct": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/users/mutations/updateUserName": { + "post": { + "summary": "Calls a mutation at the path users/mutations.js:updateUserName", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_users.mutations.updateUserName" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_users.mutations.updateUserName" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "string", - "nullable": true + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } } } - }, - "Request_approvals.queries.listApprovalsByOrganization": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["organizationId"], - "properties": { - "limit": { - "type": "number" - }, - "organizationId": { - "type": "string" - }, - "resourceType": { - "oneOf": [ - { - "oneOf": [ - { - "type": "string", - "enum": ["conversations"] - }, - { - "type": "string", - "enum": ["integration_operation"] - }, - { - "type": "string", - "enum": ["workflow_creation"] - }, - { - "type": "string", - "enum": ["human_input_request"] - } - ] - }, - { - "type": "array", - "items": { - "oneOf": [ - { - "type": "string", - "enum": ["conversations"] - }, - { - "type": "string", - "enum": ["integration_operation"] - }, - { - "type": "string", - "enum": ["workflow_creation"] - }, - { - "type": "string", - "enum": ["human_input_request"] - } - ] - } - } - ] - }, - "search": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["pending"] - }, - { - "type": "string", - "enum": ["approved"] - }, - { - "type": "string", - "enum": ["rejected"] - } - ] + } + }, + "/api/run/users/mutations/updateUserPassword": { + "post": { + "summary": "Calls a mutation at the path users/mutations.js:updateUserPassword", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_users.mutations.updateUserPassword" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_users.mutations.updateUserPassword" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Response_approvals.queries.listApprovalsByOrganization": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/users/mutations/setMemberPassword": { + "post": { + "summary": "Calls a mutation at the path users/mutations.js:setMemberPassword", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_users.mutations.setMemberPassword" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_users.mutations.setMemberPassword" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "organizationId", - "priority", - "resourceId", - "resourceType", - "status" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "approvedBy": { - "type": "string" - }, - "dueDate": { - "type": "number" - }, - "executedAt": { - "type": "number" - }, - "executionError": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "priority": { - "oneOf": [ - { - "type": "string", - "enum": ["low"] - }, - { - "type": "string", - "enum": ["medium"] - }, - { - "type": "string", - "enum": ["high"] - }, - { - "type": "string", - "enum": ["urgent"] - } - ] - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "oneOf": [ - { - "type": "string", - "enum": ["conversations"] - }, - { - "type": "string", - "enum": ["integration_operation"] - }, - { - "type": "string", - "enum": ["workflow_creation"] - }, - { - "type": "string", - "enum": ["human_input_request"] - } - ] - }, - "reviewedAt": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["pending"] - }, - { - "type": "string", - "enum": ["approved"] - }, - { - "type": "string", - "enum": ["rejected"] - } - ] - }, - "stepSlug": { - "type": "string" - }, - "threadId": { - "type": "string" - }, - "wfExecutionId": { - "type": "string" + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } } } } } - }, - "Request_approvals.queries.getPendingIntegrationApprovalsForThread": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["threadId"], - "properties": { - "messageId": { - "type": "string" - }, - "threadId": { - "type": "string" + } + }, + "/api/run/users/mutations/createMember": { + "post": { + "summary": "Calls a mutation at the path users/mutations.js:createMember", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_users.mutations.createMember" } } - } - } - }, - "Response_approvals.queries.getPendingIntegrationApprovalsForThread": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" }, - "errorData": { - "type": "object" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_users.mutations.createMember" + } + } + } }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "organizationId", - "priority", - "resourceId", - "resourceType", - "status" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "approvedBy": { - "type": "string" - }, - "dueDate": { - "type": "number" - }, - "executedAt": { - "type": "number" - }, - "executionError": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "priority": { - "oneOf": [ - { - "type": "string", - "enum": ["low"] - }, - { - "type": "string", - "enum": ["medium"] - }, - { - "type": "string", - "enum": ["high"] - }, - { - "type": "string", - "enum": ["urgent"] - } - ] - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "oneOf": [ - { - "type": "string", - "enum": ["conversations"] - }, - { - "type": "string", - "enum": ["integration_operation"] - }, - { - "type": "string", - "enum": ["workflow_creation"] - }, - { - "type": "string", - "enum": ["human_input_request"] - } - ] - }, - "reviewedAt": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["pending"] - }, - { - "type": "string", - "enum": ["approved"] - }, - { - "type": "string", - "enum": ["rejected"] - } - ] - }, - "stepSlug": { - "type": "string" - }, - "threadId": { - "type": "string" - }, - "wfExecutionId": { - "type": "string" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } } } - } - } - }, - "Request_approvals.queries.getWorkflowCreationApprovalsForThread": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["threadId"], - "properties": { - "messageId": { - "type": "string" - }, - "threadId": { - "type": "string" + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Response_approvals.queries.getWorkflowCreationApprovalsForThread": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/users/queries/hasAnyUsers": { + "post": { + "summary": "Calls a query at the path users/queries.js:hasAnyUsers", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_users.queries.hasAnyUsers" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_users.queries.hasAnyUsers" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "organizationId", - "priority", - "resourceId", - "resourceType", - "status" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "approvedBy": { - "type": "string" - }, - "dueDate": { - "type": "number" - }, - "executedAt": { - "type": "number" - }, - "executionError": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "priority": { - "oneOf": [ - { - "type": "string", - "enum": ["low"] - }, - { - "type": "string", - "enum": ["medium"] - }, - { - "type": "string", - "enum": ["high"] - }, - { - "type": "string", - "enum": ["urgent"] - } - ] - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "oneOf": [ - { - "type": "string", - "enum": ["conversations"] - }, - { - "type": "string", - "enum": ["integration_operation"] - }, - { - "type": "string", - "enum": ["workflow_creation"] - }, - { - "type": "string", - "enum": ["human_input_request"] - } - ] - }, - "reviewedAt": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["pending"] - }, - { - "type": "string", - "enum": ["approved"] - }, - { - "type": "string", - "enum": ["rejected"] - } - ] - }, - "stepSlug": { - "type": "string" - }, - "threadId": { - "type": "string" - }, - "wfExecutionId": { - "type": "string" + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } } } } } - }, - "Request_approvals.queries.getHumanInputRequestsForThread": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["threadId"], - "properties": { - "messageId": { - "type": "string" - }, - "threadId": { - "type": "string" + } + }, + "/api/run/users/queries/getCurrentUser": { + "post": { + "summary": "Calls a query at the path users/queries.js:getCurrentUser", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_users.queries.getCurrentUser" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_users.queries.getCurrentUser" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Response_approvals.queries.getHumanInputRequestsForThread": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/vendors/mutations/bulkCreateVendors": { + "post": { + "summary": "Calls a mutation at the path vendors/mutations.js:bulkCreateVendors", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_vendors.mutations.bulkCreateVendors" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_vendors.mutations.bulkCreateVendors" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "organizationId", - "priority", - "resourceId", - "resourceType", - "status" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "approvedBy": { - "type": "string" - }, - "dueDate": { - "type": "number" - }, - "executedAt": { - "type": "number" - }, - "executionError": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "priority": { - "oneOf": [ - { - "type": "string", - "enum": ["low"] - }, - { - "type": "string", - "enum": ["medium"] - }, - { - "type": "string", - "enum": ["high"] - }, - { - "type": "string", - "enum": ["urgent"] - } - ] - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "oneOf": [ - { - "type": "string", - "enum": ["conversations"] - }, - { - "type": "string", - "enum": ["integration_operation"] - }, - { - "type": "string", - "enum": ["workflow_creation"] - }, - { - "type": "string", - "enum": ["human_input_request"] - } - ] - }, - "reviewedAt": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["pending"] - }, - { - "type": "string", - "enum": ["approved"] - }, - { - "type": "string", - "enum": ["rejected"] - } - ] - }, - "stepSlug": { - "type": "string" - }, - "threadId": { - "type": "string" - }, - "wfExecutionId": { - "type": "string" + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } } } } } - }, - "Request_audit_logs.queries.listAuditLogs": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["organizationId"], - "properties": { - "cursor": { - "type": "string" - }, - "filter": { - "type": "object", - "properties": { - "actorId": { - "type": "string" - }, - "category": { - "oneOf": [ - { - "type": "string", - "enum": ["auth"] - }, - { - "type": "string", - "enum": ["member"] - }, - { - "type": "string", - "enum": ["data"] - }, - { - "type": "string", - "enum": ["integration"] - }, - { - "type": "string", - "enum": ["workflow"] - }, - { - "type": "string", - "enum": ["security"] - }, - { - "type": "string", - "enum": ["admin"] - } - ] - }, - "endDate": { - "type": "number" - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "type": "string" - }, - "search": { - "type": "string" - }, - "startDate": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["success"] - }, - { - "type": "string", - "enum": ["failure"] - }, - { - "type": "string", - "enum": ["denied"] - } - ] - } + } + }, + "/api/run/vendors/mutations/deleteVendor": { + "post": { + "summary": "Calls a mutation at the path vendors/mutations.js:deleteVendor", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_vendors.mutations.deleteVendor" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_vendors.mutations.deleteVendor" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } - }, - "limit": { - "type": "number" - }, - "organizationId": { - "type": "string" } } } } - }, - "Response_audit_logs.queries.listAuditLogs": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/vendors/mutations/updateVendor": { + "post": { + "summary": "Calls a mutation at the path vendors/mutations.js:updateVendor", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_vendors.mutations.updateVendor" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_vendors.mutations.updateVendor" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "object", - "required": ["logs"], - "properties": { - "logs": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "action", - "actorId", - "actorType", - "category", - "organizationId", - "resourceType", - "status", - "timestamp" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string", - "description": "ID from table \"auditLogs\"" - }, - "action": { - "type": "string" - }, - "actorEmail": { - "type": "string" - }, - "actorId": { - "type": "string" - }, - "actorRole": { - "type": "string" - }, - "actorType": { - "oneOf": [ - { - "type": "string", - "enum": ["user"] - }, - { - "type": "string", - "enum": ["system"] - }, - { - "type": "string", - "enum": ["api"] - }, - { - "type": "string", - "enum": ["workflow"] - } - ] - }, - "category": { - "oneOf": [ - { - "type": "string", - "enum": ["auth"] - }, - { - "type": "string", - "enum": ["member"] - }, - { - "type": "string", - "enum": ["data"] - }, - { - "type": "string", - "enum": ["integration"] - }, - { - "type": "string", - "enum": ["workflow"] - }, - { - "type": "string", - "enum": ["security"] - }, - { - "type": "string", - "enum": ["admin"] - } - ] - }, - "changedFields": { - "type": "array", - "items": { - "type": "string" - } - }, - "errorMessage": { - "type": "string" - }, - "ipAddress": { - "type": "string" - }, - "metadata": {}, - "newState": {}, - "organizationId": { - "type": "string" - }, - "previousState": {}, - "requestId": { - "type": "string" - }, - "resourceId": { - "type": "string" - }, - "resourceName": { - "type": "string" - }, - "resourceType": { - "type": "string" - }, - "sessionId": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["success"] - }, - { - "type": "string", - "enum": ["failure"] - }, - { - "type": "string", - "enum": ["denied"] - } - ] - }, - "timestamp": { - "type": "number" - }, - "userAgent": { - "type": "string" - } - } + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } - }, - "nextCursor": { - "type": "string" } } } } - }, - "Request_audit_logs.queries.getResourceAuditTrail": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["organizationId", "resourceId", "resourceType"], - "properties": { - "limit": { - "type": "number" - }, - "organizationId": { - "type": "string" - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "type": "string" + } + }, + "/api/run/vendors/queries/approxCountVendors": { + "post": { + "summary": "Calls a query at the path vendors/queries.js:approxCountVendors", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_vendors.queries.approxCountVendors" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_vendors.queries.approxCountVendors" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Response_audit_logs.queries.getResourceAuditTrail": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/vendors/queries/listVendors": { + "post": { + "summary": "Calls a query at the path vendors/queries.js:listVendors", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_vendors.queries.listVendors" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_vendors.queries.listVendors" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "action", - "actorId", - "actorType", - "category", - "organizationId", - "resourceType", - "status", - "timestamp" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string", - "description": "ID from table \"auditLogs\"" - }, - "action": { - "type": "string" - }, - "actorEmail": { - "type": "string" - }, - "actorId": { - "type": "string" - }, - "actorRole": { - "type": "string" - }, - "actorType": { - "oneOf": [ - { - "type": "string", - "enum": ["user"] - }, - { - "type": "string", - "enum": ["system"] - }, - { - "type": "string", - "enum": ["api"] - }, - { - "type": "string", - "enum": ["workflow"] - } - ] - }, - "category": { - "oneOf": [ - { - "type": "string", - "enum": ["auth"] - }, - { - "type": "string", - "enum": ["member"] - }, - { - "type": "string", - "enum": ["data"] - }, - { - "type": "string", - "enum": ["integration"] - }, - { - "type": "string", - "enum": ["workflow"] - }, - { - "type": "string", - "enum": ["security"] - }, - { - "type": "string", - "enum": ["admin"] - } - ] - }, - "changedFields": { - "type": "array", - "items": { - "type": "string" - } - }, - "errorMessage": { - "type": "string" - }, - "ipAddress": { - "type": "string" - }, - "metadata": {}, - "newState": {}, - "organizationId": { - "type": "string" - }, - "previousState": {}, - "requestId": { - "type": "string" - }, - "resourceId": { - "type": "string" - }, - "resourceName": { - "type": "string" - }, - "resourceType": { - "type": "string" - }, - "sessionId": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["success"] - }, - { - "type": "string", - "enum": ["failure"] - }, - { - "type": "string", - "enum": ["denied"] - } - ] - }, - "timestamp": { - "type": "number" - }, - "userAgent": { - "type": "string" + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } } } } } - }, - "Request_audit_logs.queries.getActivitySummary": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["organizationId"], - "properties": { - "endDate": { - "type": "number" - }, - "organizationId": { - "type": "string" - }, - "startDate": { - "type": "number" + } + }, + "/api/run/vendors/queries/listVendorsPaginated": { + "post": { + "summary": "Calls a query at the path vendors/queries.js:listVendorsPaginated", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_vendors.queries.listVendorsPaginated" } } - } - } - }, - "Response_audit_logs.queries.getActivitySummary": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_vendors.queries.listVendorsPaginated" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "object", - "required": [ - "byCategory", - "byResourceType", - "deniedCount", - "failureCount", - "successCount", - "topActors", - "totalActions" - ], - "properties": { - "byCategory": { - "type": "object" - }, - "byResourceType": { - "type": "object" - }, - "deniedCount": { - "type": "number" - }, - "failureCount": { - "type": "number" - }, - "successCount": { - "type": "number" - }, - "topActors": { - "type": "array", - "items": { - "type": "object", - "required": ["actorId", "count"], - "properties": { - "actorEmail": { - "type": "string" - }, - "actorId": { - "type": "string" - }, - "count": { - "type": "number" - } - } + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } - }, - "totalActions": { - "type": "number" } } } } - }, - "Request_conversations.mutations.addMessageToConversation": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": [ - "content", - "conversationId", - "isCustomer", - "organizationId", - "sender" - ], - "properties": { - "attachment": { - "type": "object", - "required": ["filename", "url"], - "properties": { - "contentType": { - "type": "string" - }, - "filename": { - "type": "string" - }, - "size": { - "type": "number" - }, - "url": { - "type": "string" - } - } - }, - "content": { - "type": "string" - }, - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" - }, - "externalMessageId": { - "type": "string" - }, - "isCustomer": { - "type": "boolean" - }, - "organizationId": { - "type": "string" - }, - "providerId": { - "type": "string", - "description": "ID from table \"emailProviders\"" - }, - "sender": { - "type": "string" - }, - "status": { - "type": "string" + } + }, + "/api/run/websites/actions/createWebsite": { + "post": { + "summary": "Calls a action at the path websites/actions.js:createWebsite", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_websites.actions.createWebsite" } } - } - } - }, - "Response_conversations.mutations.addMessageToConversation": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" }, - "value": { - "type": "string", - "description": "ID from table \"conversations\"" - } - } - }, - "Request_conversations.mutations.bulkCloseConversations": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["conversationIds"], - "properties": { - "conversationIds": { - "type": "array", - "items": { - "type": "string", - "description": "ID from table \"conversations\"" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_websites.actions.createWebsite" } - }, - "resolvedBy": { - "type": "string" } } - } - } - }, - "Response_conversations.mutations.bulkCloseConversations": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" }, - "value": { - "type": "object", - "required": ["errors", "failedCount", "successCount"], - "properties": { - "errors": { - "type": "array", - "items": { - "type": "string" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } - }, - "failedCount": { - "type": "number" - }, - "successCount": { - "type": "number" } } - } - } - }, - "Request_conversations.mutations.bulkReopenConversations": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["conversationIds"], - "properties": { - "conversationIds": { - "type": "array", - "items": { - "type": "string", - "description": "ID from table \"conversations\"" + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } } } } } - }, - "Response_conversations.mutations.bulkReopenConversations": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/websites/actions/deleteWebsite": { + "post": { + "summary": "Calls a action at the path websites/actions.js:deleteWebsite", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_websites.actions.deleteWebsite" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_websites.actions.deleteWebsite" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "object", - "required": ["errors", "failedCount", "successCount"], - "properties": { - "errors": { - "type": "array", - "items": { - "type": "string" + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" } - }, - "failedCount": { - "type": "number" - }, - "successCount": { - "type": "number" } } } } - }, - "Request_conversations.mutations.closeConversation": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["conversationId"], - "properties": { - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" - }, - "resolvedBy": { - "type": "string" + } + }, + "/api/run/websites/actions/updateWebsite": { + "post": { + "summary": "Calls a action at the path websites/actions.js:updateWebsite", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_websites.actions.updateWebsite" } } - } - } - }, - "Response_conversations.mutations.closeConversation": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_websites.actions.updateWebsite" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_conversations.mutations.markConversationAsRead": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["conversationId"], - "properties": { - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Response_conversations.mutations.markConversationAsRead": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/websites/actions/syncStatuses": { + "post": { + "summary": "Calls a action at the path websites/actions.js:syncStatuses", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_websites.actions.syncStatuses" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_websites.actions.syncStatuses" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "string", - "nullable": true + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } } } - }, - "Request_conversations.mutations.markConversationAsSpam": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["conversationId"], - "properties": { - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" + } + }, + "/api/run/websites/actions/fetchPages": { + "post": { + "summary": "Calls a action at the path websites/actions.js:fetchPages", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_websites.actions.fetchPages" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_websites.actions.fetchPages" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Response_conversations.mutations.markConversationAsSpam": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/websites/actions/fetchChunks": { + "post": { + "summary": "Calls a action at the path websites/actions.js:fetchChunks", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_websites.actions.fetchChunks" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_websites.actions.fetchChunks" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "string", - "nullable": true + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } } } - }, - "Request_conversations.mutations.reopenConversation": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["conversationId"], - "properties": { - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" + } + }, + "/api/run/websites/actions/searchContent": { + "post": { + "summary": "Calls a action at the path websites/actions.js:searchContent", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_websites.actions.searchContent" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_websites.actions.searchContent" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Response_conversations.mutations.reopenConversation": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/websites/mutations/updateWebsite": { + "post": { + "summary": "Calls a mutation at the path websites/mutations.js:updateWebsite", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_websites.mutations.updateWebsite" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_websites.mutations.updateWebsite" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "string", - "nullable": true + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } } } - }, - "Request_conversations.mutations.sendMessageViaEmail": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": [ - "content", - "conversationId", - "organizationId", - "subject", - "to" - ], - "properties": { - "attachments": { - "type": "array", - "items": { - "type": "object", - "required": [ - "contentType", - "name", - "size", - "storageId", - "type" - ], - "properties": { - "contentType": { - "type": "string" - }, - "name": { - "type": "string" - }, - "size": { - "type": "number" - }, - "storageId": { - "type": "string" - }, - "type": { - "type": "string" - } - } - } - }, - "bcc": { - "type": "array", - "items": { - "type": "string" - } - }, - "cc": { - "type": "array", - "items": { - "type": "string" - } - }, - "content": { - "type": "string" - }, - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" - }, - "headers": { - "type": "object" - }, - "html": { - "type": "string" - }, - "inReplyTo": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "providerId": { - "type": "string", - "description": "ID from table \"emailProviders\"" - }, - "references": { - "type": "array", - "items": { - "type": "string" - } - }, - "replyTo": { - "type": "string" - }, - "subject": { - "type": "string" - }, - "text": { - "type": "string" - }, - "to": { - "type": "array", - "items": { - "type": "string" - } + } + }, + "/api/run/websites/queries/approxCountWebsites": { + "post": { + "summary": "Calls a query at the path websites/queries.js:approxCountWebsites", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_websites.queries.approxCountWebsites" } } - } - } - }, - "Response_conversations.mutations.sendMessageViaEmail": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_websites.queries.approxCountWebsites" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "string", - "description": "ID from table \"conversationMessages\"" - } - } - }, - "Request_conversations.mutations.updateConversation": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["conversationId"], - "properties": { - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" - }, - "metadata": {}, - "priority": { - "oneOf": [ - { - "type": "string", - "enum": ["low"] - }, - { - "type": "string", - "enum": ["medium"] - }, - { - "type": "string", - "enum": ["high"] - }, - { - "type": "string", - "enum": ["urgent"] - } - ] - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["open"] - }, - { - "type": "string", - "enum": ["closed"] - }, - { - "type": "string", - "enum": ["spam"] - }, - { - "type": "string", - "enum": ["archived"] - } - ] - }, - "subject": { - "type": "string" - }, - "type": { - "type": "string" + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Response_conversations.mutations.updateConversation": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/websites/queries/listWebsites": { + "post": { + "summary": "Calls a query at the path websites/queries.js:listWebsites", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_websites.queries.listWebsites" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_websites.queries.listWebsites" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_conversations.queries.getConversation": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["conversationId"], - "properties": { - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Response_conversations.queries.getConversation": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] + } + }, + "/api/run/websites/queries/listWebsitesPaginated": { + "post": { + "summary": "Calls a query at the path websites/queries.js:listWebsitesPaginated", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_websites.queries.listWebsitesPaginated" + } + } }, - "errorMessage": { - "type": "string" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_websites.queries.listWebsitesPaginated" + } + } + } }, - "errorData": { - "type": "object" + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } }, - "value": { - "type": "object", - "required": ["_creationTime", "_id", "organizationId"], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string", - "description": "ID from table \"conversations\"" - }, - "channel": { - "type": "string" - }, - "customerId": { - "type": "string", - "description": "ID from table \"customers\"" - }, - "direction": { - "oneOf": [ - { - "type": "string", - "enum": ["inbound"] - }, - { - "type": "string", - "enum": ["outbound"] - } - ] - }, - "externalMessageId": { - "type": "string" - }, - "lastMessageAt": { - "type": "number" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "priority": { - "type": "string" - }, - "providerId": { - "type": "string", - "description": "ID from table \"emailProviders\"" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["open"] - }, - { - "type": "string", - "enum": ["closed"] - }, - { - "type": "string", - "enum": ["spam"] - }, - { - "type": "string", - "enum": ["archived"] - } - ] - }, - "subject": { - "type": "string" - }, - "type": { - "type": "string" + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } - }, - "nullable": true + } } } - }, - "Request_conversations.queries.getConversationWithMessages": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["conversationId"], - "properties": { - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" + } + }, + "/api/run/wf_executions/mutations/cancelExecution": { + "post": { + "summary": "Calls a mutation at the path wf_executions/mutations.js:cancelExecution", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_wf_executions.mutations.cancelExecution" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_wf_executions.mutations.cancelExecution" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } } } } } - }, - "Response_conversations.queries.getConversationWithMessages": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" + } + }, + "/api/run/wf_executions/queries/approxCountExecutions": { + "post": { + "summary": "Calls a query at the path wf_executions/queries.js:approxCountExecutions", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_wf_executions.queries.approxCountExecutions" + } + } }, - "errorData": { - "type": "object" + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_wf_executions.queries.approxCountExecutions" + } + } + } }, - "value": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "business_id", - "created_at", - "customer", - "customer_id", - "description", - "id", - "message_count", - "messages", - "organizationId", - "title", - "unread_count", - "updated_at" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "business_id": { - "type": "string" - }, - "channel": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "customer": { - "type": "object", - "required": ["created_at", "email", "id", "status"], - "properties": { - "created_at": { - "type": "string" - }, - "email": { - "type": "string" - }, - "id": { - "type": "string" - }, - "locale": { - "type": "string" - }, - "name": { - "type": "string" - }, - "source": { - "type": "string" - }, - "status": { - "type": "string" - } + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/wf_executions/queries/getExecutionStatus": { + "post": { + "summary": "Calls a query at the path wf_executions/queries.js:getExecutionStatus", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_wf_executions.queries.getExecutionStatus" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_wf_executions.queries.getExecutionStatus" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/wf_executions/queries/getExecutionStepJournal": { + "post": { + "summary": "Calls a query at the path wf_executions/queries.js:getExecutionStepJournal", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_wf_executions.queries.getExecutionStepJournal" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_wf_executions.queries.getExecutionStepJournal" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/wf_executions/queries/getRawExecution": { + "post": { + "summary": "Calls a query at the path wf_executions/queries.js:getRawExecution", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_wf_executions.queries.getRawExecution" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_wf_executions.queries.getRawExecution" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/wf_executions/queries/listExecutions": { + "post": { + "summary": "Calls a query at the path wf_executions/queries.js:listExecutions", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_wf_executions.queries.listExecutions" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_wf_executions.queries.listExecutions" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/wf_executions/queries/listExecutionsCursor": { + "post": { + "summary": "Calls a query at the path wf_executions/queries.js:listExecutionsCursor", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_wf_executions.queries.listExecutionsCursor" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_wf_executions.queries.listExecutionsCursor" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/actions/generateCronExpression": { + "post": { + "summary": "Calls a action at the path workflows/triggers/actions.js:generateCronExpression", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.actions.generateCronExpression" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.actions.generateCronExpression" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/wf_executions/actions/startWorkflowFromFile": { + "post": { + "summary": "Calls a action at the path wf_executions/actions.js:startWorkflowFromFile", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_wf_executions.actions.startWorkflowFromFile" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_wf_executions.actions.startWorkflowFromFile" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/file_actions/deleteWorkflow": { + "post": { + "summary": "Calls a action at the path workflows/file_actions.js:deleteWorkflow", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.file_actions.deleteWorkflow" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.file_actions.deleteWorkflow" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/file_actions/duplicateWorkflow": { + "post": { + "summary": "Calls a action at the path workflows/file_actions.js:duplicateWorkflow", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.file_actions.duplicateWorkflow" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.file_actions.duplicateWorkflow" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/file_actions/getAvailableWorkflows": { + "post": { + "summary": "Calls a action at the path workflows/file_actions.js:getAvailableWorkflows", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.file_actions.getAvailableWorkflows" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.file_actions.getAvailableWorkflows" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/file_actions/installWorkflow": { + "post": { + "summary": "Calls a action at the path workflows/file_actions.js:installWorkflow", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.file_actions.installWorkflow" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.file_actions.installWorkflow" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/file_actions/listHistory": { + "post": { + "summary": "Calls a action at the path workflows/file_actions.js:listHistory", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.file_actions.listHistory" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.file_actions.listHistory" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/file_actions/listWorkflows": { + "post": { + "summary": "Calls a action at the path workflows/file_actions.js:listWorkflows", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.file_actions.listWorkflows" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.file_actions.listWorkflows" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/file_actions/readHistoryEntry": { + "post": { + "summary": "Calls a action at the path workflows/file_actions.js:readHistoryEntry", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.file_actions.readHistoryEntry" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.file_actions.readHistoryEntry" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/file_actions/renameWorkflow": { + "post": { + "summary": "Calls a action at the path workflows/file_actions.js:renameWorkflow", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.file_actions.renameWorkflow" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.file_actions.renameWorkflow" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/file_actions/restoreFromHistory": { + "post": { + "summary": "Calls a action at the path workflows/file_actions.js:restoreFromHistory", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.file_actions.restoreFromHistory" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.file_actions.restoreFromHistory" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/file_actions/saveWorkflowWithSnapshot": { + "post": { + "summary": "Calls a action at the path workflows/file_actions.js:saveWorkflowWithSnapshot", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.file_actions.saveWorkflowWithSnapshot" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.file_actions.saveWorkflowWithSnapshot" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/file_actions/readWorkflow": { + "post": { + "summary": "Calls a action at the path workflows/file_actions.js:readWorkflow", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.file_actions.readWorkflow" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.file_actions.readWorkflow" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/slug_mutations/createScheduleBySlug": { + "post": { + "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:createScheduleBySlug", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.createScheduleBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.createScheduleBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/slug_mutations/toggleScheduleBySlug": { + "post": { + "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:toggleScheduleBySlug", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.toggleScheduleBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.toggleScheduleBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/slug_mutations/updateScheduleBySlug": { + "post": { + "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:updateScheduleBySlug", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.updateScheduleBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.updateScheduleBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/slug_mutations/deleteScheduleBySlug": { + "post": { + "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:deleteScheduleBySlug", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.deleteScheduleBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.deleteScheduleBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/slug_mutations/createWebhookBySlug": { + "post": { + "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:createWebhookBySlug", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.createWebhookBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.createWebhookBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/slug_mutations/toggleWebhookBySlug": { + "post": { + "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:toggleWebhookBySlug", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.toggleWebhookBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.toggleWebhookBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/slug_mutations/deleteWebhookBySlug": { + "post": { + "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:deleteWebhookBySlug", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.deleteWebhookBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.deleteWebhookBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/slug_mutations/createEventSubscriptionBySlug": { + "post": { + "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:createEventSubscriptionBySlug", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.createEventSubscriptionBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.createEventSubscriptionBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/slug_mutations/toggleEventSubscriptionBySlug": { + "post": { + "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:toggleEventSubscriptionBySlug", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.toggleEventSubscriptionBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.toggleEventSubscriptionBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/slug_mutations/updateEventSubscriptionBySlug": { + "post": { + "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:updateEventSubscriptionBySlug", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.updateEventSubscriptionBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.updateEventSubscriptionBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/slug_mutations/deleteEventSubscriptionBySlug": { + "post": { + "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:deleteEventSubscriptionBySlug", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.deleteEventSubscriptionBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.deleteEventSubscriptionBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/slug_queries/getSchedulesBySlug": { + "post": { + "summary": "Calls a query at the path workflows/triggers/slug_queries.js:getSchedulesBySlug", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.slug_queries.getSchedulesBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.slug_queries.getSchedulesBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/slug_queries/getWebhooksBySlug": { + "post": { + "summary": "Calls a query at the path workflows/triggers/slug_queries.js:getWebhooksBySlug", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.slug_queries.getWebhooksBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.slug_queries.getWebhooksBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/slug_queries/getEventSubscriptionsBySlug": { + "post": { + "summary": "Calls a query at the path workflows/triggers/slug_queries.js:getEventSubscriptionsBySlug", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.slug_queries.getEventSubscriptionsBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.slug_queries.getEventSubscriptionsBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/workflows/triggers/slug_queries/getTriggerLogsBySlug": { + "post": { + "summary": "Calls a query at the path workflows/triggers/slug_queries.js:getTriggerLogsBySlug", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_workflows.triggers.slug_queries.getTriggerLogsBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_workflows.triggers.slug_queries.getTriggerLogsBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/integrations/credential_mutations/updateCredentials": { + "post": { + "summary": "Calls a mutation at the path integrations/credential_mutations.js:updateCredentials", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_integrations.credential_mutations.updateCredentials" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_integrations.credential_mutations.updateCredentials" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/integrations/credential_mutations/deleteCredentials": { + "post": { + "summary": "Calls a mutation at the path integrations/credential_mutations.js:deleteCredentials", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_integrations.credential_mutations.deleteCredentials" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_integrations.credential_mutations.deleteCredentials" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/integrations/credential_queries/getBySlug": { + "post": { + "summary": "Calls a query at the path integrations/credential_queries.js:getBySlug", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_integrations.credential_queries.getBySlug" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_integrations.credential_queries.getBySlug" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/integrations/credential_queries/list": { + "post": { + "summary": "Calls a query at the path integrations/credential_queries.js:list", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_integrations.credential_queries.list" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_integrations.credential_queries.list" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/integrations/file_actions/installIntegration": { + "post": { + "summary": "Calls a action at the path integrations/file_actions.js:installIntegration", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_integrations.file_actions.installIntegration" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_integrations.file_actions.installIntegration" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/integrations/file_actions/listIntegrations": { + "post": { + "summary": "Calls a action at the path integrations/file_actions.js:listIntegrations", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_integrations.file_actions.listIntegrations" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_integrations.file_actions.listIntegrations" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/integrations/file_actions/saveIntegrationConfig": { + "post": { + "summary": "Calls a action at the path integrations/file_actions.js:saveIntegrationConfig", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_integrations.file_actions.saveIntegrationConfig" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_integrations.file_actions.saveIntegrationConfig" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/integrations/file_actions/uninstallIntegration": { + "post": { + "summary": "Calls a action at the path integrations/file_actions.js:uninstallIntegration", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_integrations.file_actions.uninstallIntegration" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_integrations.file_actions.uninstallIntegration" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/integrations/file_actions/writeIntegrationFiles": { + "post": { + "summary": "Calls a action at the path integrations/file_actions.js:writeIntegrationFiles", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_integrations.file_actions.writeIntegrationFiles" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_integrations.file_actions.writeIntegrationFiles" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/integrations/file_actions/readIntegration": { + "post": { + "summary": "Calls a action at the path integrations/file_actions.js:readIntegration", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_integrations.file_actions.readIntegration" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_integrations.file_actions.readIntegration" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/branding/file_actions/deleteImage": { + "post": { + "summary": "Calls a action at the path branding/file_actions.js:deleteImage", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_branding.file_actions.deleteImage" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_branding.file_actions.deleteImage" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/branding/file_actions/resetBranding": { + "post": { + "summary": "Calls a action at the path branding/file_actions.js:resetBranding", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_branding.file_actions.resetBranding" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_branding.file_actions.resetBranding" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/branding/file_actions/saveBranding": { + "post": { + "summary": "Calls a action at the path branding/file_actions.js:saveBranding", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_branding.file_actions.saveBranding" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_branding.file_actions.saveBranding" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/branding/file_actions/saveImage": { + "post": { + "summary": "Calls a action at the path branding/file_actions.js:saveImage", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_branding.file_actions.saveImage" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_branding.file_actions.saveImage" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/branding/file_actions/snapshotToHistory": { + "post": { + "summary": "Calls a action at the path branding/file_actions.js:snapshotToHistory", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_branding.file_actions.snapshotToHistory" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_branding.file_actions.snapshotToHistory" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/branding/file_actions/readBranding": { + "post": { + "summary": "Calls a action at the path branding/file_actions.js:readBranding", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_branding.file_actions.readBranding" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_branding.file_actions.readBranding" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/providers/file_actions/deleteProvider": { + "post": { + "summary": "Calls a action at the path providers/file_actions.js:deleteProvider", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_providers.file_actions.deleteProvider" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_providers.file_actions.deleteProvider" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/providers/file_actions/getAllProviderConfigs": { + "post": { + "summary": "Calls a action at the path providers/file_actions.js:getAllProviderConfigs", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_providers.file_actions.getAllProviderConfigs" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_providers.file_actions.getAllProviderConfigs" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/providers/file_actions/hasProviderSecret": { + "post": { + "summary": "Calls a action at the path providers/file_actions.js:hasProviderSecret", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_providers.file_actions.hasProviderSecret" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_providers.file_actions.hasProviderSecret" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/providers/file_actions/listProviders": { + "post": { + "summary": "Calls a action at the path providers/file_actions.js:listProviders", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_providers.file_actions.listProviders" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_providers.file_actions.listProviders" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/providers/file_actions/saveProvider": { + "post": { + "summary": "Calls a action at the path providers/file_actions.js:saveProvider", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_providers.file_actions.saveProvider" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_providers.file_actions.saveProvider" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/providers/file_actions/saveProviderSecret": { + "post": { + "summary": "Calls a action at the path providers/file_actions.js:saveProviderSecret", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_providers.file_actions.saveProviderSecret" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_providers.file_actions.saveProviderSecret" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/providers/file_actions/readProvider": { + "post": { + "summary": "Calls a action at the path providers/file_actions.js:readProvider", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_providers.file_actions.readProvider" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_providers.file_actions.readProvider" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/agent_tools/human_input/actions/submitHumanInputResponse": { + "post": { + "summary": "Calls a action at the path agent_tools/human_input/actions.js:submitHumanInputResponse", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_agent_tools.human_input.actions.submitHumanInputResponse" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_agent_tools.human_input.actions.submitHumanInputResponse" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/agent_tools/location/actions/submitLocationResponse": { + "post": { + "summary": "Calls a action at the path agent_tools/location/actions.js:submitLocationResponse", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_agent_tools.location.actions.submitLocationResponse" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_agent_tools.location.actions.submitLocationResponse" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/agents/arena_chat/arenaChat": { + "post": { + "summary": "Calls a action at the path agents/arena_chat.js:arenaChat", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_agents.arena_chat.arenaChat" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_agents.arena_chat.arenaChat" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/documents/compare_documents/compareDocuments": { + "post": { + "summary": "Calls a action at the path documents/compare_documents.js:compareDocuments", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_documents.compare_documents.compareDocuments" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_documents.compare_documents.compareDocuments" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/feedback/mutations/submitFeedback": { + "post": { + "summary": "Calls a mutation at the path feedback/mutations.js:submitFeedback", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_feedback.mutations.submitFeedback" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_feedback.mutations.submitFeedback" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/feedback/mutations/deleteFeedback": { + "post": { + "summary": "Calls a mutation at the path feedback/mutations.js:deleteFeedback", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_feedback.mutations.deleteFeedback" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_feedback.mutations.deleteFeedback" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/feedback/queries/getMessageFeedback": { + "post": { + "summary": "Calls a query at the path feedback/queries.js:getMessageFeedback", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_feedback.queries.getMessageFeedback" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_feedback.queries.getMessageFeedback" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/feedback/queries/getFeedbackStats": { + "post": { + "summary": "Calls a query at the path feedback/queries.js:getFeedbackStats", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_feedback.queries.getFeedbackStats" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_feedback.queries.getFeedbackStats" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/governance/mutations/upsertPolicy": { + "post": { + "summary": "Calls a mutation at the path governance/mutations.js:upsertPolicy", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_governance.mutations.upsertPolicy" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_governance.mutations.upsertPolicy" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/governance/mutations/upsertPiiConfig": { + "post": { + "summary": "Calls a mutation at the path governance/mutations.js:upsertPiiConfig", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_governance.mutations.upsertPiiConfig" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_governance.mutations.upsertPiiConfig" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/governance/queries/getPolicy": { + "post": { + "summary": "Calls a query at the path governance/queries.js:getPolicy", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_governance.queries.getPolicy" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_governance.queries.getPolicy" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/governance/queries/listPolicies": { + "post": { + "summary": "Calls a query at the path governance/queries.js:listPolicies", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_governance.queries.listPolicies" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_governance.queries.listPolicies" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/governance/queries/getUsageSummary": { + "post": { + "summary": "Calls a query at the path governance/queries.js:getUsageSummary", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_governance.queries.getUsageSummary" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_governance.queries.getUsageSummary" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/mcp_servers/actions/executeMcpTool": { + "post": { + "summary": "Calls a action at the path mcp_servers/actions.js:executeMcpTool", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_mcp_servers.actions.executeMcpTool" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_mcp_servers.actions.executeMcpTool" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/mcp_servers/actions/testConnection": { + "post": { + "summary": "Calls a action at the path mcp_servers/actions.js:testConnection", + "tags": [ + "action" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_mcp_servers.actions.testConnection" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_mcp_servers.actions.testConnection" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/prompts/mutations/createPrompt": { + "post": { + "summary": "Calls a mutation at the path prompts/mutations.js:createPrompt", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_prompts.mutations.createPrompt" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_prompts.mutations.createPrompt" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/prompts/mutations/deletePrompt": { + "post": { + "summary": "Calls a mutation at the path prompts/mutations.js:deletePrompt", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_prompts.mutations.deletePrompt" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_prompts.mutations.deletePrompt" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/prompts/mutations/incrementUsage": { + "post": { + "summary": "Calls a mutation at the path prompts/mutations.js:incrementUsage", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_prompts.mutations.incrementUsage" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_prompts.mutations.incrementUsage" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/prompts/mutations/updatePrompt": { + "post": { + "summary": "Calls a mutation at the path prompts/mutations.js:updatePrompt", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_prompts.mutations.updatePrompt" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_prompts.mutations.updatePrompt" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/prompts/queries/getPrompt": { + "post": { + "summary": "Calls a query at the path prompts/queries.js:getPrompt", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_prompts.queries.getPrompt" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_prompts.queries.getPrompt" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/prompts/queries/listPrompts": { + "post": { + "summary": "Calls a query at the path prompts/queries.js:listPrompts", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_prompts.queries.listPrompts" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_prompts.queries.listPrompts" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/threads/fork_thread/forkThread": { + "post": { + "summary": "Calls a mutation at the path threads/fork_thread.js:forkThread", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_threads.fork_thread.forkThread" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_threads.fork_thread.forkThread" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/threads/get_shared_thread/getSharedThread": { + "post": { + "summary": "Calls a query at the path threads/get_shared_thread.js:getSharedThread", + "tags": [ + "query" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_threads.get_shared_thread.getSharedThread" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_threads.get_shared_thread.getSharedThread" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/threads/share_thread/shareThread": { + "post": { + "summary": "Calls a mutation at the path threads/share_thread.js:shareThread", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_threads.share_thread.shareThread" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_threads.share_thread.shareThread" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/run/threads/share_thread/unshareThread": { + "post": { + "summary": "Calls a mutation at the path threads/share_thread.js:unshareThread", + "tags": [ + "mutation" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Request_threads.share_thread.unshareThread" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Convex executed your request and returned a result", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Response_threads.share_thread.unshareThread" + } + } + } + }, + "400": { + "description": "Failed operation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + }, + "500": { + "description": "Convex Internal Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FailedResponse" + } + } + } + } + } + } + }, + "/api/v1/chat/completions": { + "post": { + "tags": [ + "OpenAI Compatible" + ], + "summary": "Create chat completion", + "description": "Send messages to an agent and receive a response. Fully compatible with the OpenAI Chat Completions API.\n\n**Two modes:**\n- **Agent mode** (no `tools`): The agent uses server-side tools and auto-executes them.\n- **Client tool mode** (`tools` provided): Only client-defined tools are used. Returns `tool_calls` for client execution.", + "operationId": "createChatCompletion", + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "name": "X-Organization-Slug", + "in": "header", + "required": false, + "schema": { + "type": "string" + }, + "description": "Organization slug. Auto-resolved if user belongs to one org." + }, + { + "name": "X-Thread-Id", + "in": "header", + "required": false, + "schema": { + "type": "string" + }, + "description": "Reuse a conversation thread across requests." + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChatCompletionRequest" + } + } + } + }, + "responses": { + "200": { + "description": "Chat completion response (or SSE stream if stream=true)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChatCompletionResponse" + } + }, + "text/event-stream": { + "schema": { + "type": "string", + "description": "SSE stream of ChatCompletionChunk objects, terminated by `data: [DONE]`" + } + } + } + }, + "400": { + "description": "Invalid request (missing model, messages, etc.)" + }, + "401": { + "description": "Invalid or missing API key" + }, + "403": { + "description": "Not a member of the organization" + }, + "404": { + "description": "Model (agent) not found" + }, + "429": { + "description": "Rate limit exceeded" + }, + "500": { + "description": "Generation failed" + } + } + } + }, + "/api/v1/models": { + "get": { + "tags": [ + "OpenAI Compatible" + ], + "summary": "List models", + "description": "List available agents as OpenAI-compatible models. Only agents with `visibleInChat: true` are returned.", + "operationId": "listModels", + "security": [ + { + "bearerAuth": [] + } + ], + "parameters": [ + { + "name": "X-Organization-Slug", + "in": "header", + "required": false, + "schema": { + "type": "string" + }, + "description": "Organization slug." + } + ], + "responses": { + "200": { + "description": "List of models", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModelList" + } + } + } + }, + "401": { + "description": "Invalid or missing API key" + } + } + } + } + }, + "components": { + "securitySchemes": { + "apiKeyAuth": { + "type": "apiKey", + "in": "header", + "name": "x-api-key", + "description": "API key for authentication. Create one in Settings > API Keys." + }, + "bearerAuth": { + "type": "http", + "scheme": "bearer", + "description": "API key as Bearer token (e.g., \"Bearer tale_...\"). Create keys in Settings > API Keys." + } + }, + "schemas": { + "Request_accounts.queries.hasCredentialAccount": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object" + } + } + }, + "Response_accounts.queries.hasCredentialAccount": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "boolean" + } + } + }, + "Request_accounts.queries.hasMicrosoftAccount": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object" + } + } + }, + "Response_accounts.queries.hasMicrosoftAccount": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "boolean" + } + } + }, + "Request_agents.file_actions.deleteAgent": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "agentName", + "orgSlug" + ], + "properties": { + "agentName": { + "type": "string" + }, + "orgSlug": { + "type": "string" + }, + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_agents.file_actions.deleteAgent": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_agents.file_actions.duplicateAgent": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "agentName", + "orgSlug" + ], + "properties": { + "agentName": { + "type": "string" + }, + "orgSlug": { + "type": "string" + } + } + } + } + }, + "Response_agents.file_actions.duplicateAgent": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "newAgentName" + ], + "properties": { + "newAgentName": { + "type": "string" + } + } + } + } + }, + "Request_agents.file_actions.listAgents": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "orgSlug" + ], + "properties": { + "orgSlug": { + "type": "string" + } + } + } + } + }, + "Response_agents.file_actions.listAgents": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_agents.file_actions.listHistory": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "agentName", + "orgSlug" + ], + "properties": { + "agentName": { + "type": "string" + }, + "orgSlug": { + "type": "string" + } + } + } + } + }, + "Response_agents.file_actions.listHistory": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_agents.file_actions.readHistoryEntry": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "agentName", + "orgSlug", + "timestamp" + ], + "properties": { + "agentName": { + "type": "string" + }, + "orgSlug": { + "type": "string" + }, + "timestamp": { + "type": "string" + } + } + } + } + }, + "Response_agents.file_actions.readHistoryEntry": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_agents.file_actions.restoreFromHistory": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "agentName", + "orgSlug", + "timestamp" + ], + "properties": { + "agentName": { + "type": "string" + }, + "orgSlug": { + "type": "string" + }, + "timestamp": { + "type": "string" + } + } + } + } + }, + "Response_agents.file_actions.restoreFromHistory": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "hash" + ], + "properties": { + "hash": { + "type": "string" + } + } + } + } + }, + "Request_agents.file_actions.saveAgent": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "agentName", + "config", + "orgSlug" + ], + "properties": { + "agentName": { + "type": "string" + }, + "config": {}, + "isNew": { + "type": "boolean" + }, + "oldAgentName": { + "type": "string" + }, + "orgSlug": { + "type": "string" + } + } + } + } + }, + "Response_agents.file_actions.saveAgent": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "hash" + ], + "properties": { + "hash": { + "type": "string" + } + } + } + } + }, + "Request_agents.file_actions.snapshotToHistory": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "agentName", + "orgSlug" + ], + "properties": { + "agentName": { + "type": "string" + }, + "orgSlug": { + "type": "string" + } + } + } + } + }, + "Response_agents.file_actions.snapshotToHistory": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "timestamp" + ], + "properties": { + "timestamp": { + "type": "string" + } + }, + "nullable": true + } + } + }, + "Request_agents.file_actions.translateAgentFields": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "fields", + "targetLocale" + ], + "properties": { + "fields": { + "type": "object" + }, + "targetLocale": { + "type": "string" + } + } + } + } + }, + "Response_agents.file_actions.translateAgentFields": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "translated" + ], + "properties": { + "error": { + "type": "string" + }, + "translated": { + "type": "object" + } + } + } + } + }, + "Request_agents.file_actions.readAgent": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "agentName", + "orgSlug" + ], + "properties": { + "agentName": { + "type": "string" + }, + "orgSlug": { + "type": "string" + } + } + } + } + }, + "Response_agents.file_actions.readAgent": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_agents.mutations.updateAgentBindings": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "agentSlug", + "organizationId" + ], + "properties": { + "agentSlug": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "teamId": { + "type": "string" + } + } + } + } + }, + "Response_agents.mutations.updateAgentBindings": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_agents.mutations.addKnowledgeFile": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "agentSlug", + "contentType", + "fileId", + "fileName", + "fileSize", + "organizationId" + ], + "properties": { + "agentSlug": { + "type": "string" + }, + "contentType": { + "type": "string" + }, + "fileId": { + "type": "string", + "description": "ID from table \"_storage\"" + }, + "fileName": { + "type": "string" + }, + "fileSize": { + "type": "number" + }, + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_agents.mutations.addKnowledgeFile": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_agents.mutations.removeKnowledgeFile": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "agentSlug", + "fileId", + "organizationId" + ], + "properties": { + "agentSlug": { + "type": "string" + }, + "fileId": { + "type": "string", + "description": "ID from table \"_storage\"" + }, + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_agents.mutations.removeKnowledgeFile": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_agents.queries.getBindingByAgent": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "agentSlug", + "organizationId" + ], + "properties": { + "agentSlug": { + "type": "string" + }, + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_agents.queries.getBindingByAgent": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_agents.queries.hasBindingsByTeam": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "teamId" + ], + "properties": { + "teamId": { + "type": "string" + } + } + } + } + }, + "Response_agents.queries.hasBindingsByTeam": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_agents.queries.getAvailableTools": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object" + } + } + }, + "Response_agents.queries.getAvailableTools": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_agents.queries.getAvailableIntegrations": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_agents.queries.getAvailableIntegrations": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_agents.unified_chat.chatWithAgent": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "agentSlug", + "message", + "orgSlug", + "organizationId", + "threadId" + ], + "properties": { + "additionalContext": { + "type": "object" + }, + "agentSlug": { + "type": "string" + }, + "attachments": { + "type": "array", + "items": { + "type": "object", + "required": [ + "fileId", + "fileName", + "fileSize", + "fileType" + ], + "properties": { + "fileId": { + "type": "string", + "description": "ID from table \"_storage\"" + }, + "fileName": { + "type": "string" + }, + "fileSize": { + "type": "number" + }, + "fileType": { + "type": "string" + } + } + } + }, + "maxSteps": { + "type": "number" + }, + "message": { + "type": "string" + }, + "modelId": { + "type": "string" + }, + "orgSlug": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "threadId": { + "type": "string" + }, + "userContext": { + "type": "object", + "required": [ + "language", + "timezone" + ], + "properties": { + "language": { + "type": "string" + }, + "timezone": { + "type": "string" + } + } + } + } + } + } + }, + "Response_agents.unified_chat.chatWithAgent": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "messageAlreadyExists", + "streamId" + ], + "properties": { + "messageAlreadyExists": { + "type": "boolean" + }, + "streamId": { + "type": "string" + } + } + } + } + }, + "Request_agents.webhooks.mutations.createWebhook": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "agentSlug", + "organizationId" + ], + "properties": { + "agentSlug": { + "type": "string" + }, + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_agents.webhooks.mutations.createWebhook": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "token", + "webhookId" + ], + "properties": { + "token": { + "type": "string" + }, + "webhookId": { + "type": "string", + "description": "ID from table \"agentWebhooks\"" + } + } + } + } + }, + "Request_agents.webhooks.mutations.toggleWebhook": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "isActive", + "webhookId" + ], + "properties": { + "isActive": { + "type": "boolean" + }, + "webhookId": { + "type": "string", + "description": "ID from table \"agentWebhooks\"" + } + } + } + } + }, + "Response_agents.webhooks.mutations.toggleWebhook": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_agents.webhooks.mutations.deleteWebhook": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "webhookId" + ], + "properties": { + "webhookId": { + "type": "string", + "description": "ID from table \"agentWebhooks\"" + } + } + } + } + }, + "Response_agents.webhooks.mutations.deleteWebhook": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_agents.webhooks.queries.getWebhooks": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "agentSlug", + "organizationId" + ], + "properties": { + "agentSlug": { + "type": "string" + }, + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_agents.webhooks.queries.getWebhooks": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_approvals.actions.executeApprovedDocumentWrite": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "approvalId" + ], + "properties": { + "approvalId": { + "type": "string", + "description": "ID from table \"approvals\"" + } + } + } + } + }, + "Response_approvals.actions.executeApprovedDocumentWrite": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_approvals.actions.executeApprovedWorkflowCreation": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "approvalId" + ], + "properties": { + "approvalId": { + "type": "string", + "description": "ID from table \"approvals\"" + } + } + } + } + }, + "Response_approvals.actions.executeApprovedWorkflowCreation": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_approvals.actions.executeApprovedWorkflowRun": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "approvalId" + ], + "properties": { + "approvalId": { + "type": "string", + "description": "ID from table \"approvals\"" + } + } + } + } + }, + "Response_approvals.actions.executeApprovedWorkflowRun": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_approvals.actions.executeApprovedWorkflowUpdate": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "approvalId" + ], + "properties": { + "approvalId": { + "type": "string", + "description": "ID from table \"approvals\"" + } + } + } + } + }, + "Response_approvals.actions.executeApprovedWorkflowUpdate": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_approvals.actions.executeApprovedIntegrationOperation": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "approvalId" + ], + "properties": { + "approvalId": { + "type": "string", + "description": "ID from table \"approvals\"" + } + } + } + } + }, + "Response_approvals.actions.executeApprovedIntegrationOperation": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_approvals.mutations.updateApprovalStatus": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "approvalId", + "status" + ], + "properties": { + "approvalId": { + "type": "string", + "description": "ID from table \"approvals\"" + }, + "comments": { + "type": "string" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "pending" + ] + }, + { + "type": "string", + "enum": [ + "executing" + ] + }, + { + "type": "string", + "enum": [ + "completed" + ] + }, + { + "type": "string", + "enum": [ + "rejected" + ] + } + ] + }, + "triggerAgentResponse": { + "type": "boolean" + } + } + } + } + }, + "Response_approvals.mutations.updateApprovalStatus": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_approvals.mutations.removeRecommendedProduct": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "approvalId", + "productId" + ], + "properties": { + "approvalId": { + "type": "string", + "description": "ID from table \"approvals\"" + }, + "productId": { + "type": "string" + } + } + } + } + }, + "Response_approvals.mutations.removeRecommendedProduct": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_approvals.queries.getApproval": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "approvalId" + ], + "properties": { + "approvalId": { + "type": "string", + "description": "ID from table \"approvals\"" + } + } + } + } + }, + "Response_approvals.queries.getApproval": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "organizationId", + "priority", + "resourceId", + "resourceType", + "status" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "approvedBy": { + "type": "string" + }, + "dueDate": { + "type": "number" + }, + "executedAt": { + "type": "number" + }, + "executionError": { + "type": "string" + }, + "messageId": { + "type": "string" + }, + "metadata": {}, + "organizationId": { + "type": "string" + }, + "priority": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low" + ] + }, + { + "type": "string", + "enum": [ + "medium" + ] + }, + { + "type": "string", + "enum": [ + "high" + ] + }, + { + "type": "string", + "enum": [ + "urgent" + ] + } + ] + }, + "resourceId": { + "type": "string" + }, + "resourceType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "conversations" + ] + }, + { + "type": "string", + "enum": [ + "integration_operation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_creation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_run" + ] + }, + { + "type": "string", + "enum": [ + "workflow_update" + ] + }, + { + "type": "string", + "enum": [ + "human_input_request" + ] + }, + { + "type": "string", + "enum": [ + "document_write" + ] + }, + { + "type": "string", + "enum": [ + "location_request" + ] + }, + { + "type": "string", + "enum": [ + "mcp_tool_call" + ] + } + ] + }, + "reviewedAt": { + "type": "number" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "pending" + ] + }, + { + "type": "string", + "enum": [ + "executing" + ] + }, + { + "type": "string", + "enum": [ + "completed" + ] + }, + { + "type": "string", + "enum": [ + "rejected" + ] + } + ] + }, + "stepSlug": { + "type": "string" + }, + "threadId": { + "type": "string" + }, + "wfExecutionId": { + "type": "string" + } + }, + "nullable": true + } + } + }, + "Request_approvals.queries.approxCountApprovalsByStatus": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId", + "status" + ], + "properties": { + "organizationId": { + "type": "string" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "pending" + ] + }, + { + "type": "string", + "enum": [ + "resolved" + ] + } + ] + } + } + } + } + }, + "Response_approvals.queries.approxCountApprovalsByStatus": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "number" + } + } + }, + "Request_approvals.queries.listApprovalsPaginated": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId", + "paginationOpts" + ], + "properties": { + "excludeStatus": { + "oneOf": [ + { + "type": "string", + "enum": [ + "pending" + ] + }, + { + "type": "string", + "enum": [ + "executing" + ] + }, + { + "type": "string", + "enum": [ + "completed" + ] + }, + { + "type": "string", + "enum": [ + "rejected" + ] + } + ] + }, + "organizationId": { + "type": "string" + }, + "paginationOpts": { + "type": "object", + "required": [ + "cursor", + "numItems" + ], + "properties": { + "cursor": { + "type": "string", + "nullable": true + }, + "endCursor": { + "type": "string", + "nullable": true + }, + "id": { + "type": "number" + }, + "maximumBytesRead": { + "type": "number" + }, + "maximumRowsRead": { + "type": "number" + }, + "numItems": { + "type": "number" + } + } + }, + "resourceType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "conversations" + ] + }, + { + "type": "string", + "enum": [ + "integration_operation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_creation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_run" + ] + }, + { + "type": "string", + "enum": [ + "workflow_update" + ] + }, + { + "type": "string", + "enum": [ + "human_input_request" + ] + }, + { + "type": "string", + "enum": [ + "document_write" + ] + }, + { + "type": "string", + "enum": [ + "location_request" + ] + }, + { + "type": "string", + "enum": [ + "mcp_tool_call" + ] + } + ] + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "pending" + ] + }, + { + "type": "string", + "enum": [ + "executing" + ] + }, + { + "type": "string", + "enum": [ + "completed" + ] + }, + { + "type": "string", + "enum": [ + "rejected" + ] + } + ] + } + } + } + } + }, + "Response_approvals.queries.listApprovalsPaginated": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_approvals.queries.listApprovalsByOrganization": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "limit": { + "type": "number" + }, + "organizationId": { + "type": "string" + }, + "resourceType": { + "oneOf": [ + { + "oneOf": [ + { + "type": "string", + "enum": [ + "conversations" + ] + }, + { + "type": "string", + "enum": [ + "integration_operation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_creation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_run" + ] + }, + { + "type": "string", + "enum": [ + "workflow_update" + ] + }, + { + "type": "string", + "enum": [ + "human_input_request" + ] + }, + { + "type": "string", + "enum": [ + "document_write" + ] + }, + { + "type": "string", + "enum": [ + "location_request" + ] + }, + { + "type": "string", + "enum": [ + "mcp_tool_call" + ] + } + ] + }, + { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string", + "enum": [ + "conversations" + ] + }, + { + "type": "string", + "enum": [ + "integration_operation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_creation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_run" + ] + }, + { + "type": "string", + "enum": [ + "workflow_update" + ] + }, + { + "type": "string", + "enum": [ + "human_input_request" + ] + }, + { + "type": "string", + "enum": [ + "document_write" + ] + }, + { + "type": "string", + "enum": [ + "location_request" + ] + }, + { + "type": "string", + "enum": [ + "mcp_tool_call" + ] + } + ] + } + } + ] + }, + "search": { + "type": "string" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "pending" + ] + }, + { + "type": "string", + "enum": [ + "executing" + ] + }, + { + "type": "string", + "enum": [ + "completed" + ] + }, + { + "type": "string", + "enum": [ + "rejected" + ] + } + ] + } + } + } + } + }, + "Response_approvals.queries.listApprovalsByOrganization": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "organizationId", + "priority", + "resourceId", + "resourceType", + "status" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "approvedBy": { + "type": "string" + }, + "dueDate": { + "type": "number" + }, + "executedAt": { + "type": "number" + }, + "executionError": { + "type": "string" + }, + "messageId": { + "type": "string" + }, + "metadata": {}, + "organizationId": { + "type": "string" + }, + "priority": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low" + ] + }, + { + "type": "string", + "enum": [ + "medium" + ] + }, + { + "type": "string", + "enum": [ + "high" + ] + }, + { + "type": "string", + "enum": [ + "urgent" + ] + } + ] + }, + "resourceId": { + "type": "string" + }, + "resourceType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "conversations" + ] + }, + { + "type": "string", + "enum": [ + "integration_operation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_creation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_run" + ] + }, + { + "type": "string", + "enum": [ + "workflow_update" + ] + }, + { + "type": "string", + "enum": [ + "human_input_request" + ] + }, + { + "type": "string", + "enum": [ + "document_write" + ] + }, + { + "type": "string", + "enum": [ + "location_request" + ] + }, + { + "type": "string", + "enum": [ + "mcp_tool_call" + ] + } + ] + }, + "reviewedAt": { + "type": "number" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "pending" + ] + }, + { + "type": "string", + "enum": [ + "executing" + ] + }, + { + "type": "string", + "enum": [ + "completed" + ] + }, + { + "type": "string", + "enum": [ + "rejected" + ] + } + ] + }, + "stepSlug": { + "type": "string" + }, + "threadId": { + "type": "string" + }, + "wfExecutionId": { + "type": "string" + } + } + } + } + } + }, + "Request_approvals.queries.listActiveApprovalsByOrganization": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "limit": { + "type": "number" + }, + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_approvals.queries.listActiveApprovalsByOrganization": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "organizationId", + "priority", + "resourceId", + "resourceType", + "status" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "approvedBy": { + "type": "string" + }, + "dueDate": { + "type": "number" + }, + "executedAt": { + "type": "number" + }, + "executionError": { + "type": "string" + }, + "messageId": { + "type": "string" + }, + "metadata": {}, + "organizationId": { + "type": "string" + }, + "priority": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low" + ] + }, + { + "type": "string", + "enum": [ + "medium" + ] + }, + { + "type": "string", + "enum": [ + "high" + ] + }, + { + "type": "string", + "enum": [ + "urgent" + ] + } + ] + }, + "resourceId": { + "type": "string" + }, + "resourceType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "conversations" + ] + }, + { + "type": "string", + "enum": [ + "integration_operation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_creation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_run" + ] + }, + { + "type": "string", + "enum": [ + "workflow_update" + ] + }, + { + "type": "string", + "enum": [ + "human_input_request" + ] + }, + { + "type": "string", + "enum": [ + "document_write" + ] + }, + { + "type": "string", + "enum": [ + "location_request" + ] + }, + { + "type": "string", + "enum": [ + "mcp_tool_call" + ] + } + ] + }, + "reviewedAt": { + "type": "number" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "pending" + ] + }, + { + "type": "string", + "enum": [ + "executing" + ] + }, + { + "type": "string", + "enum": [ + "completed" + ] + }, + { + "type": "string", + "enum": [ + "rejected" + ] + } + ] + }, + "stepSlug": { + "type": "string" + }, + "threadId": { + "type": "string" + }, + "wfExecutionId": { + "type": "string" + } + } + } + } + } + }, + "Request_approvals.queries.getPendingIntegrationApprovalsForThread": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "threadId" + ], + "properties": { + "messageId": { + "type": "string" + }, + "threadId": { + "type": "string" + } + } + } + } + }, + "Response_approvals.queries.getPendingIntegrationApprovalsForThread": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "organizationId", + "priority", + "resourceId", + "resourceType", + "status" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "approvedBy": { + "type": "string" + }, + "dueDate": { + "type": "number" + }, + "executedAt": { + "type": "number" + }, + "executionError": { + "type": "string" + }, + "messageId": { + "type": "string" + }, + "metadata": {}, + "organizationId": { + "type": "string" + }, + "priority": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low" + ] + }, + { + "type": "string", + "enum": [ + "medium" + ] + }, + { + "type": "string", + "enum": [ + "high" + ] + }, + { + "type": "string", + "enum": [ + "urgent" + ] + } + ] + }, + "resourceId": { + "type": "string" + }, + "resourceType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "conversations" + ] + }, + { + "type": "string", + "enum": [ + "integration_operation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_creation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_run" + ] + }, + { + "type": "string", + "enum": [ + "workflow_update" + ] + }, + { + "type": "string", + "enum": [ + "human_input_request" + ] + }, + { + "type": "string", + "enum": [ + "document_write" + ] + }, + { + "type": "string", + "enum": [ + "location_request" + ] + }, + { + "type": "string", + "enum": [ + "mcp_tool_call" + ] + } + ] + }, + "reviewedAt": { + "type": "number" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "pending" + ] + }, + { + "type": "string", + "enum": [ + "executing" + ] + }, + { + "type": "string", + "enum": [ + "completed" + ] + }, + { + "type": "string", + "enum": [ + "rejected" + ] + } + ] + }, + "stepSlug": { + "type": "string" + }, + "threadId": { + "type": "string" + }, + "wfExecutionId": { + "type": "string" + } + } + } + } + } + }, + "Request_approvals.queries.getWorkflowCreationApprovalsForThread": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "threadId" + ], + "properties": { + "messageId": { + "type": "string" + }, + "threadId": { + "type": "string" + } + } + } + } + }, + "Response_approvals.queries.getWorkflowCreationApprovalsForThread": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "organizationId", + "priority", + "resourceId", + "resourceType", + "status" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "approvedBy": { + "type": "string" + }, + "dueDate": { + "type": "number" + }, + "executedAt": { + "type": "number" + }, + "executionError": { + "type": "string" + }, + "messageId": { + "type": "string" + }, + "metadata": {}, + "organizationId": { + "type": "string" + }, + "priority": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low" + ] + }, + { + "type": "string", + "enum": [ + "medium" + ] + }, + { + "type": "string", + "enum": [ + "high" + ] + }, + { + "type": "string", + "enum": [ + "urgent" + ] + } + ] + }, + "resourceId": { + "type": "string" + }, + "resourceType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "conversations" + ] + }, + { + "type": "string", + "enum": [ + "integration_operation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_creation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_run" + ] + }, + { + "type": "string", + "enum": [ + "workflow_update" + ] + }, + { + "type": "string", + "enum": [ + "human_input_request" + ] + }, + { + "type": "string", + "enum": [ + "document_write" + ] + }, + { + "type": "string", + "enum": [ + "location_request" + ] + }, + { + "type": "string", + "enum": [ + "mcp_tool_call" + ] + } + ] + }, + "reviewedAt": { + "type": "number" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "pending" + ] + }, + { + "type": "string", + "enum": [ + "executing" + ] + }, + { + "type": "string", + "enum": [ + "completed" + ] + }, + { + "type": "string", + "enum": [ + "rejected" + ] + } + ] + }, + "stepSlug": { + "type": "string" + }, + "threadId": { + "type": "string" + }, + "wfExecutionId": { + "type": "string" + } + } + } + } + } + }, + "Request_approvals.queries.getHumanInputRequestsForThread": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "threadId" + ], + "properties": { + "messageId": { + "type": "string" + }, + "threadId": { + "type": "string" + } + } + } + } + }, + "Response_approvals.queries.getHumanInputRequestsForThread": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "organizationId", + "priority", + "resourceId", + "resourceType", + "status" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "approvedBy": { + "type": "string" + }, + "dueDate": { + "type": "number" + }, + "executedAt": { + "type": "number" + }, + "executionError": { + "type": "string" + }, + "messageId": { + "type": "string" + }, + "metadata": {}, + "organizationId": { + "type": "string" + }, + "priority": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low" + ] + }, + { + "type": "string", + "enum": [ + "medium" + ] + }, + { + "type": "string", + "enum": [ + "high" + ] + }, + { + "type": "string", + "enum": [ + "urgent" + ] + } + ] + }, + "resourceId": { + "type": "string" + }, + "resourceType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "conversations" + ] + }, + { + "type": "string", + "enum": [ + "integration_operation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_creation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_run" + ] + }, + { + "type": "string", + "enum": [ + "workflow_update" + ] + }, + { + "type": "string", + "enum": [ + "human_input_request" + ] + }, + { + "type": "string", + "enum": [ + "document_write" + ] + }, + { + "type": "string", + "enum": [ + "location_request" + ] + }, + { + "type": "string", + "enum": [ + "mcp_tool_call" + ] + } + ] + }, + "reviewedAt": { + "type": "number" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "pending" + ] + }, + { + "type": "string", + "enum": [ + "executing" + ] + }, + { + "type": "string", + "enum": [ + "completed" + ] + }, + { + "type": "string", + "enum": [ + "rejected" + ] + } + ] + }, + "stepSlug": { + "type": "string" + }, + "threadId": { + "type": "string" + }, + "wfExecutionId": { + "type": "string" + } + } + } + } + } + }, + "Request_audit_logs.queries.listAuditLogs": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "cursor": { + "type": "string" + }, + "filter": { + "type": "object", + "properties": { + "actorId": { + "type": "string" + }, + "category": { + "oneOf": [ + { + "type": "string", + "enum": [ + "auth" + ] + }, + { + "type": "string", + "enum": [ + "member" + ] + }, + { + "type": "string", + "enum": [ + "data" + ] + }, + { + "type": "string", + "enum": [ + "integration" + ] + }, + { + "type": "string", + "enum": [ + "workflow" + ] + }, + { + "type": "string", + "enum": [ + "security" + ] + }, + { + "type": "string", + "enum": [ + "admin" + ] + } + ] + }, + "endDate": { + "type": "number" + }, + "resourceId": { + "type": "string" + }, + "resourceType": { + "type": "string" + }, + "search": { + "type": "string" + }, + "startDate": { + "type": "number" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "success" + ] + }, + { + "type": "string", + "enum": [ + "failure" + ] + }, + { + "type": "string", + "enum": [ + "denied" + ] + } + ] + } + } + }, + "limit": { + "type": "number" + }, + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_audit_logs.queries.listAuditLogs": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "logs" + ], + "properties": { + "logs": { + "type": "array", + "items": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "action", + "actorId", + "actorType", + "category", + "organizationId", + "resourceType", + "status", + "timestamp" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string", + "description": "ID from table \"auditLogs\"" + }, + "action": { + "type": "string" + }, + "actorEmail": { + "type": "string" + }, + "actorId": { + "type": "string" + }, + "actorRole": { + "type": "string" + }, + "actorType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "user" + ] + }, + { + "type": "string", + "enum": [ + "system" + ] + }, + { + "type": "string", + "enum": [ + "api" + ] + }, + { + "type": "string", + "enum": [ + "workflow" + ] + } + ] + }, + "category": { + "oneOf": [ + { + "type": "string", + "enum": [ + "auth" + ] + }, + { + "type": "string", + "enum": [ + "member" + ] + }, + { + "type": "string", + "enum": [ + "data" + ] + }, + { + "type": "string", + "enum": [ + "integration" + ] + }, + { + "type": "string", + "enum": [ + "workflow" + ] + }, + { + "type": "string", + "enum": [ + "security" + ] + }, + { + "type": "string", + "enum": [ + "admin" + ] + } + ] + }, + "changedFields": { + "type": "array", + "items": { + "type": "string" + } + }, + "errorMessage": { + "type": "string" + }, + "ipAddress": { + "type": "string" + }, + "metadata": {}, + "newState": {}, + "organizationId": { + "type": "string" + }, + "previousState": {}, + "requestId": { + "type": "string" + }, + "resourceId": { + "type": "string" + }, + "resourceName": { + "type": "string" + }, + "resourceType": { + "type": "string" + }, + "sessionId": { + "type": "string" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "success" + ] + }, + { + "type": "string", + "enum": [ + "failure" + ] + }, + { + "type": "string", + "enum": [ + "denied" + ] + } + ] + }, + "timestamp": { + "type": "number" + }, + "userAgent": { + "type": "string" + } + } + } + }, + "nextCursor": { + "type": "string" + } + } + } + } + }, + "Request_audit_logs.queries.listAuditLogsPaginated": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId", + "paginationOpts" + ], + "properties": { + "category": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "paginationOpts": { + "type": "object", + "required": [ + "cursor", + "numItems" + ], + "properties": { + "cursor": { + "type": "string", + "nullable": true + }, + "endCursor": { + "type": "string", + "nullable": true + }, + "id": { + "type": "number" + }, + "maximumBytesRead": { + "type": "number" + }, + "maximumRowsRead": { + "type": "number" + }, + "numItems": { + "type": "number" + } + } + }, + "resourceType": { + "type": "string" + } + } + } + } + }, + "Response_audit_logs.queries.listAuditLogsPaginated": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_audit_logs.queries.getResourceAuditTrail": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId", + "resourceId", + "resourceType" + ], + "properties": { + "limit": { + "type": "number" + }, + "organizationId": { + "type": "string" + }, + "resourceId": { + "type": "string" + }, + "resourceType": { + "type": "string" + } + } + } + } + }, + "Response_audit_logs.queries.getResourceAuditTrail": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "action", + "actorId", + "actorType", + "category", + "organizationId", + "resourceType", + "status", + "timestamp" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string", + "description": "ID from table \"auditLogs\"" + }, + "action": { + "type": "string" + }, + "actorEmail": { + "type": "string" + }, + "actorId": { + "type": "string" + }, + "actorRole": { + "type": "string" + }, + "actorType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "user" + ] + }, + { + "type": "string", + "enum": [ + "system" + ] + }, + { + "type": "string", + "enum": [ + "api" + ] + }, + { + "type": "string", + "enum": [ + "workflow" + ] + } + ] + }, + "category": { + "oneOf": [ + { + "type": "string", + "enum": [ + "auth" + ] + }, + { + "type": "string", + "enum": [ + "member" + ] + }, + { + "type": "string", + "enum": [ + "data" + ] + }, + { + "type": "string", + "enum": [ + "integration" + ] + }, + { + "type": "string", + "enum": [ + "workflow" + ] + }, + { + "type": "string", + "enum": [ + "security" + ] + }, + { + "type": "string", + "enum": [ + "admin" + ] + } + ] + }, + "changedFields": { + "type": "array", + "items": { + "type": "string" + } + }, + "errorMessage": { + "type": "string" + }, + "ipAddress": { + "type": "string" + }, + "metadata": {}, + "newState": {}, + "organizationId": { + "type": "string" + }, + "previousState": {}, + "requestId": { + "type": "string" + }, + "resourceId": { + "type": "string" + }, + "resourceName": { + "type": "string" + }, + "resourceType": { + "type": "string" + }, + "sessionId": { + "type": "string" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "success" + ] + }, + { + "type": "string", + "enum": [ + "failure" + ] + }, + { + "type": "string", + "enum": [ + "denied" + ] + } + ] + }, + "timestamp": { + "type": "number" + }, + "userAgent": { + "type": "string" + } + } + } + } + } + }, + "Request_audit_logs.queries.getActivitySummary": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "endDate": { + "type": "number" + }, + "organizationId": { + "type": "string" + }, + "startDate": { + "type": "number" + } + } + } + } + }, + "Response_audit_logs.queries.getActivitySummary": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "byCategory", + "byResourceType", + "deniedCount", + "failureCount", + "successCount", + "topActors", + "totalActions" + ], + "properties": { + "byCategory": { + "type": "object" + }, + "byResourceType": { + "type": "object" + }, + "deniedCount": { + "type": "number" + }, + "failureCount": { + "type": "number" + }, + "successCount": { + "type": "number" + }, + "topActors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "actorId", + "count" + ], + "properties": { + "actorEmail": { + "type": "string" + }, + "actorId": { + "type": "string" + }, + "count": { + "type": "number" + } + } + } + }, + "totalActions": { + "type": "number" + } + } + } + } + }, + "Request_branding.mutations.upsertBrandingBindings": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "properties": { + "faviconDarkStorageId": { + "type": "string", + "description": "ID from table \"_storage\"", + "nullable": true + }, + "faviconLightStorageId": { + "type": "string", + "description": "ID from table \"_storage\"", + "nullable": true + }, + "logoStorageId": { + "type": "string", + "description": "ID from table \"_storage\"", + "nullable": true + } + } + } + } + }, + "Response_branding.mutations.upsertBrandingBindings": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_branding.mutations.clearBrandingBindings": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object" + } + } + }, + "Response_branding.mutations.clearBrandingBindings": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_conversations.actions.improveMessage": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "originalMessage" + ], + "properties": { + "instruction": { + "type": "string" + }, + "originalMessage": { + "type": "string" + } + } + } + } + }, + "Response_conversations.actions.improveMessage": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "improvedMessage" + ], + "properties": { + "error": { + "type": "string" + }, + "improvedMessage": { + "type": "string" + } + } + } + } + }, + "Request_conversations.mutations.addMessageToConversation": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "content", + "conversationId", + "isCustomer", + "organizationId", + "sender" + ], + "properties": { + "attachment": { + "type": "object", + "required": [ + "filename", + "url" + ], + "properties": { + "contentType": { + "type": "string" + }, + "filename": { + "type": "string" + }, + "size": { + "type": "number" + }, + "url": { + "type": "string" + } + } + }, + "content": { + "type": "string" + }, + "conversationId": { + "type": "string", + "description": "ID from table \"conversations\"" + }, + "externalMessageId": { + "type": "string" + }, + "isCustomer": { + "type": "boolean" + }, + "organizationId": { + "type": "string" + }, + "sender": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + }, + "Response_conversations.mutations.addMessageToConversation": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "description": "ID from table \"conversations\"" + } + } + }, + "Request_conversations.mutations.bulkArchiveConversations": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "conversationIds" + ], + "properties": { + "conversationIds": { + "type": "array", + "items": { + "type": "string", + "description": "ID from table \"conversations\"" + } + } + } + } + } + }, + "Response_conversations.mutations.bulkArchiveConversations": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "errors", + "failedCount", + "successCount" + ], + "properties": { + "errors": { + "type": "array", + "items": { + "type": "string" + } + }, + "failedCount": { + "type": "number" + }, + "successCount": { + "type": "number" + } + } + } + } + }, + "Request_conversations.mutations.bulkCloseConversations": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "conversationIds" + ], + "properties": { + "conversationIds": { + "type": "array", + "items": { + "type": "string", + "description": "ID from table \"conversations\"" + } + }, + "resolvedBy": { + "type": "string" + } + } + } + } + }, + "Response_conversations.mutations.bulkCloseConversations": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "errors", + "failedCount", + "successCount" + ], + "properties": { + "errors": { + "type": "array", + "items": { + "type": "string" + } + }, + "failedCount": { + "type": "number" + }, + "successCount": { + "type": "number" + } + } + } + } + }, + "Request_conversations.mutations.bulkReopenConversations": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "conversationIds" + ], + "properties": { + "conversationIds": { + "type": "array", + "items": { + "type": "string", + "description": "ID from table \"conversations\"" + } + } + } + } + } + }, + "Response_conversations.mutations.bulkReopenConversations": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "errors", + "failedCount", + "successCount" + ], + "properties": { + "errors": { + "type": "array", + "items": { + "type": "string" + } + }, + "failedCount": { + "type": "number" + }, + "successCount": { + "type": "number" + } + } + } + } + }, + "Request_conversations.mutations.bulkSpamConversations": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "conversationIds" + ], + "properties": { + "conversationIds": { + "type": "array", + "items": { + "type": "string", + "description": "ID from table \"conversations\"" + } + } + } + } + } + }, + "Response_conversations.mutations.bulkSpamConversations": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "errors", + "failedCount", + "successCount" + ], + "properties": { + "errors": { + "type": "array", + "items": { + "type": "string" + } + }, + "failedCount": { + "type": "number" + }, + "successCount": { + "type": "number" + } + } + } + } + }, + "Request_conversations.mutations.bulkUnarchiveConversations": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "conversationIds" + ], + "properties": { + "conversationIds": { + "type": "array", + "items": { + "type": "string", + "description": "ID from table \"conversations\"" + } + } + } + } + } + }, + "Response_conversations.mutations.bulkUnarchiveConversations": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "errors", + "failedCount", + "successCount" + ], + "properties": { + "errors": { + "type": "array", + "items": { + "type": "string" + } + }, + "failedCount": { + "type": "number" + }, + "successCount": { + "type": "number" + } + } + } + } + }, + "Request_conversations.mutations.closeConversation": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "conversationId" + ], + "properties": { + "conversationId": { + "type": "string", + "description": "ID from table \"conversations\"" + }, + "resolvedBy": { + "type": "string" + } + } + } + } + }, + "Response_conversations.mutations.closeConversation": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_conversations.mutations.deleteConversation": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "conversationId" + ], + "properties": { + "conversationId": { + "type": "string", + "description": "ID from table \"conversations\"" + } + } + } + } + }, + "Response_conversations.mutations.deleteConversation": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_conversations.mutations.downloadAttachments": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "messageId" + ], + "properties": { + "messageId": { + "type": "string", + "description": "ID from table \"conversationMessages\"" + } + } + } + } + }, + "Response_conversations.mutations.downloadAttachments": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_conversations.mutations.markConversationAsRead": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "conversationId" + ], + "properties": { + "conversationId": { + "type": "string", + "description": "ID from table \"conversations\"" + } + } + } + } + }, + "Response_conversations.mutations.markConversationAsRead": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_conversations.mutations.markConversationAsSpam": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "conversationId" + ], + "properties": { + "conversationId": { + "type": "string", + "description": "ID from table \"conversations\"" + } + } + } + } + }, + "Response_conversations.mutations.markConversationAsSpam": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_conversations.mutations.reopenConversation": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "conversationId" + ], + "properties": { + "conversationId": { + "type": "string", + "description": "ID from table \"conversations\"" + } + } + } + } + }, + "Response_conversations.mutations.reopenConversation": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_conversations.mutations.sendMessageViaIntegration": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "content", + "conversationId", + "integrationName", + "organizationId", + "subject", + "to" + ], + "properties": { + "attachments": { + "type": "array", + "items": { + "type": "object", + "required": [ + "contentType", + "fileName", + "size", + "storageId" + ], + "properties": { + "contentType": { + "type": "string" + }, + "fileName": { + "type": "string" + }, + "size": { + "type": "number" + }, + "storageId": { + "type": "string", + "description": "ID from table \"_storage\"" + } + } + } + }, + "cc": { + "type": "array", + "items": { + "type": "string" + } + }, + "content": { + "type": "string" + }, + "conversationId": { + "type": "string", + "description": "ID from table \"conversations\"" + }, + "html": { + "type": "string" + }, + "inReplyTo": { + "type": "string" + }, + "integrationName": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "references": { + "type": "array", + "items": { + "type": "string" + } + }, + "subject": { + "type": "string" + }, + "text": { + "type": "string" + }, + "to": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + }, + "Response_conversations.mutations.sendMessageViaIntegration": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "description": "ID from table \"conversationMessages\"" + } + } + }, + "Request_conversations.mutations.updateConversation": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "conversationId" + ], + "properties": { + "conversationId": { + "type": "string", + "description": "ID from table \"conversations\"" + }, + "metadata": {}, + "priority": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low" + ] + }, + { + "type": "string", + "enum": [ + "medium" + ] + }, + { + "type": "string", + "enum": [ + "high" + ] + }, + { + "type": "string", + "enum": [ + "urgent" + ] + } + ] + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "open" + ] + }, + { + "type": "string", + "enum": [ + "closed" + ] + }, + { + "type": "string", + "enum": [ + "spam" + ] + }, + { + "type": "string", + "enum": [ + "archived" + ] + } + ] + }, + "subject": { + "type": "string" + }, + "type": { + "type": "string" + } + } + } + } + }, + "Response_conversations.mutations.updateConversation": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_conversations.queries.approxCountConversationsByStatus": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId", + "status" + ], + "properties": { + "organizationId": { + "type": "string" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "open" + ] + }, + { + "type": "string", + "enum": [ + "closed" + ] + }, + { + "type": "string", + "enum": [ + "spam" + ] + }, + { + "type": "string", + "enum": [ + "archived" + ] + } + ] + } + } + } + } + }, + "Response_conversations.queries.approxCountConversationsByStatus": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "number" + } + } + }, + "Request_conversations.queries.getConversationWithMessages": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "conversationId" + ], + "properties": { + "conversationId": { + "type": "string", + "description": "ID from table \"conversations\"" + } + } + } + } + }, + "Response_conversations.queries.getConversationWithMessages": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "business_id", + "created_at", + "customer", + "customer_id", + "description", + "id", + "message_count", + "messages", + "organizationId", + "title", + "unread_count", + "updated_at" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "business_id": { + "type": "string" + }, + "channel": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "customer": { + "type": "object", + "required": [ + "created_at", + "email", + "id", + "status" + ], + "properties": { + "created_at": { + "type": "string" + }, + "email": { + "type": "string" + }, + "id": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source": { + "type": "string" + }, + "status": { + "type": "string" + } + } + }, + "customerId": { + "type": "string" + }, + "customer_id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "direction": { + "oneOf": [ + { + "type": "string", + "enum": [ + "inbound" + ] + }, + { + "type": "string", + "enum": [ + "outbound" + ] + } + ] + }, + "externalMessageId": { + "type": "string" + }, + "id": { + "type": "string" + }, + "integrationName": { + "type": "string" + }, + "lastMessageAt": { + "type": "number" + }, + "last_message_at": { + "type": "string" + }, + "last_read_at": { + "type": "string" + }, + "message_count": { + "type": "number" + }, + "messages": { + "type": "array", + "items": { + "type": "object", + "required": [ + "content", + "id", + "isCustomer", + "sender", + "status", + "timestamp" + ], + "properties": { + "attachment": { + "type": "object", + "required": [ + "filename", + "url" + ], + "properties": { + "contentType": { + "type": "string" + }, + "filename": { + "type": "string" + }, + "size": { + "type": "number" + }, + "url": { + "type": "string" + } + } + }, + "attachments": { + "type": "array", + "items": { + "type": "object", + "required": [ + "contentType", + "filename", + "id", + "size" + ], + "properties": { + "contentId": { + "type": "string" + }, + "contentType": { + "type": "string" + }, + "filename": { + "type": "string" + }, + "id": { + "type": "string" + }, + "size": { + "type": "number" + }, + "storageId": { + "type": "string" + }, + "url": { + "type": "string" + } + } + } + }, + "content": { + "type": "string" + }, + "id": { + "type": "string" + }, + "isCustomer": { + "type": "boolean" + }, + "sender": { + "type": "string" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "queued" + ] + }, + { + "type": "string", + "enum": [ + "sent" + ] + }, + { + "type": "string", + "enum": [ + "delivered" + ] + }, + { + "type": "string", + "enum": [ + "failed" + ] + } + ] + }, + "timestamp": { + "type": "string" + } + } + } + }, + "metadata": {}, + "organizationId": { + "type": "string" + }, + "pendingApproval": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "organizationId", + "priority", + "resourceId", + "resourceType", + "status" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "approvedBy": { + "type": "string" + }, + "dueDate": { + "type": "number" + }, + "executedAt": { + "type": "number" + }, + "executionError": { + "type": "string" + }, + "messageId": { + "type": "string" + }, + "metadata": {}, + "organizationId": { + "type": "string" + }, + "priority": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low" + ] + }, + { + "type": "string", + "enum": [ + "medium" + ] + }, + { + "type": "string", + "enum": [ + "high" + ] + }, + { + "type": "string", + "enum": [ + "urgent" + ] + } + ] + }, + "resourceId": { + "type": "string" + }, + "resourceType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "conversations" + ] + }, + { + "type": "string", + "enum": [ + "integration_operation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_creation" + ] + }, + { + "type": "string", + "enum": [ + "workflow_run" + ] + }, + { + "type": "string", + "enum": [ + "workflow_update" + ] + }, + { + "type": "string", + "enum": [ + "human_input_request" + ] + }, + { + "type": "string", + "enum": [ + "document_write" + ] + }, + { + "type": "string", + "enum": [ + "location_request" + ] + }, + { + "type": "string", + "enum": [ + "mcp_tool_call" + ] + } + ] + }, + "reviewedAt": { + "type": "number" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "pending" + ] + }, + { + "type": "string", + "enum": [ + "executing" + ] + }, + { + "type": "string", + "enum": [ + "completed" + ] + }, + { + "type": "string", + "enum": [ + "rejected" + ] + } + ] + }, + "stepSlug": { + "type": "string" + }, + "threadId": { + "type": "string" + }, + "wfExecutionId": { + "type": "string" + } + }, + "nullable": true + }, + "priority": { + "type": "string" + }, + "resolved_at": { + "type": "string" + }, + "resolved_by": { + "type": "string" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "open" + ] + }, + { + "type": "string", + "enum": [ + "closed" + ] + }, + { + "type": "string", + "enum": [ + "spam" + ] + }, + { + "type": "string", + "enum": [ + "archived" + ] + } + ] + }, + "subject": { + "type": "string" + }, + "title": { + "type": "string" + }, + "type": { + "type": "string" + }, + "unread_count": { + "type": "number" + }, + "updated_at": { + "type": "string" + } + }, + "nullable": true + } + } + }, + "Request_conversations.queries.listConversations": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_conversations.queries.listConversations": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_conversations.queries.listConversationsPaginated": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId", + "paginationOpts" + ], + "properties": { + "channel": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "paginationOpts": { + "type": "object", + "required": [ + "cursor", + "numItems" + ], + "properties": { + "cursor": { + "type": "string", + "nullable": true + }, + "endCursor": { + "type": "string", + "nullable": true + }, + "id": { + "type": "number" + }, + "maximumBytesRead": { + "type": "number" + }, + "maximumRowsRead": { + "type": "number" + }, + "numItems": { + "type": "number" + } + } + }, + "priority": { + "type": "string" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "open" + ] + }, + { + "type": "string", + "enum": [ + "closed" + ] + }, + { + "type": "string", + "enum": [ + "spam" + ] + }, + { + "type": "string", + "enum": [ + "archived" + ] + } + ] + } + } + } + } + }, + "Response_conversations.queries.listConversationsPaginated": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_customers.mutations.bulkCreateCustomers": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "customers", + "organizationId" + ], + "properties": { + "customers": { + "type": "array", + "items": { + "type": "object", + "required": [ + "email", + "source", + "status" + ], + "properties": { + "address": { + "type": "object", + "properties": { + "city": { + "type": "string" + }, + "country": { + "type": "string" + }, + "postalCode": { + "type": "string" + }, + "state": { + "type": "string" + }, + "street": { + "type": "string" + } + } + }, + "email": { + "type": "string" + }, + "externalId": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "metadata": {}, + "name": { + "type": "string" + }, + "source": { + "oneOf": [ + { + "type": "string", + "enum": [ + "manual_import" + ] + }, + { + "type": "string", + "enum": [ + "file_upload" + ] + }, + { + "type": "string", + "enum": [ + "api_import" + ] + }, + { + "type": "string", + "enum": [ + "shopify" + ] + }, + { + "type": "string", + "enum": [ + "woocommerce" + ] + }, + { + "type": "string", + "enum": [ + "magento" + ] + }, + { + "type": "string", + "enum": [ + "bigcommerce" + ] + }, + { + "type": "string", + "enum": [ + "prestashop" + ] + }, + { + "type": "string", + "enum": [ + "circuly" + ] + }, + { + "type": "string", + "enum": [ + "chargebee" + ] + }, + { + "type": "string", + "enum": [ + "stripe" + ] + }, + { + "type": "string", + "enum": [ + "recurly" + ] + }, + { + "type": "string", + "enum": [ + "salesforce" + ] + }, + { + "type": "string", + "enum": [ + "hubspot" + ] + }, + { + "type": "string", + "enum": [ + "pipedrive" + ] + }, + { + "type": "string", + "enum": [ + "zoho" + ] + }, + { + "type": "string", + "enum": [ + "sap" + ] + }, + { + "type": "string", + "enum": [ + "protel" + ] + }, + { + "type": "string", + "enum": [ + "oracle" + ] + }, + { + "type": "string", + "enum": [ + "netsuite" + ] + }, + { + "type": "string", + "enum": [ + "mailchimp" + ] + }, + { + "type": "string", + "enum": [ + "klaviyo" + ] + }, + { + "type": "string", + "enum": [ + "sendgrid" + ] + }, + { + "type": "string", + "enum": [ + "webhook" + ] + }, + { + "type": "string", + "enum": [ + "zapier" + ] + }, + { + "type": "string", + "enum": [ + "custom" + ] + } + ] + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "active" + ] + }, + { + "type": "string", + "enum": [ + "churned" + ] + }, + { + "type": "string", + "enum": [ + "potential" + ] + } + ] + } + } + } + }, + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_customers.mutations.bulkCreateCustomers": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "errors", + "failed", + "success" + ], + "properties": { + "errors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "customer", + "error", + "errorCode", + "index" + ], + "properties": { + "customer": {}, + "error": { + "type": "string" + }, + "errorCode": { + "type": "string" + }, + "index": { + "type": "number" + } + } + } + }, + "failed": { + "type": "number" + }, + "success": { + "type": "number" + } + } + } + } + }, + "Request_customers.mutations.deleteCustomer": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "customerId" + ], + "properties": { + "customerId": { + "type": "string", + "description": "ID from table \"customers\"" + } + } + } + } + }, + "Response_customers.mutations.deleteCustomer": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_customers.mutations.updateCustomer": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "customerId" + ], + "properties": { + "address": { + "type": "object", + "properties": { + "city": { + "type": "string" + }, + "country": { + "type": "string" + }, + "postalCode": { + "type": "string" + }, + "state": { + "type": "string" + }, + "street": { + "type": "string" + } + } + }, + "customerId": { + "type": "string", + "description": "ID from table \"customers\"" + }, + "email": { + "type": "string" + }, + "externalId": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "metadata": {}, + "name": { + "type": "string" + }, + "source": { + "oneOf": [ + { + "type": "string", + "enum": [ + "manual_import" + ] + }, + { + "type": "string", + "enum": [ + "file_upload" + ] + }, + { + "type": "string", + "enum": [ + "api_import" + ] + }, + { + "type": "string", + "enum": [ + "shopify" + ] + }, + { + "type": "string", + "enum": [ + "woocommerce" + ] + }, + { + "type": "string", + "enum": [ + "magento" + ] + }, + { + "type": "string", + "enum": [ + "bigcommerce" + ] + }, + { + "type": "string", + "enum": [ + "prestashop" + ] + }, + { + "type": "string", + "enum": [ + "circuly" + ] + }, + { + "type": "string", + "enum": [ + "chargebee" + ] + }, + { + "type": "string", + "enum": [ + "stripe" + ] + }, + { + "type": "string", + "enum": [ + "recurly" + ] + }, + { + "type": "string", + "enum": [ + "salesforce" + ] + }, + { + "type": "string", + "enum": [ + "hubspot" + ] + }, + { + "type": "string", + "enum": [ + "pipedrive" + ] + }, + { + "type": "string", + "enum": [ + "zoho" + ] + }, + { + "type": "string", + "enum": [ + "sap" + ] + }, + { + "type": "string", + "enum": [ + "protel" + ] + }, + { + "type": "string", + "enum": [ + "oracle" + ] + }, + { + "type": "string", + "enum": [ + "netsuite" + ] + }, + { + "type": "string", + "enum": [ + "mailchimp" + ] + }, + { + "type": "string", + "enum": [ + "klaviyo" + ] + }, + { + "type": "string", + "enum": [ + "sendgrid" + ] + }, + { + "type": "string", + "enum": [ + "webhook" + ] + }, + { + "type": "string", + "enum": [ + "zapier" + ] + }, + { + "type": "string", + "enum": [ + "custom" + ] + } + ] + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "active" + ] + }, + { + "type": "string", + "enum": [ + "churned" + ] + }, + { + "type": "string", + "enum": [ + "potential" + ] + } + ] + } + } + } + } + }, + "Response_customers.mutations.updateCustomer": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "organizationId", + "source" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "address": { + "type": "object", + "properties": { + "city": { + "type": "string" + }, + "country": { + "type": "string" + }, + "postalCode": { + "type": "string" + }, + "state": { + "type": "string" + }, + "street": { + "type": "string" + } + } + }, + "email": { + "type": "string" + }, + "externalId": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ] + }, + "locale": { + "type": "string" + }, + "metadata": {}, + "name": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "source": { + "oneOf": [ + { + "type": "string", + "enum": [ + "manual_import" + ] + }, + { + "type": "string", + "enum": [ + "file_upload" + ] + }, + { + "type": "string", + "enum": [ + "api_import" + ] + }, + { + "type": "string", + "enum": [ + "shopify" + ] + }, + { + "type": "string", + "enum": [ + "woocommerce" + ] + }, + { + "type": "string", + "enum": [ + "magento" + ] + }, + { + "type": "string", + "enum": [ + "bigcommerce" + ] + }, + { + "type": "string", + "enum": [ + "prestashop" + ] + }, + { + "type": "string", + "enum": [ + "circuly" + ] + }, + { + "type": "string", + "enum": [ + "chargebee" + ] + }, + { + "type": "string", + "enum": [ + "stripe" + ] + }, + { + "type": "string", + "enum": [ + "recurly" + ] + }, + { + "type": "string", + "enum": [ + "salesforce" + ] + }, + { + "type": "string", + "enum": [ + "hubspot" + ] + }, + { + "type": "string", + "enum": [ + "pipedrive" + ] + }, + { + "type": "string", + "enum": [ + "zoho" + ] + }, + { + "type": "string", + "enum": [ + "sap" + ] + }, + { + "type": "string", + "enum": [ + "protel" + ] + }, + { + "type": "string", + "enum": [ + "oracle" + ] + }, + { + "type": "string", + "enum": [ + "netsuite" + ] + }, + { + "type": "string", + "enum": [ + "mailchimp" + ] + }, + { + "type": "string", + "enum": [ + "klaviyo" + ] + }, + { + "type": "string", + "enum": [ + "sendgrid" + ] + }, + { + "type": "string", + "enum": [ + "webhook" + ] + }, + { + "type": "string", + "enum": [ + "zapier" + ] + }, + { + "type": "string", + "enum": [ + "custom" + ] + } + ] + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "active" + ] + }, + { + "type": "string", + "enum": [ + "churned" + ] + }, + { + "type": "string", + "enum": [ + "potential" + ] + } + ] + } + }, + "nullable": true + } + } + }, + "Request_customers.queries.approxCountCustomers": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_customers.queries.approxCountCustomers": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "number" + } + } + }, + "Request_customers.queries.listCustomers": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_customers.queries.listCustomers": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "organizationId", + "source" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "address": { + "type": "object", + "properties": { + "city": { + "type": "string" + }, + "country": { + "type": "string" + }, + "postalCode": { + "type": "string" + }, + "state": { + "type": "string" + }, + "street": { + "type": "string" + } + } + }, + "email": { + "type": "string" + }, + "externalId": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ] + }, + "locale": { + "type": "string" + }, + "metadata": {}, + "name": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "source": { + "oneOf": [ + { + "type": "string", + "enum": [ + "manual_import" + ] + }, + { + "type": "string", + "enum": [ + "file_upload" + ] + }, + { + "type": "string", + "enum": [ + "api_import" + ] + }, + { + "type": "string", + "enum": [ + "shopify" + ] + }, + { + "type": "string", + "enum": [ + "woocommerce" + ] + }, + { + "type": "string", + "enum": [ + "magento" + ] + }, + { + "type": "string", + "enum": [ + "bigcommerce" + ] + }, + { + "type": "string", + "enum": [ + "prestashop" + ] + }, + { + "type": "string", + "enum": [ + "circuly" + ] + }, + { + "type": "string", + "enum": [ + "chargebee" + ] + }, + { + "type": "string", + "enum": [ + "stripe" + ] + }, + { + "type": "string", + "enum": [ + "recurly" + ] + }, + { + "type": "string", + "enum": [ + "salesforce" + ] + }, + { + "type": "string", + "enum": [ + "hubspot" + ] + }, + { + "type": "string", + "enum": [ + "pipedrive" + ] + }, + { + "type": "string", + "enum": [ + "zoho" + ] + }, + { + "type": "string", + "enum": [ + "sap" + ] + }, + { + "type": "string", + "enum": [ + "protel" + ] + }, + { + "type": "string", + "enum": [ + "oracle" + ] + }, + { + "type": "string", + "enum": [ + "netsuite" + ] + }, + { + "type": "string", + "enum": [ + "mailchimp" + ] + }, + { + "type": "string", + "enum": [ + "klaviyo" + ] + }, + { + "type": "string", + "enum": [ + "sendgrid" + ] + }, + { + "type": "string", + "enum": [ + "webhook" + ] + }, + { + "type": "string", + "enum": [ + "zapier" + ] + }, + { + "type": "string", + "enum": [ + "custom" + ] + } + ] + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "active" + ] + }, + { + "type": "string", + "enum": [ + "churned" + ] + }, + { + "type": "string", + "enum": [ + "potential" + ] + } + ] + } + } + } + } + } + }, + "Request_customers.queries.listCustomersPaginated": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId", + "paginationOpts" + ], + "properties": { + "locale": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "paginationOpts": { + "type": "object", + "required": [ + "cursor", + "numItems" + ], + "properties": { + "cursor": { + "type": "string", + "nullable": true + }, + "endCursor": { + "type": "string", + "nullable": true + }, + "id": { + "type": "number" + }, + "maximumBytesRead": { + "type": "number" + }, + "maximumRowsRead": { + "type": "number" + }, + "numItems": { + "type": "number" + } + } + }, + "source": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + }, + "Response_customers.queries.listCustomersPaginated": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_documents.actions.retryRagIndexing": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "documentId" + ], + "properties": { + "documentId": { + "type": "string", + "description": "ID from table \"documents\"" + } + } + } + } + }, + "Response_documents.actions.retryRagIndexing": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "success" + ], + "properties": { + "error": { + "type": "string" + }, + "success": { + "type": "boolean" + } + } + } + } + }, + "Request_documents.mutations.updateDocument": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "documentId" + ], + "properties": { + "content": { + "type": "string" + }, + "documentId": { + "type": "string", + "description": "ID from table \"documents\"" + }, + "extension": { + "type": "string" + }, + "externalItemId": { + "type": "string" + }, + "fileId": { + "type": "string", + "description": "ID from table \"_storage\"" + }, + "metadata": {}, + "mimeType": { + "type": "string" + }, + "sourceProvider": { + "oneOf": [ + { + "type": "string", + "enum": [ + "onedrive" + ] + }, + { + "type": "string", + "enum": [ + "upload" + ] + }, + { + "type": "string", + "enum": [ + "sharepoint" + ] + }, + { + "type": "string", + "enum": [ + "agent" + ] + } + ] + }, + "teamIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "title": { + "type": "string" + } + } + } + } + }, + "Response_documents.mutations.updateDocument": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_documents.mutations.deleteDocument": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "documentId" + ], + "properties": { + "documentId": { + "type": "string", + "description": "ID from table \"documents\"" + } + } + } + } + }, + "Response_documents.mutations.deleteDocument": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_documents.mutations.createDocumentFromUpload": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "fileId", + "fileName", + "organizationId" + ], + "properties": { + "contentHash": { + "type": "string" + }, + "contentType": { + "type": "string" + }, + "fileId": { + "type": "string", + "description": "ID from table \"_storage\"" + }, + "fileName": { + "type": "string" + }, + "fileSize": { + "type": "number" + }, + "folderId": { + "type": "string", + "description": "ID from table \"folders\"" + }, + "metadata": {}, + "organizationId": { + "type": "string" + }, + "teamId": { + "type": "string" + } + } + } + } + }, + "Response_documents.mutations.createDocumentFromUpload": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "documentId", + "success" + ], + "properties": { + "documentId": { + "type": "string", + "description": "ID from table \"documents\"" + }, + "success": { + "type": "boolean" + } + } + } + } + }, + "Request_documents.queries.approxCountDocuments": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_documents.queries.approxCountDocuments": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "number" + } + } + }, + "Request_documents.queries.listDocuments": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_documents.queries.listDocuments": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_documents.queries.listDocumentsPaginated": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId", + "paginationOpts" + ], + "properties": { + "extension": { + "type": "string" + }, + "folderId": { + "type": "string", + "description": "ID from table \"folders\"" + }, + "organizationId": { + "type": "string" + }, + "paginationOpts": { + "type": "object", + "required": [ + "cursor", + "numItems" + ], + "properties": { + "cursor": { + "type": "string", + "nullable": true + }, + "endCursor": { + "type": "string", + "nullable": true + }, + "id": { + "type": "number" + }, + "maximumBytesRead": { + "type": "number" + }, + "maximumRowsRead": { + "type": "number" + }, + "numItems": { + "type": "number" + } + } + }, + "sourceProvider": { + "type": "string" + } + } + } + } + }, + "Response_documents.queries.listDocumentsPaginated": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_file_metadata.mutations.saveFileMetadata": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "contentType", + "fileName", + "organizationId", + "size", + "storageId" + ], + "properties": { + "contentType": { + "type": "string" + }, + "documentId": { + "type": "string", + "description": "ID from table \"documents\"" + }, + "fileName": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "size": { + "type": "number" + }, + "storageId": { + "type": "string", + "description": "ID from table \"_storage\"" + } + } + } + } + }, + "Response_file_metadata.mutations.saveFileMetadata": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_files.mutations.generateUploadUrl": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object" + } + } + }, + "Response_files.mutations.generateUploadUrl": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string" + } + } + }, + "Request_files.queries.getFileUrl": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "fileId" + ], + "properties": { + "fileId": { + "type": "string", + "description": "ID from table \"_storage\"" + } + } + } + } + }, + "Response_files.queries.getFileUrl": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_files.queries.getFileUrls": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "fileIds" + ], + "properties": { + "fileIds": { + "type": "array", + "items": { + "type": "string", + "description": "ID from table \"_storage\"" + } + } + } + } + } + }, + "Response_files.queries.getFileUrls": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "fileId", + "url" + ], + "properties": { + "fileId": { + "type": "string", + "description": "ID from table \"_storage\"" + }, + "url": { + "type": "string", + "nullable": true + } + } + } + } + } + }, + "Request_folders.mutations.createFolder": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "name", + "organizationId" + ], + "properties": { + "name": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "parentId": { + "type": "string", + "description": "ID from table \"folders\"" + }, + "teamId": { + "type": "string" + } + } + } + } + }, + "Response_folders.mutations.createFolder": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "description": "ID from table \"folders\"" + } + } + }, + "Request_folders.mutations.deleteFolder": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "folderId" + ], + "properties": { + "folderId": { + "type": "string", + "description": "ID from table \"folders\"" + } + } + } + } + }, + "Response_folders.mutations.deleteFolder": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_folders.mutations.renameFolder": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "folderId", + "name" + ], + "properties": { + "folderId": { + "type": "string", + "description": "ID from table \"folders\"" + }, + "name": { + "type": "string" + } + } + } + } + }, + "Response_folders.mutations.renameFolder": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_folders.mutations.updateFolderTeams": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "folderId", + "teamIds" + ], + "properties": { + "folderId": { + "type": "string", + "description": "ID from table \"folders\"" + }, + "teamIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + }, + "Response_folders.mutations.updateFolderTeams": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_folders.queries.getFolder": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "folderId" + ], + "properties": { + "folderId": { + "type": "string", + "description": "ID from table \"folders\"" + } + } + } + } + }, + "Response_folders.queries.getFolder": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_folders.queries.getFolderBreadcrumb": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "folderId" + ], + "properties": { + "folderId": { + "type": "string", + "description": "ID from table \"folders\"" + } + } + } + } + }, + "Response_folders.queries.getFolderBreadcrumb": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_folders.queries.listFolders": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { + "type": "string" + }, + "parentId": { + "type": "string", + "description": "ID from table \"folders\"" + } + } + } + } + }, + "Response_folders.queries.listFolders": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_integrations.actions.generateOAuth2Url": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "credentialId", + "organizationId" + ], + "properties": { + "credentialId": { + "type": "string", + "description": "ID from table \"integrationCredentials\"" + }, + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_integrations.actions.generateOAuth2Url": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string" + } + } + }, + "Request_integrations.actions.saveOAuth2ClientCredentials": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "authorizationUrl", + "clientId", + "clientSecret", + "credentialId", + "tokenUrl" + ], + "properties": { + "authorizationUrl": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "clientSecret": { + "type": "string" + }, + "credentialId": { + "type": "string", + "description": "ID from table \"integrationCredentials\"" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "tokenUrl": { + "type": "string" + } + } + } + } + }, + "Response_integrations.actions.saveOAuth2ClientCredentials": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_integrations.actions.testConnection": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "credentialId" + ], + "properties": { + "apiKeyAuth": { + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": { + "type": "string" + }, + "keyPrefix": { + "type": "string" + } + } + }, + "basicAuth": { + "type": "object", + "required": [ + "password", + "username" + ], + "properties": { + "password": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "connectionConfig": {}, + "credentialId": { + "type": "string", + "description": "ID from table \"integrationCredentials\"" + }, + "oauth2Auth": { + "type": "object", + "required": [ + "accessToken" + ], + "properties": { + "accessToken": { + "type": "string" + }, + "refreshToken": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "tokenExpiry": { + "type": "number" + } + } + }, + "sqlConnectionConfig": { + "type": "object", + "required": [ + "engine" + ], + "properties": { + "database": { + "type": "string" + }, + "engine": { + "oneOf": [ + { + "type": "string", + "enum": [ + "mssql" + ] + }, + { + "type": "string", + "enum": [ + "postgres" + ] + }, + { + "type": "string", + "enum": [ + "mysql" + ] + } + ] + }, + "options": { + "type": "object", + "properties": { + "connectionTimeout": { + "type": "number" + }, + "encrypt": { + "type": "boolean" + }, + "requestTimeout": { + "type": "number" + }, + "trustServerCertificate": { + "type": "boolean" + } + } + }, + "port": { + "type": "number" + }, + "readOnly": { + "type": "boolean" + }, + "security": { + "type": "object", + "properties": { + "maxConnectionPoolSize": { + "type": "number" + }, + "maxResultRows": { + "type": "number" + }, + "queryTimeoutMs": { + "type": "number" + } + } + }, + "server": { + "type": "string" + } + } + } + } + } + } + }, + "Response_integrations.actions.testConnection": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "message", + "success" + ], + "properties": { + "message": { + "type": "string" + }, + "success": { + "type": "boolean" + } + } + } + } + }, + "Request_integrations.actions.saveCredentials": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "credentialId" + ], + "properties": { + "apiKeyAuth": { + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": { + "type": "string" + }, + "keyPrefix": { + "type": "string" + } + } + }, + "authMethod": { + "oneOf": [ + { + "type": "string", + "enum": [ + "api_key" + ] + }, + { + "type": "string", + "enum": [ + "bearer_token" + ] + }, + { + "type": "string", + "enum": [ + "basic_auth" + ] + }, + { + "type": "string", + "enum": [ + "oauth2" + ] + } + ] + }, + "basicAuth": { + "type": "object", + "required": [ + "password", + "username" + ], + "properties": { + "password": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "capabilities": { + "type": "object", + "properties": { + "canPush": { + "type": "boolean" + }, + "canSync": { + "type": "boolean" + }, + "canWebhook": { + "type": "boolean" + }, + "syncFrequency": { + "type": "string" + } + } + }, + "connectionConfig": {}, + "credentialId": { + "type": "string", + "description": "ID from table \"integrationCredentials\"" + }, + "iconStorageId": { + "type": "string", + "description": "ID from table \"_storage\"" + }, + "isActive": { + "type": "boolean" + }, + "metadata": {}, + "oauth2Auth": { + "type": "object", + "required": [ + "accessToken" + ], + "properties": { + "accessToken": { + "type": "string" + }, + "refreshToken": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "tokenExpiry": { + "type": "number" + } + } + }, + "sqlConnectionConfig": { + "type": "object", + "required": [ + "engine" + ], + "properties": { + "database": { + "type": "string" + }, + "engine": { + "oneOf": [ + { + "type": "string", + "enum": [ + "mssql" + ] + }, + { + "type": "string", + "enum": [ + "postgres" + ] + }, + { + "type": "string", + "enum": [ + "mysql" + ] + } + ] + }, + "options": { + "type": "object", + "properties": { + "connectionTimeout": { + "type": "number" + }, + "encrypt": { + "type": "boolean" + }, + "requestTimeout": { + "type": "number" + }, + "trustServerCertificate": { + "type": "boolean" + } + } + }, + "port": { + "type": "number" + }, + "readOnly": { + "type": "boolean" + }, + "security": { + "type": "object", + "properties": { + "maxConnectionPoolSize": { + "type": "number" + }, + "maxResultRows": { + "type": "number" + }, + "queryTimeoutMs": { + "type": "number" + } + } + }, + "server": { + "type": "string" + } + } + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "active" + ] + }, + { + "type": "string", + "enum": [ + "inactive" + ] + }, + { + "type": "string", + "enum": [ + "error" + ] + }, + { + "type": "string", + "enum": [ + "testing" + ] + } + ] + } + } + } + } + }, + "Response_integrations.actions.saveCredentials": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_integrations.mutations.updateIcon": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "integrationId" + ], + "properties": { + "iconStorageId": { + "type": "string", + "description": "ID from table \"_storage\"" + }, + "integrationId": { + "type": "string", + "description": "ID from table \"integrations\"" + } + } + } + } + }, + "Response_integrations.mutations.updateIcon": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_integrations.mutations.deleteIntegration": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "integrationId" + ], + "properties": { + "integrationId": { + "type": "string", + "description": "ID from table \"integrations\"" + } + } + } + } + }, + "Response_integrations.mutations.deleteIntegration": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_integrations.queries.get": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "integrationId" + ], + "properties": { + "integrationId": { + "type": "string", + "description": "ID from table \"integrations\"" + } + } + } + } + }, + "Response_integrations.queries.get": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "authMethod", + "isActive", + "name", + "organizationId", + "status", + "title" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "apiKeyAuth": { + "type": "object", + "required": [ + "keyEncrypted" + ], + "properties": { + "keyEncrypted": { + "type": "string" + }, + "keyPrefix": { + "type": "string" + } + } + }, + "authMethod": { + "oneOf": [ + { + "type": "string", + "enum": [ + "api_key" + ] + }, + { + "type": "string", + "enum": [ + "bearer_token" + ] + }, + { + "type": "string", + "enum": [ + "basic_auth" + ] + }, + { + "type": "string", + "enum": [ + "oauth2" + ] + } + ] + }, + "basicAuth": { + "type": "object", + "required": [ + "passwordEncrypted", + "username" + ], + "properties": { + "passwordEncrypted": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "capabilities": { + "type": "object", + "properties": { + "canPush": { + "type": "boolean" + }, + "canSync": { + "type": "boolean" + }, + "canWebhook": { + "type": "boolean" + }, + "syncFrequency": { + "type": "string" + } + } + }, + "connectionConfig": {}, + "connector": { + "type": "object", + "required": [ + "code", + "operations", + "secretBindings", + "version" + ], + "properties": { + "allowedHosts": { + "type": "array", + "items": { + "type": "string" + } + }, + "code": { + "type": "string" + }, + "operations": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "operationType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "read" + ] + }, + { + "type": "string", + "enum": [ + "write" + ] + } + ] + }, + "parametersSchema": {}, + "requiredScopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "requiresApproval": { + "type": "boolean" + }, + "title": { + "type": "string" + } + } + } + }, + "secretBindings": { + "type": "array", + "items": { + "type": "string" + } + }, + "timeoutMs": { + "type": "number" + }, + "version": { + "type": "number" + } + } + }, + "description": { + "type": "string" + }, + "errorMessage": { + "type": "string" + }, + "iconStorageId": { + "type": "string", + "description": "ID from table \"_storage\"" + }, + "iconUrl": { + "type": "string", + "nullable": true + }, + "isActive": { + "type": "boolean" + }, + "lastErrorAt": { + "type": "number" + }, + "lastSuccessAt": { + "type": "number" + }, + "lastSyncedAt": { + "type": "number" + }, + "lastTestedAt": { + "type": "number" + }, + "metadata": {}, + "name": { + "type": "string" + }, + "oauth2Auth": { + "type": "object", + "required": [ + "accessTokenEncrypted" + ], + "properties": { + "accessTokenEncrypted": { + "type": "string" + }, + "refreshTokenEncrypted": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "tokenExpiry": { + "type": "number" + } + } + }, + "oauth2Config": { + "type": "object", + "required": [ + "authorizationUrl", + "tokenUrl" + ], + "properties": { + "authorizationUrl": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "clientSecretEncrypted": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "tokenUrl": { + "type": "string" + } + } + }, + "organizationId": { + "type": "string" + }, + "sqlConnectionConfig": { + "type": "object", + "required": [ + "engine" + ], + "properties": { + "database": { + "type": "string" + }, + "engine": { + "oneOf": [ + { + "type": "string", + "enum": [ + "mssql" + ] + }, + { + "type": "string", + "enum": [ + "postgres" + ] + }, + { + "type": "string", + "enum": [ + "mysql" + ] + } + ] + }, + "options": { + "type": "object", + "properties": { + "connectionTimeout": { + "type": "number" + }, + "encrypt": { + "type": "boolean" + }, + "requestTimeout": { + "type": "number" + }, + "trustServerCertificate": { + "type": "boolean" + } + } + }, + "port": { + "type": "number" + }, + "readOnly": { + "type": "boolean" + }, + "security": { + "type": "object", + "properties": { + "maxConnectionPoolSize": { + "type": "number" + }, + "maxResultRows": { + "type": "number" + }, + "queryTimeoutMs": { + "type": "number" + } + } + }, + "server": { + "type": "string" + } + } + }, + "sqlOperations": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "query" + ], + "properties": { + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "operationType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "read" + ] + }, + { + "type": "string", + "enum": [ + "write" + ] + } + ] + }, + "parametersSchema": {}, + "query": { + "type": "string" + }, + "requiredScopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "requiresApproval": { + "type": "boolean" + }, + "title": { + "type": "string" + } + } + } + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "active" + ] + }, + { + "type": "string", + "enum": [ + "inactive" + ] + }, + { + "type": "string", + "enum": [ + "error" + ] + }, + { + "type": "string", + "enum": [ + "testing" + ] + } + ] + }, + "supportedAuthMethods": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string", + "enum": [ + "api_key" + ] + }, + { + "type": "string", + "enum": [ + "bearer_token" + ] + }, + { + "type": "string", + "enum": [ + "basic_auth" + ] + }, + { + "type": "string", + "enum": [ + "oauth2" + ] + } + ] + } + }, + "syncStats": { + "type": "object", + "properties": { + "failedSyncCount": { + "type": "number" + }, + "lastSyncCount": { + "type": "number" + }, + "totalRecords": { + "type": "number" + } + } + }, + "title": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "rest_api" + ] + }, + { + "type": "string", + "enum": [ + "sql" + ] + } + ] + } + }, + "nullable": true + } + } + }, + "Request_integrations.queries.getByName": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "name", + "organizationId" + ], + "properties": { + "name": { + "type": "string" + }, + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_integrations.queries.getByName": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "authMethod", + "isActive", + "name", + "organizationId", + "status", + "title" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "apiKeyAuth": { + "type": "object", + "required": [ + "keyEncrypted" + ], + "properties": { + "keyEncrypted": { + "type": "string" + }, + "keyPrefix": { + "type": "string" + } + } + }, + "authMethod": { + "oneOf": [ + { + "type": "string", + "enum": [ + "api_key" + ] + }, + { + "type": "string", + "enum": [ + "bearer_token" + ] + }, + { + "type": "string", + "enum": [ + "basic_auth" + ] + }, + { + "type": "string", + "enum": [ + "oauth2" + ] + } + ] + }, + "basicAuth": { + "type": "object", + "required": [ + "passwordEncrypted", + "username" + ], + "properties": { + "passwordEncrypted": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "capabilities": { + "type": "object", + "properties": { + "canPush": { + "type": "boolean" + }, + "canSync": { + "type": "boolean" + }, + "canWebhook": { + "type": "boolean" + }, + "syncFrequency": { + "type": "string" + } + } + }, + "connectionConfig": {}, + "connector": { + "type": "object", + "required": [ + "code", + "operations", + "secretBindings", + "version" + ], + "properties": { + "allowedHosts": { + "type": "array", + "items": { + "type": "string" + } + }, + "code": { + "type": "string" + }, + "operations": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "operationType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "read" + ] + }, + { + "type": "string", + "enum": [ + "write" + ] + } + ] + }, + "parametersSchema": {}, + "requiredScopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "requiresApproval": { + "type": "boolean" + }, + "title": { + "type": "string" + } + } + } + }, + "secretBindings": { + "type": "array", + "items": { + "type": "string" + } + }, + "timeoutMs": { + "type": "number" + }, + "version": { + "type": "number" + } + } + }, + "description": { + "type": "string" + }, + "errorMessage": { + "type": "string" + }, + "iconStorageId": { + "type": "string", + "description": "ID from table \"_storage\"" + }, + "iconUrl": { + "type": "string", + "nullable": true + }, + "isActive": { + "type": "boolean" + }, + "lastErrorAt": { + "type": "number" + }, + "lastSuccessAt": { + "type": "number" + }, + "lastSyncedAt": { + "type": "number" + }, + "lastTestedAt": { + "type": "number" + }, + "metadata": {}, + "name": { + "type": "string" + }, + "oauth2Auth": { + "type": "object", + "required": [ + "accessTokenEncrypted" + ], + "properties": { + "accessTokenEncrypted": { + "type": "string" + }, + "refreshTokenEncrypted": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "tokenExpiry": { + "type": "number" + } + } + }, + "oauth2Config": { + "type": "object", + "required": [ + "authorizationUrl", + "tokenUrl" + ], + "properties": { + "authorizationUrl": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "clientSecretEncrypted": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "tokenUrl": { + "type": "string" + } + } + }, + "organizationId": { + "type": "string" + }, + "sqlConnectionConfig": { + "type": "object", + "required": [ + "engine" + ], + "properties": { + "database": { + "type": "string" + }, + "engine": { + "oneOf": [ + { + "type": "string", + "enum": [ + "mssql" + ] + }, + { + "type": "string", + "enum": [ + "postgres" + ] + }, + { + "type": "string", + "enum": [ + "mysql" + ] + } + ] + }, + "options": { + "type": "object", + "properties": { + "connectionTimeout": { + "type": "number" + }, + "encrypt": { + "type": "boolean" + }, + "requestTimeout": { + "type": "number" + }, + "trustServerCertificate": { + "type": "boolean" + } + } + }, + "port": { + "type": "number" + }, + "readOnly": { + "type": "boolean" + }, + "security": { + "type": "object", + "properties": { + "maxConnectionPoolSize": { + "type": "number" + }, + "maxResultRows": { + "type": "number" + }, + "queryTimeoutMs": { + "type": "number" + } + } + }, + "server": { + "type": "string" + } + } + }, + "sqlOperations": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "query" + ], + "properties": { + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "operationType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "read" + ] + }, + { + "type": "string", + "enum": [ + "write" + ] + } + ] + }, + "parametersSchema": {}, + "query": { + "type": "string" + }, + "requiredScopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "requiresApproval": { + "type": "boolean" + }, + "title": { + "type": "string" + } + } + } + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "active" + ] + }, + { + "type": "string", + "enum": [ + "inactive" + ] + }, + { + "type": "string", + "enum": [ + "error" + ] + }, + { + "type": "string", + "enum": [ + "testing" + ] + } + ] + }, + "supportedAuthMethods": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string", + "enum": [ + "api_key" + ] + }, + { + "type": "string", + "enum": [ + "bearer_token" + ] + }, + { + "type": "string", + "enum": [ + "basic_auth" + ] + }, + { + "type": "string", + "enum": [ + "oauth2" + ] + } + ] + } + }, + "syncStats": { + "type": "object", + "properties": { + "failedSyncCount": { + "type": "number" + }, + "lastSyncCount": { + "type": "number" + }, + "totalRecords": { + "type": "number" + } + } + }, + "title": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "rest_api" + ] + }, + { + "type": "string", + "enum": [ + "sql" + ] + } + ] + } + }, + "nullable": true + } + } + }, + "Request_integrations.queries.list": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "name": { + "type": "string" + }, + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_integrations.queries.list": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "authMethod", + "isActive", + "name", + "organizationId", + "status", + "title" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "apiKeyAuth": { + "type": "object", + "required": [ + "keyEncrypted" + ], + "properties": { + "keyEncrypted": { + "type": "string" + }, + "keyPrefix": { + "type": "string" + } + } + }, + "authMethod": { + "oneOf": [ + { + "type": "string", + "enum": [ + "api_key" + ] + }, + { + "type": "string", + "enum": [ + "bearer_token" + ] + }, + { + "type": "string", + "enum": [ + "basic_auth" + ] + }, + { + "type": "string", + "enum": [ + "oauth2" + ] + } + ] + }, + "basicAuth": { + "type": "object", + "required": [ + "passwordEncrypted", + "username" + ], + "properties": { + "passwordEncrypted": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "capabilities": { + "type": "object", + "properties": { + "canPush": { + "type": "boolean" + }, + "canSync": { + "type": "boolean" + }, + "canWebhook": { + "type": "boolean" + }, + "syncFrequency": { + "type": "string" + } + } + }, + "connectionConfig": {}, + "connector": { + "type": "object", + "required": [ + "code", + "operations", + "secretBindings", + "version" + ], + "properties": { + "allowedHosts": { + "type": "array", + "items": { + "type": "string" + } + }, + "code": { + "type": "string" + }, + "operations": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "operationType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "read" + ] + }, + { + "type": "string", + "enum": [ + "write" + ] + } + ] + }, + "parametersSchema": {}, + "requiredScopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "requiresApproval": { + "type": "boolean" + }, + "title": { + "type": "string" + } + } + } + }, + "secretBindings": { + "type": "array", + "items": { + "type": "string" + } + }, + "timeoutMs": { + "type": "number" + }, + "version": { + "type": "number" + } + } + }, + "description": { + "type": "string" + }, + "errorMessage": { + "type": "string" + }, + "iconStorageId": { + "type": "string", + "description": "ID from table \"_storage\"" + }, + "iconUrl": { + "type": "string", + "nullable": true + }, + "isActive": { + "type": "boolean" + }, + "lastErrorAt": { + "type": "number" + }, + "lastSuccessAt": { + "type": "number" + }, + "lastSyncedAt": { + "type": "number" + }, + "lastTestedAt": { + "type": "number" + }, + "metadata": {}, + "name": { + "type": "string" + }, + "oauth2Auth": { + "type": "object", + "required": [ + "accessTokenEncrypted" + ], + "properties": { + "accessTokenEncrypted": { + "type": "string" + }, + "refreshTokenEncrypted": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "tokenExpiry": { + "type": "number" + } + } + }, + "oauth2Config": { + "type": "object", + "required": [ + "authorizationUrl", + "tokenUrl" + ], + "properties": { + "authorizationUrl": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "clientSecretEncrypted": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "tokenUrl": { + "type": "string" + } + } + }, + "organizationId": { + "type": "string" + }, + "sqlConnectionConfig": { + "type": "object", + "required": [ + "engine" + ], + "properties": { + "database": { + "type": "string" + }, + "engine": { + "oneOf": [ + { + "type": "string", + "enum": [ + "mssql" + ] + }, + { + "type": "string", + "enum": [ + "postgres" + ] + }, + { + "type": "string", + "enum": [ + "mysql" + ] + } + ] + }, + "options": { + "type": "object", + "properties": { + "connectionTimeout": { + "type": "number" + }, + "encrypt": { + "type": "boolean" + }, + "requestTimeout": { + "type": "number" + }, + "trustServerCertificate": { + "type": "boolean" + } + } + }, + "port": { + "type": "number" + }, + "readOnly": { + "type": "boolean" + }, + "security": { + "type": "object", + "properties": { + "maxConnectionPoolSize": { + "type": "number" + }, + "maxResultRows": { + "type": "number" + }, + "queryTimeoutMs": { + "type": "number" + } + } + }, + "server": { + "type": "string" + } + } + }, + "sqlOperations": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "query" + ], + "properties": { + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "operationType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "read" + ] + }, + { + "type": "string", + "enum": [ + "write" + ] + } + ] + }, + "parametersSchema": {}, + "query": { + "type": "string" + }, + "requiredScopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "requiresApproval": { + "type": "boolean" + }, + "title": { + "type": "string" + } + } + } + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "active" + ] + }, + { + "type": "string", + "enum": [ + "inactive" + ] + }, + { + "type": "string", + "enum": [ + "error" + ] + }, + { + "type": "string", + "enum": [ + "testing" + ] + } + ] + }, + "supportedAuthMethods": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string", + "enum": [ + "api_key" + ] + }, + { + "type": "string", + "enum": [ + "bearer_token" + ] + }, + { + "type": "string", + "enum": [ + "basic_auth" + ] + }, + { + "type": "string", + "enum": [ + "oauth2" + ] + } + ] + } + }, + "syncStats": { + "type": "object", + "properties": { + "failedSyncCount": { + "type": "number" + }, + "lastSyncCount": { + "type": "number" + }, + "totalRecords": { + "type": "number" + } + } + }, + "title": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "rest_api" + ] + }, + { + "type": "string", + "enum": [ + "sql" + ] + } + ] + } + } + } + } + } + }, + "Request_integrations.queries.listRelatedAutomations": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "integrationName", + "organizationId" + ], + "properties": { + "integrationName": { + "type": "string" + }, + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_integrations.queries.listRelatedAutomations": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_members.mutations.addMember": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId", + "userId" + ], + "properties": { + "organizationId": { + "type": "string" + }, + "role": { + "oneOf": [ + { + "type": "string", + "enum": [ + "owner" + ] + }, + { + "type": "string", + "enum": [ + "disabled" + ] + }, + { + "type": "string", + "enum": [ + "member" + ] + }, + { + "type": "string", + "enum": [ + "editor" + ] + }, + { + "type": "string", + "enum": [ + "developer" + ] + }, + { + "type": "string", + "enum": [ + "admin" + ] + } + ] + }, + "userId": { + "type": "string" + } + } + } + } + }, + "Response_members.mutations.addMember": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string" + } + } + }, + "Request_members.mutations.removeMember": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "memberId" + ], + "properties": { + "memberId": { + "type": "string" + } + } + } + } + }, + "Response_members.mutations.removeMember": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_members.mutations.updateMemberRole": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "memberId", + "role" + ], + "properties": { + "memberId": { + "type": "string" + }, + "role": { + "oneOf": [ + { + "type": "string", + "enum": [ + "owner" + ] + }, + { + "type": "string", + "enum": [ + "disabled" + ] + }, + { + "type": "string", + "enum": [ + "member" + ] + }, + { + "type": "string", + "enum": [ + "editor" + ] + }, + { + "type": "string", + "enum": [ + "developer" + ] + }, + { + "type": "string", + "enum": [ + "admin" + ] + } + ] + } + } + } + } + }, + "Response_members.mutations.updateMemberRole": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_members.mutations.transferOwnership": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "targetMemberId" + ], + "properties": { + "targetMemberId": { + "type": "string" + } + } + } + } + }, + "Response_members.mutations.transferOwnership": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_members.mutations.updateMemberDisplayName": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "displayName", + "memberId" + ], + "properties": { + "displayName": { + "type": "string" + }, + "memberId": { + "type": "string" + } + } + } + } + }, + "Response_members.mutations.updateMemberDisplayName": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_members.queries.getCurrentMemberContext": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_members.queries.getCurrentMemberContext": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "nullable": true, + "oneOf": [ + { + "type": "object", + "required": [ + "createdAt", + "isAdmin", + "memberId", + "organizationId", + "role", + "status", + "userId" + ], + "properties": { + "createdAt": { + "type": "number" + }, + "displayName": { + "type": "string" + }, + "isAdmin": { + "type": "boolean" + }, + "memberId": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "role": { + "oneOf": [ + { + "type": "string", + "enum": [ + "owner" + ] + }, + { + "type": "string", + "enum": [ + "disabled" + ] + }, + { + "type": "string", + "enum": [ + "member" + ] + }, + { + "type": "string", + "enum": [ + "editor" + ] + }, + { + "type": "string", + "enum": [ + "developer" + ] + }, + { + "type": "string", + "enum": [ + "admin" + ] + } + ] + }, + "status": { + "type": "string", + "enum": [ + "ok" + ] + }, + "userId": { + "type": "string" + } + } + }, + { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "not_found" + ] + } + } + }, + { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "not_member" + ] + } + } + } + ] + } + } + }, + "Request_members.queries.listByOrganization": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_members.queries.listByOrganization": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "_id", + "createdAt", + "organizationId", + "role", + "userId" + ], + "properties": { + "_id": { + "type": "string" + }, + "createdAt": { + "type": "number" + }, + "displayName": { + "type": "string" + }, + "email": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "role": { + "oneOf": [ + { + "type": "string", + "enum": [ + "owner" + ] + }, + { + "type": "string", + "enum": [ + "disabled" + ] + }, + { + "type": "string", + "enum": [ + "member" + ] + }, + { + "type": "string", + "enum": [ + "editor" + ] + }, + { + "type": "string", + "enum": [ + "developer" + ] + }, + { + "type": "string", + "enum": [ + "admin" + ] + } + ] + }, + "userId": { + "type": "string" + } + } + } + } + } + }, + "Request_members.queries.getUserIdByEmail": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + } + } + } + } + }, + "Response_members.queries.getUserIdByEmail": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_members.queries.getUserOrganizationsList": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object" + } + } + }, + "Response_members.queries.getUserOrganizationsList": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "organizationId", + "role" + ], + "properties": { + "organizationId": { + "type": "string" + }, + "role": { + "oneOf": [ + { + "type": "string", + "enum": [ + "owner" + ] + }, + { + "type": "string", + "enum": [ + "disabled" + ] + }, + { + "type": "string", + "enum": [ + "member" + ] + }, + { + "type": "string", + "enum": [ + "editor" + ] + }, + { + "type": "string", + "enum": [ + "developer" + ] + }, + { + "type": "string", + "enum": [ + "admin" + ] + } + ] + } + } + } + } + } + }, + "Request_members.queries.approxCountMyTeams": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_members.queries.approxCountMyTeams": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "number" + } + } + }, + "Request_members.queries.getMyTeams": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_members.queries.getMyTeams": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + } + } + }, + "Request_members.queries.listOrgTeams": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_members.queries.listOrgTeams": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + } + } + }, + "Request_message_metadata.queries.getMessageMetadata": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "messageId" + ], + "properties": { + "messageId": { + "type": "string" + } + } + } + } + }, + "Response_message_metadata.queries.getMessageMetadata": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "messageId", + "model", + "provider", + "threadId" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string", + "description": "ID from table \"messageMetadata\"" + }, + "cachedInputTokens": { + "type": "number" + }, + "contextStats": { + "type": "object", + "required": [ + "approvalCount", + "hasRag", + "messageCount", + "totalTokens" + ], + "properties": { + "approvalCount": { + "type": "number" + }, + "hasIntegrations": { + "type": "boolean" + }, + "hasRag": { + "type": "boolean" + }, + "hasSummary": { + "type": "boolean" + }, + "hasWebContext": { + "type": "boolean" + }, + "messageCount": { + "type": "number" + }, + "totalTokens": { + "type": "number" + } + } + }, + "contextWindow": { + "type": "string" + }, + "durationMs": { + "type": "number" + }, + "error": { + "type": "string" + }, + "inputTokens": { + "type": "number" + }, + "messageId": { + "type": "string" + }, + "model": { + "type": "string" + }, + "outputTokens": { + "type": "number" + }, + "provider": { + "type": "string" + }, + "providerMetadata": {}, + "reasoning": { + "type": "string" + }, + "reasoningTokens": { + "type": "number" + }, + "subAgentUsage": { + "type": "array", + "items": { + "type": "object", + "required": [ + "toolName" + ], + "properties": { + "durationMs": { + "type": "number" + }, + "input": { + "type": "string" + }, + "inputTokens": { + "type": "number" + }, + "model": { + "type": "string" + }, + "output": { + "type": "string" + }, + "outputTokens": { + "type": "number" + }, + "provider": { + "type": "string" + }, + "toolName": { + "type": "string" + }, + "totalTokens": { + "type": "number" + } + } } }, - "customerId": { - "type": "string" - }, - "customer_id": { + "threadId": { "type": "string" }, - "description": { - "type": "string" + "timeToFirstTokenMs": { + "type": "number" }, - "direction": { + "toolsUsage": { + "type": "array", + "items": { + "type": "object", + "required": [ + "toolName" + ], + "properties": { + "durationMs": { + "type": "number" + }, + "input": { + "type": "string" + }, + "inputTokens": { + "type": "number" + }, + "model": { + "type": "string" + }, + "output": { + "type": "string" + }, + "outputTokens": { + "type": "number" + }, + "provider": { + "type": "string" + }, + "toolName": { + "type": "string" + }, + "totalTokens": { + "type": "number" + } + } + } + }, + "totalTokens": { + "type": "number" + } + }, + "nullable": true + } + } + }, + "Request_onedrive.actions.importFiles": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "importType", + "items", + "organizationId" + ], + "properties": { + "importType": { "oneOf": [ { "type": "string", - "enum": ["inbound"] + "enum": [ + "one-time" + ] }, { "type": "string", - "enum": ["outbound"] + "enum": [ + "sync" + ] + } + ] + }, + "items": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name", + "size" + ], + "properties": { + "driveId": { + "type": "string" + }, + "id": { + "type": "string" + }, + "isDirectlySelected": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "relativePath": { + "type": "string" + }, + "selectedParentId": { + "type": "string" + }, + "selectedParentName": { + "type": "string" + }, + "selectedParentPath": { + "type": "string" + }, + "siteId": { + "type": "string" + }, + "size": { + "type": "number" + }, + "sourceType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "onedrive" + ] + }, + { + "type": "string", + "enum": [ + "sharepoint" + ] + } + ] + } + } + } + }, + "organizationId": { + "type": "string" + }, + "teamId": { + "type": "string" + } + } + } + } + }, + "Response_onedrive.actions.importFiles": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "failedCount", + "results", + "skippedCount", + "success", + "successCount", + "totalFiles" + ], + "properties": { + "error": { + "type": "string" + }, + "failedCount": { + "type": "number" + }, + "results": { + "type": "array", + "items": { + "type": "object", + "required": [ + "fileId", + "fileName", + "status" + ], + "properties": { + "documentId": { + "type": "string", + "description": "ID from table \"documents\"" + }, + "error": { + "type": "string" + }, + "fileId": { + "type": "string" + }, + "fileName": { + "type": "string" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "success" + ] + }, + { + "type": "string", + "enum": [ + "skipped" + ] + }, + { + "type": "string", + "enum": [ + "error" + ] + } + ] + } + } + } + }, + "skippedCount": { + "type": "number" + }, + "success": { + "type": "boolean" + }, + "successCount": { + "type": "number" + }, + "totalFiles": { + "type": "number" + } + } + } + } + }, + "Request_onedrive.actions.listSharePointDrives": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "siteId" + ], + "properties": { + "siteId": { + "type": "string" + } + } + } + } + }, + "Response_onedrive.actions.listSharePointDrives": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "success" + ], + "properties": { + "drives": { + "type": "array", + "items": { + "type": "object", + "required": [ + "driveType", + "id", + "name" + ], + "properties": { + "description": { + "type": "string" + }, + "driveType": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "webUrl": { + "type": "string" + } } - ] + } }, - "externalMessageId": { + "error": { "type": "string" }, - "id": { + "success": { + "type": "boolean" + } + } + } + } + }, + "Request_onedrive.actions.listSharePointFiles": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "driveId", + "siteId" + ], + "properties": { + "driveId": { "type": "string" }, - "lastMessageAt": { - "type": "number" - }, - "last_message_at": { + "folderId": { "type": "string" }, - "last_read_at": { + "siteId": { + "type": "string" + } + } + } + } + }, + "Response_onedrive.actions.listSharePointFiles": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "success" + ], + "properties": { + "error": { "type": "string" }, - "message_count": { - "type": "number" - }, - "messages": { + "items": { "type": "array", "items": { "type": "object", "required": [ - "content", "id", - "isCustomer", - "sender", - "status", - "timestamp" + "isFolder", + "name", + "size" ], "properties": { - "attachment": { - "type": "object", - "required": ["filename", "url"], - "properties": { - "contentType": { - "type": "string" - }, - "filename": { - "type": "string" - }, - "size": { - "type": "number" - }, - "url": { - "type": "string" - } - } - }, - "content": { - "type": "string" + "childCount": { + "type": "number" }, "id": { "type": "string" }, - "isCustomer": { + "isFolder": { "type": "boolean" }, - "sender": { + "lastModified": { + "type": "number" + }, + "mimeType": { "type": "string" }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["queued"] - }, - { - "type": "string", - "enum": ["sent"] - }, - { - "type": "string", - "enum": ["delivered"] - }, - { - "type": "string", - "enum": ["failed"] - } - ] + "name": { + "type": "string" }, - "timestamp": { + "size": { + "type": "number" + }, + "webUrl": { "type": "string" } } } }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "pendingApproval": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "organizationId", - "priority", - "resourceId", - "resourceType", - "status" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "approvedBy": { - "type": "string" - }, - "dueDate": { - "type": "number" - }, - "executedAt": { - "type": "number" - }, - "executionError": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "priority": { - "oneOf": [ - { - "type": "string", - "enum": ["low"] - }, - { - "type": "string", - "enum": ["medium"] - }, - { - "type": "string", - "enum": ["high"] - }, - { - "type": "string", - "enum": ["urgent"] - } - ] - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "oneOf": [ - { - "type": "string", - "enum": ["conversations"] - }, - { - "type": "string", - "enum": ["integration_operation"] - }, - { - "type": "string", - "enum": ["workflow_creation"] - }, - { - "type": "string", - "enum": ["human_input_request"] - } - ] - }, - "reviewedAt": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["pending"] - }, - { - "type": "string", - "enum": ["approved"] - }, - { - "type": "string", - "enum": ["rejected"] - } - ] - }, - "stepSlug": { - "type": "string" - }, - "threadId": { - "type": "string" - }, - "wfExecutionId": { - "type": "string" - } - }, - "nullable": true - }, - "priority": { - "type": "string" - }, - "providerId": { - "type": "string" - }, - "resolved_at": { + "success": { + "type": "boolean" + } + } + } + } + }, + "Request_onedrive.actions.listSharePointSites": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "properties": { + "search": { "type": "string" - }, - "resolved_by": { + } + } + } + } + }, + "Response_onedrive.actions.listSharePointSites": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "success" + ], + "properties": { + "error": { "type": "string" }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["open"] - }, - { - "type": "string", - "enum": ["closed"] - }, - { - "type": "string", - "enum": ["spam"] - }, - { - "type": "string", - "enum": ["archived"] + "sites": { + "type": "array", + "items": { + "type": "object", + "required": [ + "displayName", + "id", + "name", + "webUrl" + ], + "properties": { + "description": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "webUrl": { + "type": "string" + } } - ] + } }, - "subject": { + "success": { + "type": "boolean" + } + } + } + } + }, + "Request_onedrive.actions.listFiles": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "properties": { + "folderId": { "type": "string" }, - "title": { + "search": { "type": "string" - }, - "type": { + } + } + } + } + }, + "Response_onedrive.actions.listFiles": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "success" + ], + "properties": { + "error": { "type": "string" }, - "unread_count": { - "type": "number" + "items": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "isFolder", + "name", + "size" + ], + "properties": { + "childCount": { + "type": "number" + }, + "id": { + "type": "string" + }, + "isFolder": { + "type": "boolean" + }, + "lastModified": { + "type": "number" + }, + "mimeType": { + "type": "string" + }, + "name": { + "type": "string" + }, + "size": { + "type": "number" + }, + "webUrl": { + "type": "string" + } + } + } }, - "updated_at": { + "success": { + "type": "boolean" + } + } + } + } + }, + "Request_organizations.actions.initializeDefaultWorkflows": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { "type": "string" } - }, + } + } + } + }, + "Response_organizations.actions.initializeDefaultWorkflows": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", "nullable": true } } }, - "Request_conversations.queries.hasConversations": { + "Request_organizations.queries.getOrganization": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId"], + "required": [ + "id" + ], "properties": { - "organizationId": { + "id": { "type": "string" } } } } }, - "Response_conversations.queries.hasConversations": { + "Response_organizations.queries.getOrganization": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -9899,417 +25179,144 @@ "type": "object" }, "value": { - "type": "boolean" + "type": "object", + "required": [ + "_creationTime", + "_id", + "createdAt", + "name" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "createdAt": { + "type": "number" + }, + "logo": { + "type": "string", + "nullable": true + }, + "metadata": {}, + "name": { + "type": "string" + }, + "slug": { + "type": "string" + } + }, + "nullable": true } } }, - "Request_conversations.queries.listConversations": { + "Request_products.mutations.createProduct": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId", "paginationOpts"], + "required": [ + "name", + "organizationId" + ], "properties": { - "organizationId": { + "category": { "type": "string" }, - "paginationOpts": { - "type": "object", - "required": ["cursor", "numItems"], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } + "currency": { + "type": "string" + }, + "description": { + "type": "string" + }, + "imageUrl": { + "type": "string" + }, + "metadata": {}, + "name": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "price": { + "type": "number" }, "status": { "oneOf": [ { "type": "string", - "enum": ["open"] + "enum": [ + "active" + ] }, { "type": "string", - "enum": ["closed"] + "enum": [ + "inactive" + ] }, { "type": "string", - "enum": ["spam"] + "enum": [ + "draft" + ] }, { "type": "string", - "enum": ["archived"] + "enum": [ + "archived" + ] } ] - } - } - } - } - }, - "Response_conversations.queries.listConversations": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": ["continueCursor", "isDone", "page"], - "properties": { - "continueCursor": { - "type": "string" }, - "isDone": { - "type": "boolean" + "stock": { + "type": "number" }, - "page": { + "tags": { "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "business_id", - "created_at", - "customer", - "customer_id", - "description", - "id", - "message_count", - "messages", - "organizationId", - "title", - "unread_count", - "updated_at" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "business_id": { - "type": "string" - }, - "channel": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "customer": { - "type": "object", - "required": ["created_at", "email", "id", "status"], - "properties": { - "created_at": { - "type": "string" - }, - "email": { - "type": "string" - }, - "id": { - "type": "string" - }, - "locale": { - "type": "string" - }, - "name": { - "type": "string" - }, - "source": { - "type": "string" - }, - "status": { - "type": "string" - } - } - }, - "customerId": { - "type": "string" - }, - "customer_id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "direction": { - "oneOf": [ - { - "type": "string", - "enum": ["inbound"] - }, - { - "type": "string", - "enum": ["outbound"] - } - ] - }, - "externalMessageId": { - "type": "string" - }, - "id": { - "type": "string" - }, - "lastMessageAt": { - "type": "number" - }, - "last_message_at": { - "type": "string" - }, - "last_read_at": { - "type": "string" - }, - "message_count": { - "type": "number" - }, - "messages": { - "type": "array", - "items": { - "type": "object", - "required": [ - "content", - "id", - "isCustomer", - "sender", - "status", - "timestamp" - ], - "properties": { - "attachment": { - "type": "object", - "required": ["filename", "url"], - "properties": { - "contentType": { - "type": "string" - }, - "filename": { - "type": "string" - }, - "size": { - "type": "number" - }, - "url": { - "type": "string" - } - } - }, - "content": { - "type": "string" - }, - "id": { - "type": "string" - }, - "isCustomer": { - "type": "boolean" - }, - "sender": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["queued"] - }, - { - "type": "string", - "enum": ["sent"] - }, - { - "type": "string", - "enum": ["delivered"] - }, - { - "type": "string", - "enum": ["failed"] - } - ] - }, - "timestamp": { - "type": "string" - } - } - } - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "pendingApproval": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "organizationId", - "priority", - "resourceId", - "resourceType", - "status" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "approvedBy": { - "type": "string" - }, - "dueDate": { - "type": "number" - }, - "executedAt": { - "type": "number" - }, - "executionError": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "priority": { - "oneOf": [ - { - "type": "string", - "enum": ["low"] - }, - { - "type": "string", - "enum": ["medium"] - }, - { - "type": "string", - "enum": ["high"] - }, - { - "type": "string", - "enum": ["urgent"] - } - ] - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "oneOf": [ - { - "type": "string", - "enum": ["conversations"] - }, - { - "type": "string", - "enum": ["integration_operation"] - }, - { - "type": "string", - "enum": ["workflow_creation"] - }, - { - "type": "string", - "enum": ["human_input_request"] - } - ] - }, - "reviewedAt": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["pending"] - }, - { - "type": "string", - "enum": ["approved"] - }, - { - "type": "string", - "enum": ["rejected"] - } - ] - }, - "stepSlug": { - "type": "string" - }, - "threadId": { - "type": "string" - }, - "wfExecutionId": { - "type": "string" - } - }, - "nullable": true - }, - "priority": { - "type": "string" - }, - "providerId": { - "type": "string" - }, - "resolved_at": { - "type": "string" - }, - "resolved_by": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["open"] - }, - { - "type": "string", - "enum": ["closed"] - }, - { - "type": "string", - "enum": ["spam"] - }, - { - "type": "string", - "enum": ["archived"] - } - ] - }, - "subject": { + "items": { + "type": "string" + } + }, + "translations": { + "type": "array", + "items": { + "type": "object", + "required": [ + "language", + "lastUpdated" + ], + "properties": { + "category": { "type": "string" }, - "title": { + "createdAt": { + "type": "number" + }, + "description": { "type": "string" }, - "type": { + "language": { "type": "string" }, - "unread_count": { + "lastUpdated": { "type": "number" }, - "updated_at": { + "metadata": {}, + "name": { "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } } } } @@ -10318,194 +25325,201 @@ } } }, - "Request_customers.mutations.bulkCreateCustomers": { + "Response_products.mutations.createProduct": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "description": "ID from table \"products\"" + } + } + }, + "Request_products.mutations.deleteProduct": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["customers", "organizationId"], + "required": [ + "productId" + ], "properties": { - "customers": { + "productId": { + "type": "string", + "description": "ID from table \"products\"" + } + } + } + } + }, + "Response_products.mutations.deleteProduct": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "description": "ID from table \"products\"" + } + } + }, + "Request_products.mutations.updateProduct": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "productId" + ], + "properties": { + "category": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "description": { + "type": "string" + }, + "imageUrl": { + "type": "string" + }, + "metadata": {}, + "name": { + "type": "string" + }, + "price": { + "type": "number" + }, + "productId": { + "type": "string", + "description": "ID from table \"products\"" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "active" + ] + }, + { + "type": "string", + "enum": [ + "inactive" + ] + }, + { + "type": "string", + "enum": [ + "draft" + ] + }, + { + "type": "string", + "enum": [ + "archived" + ] + } + ] + }, + "stock": { + "type": "number" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "translations": { "type": "array", "items": { "type": "object", - "required": ["email", "source", "status"], - "properties": { - "address": { - "type": "object", - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "state": { - "type": "string" - }, - "street": { - "type": "string" - } - } - }, - "email": { - "type": "string" - }, - "externalId": { - "type": "string" - }, - "locale": { - "type": "string" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": ["manual_import"] - }, - { - "type": "string", - "enum": ["file_upload"] - }, - { - "type": "string", - "enum": ["api_import"] - }, - { - "type": "string", - "enum": ["shopify"] - }, - { - "type": "string", - "enum": ["woocommerce"] - }, - { - "type": "string", - "enum": ["magento"] - }, - { - "type": "string", - "enum": ["bigcommerce"] - }, - { - "type": "string", - "enum": ["prestashop"] - }, - { - "type": "string", - "enum": ["circuly"] - }, - { - "type": "string", - "enum": ["chargebee"] - }, - { - "type": "string", - "enum": ["stripe"] - }, - { - "type": "string", - "enum": ["recurly"] - }, - { - "type": "string", - "enum": ["salesforce"] - }, - { - "type": "string", - "enum": ["hubspot"] - }, - { - "type": "string", - "enum": ["pipedrive"] - }, - { - "type": "string", - "enum": ["zoho"] - }, - { - "type": "string", - "enum": ["sap"] - }, - { - "type": "string", - "enum": ["protel"] - }, - { - "type": "string", - "enum": ["oracle"] - }, - { - "type": "string", - "enum": ["netsuite"] - }, - { - "type": "string", - "enum": ["mailchimp"] - }, - { - "type": "string", - "enum": ["klaviyo"] - }, - { - "type": "string", - "enum": ["sendgrid"] - }, - { - "type": "string", - "enum": ["webhook"] - }, - { - "type": "string", - "enum": ["zapier"] - }, - { - "type": "string", - "enum": ["custom"] - } - ] + "required": [ + "language", + "lastUpdated" + ], + "properties": { + "category": { + "type": "string" }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["active"] - }, - { - "type": "string", - "enum": ["churned"] - }, - { - "type": "string", - "enum": ["potential"] - } - ] + "createdAt": { + "type": "number" + }, + "description": { + "type": "string" + }, + "language": { + "type": "string" + }, + "lastUpdated": { + "type": "number" + }, + "metadata": {}, + "name": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } } } } - }, - "organizationId": { - "type": "string" } } } } }, - "Response_customers.mutations.bulkCreateCustomers": { + "Response_products.mutations.updateProduct": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -10514,58 +25528,63 @@ "type": "object" }, "value": { - "type": "object", - "required": ["errors", "failed", "success"], - "properties": { - "errors": { - "type": "array", - "items": { - "type": "object", - "required": ["customer", "error", "index"], - "properties": { - "customer": {}, - "error": { - "type": "string" - }, - "index": { - "type": "number" - } - } - } - }, - "failed": { - "type": "number" - }, - "success": { - "type": "number" - } - } + "type": "string", + "description": "ID from table \"products\"" } } }, - "Request_customers.mutations.deleteCustomer": { + "Request_products.mutations.upsertProductTranslation": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["customerId"], + "required": [ + "language", + "productId" + ], "properties": { - "customerId": { + "category": { + "type": "string" + }, + "description": { + "type": "string" + }, + "language": { + "type": "string" + }, + "metadata": {}, + "name": { + "type": "string" + }, + "productId": { "type": "string", - "description": "ID from table \"customers\"" + "description": "ID from table \"products\"" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } } } } } }, - "Response_customers.mutations.deleteCustomer": { + "Response_products.mutations.upsertProductTranslation": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -10575,190 +25594,84 @@ }, "value": { "type": "string", - "nullable": true + "description": "ID from table \"products\"" } } }, - "Request_customers.mutations.updateCustomer": { + "Request_products.queries.approxCountProducts": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["customerId"], + "required": [ + "organizationId" + ], "properties": { - "address": { - "type": "object", - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "state": { - "type": "string" - }, - "street": { - "type": "string" - } - } - }, - "customerId": { - "type": "string", - "description": "ID from table \"customers\"" - }, - "email": { - "type": "string" - }, - "externalId": { - "type": "string" - }, - "locale": { - "type": "string" - }, - "metadata": {}, - "name": { + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_products.queries.approxCountProducts": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "number" + } + } + }, + "Request_products.queries.listProducts": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { "type": "string" - }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": ["manual_import"] - }, - { - "type": "string", - "enum": ["file_upload"] - }, - { - "type": "string", - "enum": ["api_import"] - }, - { - "type": "string", - "enum": ["shopify"] - }, - { - "type": "string", - "enum": ["woocommerce"] - }, - { - "type": "string", - "enum": ["magento"] - }, - { - "type": "string", - "enum": ["bigcommerce"] - }, - { - "type": "string", - "enum": ["prestashop"] - }, - { - "type": "string", - "enum": ["circuly"] - }, - { - "type": "string", - "enum": ["chargebee"] - }, - { - "type": "string", - "enum": ["stripe"] - }, - { - "type": "string", - "enum": ["recurly"] - }, - { - "type": "string", - "enum": ["salesforce"] - }, - { - "type": "string", - "enum": ["hubspot"] - }, - { - "type": "string", - "enum": ["pipedrive"] - }, - { - "type": "string", - "enum": ["zoho"] - }, - { - "type": "string", - "enum": ["sap"] - }, - { - "type": "string", - "enum": ["protel"] - }, - { - "type": "string", - "enum": ["oracle"] - }, - { - "type": "string", - "enum": ["netsuite"] - }, - { - "type": "string", - "enum": ["mailchimp"] - }, - { - "type": "string", - "enum": ["klaviyo"] - }, - { - "type": "string", - "enum": ["sendgrid"] - }, - { - "type": "string", - "enum": ["webhook"] - }, - { - "type": "string", - "enum": ["zapier"] - }, - { - "type": "string", - "enum": ["custom"] - } - ] - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["active"] - }, - { - "type": "string", - "enum": ["churned"] - }, - { - "type": "string", - "enum": ["potential"] - } - ] } } } } }, - "Response_customers.mutations.updateCustomer": { + "Response_products.queries.listProducts": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -10767,424 +25680,236 @@ "type": "object" }, "value": { - "type": "object", - "required": ["_creationTime", "_id", "organizationId", "source"], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "address": { - "type": "object", - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "state": { - "type": "string" - }, - "street": { - "type": "string" - } - } - }, - "email": { - "type": "string" - }, - "externalId": { - "oneOf": [ - { + "type": "array", + "items": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "name", + "organizationId" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "category": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "description": { + "type": "string" + }, + "externalId": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ] + }, + "imageUrl": { + "type": "string" + }, + "lastUpdated": { + "type": "number" + }, + "metadata": {}, + "name": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "price": { + "type": "number" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "active" + ] + }, + { + "type": "string", + "enum": [ + "inactive" + ] + }, + { + "type": "string", + "enum": [ + "draft" + ] + }, + { + "type": "string", + "enum": [ + "archived" + ] + } + ] + }, + "stock": { + "type": "number" + }, + "tags": { + "type": "array", + "items": { "type": "string" - }, - { - "type": "number" - } - ] - }, - "locale": { - "type": "string" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": ["manual_import"] - }, - { - "type": "string", - "enum": ["file_upload"] - }, - { - "type": "string", - "enum": ["api_import"] - }, - { - "type": "string", - "enum": ["shopify"] - }, - { - "type": "string", - "enum": ["woocommerce"] - }, - { - "type": "string", - "enum": ["magento"] - }, - { - "type": "string", - "enum": ["bigcommerce"] - }, - { - "type": "string", - "enum": ["prestashop"] - }, - { - "type": "string", - "enum": ["circuly"] - }, - { - "type": "string", - "enum": ["chargebee"] - }, - { - "type": "string", - "enum": ["stripe"] - }, - { - "type": "string", - "enum": ["recurly"] - }, - { - "type": "string", - "enum": ["salesforce"] - }, - { - "type": "string", - "enum": ["hubspot"] - }, - { - "type": "string", - "enum": ["pipedrive"] - }, - { - "type": "string", - "enum": ["zoho"] - }, - { - "type": "string", - "enum": ["sap"] - }, - { - "type": "string", - "enum": ["protel"] - }, - { - "type": "string", - "enum": ["oracle"] - }, - { - "type": "string", - "enum": ["netsuite"] - }, - { - "type": "string", - "enum": ["mailchimp"] - }, - { - "type": "string", - "enum": ["klaviyo"] - }, - { - "type": "string", - "enum": ["sendgrid"] - }, - { - "type": "string", - "enum": ["webhook"] - }, - { - "type": "string", - "enum": ["zapier"] - }, - { - "type": "string", - "enum": ["custom"] - } - ] - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["active"] - }, - { - "type": "string", - "enum": ["churned"] - }, - { - "type": "string", - "enum": ["potential"] } - ] - } - }, - "nullable": true - } - } - }, - "Request_customers.queries.getCustomer": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["customerId"], - "properties": { - "customerId": { - "type": "string", - "description": "ID from table \"customers\"" + }, + "translations": { + "type": "array", + "items": { + "type": "object", + "required": [ + "language", + "lastUpdated" + ], + "properties": { + "category": { + "type": "string" + }, + "createdAt": { + "type": "number" + }, + "description": { + "type": "string" + }, + "language": { + "type": "string" + }, + "lastUpdated": { + "type": "number" + }, + "metadata": {}, + "name": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } } } } } }, - "Response_customers.queries.getCustomer": { + "Request_products.queries.listProductsPaginated": { "type": "object", - "required": ["status"], + "required": [ + "args" + ], "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { + "args": { "type": "object", - "required": ["_creationTime", "_id", "organizationId", "source"], + "required": [ + "organizationId", + "paginationOpts" + ], "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "address": { - "type": "object", - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "state": { - "type": "string" - }, - "street": { - "type": "string" - } - } - }, - "email": { - "type": "string" - }, - "externalId": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - }, - "locale": { - "type": "string" - }, - "metadata": {}, - "name": { + "category": { "type": "string" }, "organizationId": { "type": "string" }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": ["manual_import"] - }, - { - "type": "string", - "enum": ["file_upload"] - }, - { - "type": "string", - "enum": ["api_import"] - }, - { - "type": "string", - "enum": ["shopify"] - }, - { - "type": "string", - "enum": ["woocommerce"] - }, - { - "type": "string", - "enum": ["magento"] - }, - { - "type": "string", - "enum": ["bigcommerce"] - }, - { - "type": "string", - "enum": ["prestashop"] - }, - { - "type": "string", - "enum": ["circuly"] - }, - { - "type": "string", - "enum": ["chargebee"] - }, - { - "type": "string", - "enum": ["stripe"] - }, - { - "type": "string", - "enum": ["recurly"] - }, - { - "type": "string", - "enum": ["salesforce"] - }, - { - "type": "string", - "enum": ["hubspot"] - }, - { - "type": "string", - "enum": ["pipedrive"] - }, - { - "type": "string", - "enum": ["zoho"] - }, - { - "type": "string", - "enum": ["sap"] - }, - { - "type": "string", - "enum": ["protel"] - }, - { - "type": "string", - "enum": ["oracle"] - }, - { - "type": "string", - "enum": ["netsuite"] - }, - { + "paginationOpts": { + "type": "object", + "required": [ + "cursor", + "numItems" + ], + "properties": { + "cursor": { "type": "string", - "enum": ["mailchimp"] + "nullable": true }, - { + "endCursor": { "type": "string", - "enum": ["klaviyo"] + "nullable": true }, - { - "type": "string", - "enum": ["sendgrid"] + "id": { + "type": "number" }, - { - "type": "string", - "enum": ["webhook"] + "maximumBytesRead": { + "type": "number" }, - { - "type": "string", - "enum": ["zapier"] + "maximumRowsRead": { + "type": "number" }, - { - "type": "string", - "enum": ["custom"] + "numItems": { + "type": "number" } - ] + } }, "status": { - "oneOf": [ - { - "type": "string", - "enum": ["active"] - }, - { - "type": "string", - "enum": ["churned"] - }, - { - "type": "string", - "enum": ["potential"] - } - ] + "type": "string" } - }, - "nullable": true + } } } }, - "Request_customers.queries.getCustomerByEmail": { + "Response_products.queries.listProductsPaginated": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_sso_providers.actions.getWithClientId": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { - "type": "object", - "required": ["email", "organizationId"], - "properties": { - "email": { - "type": "string" - }, - "organizationId": { - "type": "string" - } - } + "type": "object" } } }, - "Response_customers.queries.getCustomerByEmail": { + "Response_sso_providers.actions.getWithClientId": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -11194,193 +25919,215 @@ }, "value": { "type": "object", - "required": ["_creationTime", "_id", "organizationId", "source"], + "required": [ + "_id", + "autoProvisionRole", + "clientId", + "createdAt", + "defaultRole", + "issuer", + "organizationId", + "providerId", + "roleMappingRules", + "scopes", + "updatedAt" + ], "properties": { - "_creationTime": { - "type": "number" - }, "_id": { - "type": "string" - }, - "address": { - "type": "object", - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "state": { - "type": "string" - }, - "street": { - "type": "string" - } - } - }, - "email": { - "type": "string" - }, - "externalId": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] + "type": "string", + "description": "ID from table \"ssoProviders\"" }, - "locale": { - "type": "string" + "autoProvisionRole": { + "type": "boolean" }, - "metadata": {}, - "name": { + "clientId": { "type": "string" }, - "organizationId": { - "type": "string" + "createdAt": { + "type": "number" }, - "source": { + "defaultRole": { "oneOf": [ { "type": "string", - "enum": ["manual_import"] - }, - { - "type": "string", - "enum": ["file_upload"] - }, - { - "type": "string", - "enum": ["api_import"] - }, - { - "type": "string", - "enum": ["shopify"] - }, - { - "type": "string", - "enum": ["woocommerce"] - }, - { - "type": "string", - "enum": ["magento"] - }, - { - "type": "string", - "enum": ["bigcommerce"] - }, - { - "type": "string", - "enum": ["prestashop"] - }, - { - "type": "string", - "enum": ["circuly"] - }, - { - "type": "string", - "enum": ["chargebee"] - }, - { - "type": "string", - "enum": ["stripe"] - }, - { - "type": "string", - "enum": ["recurly"] - }, - { - "type": "string", - "enum": ["salesforce"] - }, - { - "type": "string", - "enum": ["hubspot"] - }, - { - "type": "string", - "enum": ["pipedrive"] - }, - { - "type": "string", - "enum": ["zoho"] - }, - { - "type": "string", - "enum": ["sap"] - }, - { - "type": "string", - "enum": ["protel"] - }, - { - "type": "string", - "enum": ["oracle"] - }, - { - "type": "string", - "enum": ["netsuite"] - }, - { - "type": "string", - "enum": ["mailchimp"] - }, - { - "type": "string", - "enum": ["klaviyo"] + "enum": [ + "disabled" + ] }, { "type": "string", - "enum": ["sendgrid"] + "enum": [ + "member" + ] }, { "type": "string", - "enum": ["webhook"] + "enum": [ + "editor" + ] }, { "type": "string", - "enum": ["zapier"] + "enum": [ + "developer" + ] }, { "type": "string", - "enum": ["custom"] + "enum": [ + "admin" + ] } ] }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["active"] - }, - { - "type": "string", - "enum": ["churned"] + "issuer": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "providerFeatures": { + "type": "object", + "properties": { + "entraId": { + "type": "object", + "properties": { + "autoProvisionTeam": { + "type": "boolean" + }, + "domainHint": { + "type": "string" + }, + "enableOneDriveAccess": { + "type": "boolean" + }, + "excludeGroups": { + "type": "array", + "items": { + "type": "string" + } + }, + "seamlessSsoEnabled": { + "type": "boolean" + } + } }, - { - "type": "string", - "enum": ["potential"] + "googleWorkspace": { + "type": "object", + "properties": { + "enableGoogleDriveAccess": { + "type": "boolean" + } + } } - ] + } + }, + "providerId": { + "type": "string" + }, + "roleMappingRules": { + "type": "array", + "items": { + "type": "object", + "required": [ + "pattern", + "source", + "targetRole" + ], + "properties": { + "pattern": { + "type": "string" + }, + "source": { + "oneOf": [ + { + "type": "string", + "enum": [ + "jobTitle" + ] + }, + { + "type": "string", + "enum": [ + "appRole" + ] + }, + { + "type": "string", + "enum": [ + "group" + ] + }, + { + "type": "string", + "enum": [ + "claim" + ] + } + ] + }, + "targetRole": { + "oneOf": [ + { + "type": "string", + "enum": [ + "disabled" + ] + }, + { + "type": "string", + "enum": [ + "member" + ] + }, + { + "type": "string", + "enum": [ + "editor" + ] + }, + { + "type": "string", + "enum": [ + "developer" + ] + }, + { + "type": "string", + "enum": [ + "admin" + ] + } + ] + } + } + } + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "updatedAt": { + "type": "number" } }, "nullable": true } } }, - "Request_customers.queries.hasCustomers": { + "Request_sso_providers.actions.getSsoCredentialsForEmail": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId"], + "required": [ + "organizationId" + ], "properties": { "organizationId": { "type": "string" @@ -11389,13 +26136,18 @@ } } }, - "Response_customers.queries.hasCustomers": { + "Response_sso_providers.actions.getSsoCredentialsForEmail": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -11404,279 +26156,329 @@ "type": "object" }, "value": { - "type": "boolean" + "type": "object", + "required": [ + "clientId", + "clientSecret", + "tenantId" + ], + "properties": { + "clientId": { + "type": "string" + }, + "clientSecret": { + "type": "string" + }, + "tenantId": { + "type": "string" + } + }, + "nullable": true } } }, - "Request_customers.queries.listCustomers": { + "Request_sso_providers.actions.upsert": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId", "paginationOpts"], + "required": [ + "autoProvisionRole", + "clientId", + "defaultRole", + "issuer", + "organizationId", + "providerId", + "roleMappingRules", + "scopes" + ], "properties": { + "autoProvisionRole": { + "type": "boolean" + }, + "clientId": { + "type": "string" + }, + "clientSecret": { + "type": "string" + }, + "defaultRole": { + "oneOf": [ + { + "type": "string", + "enum": [ + "disabled" + ] + }, + { + "type": "string", + "enum": [ + "member" + ] + }, + { + "type": "string", + "enum": [ + "editor" + ] + }, + { + "type": "string", + "enum": [ + "developer" + ] + }, + { + "type": "string", + "enum": [ + "admin" + ] + } + ] + }, + "issuer": { + "type": "string" + }, "organizationId": { "type": "string" }, - "paginationOpts": { + "providerFeatures": { "type": "object", - "required": ["cursor", "numItems"], "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" + "entraId": { + "type": "object", + "properties": { + "autoProvisionTeam": { + "type": "boolean" + }, + "domainHint": { + "type": "string" + }, + "enableOneDriveAccess": { + "type": "boolean" + }, + "excludeGroups": { + "type": "array", + "items": { + "type": "string" + } + }, + "seamlessSsoEnabled": { + "type": "boolean" + } + } }, - "numItems": { - "type": "number" + "googleWorkspace": { + "type": "object", + "properties": { + "enableGoogleDriveAccess": { + "type": "boolean" + } + } } } - } - } - } - } - }, - "Response_customers.queries.listCustomers": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": ["continueCursor", "isDone", "page"], - "properties": { - "continueCursor": { - "type": "string" }, - "isDone": { - "type": "boolean" + "providerId": { + "type": "string" }, - "page": { + "roleMappingRules": { "type": "array", "items": { "type": "object", "required": [ - "_creationTime", - "_id", - "organizationId", - "source" + "pattern", + "source", + "targetRole" ], "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "address": { - "type": "object", - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "state": { - "type": "string" - }, - "street": { - "type": "string" - } - } - }, - "email": { - "type": "string" - }, - "externalId": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - }, - "locale": { - "type": "string" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "organizationId": { + "pattern": { "type": "string" }, "source": { "oneOf": [ { "type": "string", - "enum": ["manual_import"] - }, - { - "type": "string", - "enum": ["file_upload"] - }, - { - "type": "string", - "enum": ["api_import"] - }, - { - "type": "string", - "enum": ["shopify"] - }, - { - "type": "string", - "enum": ["woocommerce"] - }, - { - "type": "string", - "enum": ["magento"] - }, - { - "type": "string", - "enum": ["bigcommerce"] - }, - { - "type": "string", - "enum": ["prestashop"] - }, - { - "type": "string", - "enum": ["circuly"] - }, - { - "type": "string", - "enum": ["chargebee"] - }, - { - "type": "string", - "enum": ["stripe"] - }, - { - "type": "string", - "enum": ["recurly"] - }, - { - "type": "string", - "enum": ["salesforce"] - }, - { - "type": "string", - "enum": ["hubspot"] - }, - { - "type": "string", - "enum": ["pipedrive"] - }, - { - "type": "string", - "enum": ["zoho"] - }, - { - "type": "string", - "enum": ["sap"] - }, - { - "type": "string", - "enum": ["protel"] - }, - { - "type": "string", - "enum": ["oracle"] - }, - { - "type": "string", - "enum": ["netsuite"] + "enum": [ + "jobTitle" + ] }, { "type": "string", - "enum": ["mailchimp"] + "enum": [ + "appRole" + ] }, { "type": "string", - "enum": ["klaviyo"] + "enum": [ + "group" + ] }, { "type": "string", - "enum": ["sendgrid"] - }, + "enum": [ + "claim" + ] + } + ] + }, + "targetRole": { + "oneOf": [ { "type": "string", - "enum": ["webhook"] + "enum": [ + "disabled" + ] }, { "type": "string", - "enum": ["zapier"] + "enum": [ + "member" + ] }, { "type": "string", - "enum": ["custom"] - } - ] - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["active"] + "enum": [ + "editor" + ] }, { "type": "string", - "enum": ["churned"] + "enum": [ + "developer" + ] }, { "type": "string", - "enum": ["potential"] + "enum": [ + "admin" + ] } ] } } } + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + }, + "Response_sso_providers.actions.upsert": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string" + } + } + }, + "Request_sso_providers.actions.remove": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { + "type": "string" } } } } }, - "Request_documents.actions.retryRagIndexing": { + "Response_sso_providers.actions.remove": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_sso_providers.actions.testConfig": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["documentId"], + "required": [ + "clientId", + "clientSecret", + "issuer" + ], "properties": { - "documentId": { - "type": "string", - "description": "ID from table \"documents\"" + "clientId": { + "type": "string" + }, + "clientSecret": { + "type": "string" + }, + "issuer": { + "type": "string" } } } } }, - "Response_documents.actions.retryRagIndexing": { + "Response_sso_providers.actions.testConfig": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -11686,86 +26488,43 @@ }, "value": { "type": "object", - "required": ["success"], + "required": [ + "valid" + ], "properties": { "error": { "type": "string" }, - "jobId": { - "type": "string" - }, - "success": { + "valid": { "type": "boolean" } } } } }, - "Request_documents.mutations.updateDocument": { + "Request_sso_providers.actions.testExistingConfig": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { - "type": "object", - "required": ["documentId"], - "properties": { - "content": { - "type": "string" - }, - "documentId": { - "type": "string", - "description": "ID from table \"documents\"" - }, - "extension": { - "type": "string" - }, - "externalItemId": { - "type": "string" - }, - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "metadata": {}, - "mimeType": { - "type": "string" - }, - "sourceProvider": { - "oneOf": [ - { - "type": "string", - "enum": ["onedrive"] - }, - { - "type": "string", - "enum": ["upload"] - }, - { - "type": "string", - "enum": ["sharepoint"] - } - ] - }, - "teamTags": { - "type": "array", - "items": { - "type": "string" - } - }, - "title": { - "type": "string" - } - } + "type": "object" } } }, - "Response_documents.mutations.updateDocument": { + "Response_sso_providers.actions.testExistingConfig": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -11773,32 +26532,45 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "object", + "required": [ + "valid" + ], + "properties": { + "error": { + "type": "string" + }, + "valid": { + "type": "boolean" + } + } + } } }, - "Request_documents.mutations.deleteDocument": { + "Request_sso_providers.queries.get": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { - "type": "object", - "required": ["documentId"], - "properties": { - "documentId": { - "type": "string", - "description": "ID from table \"documents\"" - } - } + "type": "object" } } }, - "Response_documents.mutations.deleteDocument": { + "Response_sso_providers.queries.get": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -11807,53 +26579,224 @@ "type": "object" }, "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_documents.mutations.createDocumentFromUpload": { - "type": "object", - "required": ["args"], - "properties": { - "args": { "type": "object", - "required": ["fileId", "fileName", "organizationId"], + "required": [ + "_id", + "autoProvisionRole", + "createdAt", + "defaultRole", + "issuer", + "organizationId", + "providerId", + "roleMappingRules", + "scopes", + "updatedAt" + ], "properties": { - "contentHash": { - "type": "string" + "_id": { + "type": "string", + "description": "ID from table \"ssoProviders\"" }, - "contentType": { - "type": "string" + "autoProvisionRole": { + "type": "boolean" }, - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" + "createdAt": { + "type": "number" }, - "fileName": { + "defaultRole": { + "oneOf": [ + { + "type": "string", + "enum": [ + "disabled" + ] + }, + { + "type": "string", + "enum": [ + "member" + ] + }, + { + "type": "string", + "enum": [ + "editor" + ] + }, + { + "type": "string", + "enum": [ + "developer" + ] + }, + { + "type": "string", + "enum": [ + "admin" + ] + } + ] + }, + "issuer": { "type": "string" }, - "metadata": {}, "organizationId": { "type": "string" }, - "teamTags": { + "providerFeatures": { + "type": "object", + "properties": { + "entraId": { + "type": "object", + "properties": { + "autoProvisionTeam": { + "type": "boolean" + }, + "domainHint": { + "type": "string" + }, + "enableOneDriveAccess": { + "type": "boolean" + }, + "excludeGroups": { + "type": "array", + "items": { + "type": "string" + } + }, + "seamlessSsoEnabled": { + "type": "boolean" + } + } + }, + "googleWorkspace": { + "type": "object", + "properties": { + "enableGoogleDriveAccess": { + "type": "boolean" + } + } + } + } + }, + "providerId": { + "type": "string" + }, + "roleMappingRules": { + "type": "array", + "items": { + "type": "object", + "required": [ + "pattern", + "source", + "targetRole" + ], + "properties": { + "pattern": { + "type": "string" + }, + "source": { + "oneOf": [ + { + "type": "string", + "enum": [ + "jobTitle" + ] + }, + { + "type": "string", + "enum": [ + "appRole" + ] + }, + { + "type": "string", + "enum": [ + "group" + ] + }, + { + "type": "string", + "enum": [ + "claim" + ] + } + ] + }, + "targetRole": { + "oneOf": [ + { + "type": "string", + "enum": [ + "disabled" + ] + }, + { + "type": "string", + "enum": [ + "member" + ] + }, + { + "type": "string", + "enum": [ + "editor" + ] + }, + { + "type": "string", + "enum": [ + "developer" + ] + }, + { + "type": "string", + "enum": [ + "admin" + ] + } + ] + } + } + } + }, + "scopes": { "type": "array", "items": { "type": "string" } + }, + "updatedAt": { + "type": "number" } - } + }, + "nullable": true } } }, - "Response_documents.mutations.createDocumentFromUpload": { + "Request_sso_providers.queries.isSsoConfigured": { "type": "object", - "required": ["status"], + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object" + } + } + }, + "Response_sso_providers.queries.isSsoConfigured": { + "type": "object", + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -11863,80 +26806,46 @@ }, "value": { "type": "object", - "required": ["documentId", "success"], + "required": [ + "enabled" + ], "properties": { - "documentId": { - "type": "string", - "description": "ID from table \"documents\"" + "enabled": { + "type": "boolean" }, - "error": { + "providerType": { "type": "string" }, - "success": { + "seamlessSsoEnabled": { "type": "boolean" } } } } }, - "Request_documents.queries.getDocumentById": { + "Request_sso_providers.queries.getMicrosoftToken": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { - "type": "object", - "required": ["documentId"], - "properties": { - "documentId": { - "type": "string", - "description": "ID from table \"documents\"" - } - } - } - } - }, - "Response_documents.queries.getDocumentById": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { "type": "object" - }, - "value": {} - } - }, - "Request_documents.queries.getDocumentByPath": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["organizationId", "storagePath"], - "properties": { - "organizationId": { - "type": "string" - }, - "storagePath": { - "type": "string" - } - } } } }, - "Response_documents.queries.getDocumentByPath": { + "Response_sso_providers.queries.getMicrosoftToken": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -11944,230 +26853,74 @@ "errorData": { "type": "object" }, - "value": {} - } - }, - "Request_documents.queries.listDocuments": { - "type": "object", - "required": ["args"], - "properties": { - "args": { + "value": { "type": "object", - "required": ["cursor", "organizationId"], + "required": [ + "accessToken", + "expiresAt", + "isExpired", + "refreshToken" + ], "properties": { - "cursor": { + "accessToken": { "type": "string", "nullable": true }, - "folderId": { - "type": "string" - }, - "numItems": { - "type": "number" + "expiresAt": { + "type": "number", + "nullable": true }, - "organizationId": { - "type": "string" + "isExpired": { + "type": "boolean" }, - "query": { - "type": "string" + "refreshToken": { + "type": "string", + "nullable": true } - } + }, + "nullable": true } } }, - "Response_documents.queries.listDocuments": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_email_providers.actions.createOAuth2Provider": { + "Request_team_members.mutations.addMember": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", "required": [ - "isDefault", - "name", "organizationId", - "provider", - "vendor" + "teamId", + "userId" ], "properties": { - "accountType": { - "oneOf": [ - { - "type": "string", - "enum": ["personal"] - }, - { - "type": "string", - "enum": ["organizational"] - }, - { - "type": "string", - "enum": ["both"] - } - ] - }, - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "credentialsSource": { - "oneOf": [ - { - "type": "string", - "enum": ["sso"] - }, - { - "type": "string", - "enum": ["manual"] - } - ] - }, - "imapConfig": { - "type": "object", - "required": ["host", "port", "secure"], - "properties": { - "host": { - "type": "string" - }, - "port": { - "type": "number" - }, - "secure": { - "type": "boolean" - } - } - }, - "isDefault": { - "type": "boolean" - }, - "name": { - "type": "string" - }, "organizationId": { "type": "string" }, - "provider": { - "oneOf": [ - { - "type": "string", - "enum": ["gmail"] - }, - { - "type": "string", - "enum": ["microsoft"] - } - ] - }, - "sendMethod": { - "oneOf": [ - { - "type": "string", - "enum": ["smtp"] - }, - { - "type": "string", - "enum": ["api"] - } - ] - }, - "smtpConfig": { - "type": "object", - "required": ["host", "port", "secure"], - "properties": { - "host": { - "type": "string" - }, - "port": { - "type": "number" - }, - "secure": { - "type": "boolean" - } - } - }, - "tenantId": { - "type": "string" - }, - "vendor": { - "oneOf": [ - { - "type": "string", - "enum": ["gmail"] - }, - { - "type": "string", - "enum": ["outlook"] - } - ] - } - } - } - } - }, - "Response_email_providers.actions.createOAuth2Provider": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_email_providers.actions.generateOAuth2AuthUrl": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["emailProviderId", "organizationId"], - "properties": { - "emailProviderId": { - "type": "string", - "description": "ID from table \"emailProviders\"" - }, - "organizationId": { + "teamId": { "type": "string" }, - "redirectUri": { + "userId": { "type": "string" } } } } }, - "Response_email_providers.actions.generateOAuth2AuthUrl": { + "Response_team_members.mutations.addMember": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -12178,44 +26931,41 @@ "value": {} } }, - "Request_email_providers.actions.storeOAuth2Tokens": { + "Request_team_members.mutations.removeMember": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { - "type": "object", - "required": ["accessToken", "emailProviderId", "tokenType"], - "properties": { - "accessToken": { - "type": "string" - }, - "emailProviderId": { - "type": "string", - "description": "ID from table \"emailProviders\"" - }, - "expiresIn": { - "type": "number" - }, - "refreshToken": { - "type": "string" - }, - "scope": { + "type": "object", + "required": [ + "organizationId", + "teamMemberId" + ], + "properties": { + "organizationId": { "type": "string" }, - "tokenType": { + "teamMemberId": { "type": "string" } } } } }, - "Response_email_providers.actions.storeOAuth2Tokens": { + "Response_team_members.mutations.removeMember": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -12223,118 +26973,43 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "string", + "nullable": true + } } }, - "Request_email_providers.actions.testConnection": { + "Request_team_members.queries.listByTeam": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["authMethod", "imapConfig", "smtpConfig", "vendor"], + "required": [ + "teamId" + ], "properties": { - "authMethod": { - "oneOf": [ - { - "type": "string", - "enum": ["password"] - }, - { - "type": "string", - "enum": ["oauth2"] - } - ] - }, - "imapConfig": { - "type": "object", - "required": ["host", "port", "secure"], - "properties": { - "host": { - "type": "string" - }, - "port": { - "type": "number" - }, - "secure": { - "type": "boolean" - } - } - }, - "oauth2Auth": { - "type": "object", - "required": ["accessToken", "user"], - "properties": { - "accessToken": { - "type": "string" - }, - "user": { - "type": "string" - } - } - }, - "passwordAuth": { - "type": "object", - "required": ["pass", "user"], - "properties": { - "pass": { - "type": "string" - }, - "user": { - "type": "string" - } - } - }, - "smtpConfig": { - "type": "object", - "required": ["host", "port", "secure"], - "properties": { - "host": { - "type": "string" - }, - "port": { - "type": "number" - }, - "secure": { - "type": "boolean" - } - } - }, - "vendor": { - "oneOf": [ - { - "type": "string", - "enum": ["gmail"] - }, - { - "type": "string", - "enum": ["outlook"] - }, - { - "type": "string", - "enum": ["smtp"] - }, - { - "type": "string", - "enum": ["resend"] - }, - { - "type": "string", - "enum": ["other"] - } - ] + "teamId": { + "type": "string" } } } } }, - "Response_email_providers.actions.testConnection": { + "Response_team_members.queries.listByTeam": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -12342,32 +27017,75 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "_id", + "joinedAt", + "role", + "teamId", + "userId" + ], + "properties": { + "_id": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "email": { + "type": "string" + }, + "joinedAt": { + "type": "number" + }, + "role": { + "type": "string" + }, + "teamId": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + } + } } }, - "Request_email_providers.actions.testExistingProvider": { + "Request_threads.get_message_error.getMessageError": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["providerId"], + "required": [ + "threadId" + ], "properties": { - "providerId": { - "type": "string", - "description": "ID from table \"emailProviders\"" + "threadId": { + "type": "string" } } } } }, - "Response_email_providers.actions.testExistingProvider": { + "Response_threads.get_message_error.getMessageError": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -12375,68 +27093,43 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "string", + "nullable": true + } } }, - "Request_email_providers.actions.updateOAuth2Provider": { + "Request_threads.mutations.forkThread": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["providerId"], + "required": [ + "shareToken" + ], "properties": { - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "credentialsSource": { - "oneOf": [ - { - "type": "string", - "enum": ["sso"] - }, - { - "type": "string", - "enum": ["manual"] - } - ] - }, - "name": { - "type": "string" - }, - "providerId": { - "type": "string", - "description": "ID from table \"emailProviders\"" - }, - "sendMethod": { - "oneOf": [ - { - "type": "string", - "enum": ["smtp"] - }, - { - "type": "string", - "enum": ["api"] - } - ] - }, - "tenantId": { + "shareToken": { "type": "string" } } } } }, - "Response_email_providers.actions.updateOAuth2Provider": { + "Response_threads.mutations.forkThread": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -12444,152 +27137,154 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "string" + } } }, - "Request_email_providers.actions.create": { + "Request_threads.mutations.shareThread": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", "required": [ - "authMethod", - "isDefault", - "name", - "organizationId", - "vendor" + "threadId" ], "properties": { - "authMethod": { - "oneOf": [ - { - "type": "string", - "enum": ["password"] - }, - { - "type": "string", - "enum": ["oauth2"] - } - ] - }, - "imapConfig": { - "type": "object", - "required": ["host", "port", "secure"], - "properties": { - "host": { - "type": "string" - }, - "port": { - "type": "number" - }, - "secure": { - "type": "boolean" - } - } - }, - "isDefault": { - "type": "boolean" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "oauth2Auth": { - "type": "object", - "required": ["clientId", "clientSecret", "provider"], - "properties": { - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "provider": { - "type": "string" - }, - "tokenUrl": { - "type": "string" - } - } - }, - "organizationId": { + "threadId": { "type": "string" - }, - "passwordAuth": { - "type": "object", - "required": ["pass", "user"], - "properties": { - "pass": { - "type": "string" - }, - "user": { - "type": "string" - } - } - }, - "sendMethod": { - "oneOf": [ - { - "type": "string", - "enum": ["smtp"] - }, - { - "type": "string", - "enum": ["api"] - } - ] - }, - "smtpConfig": { - "type": "object", - "required": ["host", "port", "secure"], - "properties": { - "host": { - "type": "string" - }, - "port": { - "type": "number" - }, - "secure": { - "type": "boolean" - } - } - }, - "vendor": { + } + } + } + } + }, + "Response_threads.mutations.shareThread": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string" + } + } + }, + "Request_threads.mutations.unshareThread": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "threadId" + ], + "properties": { + "threadId": { + "type": "string" + } + } + } + } + }, + "Response_threads.mutations.unshareThread": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_threads.mutations.createChatThread": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "chatType": { "oneOf": [ { "type": "string", - "enum": ["gmail"] - }, - { - "type": "string", - "enum": ["outlook"] - }, - { - "type": "string", - "enum": ["smtp"] + "enum": [ + "general" + ] }, { "type": "string", - "enum": ["resend"] + "enum": [ + "workflow_assistant" + ] }, { "type": "string", - "enum": ["other"] + "enum": [ + "agent_test" + ] } ] + }, + "organizationId": { + "type": "string" + }, + "title": { + "type": "string" } } } } }, - "Response_email_providers.actions.create": { + "Response_threads.mutations.createChatThread": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -12597,32 +27292,42 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "string" + } } }, - "Request_email_providers.mutations.deleteProvider": { + "Request_threads.mutations.deleteChatThread": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["providerId"], + "required": [ + "threadId" + ], "properties": { - "providerId": { - "type": "string", - "description": "ID from table \"emailProviders\"" + "threadId": { + "type": "string" } } } } }, - "Response_email_providers.mutations.deleteProvider": { + "Response_threads.mutations.deleteChatThread": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -12630,32 +27335,47 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "string", + "nullable": true + } } }, - "Request_email_providers.mutations.setDefault": { + "Request_threads.mutations.updateChatThread": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["providerId"], + "required": [ + "threadId", + "title" + ], "properties": { - "providerId": { - "type": "string", - "description": "ID from table \"emailProviders\"" + "threadId": { + "type": "string" + }, + "title": { + "type": "string" } } } } }, - "Response_email_providers.mutations.setDefault": { + "Response_threads.mutations.updateChatThread": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -12663,35 +27383,47 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "string", + "nullable": true + } } }, - "Request_email_providers.mutations.updateProvider": { + "Request_threads.mutations.cancelGeneration": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["providerId"], + "required": [ + "threadId" + ], "properties": { - "name": { - "type": "string" - }, - "providerId": { + "displayedContent": { "type": "string", - "description": "ID from table \"emailProviders\"" + "nullable": true + }, + "threadId": { + "type": "string" } } } } }, - "Response_email_providers.mutations.updateProvider": { + "Response_threads.mutations.cancelGeneration": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -12699,31 +27431,43 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "string", + "nullable": true + } } }, - "Request_email_providers.queries.list": { + "Request_threads.mutations.archiveChatThread": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId"], + "required": [ + "threadId" + ], "properties": { - "organizationId": { + "threadId": { "type": "string" } } } } }, - "Response_email_providers.queries.list": { + "Response_threads.mutations.archiveChatThread": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -12731,32 +27475,43 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "string", + "nullable": true + } } }, - "Request_files.queries.getFileUrl": { + "Request_threads.mutations.unarchiveChatThread": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["fileId"], + "required": [ + "threadId" + ], "properties": { - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" + "threadId": { + "type": "string" } } } } }, - "Response_files.queries.getFileUrl": { + "Response_threads.mutations.unarchiveChatThread": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -12770,29 +27525,37 @@ } } }, - "Request_integrations.queries.get": { + "Request_threads.queries.getSharedThread": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["integrationId"], + "required": [ + "shareToken" + ], "properties": { - "integrationId": { - "type": "string", - "description": "ID from table \"integrations\"" + "shareToken": { + "type": "string" } } } } }, - "Response_integrations.queries.get": { + "Response_threads.queries.getSharedThread": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -12800,397 +27563,168 @@ "errorData": { "type": "object" }, - "value": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "authMethod", - "isActive", - "name", - "organizationId", - "status", - "title" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "apiKeyAuth": { - "type": "object", - "required": ["keyEncrypted"], - "properties": { - "keyEncrypted": { - "type": "string" - }, - "keyPrefix": { - "type": "string" - } - } - }, - "authMethod": { - "oneOf": [ - { - "type": "string", - "enum": ["api_key"] - }, - { - "type": "string", - "enum": ["bearer_token"] - }, - { - "type": "string", - "enum": ["basic_auth"] - }, - { - "type": "string", - "enum": ["oauth2"] - } - ] - }, - "basicAuth": { - "type": "object", - "required": ["passwordEncrypted", "username"], - "properties": { - "passwordEncrypted": { - "type": "string" - }, - "username": { - "type": "string" - } - } - }, - "capabilities": { - "type": "object", - "properties": { - "canPush": { - "type": "boolean" - }, - "canSync": { - "type": "boolean" - }, - "canWebhook": { - "type": "boolean" - }, - "syncFrequency": { - "type": "string" - } - } - }, - "connectionConfig": { - "type": "object", - "properties": { - "apiEndpoint": { - "type": "string" - }, - "apiVersion": { - "type": "string" - }, - "domain": { - "type": "string" - }, - "rateLimit": { - "type": "number" - }, - "timeout": { - "type": "number" - } - } - }, - "connector": { + "value": {} + } + }, + "Request_threads.queries.listThreads": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "properties": { + "paginationOpts": { "type": "object", - "required": ["code", "operations", "secretBindings", "version"], + "required": [ + "cursor", + "numItems" + ], "properties": { - "allowedHosts": { - "type": "array", - "items": { - "type": "string" - } - }, - "code": { - "type": "string" - }, - "operations": { - "type": "array", - "items": { - "type": "object", - "required": ["name"], - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "operationType": { - "oneOf": [ - { - "type": "string", - "enum": ["read"] - }, - { - "type": "string", - "enum": ["write"] - } - ] - }, - "parametersSchema": {}, - "requiresApproval": { - "type": "boolean" - }, - "title": { - "type": "string" - } - } - } + "cursor": { + "type": "string", + "nullable": true }, - "secretBindings": { - "type": "array", - "items": { - "type": "string" - } + "endCursor": { + "type": "string", + "nullable": true }, - "timeoutMs": { + "id": { "type": "number" }, - "version": { + "maximumBytesRead": { "type": "number" - } - } - }, - "description": { - "type": "string" - }, - "errorMessage": { - "type": "string" - }, - "isActive": { - "type": "boolean" - }, - "lastErrorAt": { - "type": "number" - }, - "lastSuccessAt": { - "type": "number" - }, - "lastSyncedAt": { - "type": "number" - }, - "lastTestedAt": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "oauth2Auth": { - "type": "object", - "required": ["accessTokenEncrypted"], - "properties": { - "accessTokenEncrypted": { - "type": "string" - }, - "refreshTokenEncrypted": { - "type": "string" }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } + "maximumRowsRead": { + "type": "number" }, - "tokenExpiry": { + "numItems": { "type": "number" } } - }, - "organizationId": { - "type": "string" - }, - "sqlConnectionConfig": { + } + } + } + } + }, + "Response_threads.queries.listThreads": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_threads.queries.listArchivedThreads": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "properties": { + "paginationOpts": { "type": "object", - "required": ["database", "engine", "server"], + "required": [ + "cursor", + "numItems" + ], "properties": { - "database": { - "type": "string" - }, - "engine": { - "oneOf": [ - { - "type": "string", - "enum": ["mssql"] - }, - { - "type": "string", - "enum": ["postgres"] - }, - { - "type": "string", - "enum": ["mysql"] - } - ] - }, - "options": { - "type": "object", - "properties": { - "connectionTimeout": { - "type": "number" - }, - "encrypt": { - "type": "boolean" - }, - "requestTimeout": { - "type": "number" - }, - "trustServerCertificate": { - "type": "boolean" - } - } - }, - "port": { - "type": "number" - }, - "readOnly": { - "type": "boolean" - }, - "security": { - "type": "object", - "properties": { - "maxConnectionPoolSize": { - "type": "number" - }, - "maxResultRows": { - "type": "number" - }, - "queryTimeoutMs": { - "type": "number" - } - } - }, - "server": { - "type": "string" - } - } - }, - "sqlOperations": { - "type": "array", - "items": { - "type": "object", - "required": ["name", "query"], - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "operationType": { - "oneOf": [ - { - "type": "string", - "enum": ["read"] - }, - { - "type": "string", - "enum": ["write"] - } - ] - }, - "parametersSchema": {}, - "query": { - "type": "string" - }, - "requiresApproval": { - "type": "boolean" - }, - "title": { - "type": "string" - } - } - } - }, - "status": { - "oneOf": [ - { + "cursor": { "type": "string", - "enum": ["active"] + "nullable": true }, - { + "endCursor": { "type": "string", - "enum": ["inactive"] + "nullable": true }, - { - "type": "string", - "enum": ["error"] + "id": { + "type": "number" }, - { - "type": "string", - "enum": ["testing"] - } - ] - }, - "syncStats": { - "type": "object", - "properties": { - "failedSyncCount": { + "maximumBytesRead": { "type": "number" }, - "lastSyncCount": { + "maximumRowsRead": { "type": "number" }, - "totalRecords": { + "numItems": { "type": "number" } } - }, - "title": { - "type": "string" - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": ["rest_api"] - }, - { - "type": "string", - "enum": ["sql"] - } - ] } - }, - "nullable": true + } } } }, - "Request_integrations.queries.getByName": { + "Response_threads.queries.listArchivedThreads": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_threads.queries.isThreadGenerating": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["name", "organizationId"], + "required": [ + "threadId" + ], "properties": { - "name": { - "type": "string" - }, - "organizationId": { + "threadId": { "type": "string" } } } } }, - "Response_integrations.queries.getByName": { + "Response_threads.queries.isThreadGenerating": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -13199,396 +27733,529 @@ "type": "object" }, "value": { + "type": "boolean" + } + } + }, + "Request_threads.queries.getThreadMessagesStreaming": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { "type": "object", "required": [ - "_creationTime", - "_id", - "authMethod", - "isActive", - "name", - "organizationId", - "status", - "title" + "paginationOpts", + "threadId" ], "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "apiKeyAuth": { + "paginationOpts": { "type": "object", - "required": ["keyEncrypted"], + "required": [ + "cursor", + "numItems" + ], "properties": { - "keyEncrypted": { - "type": "string" - }, - "keyPrefix": { - "type": "string" - } - } - }, - "authMethod": { - "oneOf": [ - { - "type": "string", - "enum": ["api_key"] - }, - { - "type": "string", - "enum": ["bearer_token"] - }, - { + "cursor": { "type": "string", - "enum": ["basic_auth"] + "nullable": true }, - { + "endCursor": { "type": "string", - "enum": ["oauth2"] - } - ] - }, - "basicAuth": { - "type": "object", - "required": ["passwordEncrypted", "username"], - "properties": { - "passwordEncrypted": { - "type": "string" - }, - "username": { - "type": "string" - } - } - }, - "capabilities": { - "type": "object", - "properties": { - "canPush": { - "type": "boolean" - }, - "canSync": { - "type": "boolean" - }, - "canWebhook": { - "type": "boolean" - }, - "syncFrequency": { - "type": "string" - } - } - }, - "connectionConfig": { - "type": "object", - "properties": { - "apiEndpoint": { - "type": "string" - }, - "apiVersion": { - "type": "string" - }, - "domain": { - "type": "string" - }, - "rateLimit": { - "type": "number" + "nullable": true }, - "timeout": { + "id": { "type": "number" - } - } - }, - "connector": { - "type": "object", - "required": ["code", "operations", "secretBindings", "version"], - "properties": { - "allowedHosts": { - "type": "array", - "items": { - "type": "string" - } - }, - "code": { - "type": "string" - }, - "operations": { - "type": "array", - "items": { - "type": "object", - "required": ["name"], - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "operationType": { - "oneOf": [ - { - "type": "string", - "enum": ["read"] - }, - { - "type": "string", - "enum": ["write"] - } - ] - }, - "parametersSchema": {}, - "requiresApproval": { - "type": "boolean" - }, - "title": { - "type": "string" - } - } - } - }, - "secretBindings": { - "type": "array", - "items": { - "type": "string" - } }, - "timeoutMs": { + "maximumBytesRead": { "type": "number" }, - "version": { + "maximumRowsRead": { "type": "number" - } - } - }, - "description": { - "type": "string" - }, - "errorMessage": { - "type": "string" - }, - "isActive": { - "type": "boolean" - }, - "lastErrorAt": { - "type": "number" - }, - "lastSuccessAt": { - "type": "number" - }, - "lastSyncedAt": { - "type": "number" - }, - "lastTestedAt": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "oauth2Auth": { - "type": "object", - "required": ["accessTokenEncrypted"], - "properties": { - "accessTokenEncrypted": { - "type": "string" - }, - "refreshTokenEncrypted": { - "type": "string" }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "tokenExpiry": { + "numItems": { "type": "number" } } - }, - "organizationId": { - "type": "string" - }, - "sqlConnectionConfig": { - "type": "object", - "required": ["database", "engine", "server"], - "properties": { - "database": { - "type": "string" - }, - "engine": { - "oneOf": [ - { - "type": "string", - "enum": ["mssql"] - }, - { - "type": "string", - "enum": ["postgres"] - }, - { - "type": "string", - "enum": ["mysql"] - } - ] - }, - "options": { + }, + "streamArgs": { + "oneOf": [ + { "type": "object", + "required": [ + "kind" + ], "properties": { - "connectionTimeout": { - "type": "number" - }, - "encrypt": { - "type": "boolean" + "kind": { + "type": "string", + "enum": [ + "list" + ] }, - "requestTimeout": { + "startOrder": { "type": "number" - }, - "trustServerCertificate": { - "type": "boolean" } } }, - "port": { - "type": "number" - }, - "readOnly": { - "type": "boolean" - }, - "security": { + { "type": "object", + "required": [ + "cursors", + "kind" + ], "properties": { - "maxConnectionPoolSize": { - "type": "number" - }, - "maxResultRows": { - "type": "number" + "cursors": { + "type": "array", + "items": { + "type": "object", + "required": [ + "cursor", + "streamId" + ], + "properties": { + "cursor": { + "type": "number" + }, + "streamId": { + "type": "string" + } + } + } }, - "queryTimeoutMs": { - "type": "number" + "kind": { + "type": "string", + "enum": [ + "deltas" + ] } } - }, - "server": { - "type": "string" } - } + ] + }, + "threadId": { + "type": "string" + } + } + } + } + }, + "Response_threads.queries.getThreadMessagesStreaming": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_threads.queries.getFailedMessageErrors": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "threadId" + ], + "properties": { + "threadId": { + "type": "string" + } + } + } + } + }, + "Response_threads.queries.getFailedMessageErrors": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_threads.queries.getThreadStatus": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "threadId" + ], + "properties": { + "threadId": { + "type": "string" + } + } + } + } + }, + "Response_threads.queries.getThreadStatus": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_threads.queries.getThreadShareStatus": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "threadId" + ], + "properties": { + "threadId": { + "type": "string" + } + } + } + } + }, + "Response_threads.queries.getThreadShareStatus": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_users.mutations.updateUserName": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + } + }, + "Response_users.mutations.updateUserName": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_users.mutations.updateUserPassword": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "newPassword" + ], + "properties": { + "currentPassword": { + "type": "string" + }, + "newPassword": { + "type": "string" + } + } + } + } + }, + "Response_users.mutations.updateUserPassword": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_users.mutations.setMemberPassword": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "memberId", + "newPassword" + ], + "properties": { + "memberId": { + "type": "string" + }, + "newPassword": { + "type": "string" + } + } + } + } + }, + "Response_users.mutations.setMemberPassword": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_users.mutations.createMember": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "email", + "organizationId" + ], + "properties": { + "displayName": { + "type": "string" }, - "sqlOperations": { - "type": "array", - "items": { - "type": "object", - "required": ["name", "query"], - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "operationType": { - "oneOf": [ - { - "type": "string", - "enum": ["read"] - }, - { - "type": "string", - "enum": ["write"] - } - ] - }, - "parametersSchema": {}, - "query": { - "type": "string" - }, - "requiresApproval": { - "type": "boolean" - }, - "title": { - "type": "string" - } - } - } + "email": { + "type": "string" }, - "status": { + "organizationId": { + "type": "string" + }, + "password": { + "type": "string" + }, + "role": { "oneOf": [ { "type": "string", - "enum": ["active"] + "enum": [ + "owner" + ] }, { "type": "string", - "enum": ["inactive"] + "enum": [ + "admin" + ] }, { "type": "string", - "enum": ["error"] + "enum": [ + "developer" + ] }, { "type": "string", - "enum": ["testing"] - } - ] - }, - "syncStats": { - "type": "object", - "properties": { - "failedSyncCount": { - "type": "number" - }, - "lastSyncCount": { - "type": "number" + "enum": [ + "editor" + ] }, - "totalRecords": { - "type": "number" - } - } - }, - "title": { - "type": "string" - }, - "type": { - "oneOf": [ { "type": "string", - "enum": ["rest_api"] + "enum": [ + "member" + ] }, { "type": "string", - "enum": ["sql"] + "enum": [ + "disabled" + ] } ] } - }, - "nullable": true + } } } }, - "Request_integrations.queries.list": { + "Response_users.mutations.createMember": { "type": "object", - "required": ["args"], + "required": [ + "status" + ], "properties": { - "args": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { "type": "object", - "required": ["organizationId"], + "required": [ + "isExistingUser", + "memberId", + "userId" + ], "properties": { - "name": { + "isExistingUser": { + "type": "boolean" + }, + "memberId": { "type": "string" }, - "organizationId": { + "userId": { "type": "string" } } } } }, - "Response_integrations.queries.list": { + "Request_users.queries.hasAnyUsers": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object" + } + } + }, + "Response_users.queries.hasAnyUsers": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -13597,427 +28264,863 @@ "type": "object" }, "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "authMethod", - "isActive", - "name", - "organizationId", - "status", - "title" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "apiKeyAuth": { - "type": "object", - "required": ["keyEncrypted"], - "properties": { - "keyEncrypted": { - "type": "string" - }, - "keyPrefix": { - "type": "string" - } - } - }, - "authMethod": { - "oneOf": [ - { - "type": "string", - "enum": ["api_key"] - }, - { - "type": "string", - "enum": ["bearer_token"] - }, - { - "type": "string", - "enum": ["basic_auth"] - }, - { - "type": "string", - "enum": ["oauth2"] - } - ] - }, - "basicAuth": { - "type": "object", - "required": ["passwordEncrypted", "username"], - "properties": { - "passwordEncrypted": { - "type": "string" - }, - "username": { - "type": "string" - } - } - }, - "capabilities": { - "type": "object", - "properties": { - "canPush": { - "type": "boolean" - }, - "canSync": { - "type": "boolean" - }, - "canWebhook": { - "type": "boolean" - }, - "syncFrequency": { - "type": "string" - } - } - }, - "connectionConfig": { - "type": "object", - "properties": { - "apiEndpoint": { - "type": "string" - }, - "apiVersion": { - "type": "string" - }, - "domain": { - "type": "string" - }, - "rateLimit": { - "type": "number" - }, - "timeout": { - "type": "number" - } - } - }, - "connector": { + "type": "boolean" + } + } + }, + "Request_users.queries.getCurrentUser": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object" + } + } + }, + "Response_users.queries.getCurrentUser": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "userId" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "type": "string" + }, + "userId": { + "type": "string" + } + }, + "nullable": true + } + } + }, + "Request_vendors.mutations.bulkCreateVendors": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId", + "vendors" + ], + "properties": { + "organizationId": { + "type": "string" + }, + "vendors": { + "type": "array", + "items": { "type": "object", "required": [ - "code", - "operations", - "secretBindings", - "version" + "email", + "source" ], "properties": { - "allowedHosts": { - "type": "array", - "items": { - "type": "string" + "address": { + "type": "object", + "properties": { + "city": { + "type": "string" + }, + "country": { + "type": "string" + }, + "postalCode": { + "type": "string" + }, + "state": { + "type": "string" + }, + "street": { + "type": "string" + } } }, - "code": { + "email": { "type": "string" }, - "operations": { - "type": "array", - "items": { - "type": "object", - "required": ["name"], - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "operationType": { - "oneOf": [ - { - "type": "string", - "enum": ["read"] - }, - { - "type": "string", - "enum": ["write"] - } - ] - }, - "parametersSchema": {}, - "requiresApproval": { - "type": "boolean" - }, - "title": { - "type": "string" - } + "externalId": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" } - } - }, - "secretBindings": { - "type": "array", - "items": { - "type": "string" - } - }, - "timeoutMs": { - "type": "number" + ] }, - "version": { - "type": "number" - } - } - }, - "description": { - "type": "string" - }, - "errorMessage": { - "type": "string" - }, - "isActive": { - "type": "boolean" - }, - "lastErrorAt": { - "type": "number" - }, - "lastSuccessAt": { - "type": "number" - }, - "lastSyncedAt": { - "type": "number" - }, - "lastTestedAt": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "oauth2Auth": { - "type": "object", - "required": ["accessTokenEncrypted"], - "properties": { - "accessTokenEncrypted": { + "locale": { "type": "string" }, - "refreshTokenEncrypted": { + "metadata": {}, + "name": { "type": "string" }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } + "notes": { + "type": "string" }, - "tokenExpiry": { - "type": "number" - } - } - }, - "organizationId": { - "type": "string" - }, - "sqlConnectionConfig": { - "type": "object", - "required": ["database", "engine", "server"], - "properties": { - "database": { + "phone": { "type": "string" }, - "engine": { + "source": { "oneOf": [ { "type": "string", - "enum": ["mssql"] + "enum": [ + "manual_import" + ] + }, + { + "type": "string", + "enum": [ + "file_upload" + ] + }, + { + "type": "string", + "enum": [ + "api_import" + ] + }, + { + "type": "string", + "enum": [ + "shopify" + ] + }, + { + "type": "string", + "enum": [ + "woocommerce" + ] + }, + { + "type": "string", + "enum": [ + "magento" + ] + }, + { + "type": "string", + "enum": [ + "bigcommerce" + ] + }, + { + "type": "string", + "enum": [ + "prestashop" + ] + }, + { + "type": "string", + "enum": [ + "circuly" + ] + }, + { + "type": "string", + "enum": [ + "chargebee" + ] + }, + { + "type": "string", + "enum": [ + "stripe" + ] + }, + { + "type": "string", + "enum": [ + "recurly" + ] + }, + { + "type": "string", + "enum": [ + "salesforce" + ] + }, + { + "type": "string", + "enum": [ + "hubspot" + ] + }, + { + "type": "string", + "enum": [ + "pipedrive" + ] + }, + { + "type": "string", + "enum": [ + "zoho" + ] + }, + { + "type": "string", + "enum": [ + "sap" + ] + }, + { + "type": "string", + "enum": [ + "protel" + ] + }, + { + "type": "string", + "enum": [ + "oracle" + ] + }, + { + "type": "string", + "enum": [ + "netsuite" + ] + }, + { + "type": "string", + "enum": [ + "mailchimp" + ] + }, + { + "type": "string", + "enum": [ + "klaviyo" + ] + }, + { + "type": "string", + "enum": [ + "sendgrid" + ] + }, + { + "type": "string", + "enum": [ + "webhook" + ] }, { "type": "string", - "enum": ["postgres"] + "enum": [ + "zapier" + ] }, { "type": "string", - "enum": ["mysql"] + "enum": [ + "custom" + ] } ] }, - "options": { - "type": "object", - "properties": { - "connectionTimeout": { - "type": "number" - }, - "encrypt": { - "type": "boolean" - }, - "requestTimeout": { - "type": "number" - }, - "trustServerCertificate": { - "type": "boolean" - } - } - }, - "port": { - "type": "number" - }, - "readOnly": { - "type": "boolean" - }, - "security": { - "type": "object", - "properties": { - "maxConnectionPoolSize": { - "type": "number" - }, - "maxResultRows": { - "type": "number" - }, - "queryTimeoutMs": { - "type": "number" - } - } - }, - "server": { - "type": "string" - } - } - }, - "sqlOperations": { - "type": "array", - "items": { - "type": "object", - "required": ["name", "query"], - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "operationType": { - "oneOf": [ - { - "type": "string", - "enum": ["read"] - }, - { - "type": "string", - "enum": ["write"] - } - ] - }, - "parametersSchema": {}, - "query": { - "type": "string" - }, - "requiresApproval": { - "type": "boolean" - }, - "title": { + "tags": { + "type": "array", + "items": { "type": "string" } } } - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["active"] - }, - { - "type": "string", - "enum": ["inactive"] - }, - { - "type": "string", - "enum": ["error"] - }, - { - "type": "string", - "enum": ["testing"] - } - ] - }, - "syncStats": { + } + } + } + } + } + }, + "Response_vendors.mutations.bulkCreateVendors": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "errors", + "failed", + "success" + ], + "properties": { + "errors": { + "type": "array", + "items": { "type": "object", + "required": [ + "error", + "errorCode", + "index", + "vendor" + ], "properties": { - "failedSyncCount": { - "type": "number" + "error": { + "type": "string" }, - "lastSyncCount": { - "type": "number" + "errorCode": { + "type": "string" }, - "totalRecords": { + "index": { "type": "number" - } + }, + "vendor": {} + } + } + }, + "failed": { + "type": "number" + }, + "success": { + "type": "number" + } + } + } + } + }, + "Request_vendors.mutations.deleteVendor": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "vendorId" + ], + "properties": { + "vendorId": { + "type": "string", + "description": "ID from table \"vendors\"" + } + } + } + } + }, + "Response_vendors.mutations.deleteVendor": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_vendors.mutations.updateVendor": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "vendorId" + ], + "properties": { + "address": { + "type": "object", + "properties": { + "city": { + "type": "string" + }, + "country": { + "type": "string" + }, + "postalCode": { + "type": "string" + }, + "state": { + "type": "string" + }, + "street": { + "type": "string" + } + } + }, + "email": { + "type": "string" + }, + "externalId": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "metadata": {}, + "name": { + "type": "string" + }, + "notes": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "source": { + "oneOf": [ + { + "type": "string", + "enum": [ + "manual_import" + ] + }, + { + "type": "string", + "enum": [ + "file_upload" + ] + }, + { + "type": "string", + "enum": [ + "api_import" + ] + }, + { + "type": "string", + "enum": [ + "shopify" + ] + }, + { + "type": "string", + "enum": [ + "woocommerce" + ] + }, + { + "type": "string", + "enum": [ + "magento" + ] + }, + { + "type": "string", + "enum": [ + "bigcommerce" + ] + }, + { + "type": "string", + "enum": [ + "prestashop" + ] + }, + { + "type": "string", + "enum": [ + "circuly" + ] + }, + { + "type": "string", + "enum": [ + "chargebee" + ] + }, + { + "type": "string", + "enum": [ + "stripe" + ] + }, + { + "type": "string", + "enum": [ + "recurly" + ] + }, + { + "type": "string", + "enum": [ + "salesforce" + ] + }, + { + "type": "string", + "enum": [ + "hubspot" + ] + }, + { + "type": "string", + "enum": [ + "pipedrive" + ] + }, + { + "type": "string", + "enum": [ + "zoho" + ] + }, + { + "type": "string", + "enum": [ + "sap" + ] + }, + { + "type": "string", + "enum": [ + "protel" + ] + }, + { + "type": "string", + "enum": [ + "oracle" + ] + }, + { + "type": "string", + "enum": [ + "netsuite" + ] + }, + { + "type": "string", + "enum": [ + "mailchimp" + ] + }, + { + "type": "string", + "enum": [ + "klaviyo" + ] + }, + { + "type": "string", + "enum": [ + "sendgrid" + ] + }, + { + "type": "string", + "enum": [ + "webhook" + ] + }, + { + "type": "string", + "enum": [ + "zapier" + ] + }, + { + "type": "string", + "enum": [ + "custom" + ] } - }, - "title": { + ] + }, + "tags": { + "type": "array", + "items": { "type": "string" - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": ["rest_api"] - }, - { - "type": "string", - "enum": ["sql"] - } - ] } + }, + "vendorId": { + "type": "string", + "description": "ID from table \"vendors\"" } } } } }, - "Request_members.mutations.addMember": { + "Response_vendors.mutations.updateVendor": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_vendors.queries.approxCountVendors": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_vendors.queries.approxCountVendors": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "number" + } + } + }, + "Request_vendors.queries.listVendors": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId" + ], + "properties": { + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_vendors.queries.listVendors": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_vendors.queries.listVendorsPaginated": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId", "userId"], + "required": [ + "organizationId", + "paginationOpts" + ], "properties": { + "locale": { + "type": "string" + }, "organizationId": { "type": "string" }, - "role": { - "oneOf": [ - { + "paginationOpts": { + "type": "object", + "required": [ + "cursor", + "numItems" + ], + "properties": { + "cursor": { "type": "string", - "enum": ["disabled"] + "nullable": true }, - { + "endCursor": { "type": "string", - "enum": ["member"] + "nullable": true }, - { - "type": "string", - "enum": ["editor"] + "id": { + "type": "number" }, - { - "type": "string", - "enum": ["developer"] + "maximumBytesRead": { + "type": "number" }, - { - "type": "string", - "enum": ["admin"] + "maximumRowsRead": { + "type": "number" + }, + "numItems": { + "type": "number" } - ] + } + }, + "source": { + "type": "string" + } + } + } + } + }, + "Response_vendors.queries.listVendorsPaginated": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_websites.actions.createWebsite": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "domain", + "organizationId", + "scanInterval" + ], + "properties": { + "description": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "scanInterval": { + "type": "string" }, - "userId": { + "title": { "type": "string" } } } } }, - "Response_members.mutations.addMember": { + "Response_websites.actions.createWebsite": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -14026,32 +29129,43 @@ "type": "object" }, "value": { - "type": "string" + "type": "string", + "description": "ID from table \"websites\"" } } }, - "Request_members.mutations.removeMember": { + "Request_websites.actions.deleteWebsite": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["memberId"], + "required": [ + "websiteId" + ], "properties": { - "memberId": { - "type": "string" + "websiteId": { + "type": "string", + "description": "ID from table \"websites\"" } } } } }, - "Response_members.mutations.removeMember": { + "Response_websites.actions.deleteWebsite": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -14065,52 +29179,50 @@ } } }, - "Request_members.mutations.updateMemberRole": { + "Request_websites.actions.updateWebsite": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["memberId", "role"], + "required": [ + "websiteId" + ], "properties": { - "memberId": { + "description": { "type": "string" }, - "role": { - "oneOf": [ - { - "type": "string", - "enum": ["disabled"] - }, - { - "type": "string", - "enum": ["member"] - }, - { - "type": "string", - "enum": ["editor"] - }, - { - "type": "string", - "enum": ["developer"] - }, - { - "type": "string", - "enum": ["admin"] - } - ] + "domain": { + "type": "string" + }, + "scanInterval": { + "type": "string" + }, + "title": { + "type": "string" + }, + "websiteId": { + "type": "string", + "description": "ID from table \"websites\"" } } } } }, - "Response_members.mutations.updateMemberRole": { + "Response_websites.actions.updateWebsite": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -14124,31 +29236,37 @@ } } }, - "Request_members.mutations.updateMemberDisplayName": { + "Request_websites.actions.syncStatuses": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["displayName", "memberId"], + "required": [ + "organizationId" + ], "properties": { - "displayName": { - "type": "string" - }, - "memberId": { + "organizationId": { "type": "string" } } } } }, - "Response_members.mutations.updateMemberDisplayName": { + "Response_websites.actions.syncStatuses": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -14162,28 +29280,44 @@ } } }, - "Request_members.queries.getCurrentMemberContext": { + "Request_websites.actions.fetchPages": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId"], + "required": [ + "websiteId" + ], "properties": { - "organizationId": { - "type": "string" + "limit": { + "type": "number" + }, + "offset": { + "type": "number" + }, + "websiteId": { + "type": "string", + "description": "ID from table \"websites\"" } } } } }, - "Response_members.queries.getCurrentMemberContext": { + "Response_websites.actions.fetchPages": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -14194,83 +29328,111 @@ "value": { "type": "object", "required": [ - "createdAt", - "isAdmin", - "memberId", - "organizationId", - "role", - "userId" + "hasMore", + "offset", + "pages", + "total" ], "properties": { - "createdAt": { - "type": "number" - }, - "displayName": { - "type": "string" - }, - "isAdmin": { + "hasMore": { "type": "boolean" }, - "memberId": { - "type": "string" - }, - "organizationId": { - "type": "string" + "offset": { + "type": "number" }, - "role": { - "oneOf": [ - { - "type": "string", - "enum": ["admin"] - }, - { - "type": "string", - "enum": ["member"] - }, - { - "type": "string", - "enum": ["editor"] - }, - { - "type": "string", - "enum": ["developer"] - }, - { - "type": "string", - "enum": ["disabled"] + "pages": { + "type": "array", + "items": { + "type": "object", + "required": [ + "chunks_count", + "content_hash", + "discovered_at", + "indexed", + "last_crawled_at", + "status", + "title", + "url", + "word_count" + ], + "properties": { + "chunks_count": { + "type": "number" + }, + "content_hash": { + "type": "string", + "nullable": true + }, + "discovered_at": { + "type": "string", + "nullable": true + }, + "indexed": { + "type": "boolean" + }, + "last_crawled_at": { + "type": "string", + "nullable": true + }, + "status": { + "type": "string" + }, + "title": { + "type": "string", + "nullable": true + }, + "url": { + "type": "string" + }, + "word_count": { + "type": "number" + } } - ] + } }, - "userId": { - "type": "string" + "total": { + "type": "number" } - }, - "nullable": true + } } } }, - "Request_members.queries.listByOrganization": { + "Request_websites.actions.fetchChunks": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId"], + "required": [ + "url", + "websiteId" + ], "properties": { - "organizationId": { + "url": { "type": "string" + }, + "websiteId": { + "type": "string", + "description": "ID from table \"websites\"" } } } } }, - "Response_members.queries.listByOrganization": { + "Response_websites.actions.fetchChunks": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -14278,66 +29440,48 @@ "errorData": { "type": "object" }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_id", - "createdAt", - "organizationId", - "role", - "userId" - ], - "properties": { - "_id": { - "type": "string" - }, - "createdAt": { - "type": "number" - }, - "displayName": { - "type": "string" - }, - "email": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "role": { - "type": "string" - }, - "userId": { - "type": "string" - } - } - } - } + "value": {} } }, - "Request_members.queries.getUserIdByEmail": { + "Request_websites.actions.searchContent": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["email"], + "required": [ + "query", + "websiteId" + ], "properties": { - "email": { + "limit": { + "type": "number" + }, + "query": { "type": "string" + }, + "websiteId": { + "type": "string", + "description": "ID from table \"websites\"" } } } } }, - "Response_members.queries.getUserIdByEmail": { + "Response_websites.actions.searchContent": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -14345,28 +29489,87 @@ "errorData": { "type": "object" }, - "value": { - "type": "string", - "nullable": true - } + "value": {} } }, - "Request_members.queries.getUserOrganizationsList": { + "Request_websites.mutations.updateWebsite": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { - "type": "object" + "type": "object", + "required": [ + "websiteId" + ], + "properties": { + "description": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "scanInterval": { + "type": "string" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "idle" + ] + }, + { + "type": "string", + "enum": [ + "scanning" + ] + }, + { + "type": "string", + "enum": [ + "active" + ] + }, + { + "type": "string", + "enum": [ + "error" + ] + }, + { + "type": "string", + "enum": [ + "deleting" + ] + } + ] + }, + "title": { + "type": "string" + }, + "websiteId": { + "type": "string", + "description": "ID from table \"websites\"" + } + } } } }, - "Response_members.queries.getUserOrganizationsList": { + "Response_websites.mutations.updateWebsite": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -14375,29 +29578,22 @@ "type": "object" }, "value": { - "type": "array", - "items": { - "type": "object", - "required": ["organizationId", "role"], - "properties": { - "organizationId": { - "type": "string" - }, - "role": { - "type": "string" - } - } - } + "type": "string", + "nullable": true } } }, - "Request_members.queries.getMyTeams": { + "Request_websites.queries.approxCountWebsites": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId"], + "required": [ + "organizationId" + ], "properties": { "organizationId": { "type": "string" @@ -14406,13 +29602,18 @@ } } }, - "Response_members.queries.getMyTeams": { + "Response_websites.queries.approxCountWebsites": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -14421,50 +29622,41 @@ "type": "object" }, "value": { - "type": "object", - "required": ["teams"], - "properties": { - "teams": { - "type": "array", - "items": { - "type": "object", - "required": ["id", "name"], - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - } - } - } + "type": "number" } } }, - "Request_message_metadata.queries.getMessageMetadata": { + "Request_websites.queries.listWebsites": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["messageId"], + "required": [ + "organizationId" + ], "properties": { - "messageId": { + "organizationId": { "type": "string" } } } } }, - "Response_message_metadata.queries.getMessageMetadata": { + "Response_websites.queries.listWebsites": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -14473,264 +29665,154 @@ "type": "object" }, "value": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "messageId", - "model", - "provider", - "threadId" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string", - "description": "ID from table \"messageMetadata\"" - }, - "cachedInputTokens": { - "type": "number" - }, - "contextStats": { - "type": "object", - "required": [ - "approvalCount", - "hasIntegrations", - "hasRag", - "messageCount", - "totalTokens" - ], - "properties": { - "approvalCount": { - "type": "number" - }, - "hasIntegrations": { - "type": "boolean" - }, - "hasRag": { - "type": "boolean" - }, - "hasSummary": { - "type": "boolean" - }, - "messageCount": { - "type": "number" - }, - "totalTokens": { - "type": "number" - } - } - }, - "contextWindow": { - "type": "string" - }, - "durationMs": { - "type": "number" - }, - "inputTokens": { - "type": "number" - }, - "messageId": { - "type": "string" - }, - "model": { - "type": "string" - }, - "outputTokens": { - "type": "number" - }, - "provider": { - "type": "string" - }, - "providerMetadata": {}, - "reasoning": { - "type": "string" - }, - "reasoningTokens": { - "type": "number" - }, - "subAgentUsage": { - "type": "array", - "deprecated": true, - "description": "Deprecated. Use toolsUsage instead.", - "items": { - "type": "object", - "required": ["toolName"], - "properties": { - "durationMs": { - "type": "number" - }, - "input": { - "type": "string" - }, - "inputTokens": { - "type": "number" - }, - "model": { - "type": "string" - }, - "output": { - "type": "string" - }, - "outputTokens": { - "type": "number" - }, - "provider": { - "type": "string" - }, - "toolName": { - "type": "string" - }, - "totalTokens": { - "type": "number" - } - } - } - }, - "toolsUsage": { - "type": "array", - "description": "Usage data for all tool calls made during message generation.", - "items": { - "type": "object", - "required": ["toolName"], - "properties": { - "durationMs": { - "type": "number" - }, - "input": { - "type": "string" - }, - "inputTokens": { - "type": "number" - }, - "model": { - "type": "string" - }, - "output": { - "type": "string" + "type": "array", + "items": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "domain", + "organizationId", + "scanInterval" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "crawledPageCount": { + "type": "number" + }, + "description": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "lastScannedAt": { + "type": "number" + }, + "metadata": {}, + "organizationId": { + "type": "string" + }, + "pageCount": { + "type": "number" + }, + "scanInterval": { + "type": "string" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "idle" + ] }, - "outputTokens": { - "type": "number" + { + "type": "string", + "enum": [ + "scanning" + ] }, - "provider": { - "type": "string" + { + "type": "string", + "enum": [ + "active" + ] }, - "toolName": { - "type": "string" + { + "type": "string", + "enum": [ + "error" + ] }, - "totalTokens": { - "type": "number" + { + "type": "string", + "enum": [ + "deleting" + ] } - } - } - }, - "threadId": { - "type": "string" - }, - "timeToFirstTokenMs": { - "type": "number" - }, - "totalTokens": { - "type": "number" + ] + }, + "title": { + "type": "string" + } } - }, - "nullable": true + } } } }, - "Request_onedrive.actions.importFiles": { + "Request_websites.queries.listWebsitesPaginated": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["importType", "items", "organizationId"], + "required": [ + "organizationId", + "paginationOpts" + ], "properties": { - "importType": { - "oneOf": [ - { + "organizationId": { + "type": "string" + }, + "paginationOpts": { + "type": "object", + "required": [ + "cursor", + "numItems" + ], + "properties": { + "cursor": { "type": "string", - "enum": ["one-time"] + "nullable": true }, - { + "endCursor": { "type": "string", - "enum": ["sync"] - } - ] - }, - "items": { - "type": "array", - "items": { - "type": "object", - "required": ["id", "name", "size"], - "properties": { - "driveId": { - "type": "string" - }, - "id": { - "type": "string" - }, - "isDirectlySelected": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "relativePath": { - "type": "string" - }, - "selectedParentId": { - "type": "string" - }, - "selectedParentName": { - "type": "string" - }, - "selectedParentPath": { - "type": "string" - }, - "siteId": { - "type": "string" - }, - "size": { - "type": "number" - }, - "sourceType": { - "oneOf": [ - { - "type": "string", - "enum": ["onedrive"] - }, - { - "type": "string", - "enum": ["sharepoint"] - } - ] - } + "nullable": true + }, + "id": { + "type": "number" + }, + "maximumBytesRead": { + "type": "number" + }, + "maximumRowsRead": { + "type": "number" + }, + "numItems": { + "type": "number" } } }, - "organizationId": { + "scanInterval": { "type": "string" }, - "teamTags": { - "type": "array", - "items": { - "type": "string" - } + "status": { + "type": "string" } } } } }, - "Response_onedrive.actions.importFiles": { + "Response_websites.queries.listWebsitesPaginated": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -14738,99 +29820,85 @@ "errorData": { "type": "object" }, - "value": { + "value": {} + } + }, + "Request_wf_executions.mutations.cancelExecution": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { "type": "object", "required": [ - "failedCount", - "results", - "skippedCount", - "success", - "successCount", - "totalFiles" + "executionId" ], "properties": { - "error": { - "type": "string" - }, - "failedCount": { - "type": "number" - }, - "results": { - "type": "array", - "items": { - "type": "object", - "required": ["fileId", "fileName", "status"], - "properties": { - "documentId": { - "type": "string", - "description": "ID from table \"documents\"" - }, - "error": { - "type": "string" - }, - "fileId": { - "type": "string" - }, - "fileName": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["success"] - }, - { - "type": "string", - "enum": ["skipped"] - }, - { - "type": "string", - "enum": ["error"] - } - ] - } - } - } - }, - "skippedCount": { - "type": "number" - }, - "success": { - "type": "boolean" - }, - "successCount": { - "type": "number" - }, - "totalFiles": { - "type": "number" + "executionId": { + "type": "string", + "description": "ID from table \"wfExecutions\"" } } } } }, - "Request_onedrive.actions.listSharePointDrives": { + "Response_wf_executions.mutations.cancelExecution": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_wf_executions.queries.approxCountExecutions": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["siteId"], + "required": [ + "wfDefinitionId" + ], "properties": { - "siteId": { + "wfDefinitionId": { "type": "string" } } } } }, - "Response_onedrive.actions.listSharePointDrives": { + "Response_wf_executions.queries.approxCountExecutions": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -14839,71 +29907,84 @@ "type": "object" }, "value": { + "type": "number" + } + } + }, + "Request_wf_executions.queries.getExecutionStatus": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { "type": "object", - "required": ["success"], + "required": [ + "executionId" + ], "properties": { - "drives": { - "type": "array", - "items": { - "type": "object", - "required": ["driveType", "id", "name"], - "properties": { - "description": { - "type": "string" - }, - "driveType": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "webUrl": { - "type": "string" - } - } - } - }, - "error": { - "type": "string" - }, - "success": { - "type": "boolean" + "executionId": { + "type": "string", + "description": "ID from table \"wfExecutions\"" } } } } }, - "Request_onedrive.actions.listSharePointFiles": { + "Response_wf_executions.queries.getExecutionStatus": { "type": "object", - "required": ["args"], + "required": [ + "status" + ], "properties": { - "args": { - "type": "object", - "required": ["driveId", "siteId"], - "properties": { - "driveId": { - "type": "string" - }, - "folderId": { - "type": "string" - }, - "siteId": { - "type": "string" + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_wf_executions.queries.getExecutionStepJournal": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "executionId" + ], + "properties": { + "executionId": { + "type": "string", + "description": "ID from table \"wfExecutions\"" } } } } }, - "Response_onedrive.actions.listSharePointFiles": { + "Response_wf_executions.queries.getExecutionStepJournal": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -14911,74 +29992,41 @@ "errorData": { "type": "object" }, - "value": { - "type": "object", - "required": ["success"], - "properties": { - "error": { - "type": "string" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "required": ["id", "isFolder", "name", "size"], - "properties": { - "childCount": { - "type": "number" - }, - "id": { - "type": "string" - }, - "isFolder": { - "type": "boolean" - }, - "lastModified": { - "type": "number" - }, - "mimeType": { - "type": "string" - }, - "name": { - "type": "string" - }, - "size": { - "type": "number" - }, - "webUrl": { - "type": "string" - } - } - } - }, - "success": { - "type": "boolean" - } - } - } + "value": {} } }, - "Request_onedrive.actions.listSharePointSites": { + "Request_wf_executions.queries.getRawExecution": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", + "required": [ + "executionId" + ], "properties": { - "search": { - "type": "string" + "executionId": { + "type": "string", + "description": "ID from table \"wfExecutions\"" } } } } }, - "Response_onedrive.actions.listSharePointSites": { + "Response_wf_executions.queries.getRawExecution": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -14986,68 +30034,85 @@ "errorData": { "type": "object" }, - "value": { + "value": {} + } + }, + "Request_wf_executions.queries.listExecutions": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { "type": "object", - "required": ["success"], + "required": [ + "paginationOpts", + "wfDefinitionId" + ], "properties": { - "error": { + "dateFrom": { "type": "string" }, - "sites": { + "dateTo": { + "type": "string" + }, + "paginationOpts": { + "type": "object", + "required": [ + "cursor", + "numItems" + ], + "properties": { + "cursor": { + "type": "string", + "nullable": true + }, + "endCursor": { + "type": "string", + "nullable": true + }, + "id": { + "type": "number" + }, + "maximumBytesRead": { + "type": "number" + }, + "maximumRowsRead": { + "type": "number" + }, + "numItems": { + "type": "number" + } + } + }, + "status": { "type": "array", "items": { - "type": "object", - "required": ["displayName", "id", "name", "webUrl"], - "properties": { - "description": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "webUrl": { - "type": "string" - } - } + "type": "string" } }, - "success": { - "type": "boolean" - } - } - } - } - }, - "Request_onedrive.actions.listFiles": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "properties": { - "folderId": { + "triggeredBy": { "type": "string" }, - "search": { + "wfDefinitionId": { "type": "string" } } } } }, - "Response_onedrive.actions.listFiles": { + "Response_wf_executions.queries.listExecutions": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -15055,75 +30120,105 @@ "errorData": { "type": "object" }, - "value": { + "value": {} + } + }, + "Request_wf_executions.queries.listExecutionsCursor": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { "type": "object", - "required": ["success"], + "required": [ + "wfDefinitionId" + ], "properties": { - "error": { + "cursor": { "type": "string" }, - "items": { + "dateFrom": { + "type": "string" + }, + "dateTo": { + "type": "string" + }, + "numItems": { + "type": "number" + }, + "searchTerm": { + "type": "string" + }, + "status": { "type": "array", "items": { - "type": "object", - "required": ["id", "isFolder", "name", "size"], - "properties": { - "childCount": { - "type": "number" - }, - "id": { - "type": "string" - }, - "isFolder": { - "type": "boolean" - }, - "lastModified": { - "type": "number" - }, - "mimeType": { - "type": "string" - }, - "name": { - "type": "string" - }, - "size": { - "type": "number" - }, - "webUrl": { - "type": "string" - } - } + "type": "string" } }, - "success": { - "type": "boolean" + "triggeredBy": { + "type": "string" + }, + "wfDefinitionId": { + "type": "string" } } } } }, - "Request_organizations.actions.initializeDefaultWorkflows": { + "Response_wf_executions.queries.listExecutionsCursor": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_workflows.triggers.actions.generateCronExpression": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId"], + "required": [ + "naturalLanguage" + ], "properties": { - "organizationId": { + "naturalLanguage": { "type": "string" } } } } }, - "Response_organizations.actions.initializeDefaultWorkflows": { + "Response_workflows.triggers.actions.generateCronExpression": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -15132,36 +30227,63 @@ "type": "object" }, "value": { - "type": "array", - "items": { - "type": "string", - "description": "ID from table \"wfDefinitions\"" + "type": "object", + "required": [ + "cronExpression", + "description" + ], + "properties": { + "cronExpression": { + "type": "string" + }, + "description": { + "type": "string" + } } } } }, - "Request_organizations.queries.getOrganization": { + "Request_wf_executions.actions.startWorkflowFromFile": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["id"], + "required": [ + "organizationId", + "triggeredBy", + "workflowSlug" + ], "properties": { - "id": { + "input": {}, + "organizationId": { + "type": "string" + }, + "triggerData": {}, + "triggeredBy": { + "type": "string" + }, + "workflowSlug": { "type": "string" } } } } }, - "Response_organizations.queries.getOrganization": { + "Response_wf_executions.actions.startWorkflowFromFile": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -15170,138 +30292,47 @@ "type": "object" }, "value": { - "type": "object", - "required": ["_creationTime", "_id", "createdAt", "name"], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "createdAt": { - "type": "number" - }, - "logo": { - "type": "string", - "nullable": true - }, - "metadata": {}, - "name": { - "type": "string" - }, - "slug": { - "type": "string" - } - }, + "type": "string", + "description": "ID from table \"wfExecutions\"", "nullable": true } } }, - "Request_products.mutations.createProduct": { + "Request_workflows.file_actions.deleteWorkflow": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["name", "organizationId"], + "required": [ + "orgSlug", + "workflowSlug" + ], "properties": { - "category": { - "type": "string" - }, - "currency": { - "type": "string" - }, - "description": { - "type": "string" - }, - "imageUrl": { - "type": "string" - }, - "metadata": {}, - "name": { + "orgSlug": { "type": "string" }, - "organizationId": { + "workflowSlug": { "type": "string" - }, - "price": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["active"] - }, - { - "type": "string", - "enum": ["inactive"] - }, - { - "type": "string", - "enum": ["draft"] - }, - { - "type": "string", - "enum": ["archived"] - } - ] - }, - "stock": { - "type": "number" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "translations": { - "type": "array", - "items": { - "type": "object", - "required": ["language", "lastUpdated"], - "properties": { - "category": { - "type": "string" - }, - "createdAt": { - "type": "number" - }, - "description": { - "type": "string" - }, - "language": { - "type": "string" - }, - "lastUpdated": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - } } } } } }, - "Response_products.mutations.createProduct": { + "Response_workflows.file_actions.deleteWorkflow": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -15311,33 +30342,45 @@ }, "value": { "type": "string", - "description": "ID from table \"products\"" + "nullable": true } } }, - "Request_products.mutations.deleteProduct": { + "Request_workflows.file_actions.duplicateWorkflow": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["productId"], + "required": [ + "orgSlug", + "workflowSlug" + ], "properties": { - "productId": { - "type": "string", - "description": "ID from table \"products\"" + "orgSlug": { + "type": "string" + }, + "workflowSlug": { + "type": "string" } } } } }, - "Response_products.mutations.deleteProduct": { + "Response_workflows.file_actions.duplicateWorkflow": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -15346,116 +30389,49 @@ "type": "object" }, "value": { - "type": "string", - "description": "ID from table \"products\"" + "type": "object", + "required": [ + "newSlug" + ], + "properties": { + "newSlug": { + "type": "string" + } + } } } }, - "Request_products.mutations.updateProduct": { + "Request_workflows.file_actions.getAvailableWorkflows": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["productId"], + "required": [ + "organizationId" + ], "properties": { - "category": { - "type": "string" - }, - "currency": { - "type": "string" - }, - "description": { - "type": "string" - }, - "imageUrl": { - "type": "string" - }, - "metadata": {}, - "name": { + "organizationId": { "type": "string" - }, - "price": { - "type": "number" - }, - "productId": { - "type": "string", - "description": "ID from table \"products\"" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["active"] - }, - { - "type": "string", - "enum": ["inactive"] - }, - { - "type": "string", - "enum": ["draft"] - }, - { - "type": "string", - "enum": ["archived"] - } - ] - }, - "stock": { - "type": "number" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "translations": { - "type": "array", - "items": { - "type": "object", - "required": ["language", "lastUpdated"], - "properties": { - "category": { - "type": "string" - }, - "createdAt": { - "type": "number" - }, - "description": { - "type": "string" - }, - "language": { - "type": "string" - }, - "lastUpdated": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - } } } } } }, - "Response_products.mutations.updateProduct": { + "Response_workflows.file_actions.getAvailableWorkflows": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -15464,53 +30440,63 @@ "type": "object" }, "value": { - "type": "string", - "description": "ID from table \"products\"" + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } } } }, - "Request_products.mutations.upsertProductTranslation": { + "Request_workflows.file_actions.installWorkflow": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["language", "productId"], + "required": [ + "orgSlug", + "workflowSlug" + ], "properties": { - "category": { - "type": "string" - }, - "description": { - "type": "string" - }, - "language": { - "type": "string" - }, - "metadata": {}, - "name": { + "orgSlug": { + "type": "string" + }, + "workflowSlug": { "type": "string" - }, - "productId": { - "type": "string", - "description": "ID from table \"products\"" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } } } } } }, - "Response_products.mutations.upsertProductTranslation": { + "Response_workflows.file_actions.installWorkflow": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -15519,34 +30505,53 @@ "type": "object" }, "value": { - "type": "string", - "description": "ID from table \"products\"" + "type": "object", + "required": [ + "hash" + ], + "properties": { + "hash": { + "type": "string" + } + } } } }, - "Request_products.queries.getProduct": { + "Request_workflows.file_actions.listHistory": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["productId"], + "required": [ + "orgSlug", + "workflowSlug" + ], "properties": { - "productId": { - "type": "string", - "description": "ID from table \"products\"" + "orgSlug": { + "type": "string" + }, + "workflowSlug": { + "type": "string" } } } } }, - "Response_products.queries.getProduct": { + "Response_workflows.file_actions.listHistory": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -15554,130 +30559,62 @@ "errorData": { "type": "object" }, - "value": { + "value": {} + } + }, + "Request_workflows.file_actions.listWorkflows": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { "type": "object", - "required": ["createdAt", "id", "lastUpdated", "name"], + "required": [ + "orgSlug" + ], "properties": { - "category": { - "type": "string" - }, - "createdAt": { - "type": "number" - }, - "currency": { - "type": "string" - }, - "description": { - "type": "string" - }, - "id": { - "type": "string" - }, - "imageUrl": { - "type": "string" - }, - "lastUpdated": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "price": { - "type": "number" - }, - "relatedProductsCount": { - "type": "number" - }, - "status": { + "filter": { "oneOf": [ { "type": "string", - "enum": ["active"] - }, - { - "type": "string", - "enum": ["inactive"] + "enum": [ + "installed" + ] }, { "type": "string", - "enum": ["draft"] + "enum": [ + "templates" + ] }, { "type": "string", - "enum": ["archived"] + "enum": [ + "all" + ] } ] }, - "stock": { - "type": "number" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "translations": { - "type": "array", - "items": { - "type": "object", - "required": ["language", "lastUpdated"], - "properties": { - "category": { - "type": "string" - }, - "createdAt": { - "type": "number" - }, - "description": { - "type": "string" - }, - "language": { - "type": "string" - }, - "lastUpdated": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - } - } - } - }, - "Request_products.queries.hasProducts": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["organizationId"], - "properties": { - "organizationId": { + "orgSlug": { "type": "string" } } } } }, - "Response_products.queries.hasProducts": { + "Response_workflows.file_actions.listWorkflows": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -15685,204 +30622,149 @@ "errorData": { "type": "object" }, - "value": { - "type": "boolean" - } + "value": {} } }, - "Request_products.queries.listProducts": { + "Request_workflows.file_actions.readHistoryEntry": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId", "paginationOpts"], + "required": [ + "orgSlug", + "timestamp", + "workflowSlug" + ], "properties": { - "organizationId": { + "orgSlug": { "type": "string" }, - "paginationOpts": { - "type": "object", - "required": ["cursor", "numItems"], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } + "timestamp": { + "type": "string" + }, + "workflowSlug": { + "type": "string" } } } } }, - "Response_products.queries.listProducts": { + "Response_workflows.file_actions.readHistoryEntry": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" }, "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": ["continueCursor", "isDone", "page"], - "properties": { - "continueCursor": { - "type": "string" - }, - "isDone": { - "type": "boolean" - }, - "page": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "name", - "organizationId" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "category": { - "type": "string" - }, - "currency": { - "type": "string" - }, - "description": { - "type": "string" - }, - "externalId": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - }, - "imageUrl": { - "type": "string" - }, - "lastUpdated": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "price": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["active"] - }, - { - "type": "string", - "enum": ["inactive"] - }, - { - "type": "string", - "enum": ["draft"] - }, - { - "type": "string", - "enum": ["archived"] - } - ] - }, - "stock": { - "type": "number" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "translations": { - "type": "array", - "items": { - "type": "object", - "required": ["language", "lastUpdated"], - "properties": { - "category": { - "type": "string" - }, - "createdAt": { - "type": "number" - }, - "description": { - "type": "string" - }, - "language": { - "type": "string" - }, - "lastUpdated": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - } - } + "type": "object" + }, + "value": {} + } + }, + "Request_workflows.file_actions.renameWorkflow": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "newSlug", + "oldSlug", + "orgSlug" + ], + "properties": { + "newSlug": { + "type": "string" + }, + "oldSlug": { + "type": "string" + }, + "orgSlug": { + "type": "string" } } } } }, - "Request_sso_providers.queries.get": { + "Response_workflows.file_actions.renameWorkflow": { "type": "object", - "required": ["args"], + "required": [ + "status" + ], "properties": { - "args": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { "type": "object" + }, + "value": { + "type": "string", + "nullable": true } } }, - "Response_sso_providers.queries.get": { + "Request_workflows.file_actions.restoreFromHistory": { "type": "object", - "required": ["status"], + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "orgSlug", + "timestamp", + "workflowSlug" + ], + "properties": { + "orgSlug": { + "type": "string" + }, + "timestamp": { + "type": "string" + }, + "workflowSlug": { + "type": "string" + } + } + } + } + }, + "Response_workflows.file_actions.restoreFromHistory": { + "type": "object", + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -15893,177 +30775,164 @@ "value": { "type": "object", "required": [ - "_id", - "autoProvisionRole", - "createdAt", - "defaultRole", - "issuer", - "organizationId", - "providerId", - "roleMappingRules", - "scopes", - "updatedAt" + "hash" ], "properties": { - "_id": { - "type": "string", - "description": "ID from table \"ssoProviders\"" - }, - "autoProvisionRole": { - "type": "boolean" - }, - "createdAt": { - "type": "number" - }, - "defaultRole": { - "oneOf": [ - { - "type": "string", - "enum": ["admin"] - }, - { - "type": "string", - "enum": ["developer"] - }, - { - "type": "string", - "enum": ["editor"] - }, - { - "type": "string", - "enum": ["member"] - }, - { - "type": "string", - "enum": ["disabled"] - } - ] - }, - "issuer": { + "hash": { "type": "string" - }, - "organizationId": { + } + } + } + } + }, + "Request_workflows.file_actions.saveWorkflowWithSnapshot": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "config", + "orgSlug", + "workflowSlug" + ], + "properties": { + "config": {}, + "expectedHash": { "type": "string" }, - "providerFeatures": { - "type": "object", - "properties": { - "entraId": { - "type": "object", - "properties": { - "autoProvisionTeam": { - "type": "boolean" - }, - "enableOneDriveAccess": { - "type": "boolean" - }, - "excludeGroups": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "googleWorkspace": { - "type": "object", - "properties": { - "enableGoogleDriveAccess": { - "type": "boolean" - } - } - } - } - }, - "providerId": { + "orgSlug": { "type": "string" }, - "roleMappingRules": { - "type": "array", - "items": { - "type": "object", - "required": ["pattern", "source", "targetRole"], - "properties": { - "pattern": { - "type": "string" - }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": ["jobTitle"] - }, - { - "type": "string", - "enum": ["appRole"] - }, - { - "type": "string", - "enum": ["group"] - }, - { - "type": "string", - "enum": ["claim"] - } - ] - }, - "targetRole": { - "oneOf": [ - { - "type": "string", - "enum": ["admin"] - }, - { - "type": "string", - "enum": ["developer"] - }, - { - "type": "string", - "enum": ["editor"] - }, - { - "type": "string", - "enum": ["member"] - }, - { - "type": "string", - "enum": ["disabled"] - } - ] - } - } - } - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "updatedAt": { - "type": "number" + "workflowSlug": { + "type": "string" } - }, - "nullable": true + } } } }, - "Request_sso_providers.queries.isSsoConfigured": { + "Response_workflows.file_actions.saveWorkflowWithSnapshot": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "hash" + ], + "properties": { + "hash": { + "type": "string" + } + } + } + } + }, + "Request_workflows.file_actions.readWorkflow": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { + "type": "object", + "required": [ + "orgSlug", + "workflowSlug" + ], + "properties": { + "orgSlug": { + "type": "string" + }, + "workflowSlug": { + "type": "string" + } + } + } + } + }, + "Response_workflows.file_actions.readWorkflow": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { "type": "object" + }, + "value": {} + } + }, + "Request_workflows.triggers.slug_mutations.createScheduleBySlug": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "cronExpression", + "organizationId", + "timezone", + "workflowSlug" + ], + "properties": { + "cronExpression": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "timezone": { + "type": "string" + }, + "workflowSlug": { + "type": "string" + } + } } } }, - "Response_sso_providers.queries.isSsoConfigured": { + "Response_workflows.triggers.slug_mutations.createScheduleBySlug": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -16072,35 +30941,100 @@ "type": "object" }, "value": { + "type": "string", + "description": "ID from table \"wfSchedules\"" + } + } + }, + "Request_workflows.triggers.slug_mutations.toggleScheduleBySlug": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { "type": "object", - "required": ["enabled"], + "required": [ + "isActive", + "scheduleId" + ], "properties": { - "enabled": { + "isActive": { "type": "boolean" }, - "providerType": { - "type": "string" + "scheduleId": { + "type": "string", + "description": "ID from table \"wfSchedules\"" } } } } }, - "Request_sso_providers.queries.getMicrosoftToken": { + "Response_workflows.triggers.slug_mutations.toggleScheduleBySlug": { "type": "object", - "required": ["args"], + "required": [ + "status" + ], "properties": { - "args": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { "type": "object" + }, + "value": { + "type": "string", + "nullable": true } } }, - "Response_sso_providers.queries.getMicrosoftToken": { + "Request_workflows.triggers.slug_mutations.updateScheduleBySlug": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "cronExpression", + "scheduleId", + "timezone" + ], + "properties": { + "cronExpression": { + "type": "string" + }, + "scheduleId": { + "type": "string", + "description": "ID from table \"wfSchedules\"" + }, + "timezone": { + "type": "string" + } + } + } + } + }, + "Response_workflows.triggers.slug_mutations.updateScheduleBySlug": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -16109,71 +31043,91 @@ "type": "object" }, "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_workflows.triggers.slug_mutations.deleteScheduleBySlug": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { "type": "object", "required": [ - "accessToken", - "expiresAt", - "isExpired", - "refreshToken" + "scheduleId" ], "properties": { - "accessToken": { - "type": "string", - "nullable": true - }, - "expiresAt": { - "type": "number", - "nullable": true - }, - "isExpired": { - "type": "boolean" - }, - "refreshToken": { + "scheduleId": { "type": "string", - "nullable": true + "description": "ID from table \"wfSchedules\"" } - }, + } + } + } + }, + "Response_workflows.triggers.slug_mutations.deleteScheduleBySlug": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", "nullable": true } } }, - "Request_threads.mutations.createChatThread": { + "Request_workflows.triggers.slug_mutations.createWebhookBySlug": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId"], + "required": [ + "organizationId", + "workflowSlug" + ], "properties": { - "chatType": { - "oneOf": [ - { - "type": "string", - "enum": ["general"] - }, - { - "type": "string", - "enum": ["workflow_assistant"] - } - ] - }, "organizationId": { "type": "string" }, - "title": { + "workflowSlug": { "type": "string" } } } } }, - "Response_threads.mutations.createChatThread": { + "Response_workflows.triggers.slug_mutations.createWebhookBySlug": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -16182,32 +31136,59 @@ "type": "object" }, "value": { - "type": "string" + "type": "object", + "required": [ + "token", + "webhookId" + ], + "properties": { + "token": { + "type": "string" + }, + "webhookId": { + "type": "string", + "description": "ID from table \"wfWebhooks\"" + } + } } } }, - "Request_threads.mutations.deleteChatThread": { + "Request_workflows.triggers.slug_mutations.toggleWebhookBySlug": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["threadId"], + "required": [ + "isActive", + "webhookId" + ], "properties": { - "threadId": { - "type": "string" + "isActive": { + "type": "boolean" + }, + "webhookId": { + "type": "string", + "description": "ID from table \"wfWebhooks\"" } } } } }, - "Response_threads.mutations.deleteChatThread": { + "Response_workflows.triggers.slug_mutations.toggleWebhookBySlug": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -16221,31 +31202,38 @@ } } }, - "Request_threads.mutations.updateChatThread": { + "Request_workflows.triggers.slug_mutations.deleteWebhookBySlug": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["threadId", "title"], + "required": [ + "webhookId" + ], "properties": { - "threadId": { - "type": "string" - }, - "title": { - "type": "string" + "webhookId": { + "type": "string", + "description": "ID from table \"wfWebhooks\"" } } } } }, - "Response_threads.mutations.updateChatThread": { + "Response_workflows.triggers.slug_mutations.deleteWebhookBySlug": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -16259,27 +31247,48 @@ } } }, - "Request_threads.queries.listThreads": { + "Request_workflows.triggers.slug_mutations.createEventSubscriptionBySlug": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", + "required": [ + "eventType", + "organizationId", + "workflowSlug" + ], "properties": { - "search": { + "eventFilter": { + "type": "object" + }, + "eventType": { + "type": "string" + }, + "organizationId": { + "type": "string" + }, + "workflowSlug": { "type": "string" } } } } }, - "Response_threads.queries.listThreads": { + "Response_workflows.triggers.slug_mutations.createEventSubscriptionBySlug": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -16288,130 +31297,47 @@ "type": "object" }, "value": { - "type": "array", - "items": { - "type": "object", - "required": ["_creationTime", "_id", "status"], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["active"] - }, - { - "type": "string", - "enum": ["archived"] - } - ] - }, - "title": { - "type": "string" - }, - "userId": { - "type": "string" - } - } - } + "type": "string", + "description": "ID from table \"wfEventSubscriptions\"" } } }, - "Request_threads.queries.getThreadMessagesStreaming": { + "Request_workflows.triggers.slug_mutations.toggleEventSubscriptionBySlug": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["paginationOpts", "threadId"], - "properties": { - "paginationOpts": { - "type": "object", - "required": ["cursor", "numItems"], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "endCursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "maximumBytesRead": { - "type": "number" - }, - "maximumRowsRead": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } - }, - "streamArgs": { - "oneOf": [ - { - "type": "object", - "required": ["kind"], - "properties": { - "kind": { - "type": "string", - "enum": ["list"] - }, - "startOrder": { - "type": "number" - } - } - }, - { - "type": "object", - "required": ["cursors", "kind"], - "properties": { - "cursors": { - "type": "array", - "items": { - "type": "object", - "required": ["cursor", "streamId"], - "properties": { - "cursor": { - "type": "number" - }, - "streamId": { - "type": "string" - } - } - } - }, - "kind": { - "type": "string", - "enum": ["deltas"] - } - } - } - ] + "required": [ + "isActive", + "subscriptionId" + ], + "properties": { + "isActive": { + "type": "boolean" }, - "threadId": { - "type": "string" + "subscriptionId": { + "type": "string", + "description": "ID from table \"wfEventSubscriptions\"" } } } } }, - "Response_threads.queries.getThreadMessagesStreaming": { + "Response_workflows.triggers.slug_mutations.toggleEventSubscriptionBySlug": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -16419,34 +31345,47 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "string", + "nullable": true + } } }, - "Request_users.mutations.updateUserPassword": { + "Request_workflows.triggers.slug_mutations.updateEventSubscriptionBySlug": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["currentPassword", "newPassword"], + "required": [ + "subscriptionId" + ], "properties": { - "currentPassword": { - "type": "string" + "eventFilter": { + "type": "object" }, - "newPassword": { - "type": "string" + "subscriptionId": { + "type": "string", + "description": "ID from table \"wfEventSubscriptions\"" } } } } }, - "Response_users.mutations.updateUserPassword": { + "Response_workflows.triggers.slug_mutations.updateEventSubscriptionBySlug": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -16460,40 +31399,86 @@ } } }, - "Request_users.mutations.createMember": { + "Request_workflows.triggers.slug_mutations.deleteEventSubscriptionBySlug": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["email", "organizationId", "password"], + "required": [ + "subscriptionId" + ], + "properties": { + "subscriptionId": { + "type": "string", + "description": "ID from table \"wfEventSubscriptions\"" + } + } + } + } + }, + "Response_workflows.triggers.slug_mutations.deleteEventSubscriptionBySlug": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_workflows.triggers.slug_queries.getSchedulesBySlug": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId", + "workflowSlug" + ], "properties": { - "displayName": { - "type": "string" - }, - "email": { - "type": "string" - }, "organizationId": { "type": "string" }, - "password": { - "type": "string" - }, - "role": { + "workflowSlug": { "type": "string" } } } } }, - "Response_users.mutations.createMember": { + "Response_workflows.triggers.slug_queries.getSchedulesBySlug": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -16501,36 +31486,89 @@ "errorData": { "type": "object" }, - "value": { + "value": {} + } + }, + "Request_workflows.triggers.slug_queries.getWebhooksBySlug": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { "type": "object", - "required": ["memberId", "userId"], + "required": [ + "organizationId", + "workflowSlug" + ], "properties": { - "memberId": { + "organizationId": { "type": "string" }, - "userId": { + "workflowSlug": { "type": "string" } } } } }, - "Request_users.queries.hasAnyUsers": { + "Response_workflows.triggers.slug_queries.getWebhooksBySlug": { "type": "object", - "required": ["args"], + "required": [ + "status" + ], "properties": { - "args": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { "type": "object" + }, + "value": {} + } + }, + "Request_workflows.triggers.slug_queries.getEventSubscriptionsBySlug": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "organizationId", + "workflowSlug" + ], + "properties": { + "organizationId": { + "type": "string" + }, + "workflowSlug": { + "type": "string" + } + } } } }, - "Response_users.queries.hasAnyUsers": { + "Response_workflows.triggers.slug_queries.getEventSubscriptionsBySlug": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -16538,27 +31576,44 @@ "errorData": { "type": "object" }, - "value": { - "type": "boolean" - } + "value": {} } }, - "Request_users.queries.getCurrentUser": { + "Request_workflows.triggers.slug_queries.getTriggerLogsBySlug": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { - "type": "object" + "type": "object", + "required": [ + "organizationId", + "workflowSlug" + ], + "properties": { + "organizationId": { + "type": "string" + }, + "workflowSlug": { + "type": "string" + } + } } } }, - "Response_users.queries.getCurrentUser": { + "Response_workflows.triggers.slug_queries.getTriggerLogsBySlug": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -16566,215 +31621,321 @@ "errorData": { "type": "object" }, - "value": { + "value": {} + } + }, + "Request_integrations.credential_mutations.updateCredentials": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { "type": "object", - "required": ["userId"], + "required": [ + "credentialId" + ], "properties": { - "email": { + "apiKeyAuth": { + "type": "object", + "required": [ + "keyEncrypted" + ], + "properties": { + "keyEncrypted": { + "type": "string" + }, + "keyPrefix": { + "type": "string" + } + } + }, + "authMethod": { + "oneOf": [ + { + "type": "string", + "enum": [ + "api_key" + ] + }, + { + "type": "string", + "enum": [ + "bearer_token" + ] + }, + { + "type": "string", + "enum": [ + "basic_auth" + ] + }, + { + "type": "string", + "enum": [ + "oauth2" + ] + } + ] + }, + "basicAuth": { + "type": "object", + "required": [ + "passwordEncrypted", + "username" + ], + "properties": { + "passwordEncrypted": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "capabilities": { + "type": "object", + "properties": { + "canPush": { + "type": "boolean" + }, + "canSync": { + "type": "boolean" + }, + "canWebhook": { + "type": "boolean" + }, + "syncFrequency": { + "type": "string" + } + } + }, + "connectionConfig": {}, + "credentialId": { + "type": "string", + "description": "ID from table \"integrationCredentials\"" + }, + "errorMessage": { "type": "string" }, - "name": { - "type": "string" + "iconStorageId": { + "type": "string", + "description": "ID from table \"_storage\"" + }, + "isActive": { + "type": "boolean" + }, + "lastErrorAt": { + "type": "number" + }, + "lastSuccessAt": { + "type": "number" + }, + "lastSyncedAt": { + "type": "number" + }, + "lastTestedAt": { + "type": "number" + }, + "metadata": {}, + "oauth2Auth": { + "type": "object", + "required": [ + "accessTokenEncrypted" + ], + "properties": { + "accessTokenEncrypted": { + "type": "string" + }, + "refreshTokenEncrypted": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "tokenExpiry": { + "type": "number" + } + } + }, + "oauth2Config": { + "type": "object", + "required": [ + "authorizationUrl", + "tokenUrl" + ], + "properties": { + "authorizationUrl": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "clientSecretEncrypted": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "tokenUrl": { + "type": "string" + } + } + }, + "sqlConnectionConfig": { + "type": "object", + "required": [ + "engine" + ], + "properties": { + "database": { + "type": "string" + }, + "engine": { + "oneOf": [ + { + "type": "string", + "enum": [ + "mssql" + ] + }, + { + "type": "string", + "enum": [ + "postgres" + ] + }, + { + "type": "string", + "enum": [ + "mysql" + ] + } + ] + }, + "options": { + "type": "object", + "properties": { + "connectionTimeout": { + "type": "number" + }, + "encrypt": { + "type": "boolean" + }, + "requestTimeout": { + "type": "number" + }, + "trustServerCertificate": { + "type": "boolean" + } + } + }, + "port": { + "type": "number" + }, + "readOnly": { + "type": "boolean" + }, + "security": { + "type": "object", + "properties": { + "maxConnectionPoolSize": { + "type": "number" + }, + "maxResultRows": { + "type": "number" + }, + "queryTimeoutMs": { + "type": "number" + } + } + }, + "server": { + "type": "string" + } + } }, - "userId": { - "type": "string" - } - }, - "nullable": true - } - } - }, - "Request_vendors.mutations.bulkCreateVendors": { - "type": "object", - "required": ["args"], - "properties": { - "args": { - "type": "object", - "required": ["organizationId", "vendors"], - "properties": { - "organizationId": { - "type": "string" + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "active" + ] + }, + { + "type": "string", + "enum": [ + "inactive" + ] + }, + { + "type": "string", + "enum": [ + "error" + ] + }, + { + "type": "string", + "enum": [ + "testing" + ] + } + ] }, - "vendors": { + "supportedAuthMethods": { "type": "array", "items": { - "type": "object", - "required": ["email", "source"], - "properties": { - "address": { - "type": "object", - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "state": { - "type": "string" - }, - "street": { - "type": "string" - } - } - }, - "email": { - "type": "string" - }, - "externalId": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } + "oneOf": [ + { + "type": "string", + "enum": [ + "api_key" ] }, - "locale": { - "type": "string" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "notes": { - "type": "string" + { + "type": "string", + "enum": [ + "bearer_token" + ] }, - "phone": { - "type": "string" + { + "type": "string", + "enum": [ + "basic_auth" + ] }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": ["manual_import"] - }, - { - "type": "string", - "enum": ["file_upload"] - }, - { - "type": "string", - "enum": ["api_import"] - }, - { - "type": "string", - "enum": ["shopify"] - }, - { - "type": "string", - "enum": ["woocommerce"] - }, - { - "type": "string", - "enum": ["magento"] - }, - { - "type": "string", - "enum": ["bigcommerce"] - }, - { - "type": "string", - "enum": ["prestashop"] - }, - { - "type": "string", - "enum": ["circuly"] - }, - { - "type": "string", - "enum": ["chargebee"] - }, - { - "type": "string", - "enum": ["stripe"] - }, - { - "type": "string", - "enum": ["recurly"] - }, - { - "type": "string", - "enum": ["salesforce"] - }, - { - "type": "string", - "enum": ["hubspot"] - }, - { - "type": "string", - "enum": ["pipedrive"] - }, - { - "type": "string", - "enum": ["zoho"] - }, - { - "type": "string", - "enum": ["sap"] - }, - { - "type": "string", - "enum": ["protel"] - }, - { - "type": "string", - "enum": ["oracle"] - }, - { - "type": "string", - "enum": ["netsuite"] - }, - { - "type": "string", - "enum": ["mailchimp"] - }, - { - "type": "string", - "enum": ["klaviyo"] - }, - { - "type": "string", - "enum": ["sendgrid"] - }, - { - "type": "string", - "enum": ["webhook"] - }, - { - "type": "string", - "enum": ["zapier"] - }, - { - "type": "string", - "enum": ["custom"] - } + { + "type": "string", + "enum": [ + "oauth2" ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } } - } + ] } } } } } }, - "Response_vendors.mutations.bulkCreateVendors": { + "Response_integrations.credential_mutations.updateCredentials": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -16783,58 +31944,43 @@ "type": "object" }, "value": { - "type": "object", - "required": ["errors", "failed", "success"], - "properties": { - "errors": { - "type": "array", - "items": { - "type": "object", - "required": ["error", "index", "vendor"], - "properties": { - "error": { - "type": "string" - }, - "index": { - "type": "number" - }, - "vendor": {} - } - } - }, - "failed": { - "type": "number" - }, - "success": { - "type": "number" - } - } + "type": "string", + "nullable": true } } }, - "Request_vendors.mutations.deleteVendor": { + "Request_integrations.credential_mutations.deleteCredentials": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["vendorId"], + "required": [ + "credentialId" + ], "properties": { - "vendorId": { + "credentialId": { "type": "string", - "description": "ID from table \"vendors\"" + "description": "ID from table \"integrationCredentials\"" } } } } }, - "Response_vendors.mutations.deleteVendor": { + "Response_integrations.credential_mutations.deleteCredentials": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -16848,182 +31994,41 @@ } } }, - "Request_vendors.mutations.updateVendor": { + "Request_integrations.credential_queries.getBySlug": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["vendorId"], + "required": [ + "organizationId", + "slug" + ], "properties": { - "address": { - "type": "object", - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "state": { - "type": "string" - }, - "street": { - "type": "string" - } - } - }, - "email": { - "type": "string" - }, - "externalId": { - "type": "string" - }, - "locale": { - "type": "string" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "notes": { + "organizationId": { "type": "string" }, - "phone": { + "slug": { "type": "string" - }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": ["manual_import"] - }, - { - "type": "string", - "enum": ["file_upload"] - }, - { - "type": "string", - "enum": ["api_import"] - }, - { - "type": "string", - "enum": ["shopify"] - }, - { - "type": "string", - "enum": ["woocommerce"] - }, - { - "type": "string", - "enum": ["magento"] - }, - { - "type": "string", - "enum": ["bigcommerce"] - }, - { - "type": "string", - "enum": ["prestashop"] - }, - { - "type": "string", - "enum": ["circuly"] - }, - { - "type": "string", - "enum": ["chargebee"] - }, - { - "type": "string", - "enum": ["stripe"] - }, - { - "type": "string", - "enum": ["recurly"] - }, - { - "type": "string", - "enum": ["salesforce"] - }, - { - "type": "string", - "enum": ["hubspot"] - }, - { - "type": "string", - "enum": ["pipedrive"] - }, - { - "type": "string", - "enum": ["zoho"] - }, - { - "type": "string", - "enum": ["sap"] - }, - { - "type": "string", - "enum": ["protel"] - }, - { - "type": "string", - "enum": ["oracle"] - }, - { - "type": "string", - "enum": ["netsuite"] - }, - { - "type": "string", - "enum": ["mailchimp"] - }, - { - "type": "string", - "enum": ["klaviyo"] - }, - { - "type": "string", - "enum": ["sendgrid"] - }, - { - "type": "string", - "enum": ["webhook"] - }, - { - "type": "string", - "enum": ["zapier"] - }, - { - "type": "string", - "enum": ["custom"] - } - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "vendorId": { - "type": "string", - "description": "ID from table \"vendors\"" } } } } }, - "Response_vendors.mutations.updateVendor": { + "Response_integrations.credential_queries.getBySlug": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -17034,29 +32039,37 @@ "value": {} } }, - "Request_vendors.queries.getVendor": { + "Request_integrations.credential_queries.list": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["vendorId"], + "required": [ + "organizationId" + ], "properties": { - "vendorId": { - "type": "string", - "description": "ID from table \"vendors\"" + "organizationId": { + "type": "string" } } } } }, - "Response_vendors.queries.getVendor": { + "Response_integrations.credential_queries.list": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -17067,28 +32080,45 @@ "value": {} } }, - "Request_vendors.queries.hasVendors": { + "Request_integrations.file_actions.installIntegration": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId"], + "required": [ + "orgSlug", + "organizationId", + "slug" + ], "properties": { + "orgSlug": { + "type": "string" + }, "organizationId": { "type": "string" + }, + "slug": { + "type": "string" } } } } }, - "Response_vendors.queries.hasVendors": { + "Response_integrations.file_actions.installIntegration": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -17097,92 +32127,76 @@ "type": "object" }, "value": { - "type": "boolean" - } - } - }, - "Request_vendors.queries.listVendors": { - "type": "object", - "required": ["args"], - "properties": { - "args": { "type": "object", - "required": ["organizationId", "paginationOpts"], + "required": [ + "credentialId", + "hash" + ], "properties": { - "organizationId": { - "type": "string" + "credentialId": { + "type": "string", + "description": "ID from table \"integrationCredentials\"" }, - "paginationOpts": { - "type": "object", - "required": ["cursor", "numItems"], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } + "hash": { + "type": "string" } } } } }, - "Response_vendors.queries.listVendors": { - "type": "object", - "required": ["status"], - "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_websites.mutations.createWebsite": { + "Request_integrations.file_actions.listIntegrations": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["domain", "organizationId", "scanInterval"], + "required": [ + "orgSlug" + ], "properties": { - "description": { - "type": "string" - }, - "domain": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "scanInterval": { - "type": "string" + "filter": { + "oneOf": [ + { + "type": "string", + "enum": [ + "installed" + ] + }, + { + "type": "string", + "enum": [ + "templates" + ] + }, + { + "type": "string", + "enum": [ + "all" + ] + } + ] }, - "title": { + "orgSlug": { "type": "string" } } } } }, - "Response_websites.mutations.createWebsite": { + "Response_integrations.file_actions.listIntegrations": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -17190,63 +32204,49 @@ "errorData": { "type": "object" }, - "value": { - "type": "string", - "description": "ID from table \"websites\"" - } + "value": {} } }, - "Request_websites.mutations.updateWebsite": { + "Request_integrations.file_actions.saveIntegrationConfig": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["websiteId"], + "required": [ + "config", + "orgSlug", + "slug" + ], "properties": { - "description": { - "type": "string" - }, - "domain": { + "config": {}, + "expectedHash": { "type": "string" }, - "scanInterval": { + "orgSlug": { "type": "string" }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["active"] - }, - { - "type": "string", - "enum": ["inactive"] - }, - { - "type": "string", - "enum": ["error"] - } - ] - }, - "title": { + "slug": { "type": "string" - }, - "websiteId": { - "type": "string", - "description": "ID from table \"websites\"" } } } } }, - "Response_websites.mutations.updateWebsite": { + "Response_integrations.file_actions.saveIntegrationConfig": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -17255,34 +32255,53 @@ "type": "object" }, "value": { - "type": "string", - "nullable": true + "type": "object", + "required": [ + "hash" + ], + "properties": { + "hash": { + "type": "string" + } + } } } }, - "Request_websites.mutations.deleteWebsite": { + "Request_integrations.file_actions.uninstallIntegration": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["websiteId"], + "required": [ + "orgSlug", + "slug" + ], "properties": { - "websiteId": { - "type": "string", - "description": "ID from table \"websites\"" + "orgSlug": { + "type": "string" + }, + "slug": { + "type": "string" } } } } }, - "Response_websites.mutations.deleteWebsite": { + "Response_integrations.file_actions.uninstallIntegration": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -17291,34 +32310,58 @@ "type": "object" }, "value": { - "type": "string", - "nullable": true + "type": "object", + "required": [ + "hash" + ], + "properties": { + "hash": { + "type": "string" + } + } } } }, - "Request_websites.mutations.rescanWebsite": { + "Request_integrations.file_actions.writeIntegrationFiles": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["websiteId"], + "required": [ + "config", + "orgSlug", + "slug" + ], "properties": { - "websiteId": { - "type": "string", - "description": "ID from table \"websites\"" + "config": {}, + "connectorCode": { + "type": "string" + }, + "orgSlug": { + "type": "string" + }, + "slug": { + "type": "string" } } } } }, - "Response_websites.mutations.rescanWebsite": { + "Response_integrations.file_actions.writeIntegrationFiles": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -17327,33 +32370,53 @@ "type": "object" }, "value": { - "type": "string", - "nullable": true + "type": "object", + "required": [ + "hash" + ], + "properties": { + "hash": { + "type": "string" + } + } } } }, - "Request_websites.queries.hasWebsites": { + "Request_integrations.file_actions.readIntegration": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId"], + "required": [ + "orgSlug", + "slug" + ], "properties": { - "organizationId": { + "orgSlug": { + "type": "string" + }, + "slug": { "type": "string" } } } } }, - "Response_websites.queries.hasWebsites": { + "Response_integrations.file_actions.readIntegration": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -17361,49 +32424,40 @@ "errorData": { "type": "object" }, - "value": { - "type": "boolean" - } + "value": {} } }, - "Request_websites.queries.listWebsites": { + "Request_branding.file_actions.deleteImage": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId", "paginationOpts"], + "required": [ + "type" + ], "properties": { - "organizationId": { + "type": { "type": "string" - }, - "paginationOpts": { - "type": "object", - "required": ["cursor", "numItems"], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } } } } } }, - "Response_websites.queries.listWebsites": { + "Response_branding.file_actions.deleteImage": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -17411,35 +32465,35 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "string", + "nullable": true + } } }, - "Request_wf_definitions.mutations.createDraftFromActive": { + "Request_branding.file_actions.resetBranding": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { - "type": "object", - "required": ["createdBy", "wfDefinitionId"], - "properties": { - "createdBy": { - "type": "string" - }, - "wfDefinitionId": { - "type": "string", - "description": "ID from table \"wfDefinitions\"" - } - } + "type": "object" } } }, - "Response_wf_definitions.mutations.createDraftFromActive": { + "Response_branding.file_actions.resetBranding": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -17447,461 +32501,47 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "string", + "nullable": true + } } }, - "Request_wf_definitions.mutations.createWorkflowWithSteps": { + "Request_branding.file_actions.saveBranding": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId", "stepsConfig", "workflowConfig"], + "required": [ + "config" + ], "properties": { - "organizationId": { - "type": "string" - }, - "stepsConfig": { - "type": "array", - "items": { - "type": "object", - "required": [ - "config", - "name", - "nextSteps", - "order", - "stepSlug", - "stepType" - ], - "properties": { - "config": { - "oneOf": [ - { - "oneOf": [ - { - "type": "object", - "required": ["type"], - "properties": { - "context": { - "type": "object" - }, - "data": { - "type": "object" - }, - "inputs": { - "type": "array", - "items": { - "type": "object", - "required": ["name", "type"], - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "placeholder": { - "type": "string" - }, - "required": { - "type": "boolean" - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": ["text"] - }, - { - "type": "string", - "enum": ["number"] - }, - { - "type": "string", - "enum": ["email"] - }, - { - "type": "string", - "enum": ["date"] - }, - { - "type": "string", - "enum": ["boolean"] - }, - { - "type": "string", - "enum": ["select"] - } - ] - } - } - } - }, - "type": { - "type": "string", - "enum": ["manual"] - } - } - }, - { - "type": "object", - "required": ["schedule", "type"], - "properties": { - "context": { - "type": "object" - }, - "schedule": { - "type": "string" - }, - "timezone": { - "type": "string" - }, - "type": { - "type": "string", - "enum": ["scheduled"] - } - } - }, - { - "type": "object", - "required": ["type"], - "properties": { - "context": { - "type": "object" - }, - "headers": { - "type": "object" - }, - "type": { - "type": "string", - "enum": ["webhook"] - }, - "webhookData": { - "type": "object" - } - } - }, - { - "type": "object", - "required": ["eventType", "type"], - "properties": { - "context": { - "type": "object" - }, - "eventData": { - "type": "object" - }, - "eventType": { - "type": "string" - }, - "type": { - "type": "string", - "enum": ["event"] - } - } - } - ] - }, - { - "oneOf": [ - { - "type": "object", - "required": ["name", "systemPrompt"], - "properties": { - "contextVariables": { - "type": "object" - }, - "description": { - "type": "string" - }, - "maxSteps": { - "type": "number" - }, - "maxTokens": { - "type": "number" - }, - "model": { - "type": "string" - }, - "name": { - "type": "string" - }, - "outputFormat": { - "oneOf": [ - { - "type": "string", - "enum": ["text"] - }, - { - "type": "string", - "enum": ["json"] - } - ] - }, - "outputSchema": { - "type": "object", - "required": ["properties", "type"], - "properties": { - "additionalProperties": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "properties": { - "type": "object" - }, - "required": { - "type": "array", - "items": { - "type": "string" - } - }, - "type": { - "type": "string", - "enum": ["object"] - } - } - }, - "systemPrompt": { - "type": "string" - }, - "temperature": { - "type": "number" - }, - "tools": { - "type": "array", - "items": { - "type": "string" - } - }, - "userPrompt": { - "type": "string" - } - } - }, - { - "type": "object", - "required": ["llmNode"], - "properties": { - "llmNode": { - "type": "object", - "required": ["name", "systemPrompt"], - "properties": { - "contextVariables": { - "type": "object" - }, - "description": { - "type": "string" - }, - "maxSteps": { - "type": "number" - }, - "maxTokens": { - "type": "number" - }, - "model": { - "type": "string" - }, - "name": { - "type": "string" - }, - "outputFormat": { - "oneOf": [ - { - "type": "string", - "enum": ["text"] - }, - { - "type": "string", - "enum": ["json"] - } - ] - }, - "outputSchema": { - "type": "object", - "required": ["properties", "type"], - "properties": { - "additionalProperties": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "properties": { - "type": "object" - }, - "required": { - "type": "array", - "items": { - "type": "string" - } - }, - "type": { - "type": "string", - "enum": ["object"] - } - } - }, - "systemPrompt": { - "type": "string" - }, - "temperature": { - "type": "number" - }, - "tools": { - "type": "array", - "items": { - "type": "string" - } - }, - "userPrompt": { - "type": "string" - } - } - } - } - } - ] - }, - { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "expression": { - "type": "string" - }, - "variables": { - "type": "object" - } - } - }, - { - "type": "object", - "required": ["parameters", "type"], - "properties": { - "parameters": {}, - "retryPolicy": { - "type": "object", - "required": ["backoffMs", "maxRetries"], - "properties": { - "backoffMs": { - "type": "number" - }, - "maxRetries": { - "type": "number" - } - } - }, - "type": { - "type": "string" - } - } - }, - { - "type": "object", - "properties": { - "continueOnError": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "indexVariable": { - "type": "string" - }, - "itemVariable": { - "type": "string" - }, - "items": {}, - "maxIterations": { - "type": "number" - } - } - } - ] - }, - "name": { - "type": "string" - }, - "nextSteps": { - "type": "object" - }, - "order": { - "type": "number" - }, - "stepSlug": { - "type": "string" - }, - "stepType": { - "oneOf": [ - { - "type": "string", - "enum": ["trigger"] - }, - { - "type": "string", - "enum": ["llm"] - }, - { - "type": "string", - "enum": ["condition"] - }, - { - "type": "string", - "enum": ["action"] - }, - { - "type": "string", - "enum": ["loop"] - } - ] - } - } - } - }, - "workflowConfig": { + "config": { "type": "object", - "required": ["name"], "properties": { - "config": { - "type": "object", - "properties": { - "retryPolicy": { - "type": "object", - "required": ["backoffMs", "maxRetries"], - "properties": { - "backoffMs": { - "type": "number" - }, - "maxRetries": { - "type": "number" - } - } - }, - "secrets": { - "type": "object" - }, - "timeout": { - "type": "number" - }, - "variables": {} - } + "accentColor": { + "type": "string" }, - "description": { + "appName": { "type": "string" }, - "name": { + "brandColor": { "type": "string" }, - "version": { + "faviconDarkFilename": { "type": "string" }, - "workflowType": { - "type": "string", - "enum": ["predefined"] + "faviconLightFilename": { + "type": "string" + }, + "logoFilename": { + "type": "string" + }, + "textLogo": { + "type": "string" } } } @@ -17909,13 +32549,18 @@ } } }, - "Response_wf_definitions.mutations.createWorkflowWithSteps": { + "Response_branding.file_actions.saveBranding": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -17923,32 +32568,58 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "object", + "required": [ + "hash" + ], + "properties": { + "hash": { + "type": "string" + } + } + } } }, - "Request_wf_definitions.mutations.deleteWorkflow": { + "Request_branding.file_actions.saveImage": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["wfDefinitionId"], + "required": [ + "base64", + "mimeType", + "type" + ], "properties": { - "wfDefinitionId": { - "type": "string", - "description": "ID from table \"wfDefinitions\"" + "base64": { + "type": "string" + }, + "mimeType": { + "type": "string" + }, + "type": { + "type": "string" } } } } }, - "Response_wf_definitions.mutations.deleteWorkflow": { + "Response_branding.file_actions.saveImage": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -17956,35 +32627,42 @@ "errorData": { "type": "object" }, - "value": {} - } - }, - "Request_wf_definitions.mutations.duplicateWorkflow": { - "type": "object", - "required": ["args"], - "properties": { - "args": { + "value": { "type": "object", - "required": ["wfDefinitionId"], + "required": [ + "filename" + ], "properties": { - "newName": { + "filename": { "type": "string" - }, - "wfDefinitionId": { - "type": "string", - "description": "ID from table \"wfDefinitions\"" } } } } }, - "Response_wf_definitions.mutations.duplicateWorkflow": { + "Request_branding.file_actions.snapshotToHistory": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object" + } + } + }, + "Response_branding.file_actions.snapshotToHistory": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -17992,38 +32670,43 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "object", + "required": [ + "timestamp" + ], + "properties": { + "timestamp": { + "type": "string" + } + }, + "nullable": true + } } }, - "Request_wf_definitions.mutations.publishDraft": { + "Request_branding.file_actions.readBranding": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { - "type": "object", - "required": ["publishedBy", "wfDefinitionId"], - "properties": { - "changeLog": { - "type": "string" - }, - "publishedBy": { - "type": "string" - }, - "wfDefinitionId": { - "type": "string", - "description": "ID from table \"wfDefinitions\"" - } - } + "type": "object" } } }, - "Response_wf_definitions.mutations.publishDraft": { + "Response_branding.file_actions.readBranding": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -18031,94 +32714,90 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "object", + "required": [ + "faviconDarkUrl", + "faviconLightUrl", + "hash", + "logoUrl" + ], + "properties": { + "accentColor": { + "type": "string" + }, + "appName": { + "type": "string" + }, + "brandColor": { + "type": "string" + }, + "faviconDarkFilename": { + "type": "string" + }, + "faviconDarkUrl": { + "type": "string", + "nullable": true + }, + "faviconLightFilename": { + "type": "string" + }, + "faviconLightUrl": { + "type": "string", + "nullable": true + }, + "hash": { + "type": "string" + }, + "logoFilename": { + "type": "string" + }, + "logoUrl": { + "type": "string", + "nullable": true + }, + "textLogo": { + "type": "string" + } + } + } } }, - "Request_wf_definitions.mutations.updateWorkflow": { + "Request_providers.file_actions.deleteProvider": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["updatedBy", "updates", "wfDefinitionId"], + "required": [ + "orgSlug", + "providerName" + ], "properties": { - "updatedBy": { + "orgSlug": { "type": "string" }, - "updates": { - "type": "object", - "properties": { - "config": { - "type": "object", - "properties": { - "retryPolicy": { - "type": "object", - "required": ["backoffMs", "maxRetries"], - "properties": { - "backoffMs": { - "type": "number" - }, - "maxRetries": { - "type": "number" - } - } - }, - "secrets": { - "type": "object" - }, - "timeout": { - "type": "number" - }, - "variables": {} - } - }, - "description": { - "type": "string" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["draft"] - }, - { - "type": "string", - "enum": ["active"] - }, - { - "type": "string", - "enum": ["archived"] - } - ] - }, - "version": { - "type": "string" - }, - "workflowType": { - "type": "string", - "enum": ["predefined"] - } - } - }, - "wfDefinitionId": { - "type": "string", - "description": "ID from table \"wfDefinitions\"" + "providerName": { + "type": "string" } } } } }, - "Response_wf_definitions.mutations.updateWorkflow": { + "Response_providers.file_actions.deleteProvider": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -18126,36 +32805,43 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "string", + "nullable": true + } } }, - "Request_wf_definitions.mutations.updateWorkflowMetadata": { + "Request_providers.file_actions.getAllProviderConfigs": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["metadata", "updatedBy", "wfDefinitionId"], + "required": [ + "orgSlug" + ], "properties": { - "metadata": {}, - "updatedBy": { + "orgSlug": { "type": "string" - }, - "wfDefinitionId": { - "type": "string", - "description": "ID from table \"wfDefinitions\"" } } } } }, - "Response_wf_definitions.mutations.updateWorkflowMetadata": { + "Response_providers.file_actions.getAllProviderConfigs": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -18166,30 +32852,41 @@ "value": {} } }, - "Request_wf_definitions.queries.dryRunWorkflow": { + "Request_providers.file_actions.hasProviderSecret": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["wfDefinitionId"], + "required": [ + "orgSlug", + "providerName" + ], "properties": { - "input": {}, - "wfDefinitionId": { - "type": "string", - "description": "ID from table \"wfDefinitions\"" + "orgSlug": { + "type": "string" + }, + "providerName": { + "type": "string" } } } } }, - "Response_wf_definitions.queries.dryRunWorkflow": { + "Response_providers.file_actions.hasProviderSecret": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -18197,32 +32894,43 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "string", + "nullable": true + } } }, - "Request_wf_definitions.queries.getWorkflow": { + "Request_providers.file_actions.listProviders": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["wfDefinitionId"], + "required": [ + "orgSlug" + ], "properties": { - "wfDefinitionId": { - "type": "string", - "description": "ID from table \"wfDefinitions\"" + "orgSlug": { + "type": "string" } } } } }, - "Response_wf_definitions.queries.getWorkflow": { + "Response_providers.file_actions.listProviders": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -18233,28 +32941,43 @@ "value": {} } }, - "Request_wf_definitions.queries.hasAutomations": { + "Request_providers.file_actions.saveProvider": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId"], + "required": [ + "config", + "orgSlug", + "providerName" + ], "properties": { - "organizationId": { + "config": {}, + "orgSlug": { + "type": "string" + }, + "providerName": { "type": "string" } } } } }, - "Response_wf_definitions.queries.hasAutomations": { + "Response_providers.file_actions.saveProvider": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -18262,40 +32985,58 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "object", + "required": [ + "hash" + ], + "properties": { + "hash": { + "type": "string" + } + } + } } }, - "Request_wf_definitions.queries.listAutomations": { + "Request_providers.file_actions.saveProviderSecret": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId"], + "required": [ + "apiKey", + "orgSlug", + "providerName" + ], "properties": { - "organizationId": { + "apiKey": { "type": "string" }, - "searchTerm": { + "orgSlug": { "type": "string" }, - "status": { - "type": "array", - "items": { - "type": "string" - } + "providerName": { + "type": "string" } } } } }, - "Response_wf_definitions.queries.listAutomations": { + "Response_providers.file_actions.saveProviderSecret": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -18303,34 +33044,47 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "string", + "nullable": true + } } }, - "Request_wf_definitions.queries.listVersions": { + "Request_providers.file_actions.readProvider": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["name", "organizationId"], + "required": [ + "orgSlug", + "providerName" + ], "properties": { - "name": { + "orgSlug": { "type": "string" }, - "organizationId": { + "providerName": { "type": "string" } } } } }, - "Response_wf_definitions.queries.listVersions": { + "Response_providers.file_actions.readProvider": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -18341,29 +33095,55 @@ "value": {} } }, - "Request_wf_executions.queries.getExecutionStepJournal": { + "Request_agent_tools.human_input.actions.submitHumanInputResponse": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["executionId"], + "required": [ + "approvalId", + "response" + ], "properties": { - "executionId": { + "approvalId": { "type": "string", - "description": "ID from table \"wfExecutions\"" + "description": "ID from table \"approvals\"" + }, + "modelId": { + "type": "string" + }, + "response": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ] } } } } }, - "Response_wf_executions.queries.getExecutionStepJournal": { + "Response_agent_tools.human_input.actions.submitHumanInputResponse": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -18371,59 +33151,66 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "object", + "required": [ + "success" + ], + "properties": { + "streamId": { + "type": "string" + }, + "success": { + "type": "boolean" + }, + "threadId": { + "type": "string" + } + } + } } }, - "Request_wf_executions.queries.listExecutionsCursor": { + "Request_agent_tools.location.actions.submitLocationResponse": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["wfDefinitionId"], + "required": [ + "approvalId" + ], "properties": { - "cursor": { - "type": "string" + "approvalId": { + "type": "string", + "description": "ID from table \"approvals\"" }, - "dateFrom": { - "type": "string" + "denied": { + "type": "boolean" }, - "dateTo": { + "location": { "type": "string" }, - "numItems": { - "type": "number" - }, - "searchTerm": { + "modelId": { "type": "string" - }, - "status": { - "type": "array", - "items": { - "type": "string" - } - }, - "triggeredBy": { - "type": "array", - "items": { - "type": "string" - } - }, - "wfDefinitionId": { - "type": "string", - "description": "ID from table \"wfDefinitions\"" } } } } }, - "Response_wf_executions.queries.listExecutionsCursor": { + "Response_agent_tools.location.actions.submitLocationResponse": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -18431,442 +33218,197 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "object", + "required": [ + "success" + ], + "properties": { + "streamId": { + "type": "string" + }, + "success": { + "type": "boolean" + }, + "threadId": { + "type": "string" + } + } + } } }, - "Request_wf_step_defs.mutations.createStep": { + "Request_agents.arena_chat.arenaChat": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", "required": [ - "config", - "editMode", - "name", - "nextSteps", - "order", - "stepSlug", - "stepType", - "wfDefinitionId" + "agentSlug", + "message", + "modelIdA", + "modelIdB", + "orgSlug", + "organizationId", + "threadIdA", + "threadIdB" ], "properties": { - "config": { - "oneOf": [ - { - "oneOf": [ - { - "type": "object", - "required": ["type"], - "properties": { - "context": { - "type": "object" - }, - "data": { - "type": "object" - }, - "inputs": { - "type": "array", - "items": { - "type": "object", - "required": ["name", "type"], - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "placeholder": { - "type": "string" - }, - "required": { - "type": "boolean" - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": ["text"] - }, - { - "type": "string", - "enum": ["number"] - }, - { - "type": "string", - "enum": ["email"] - }, - { - "type": "string", - "enum": ["date"] - }, - { - "type": "string", - "enum": ["boolean"] - }, - { - "type": "string", - "enum": ["select"] - } - ] - } - } - } - }, - "type": { - "type": "string", - "enum": ["manual"] - } - } - }, - { - "type": "object", - "required": ["schedule", "type"], - "properties": { - "context": { - "type": "object" - }, - "schedule": { - "type": "string" - }, - "timezone": { - "type": "string" - }, - "type": { - "type": "string", - "enum": ["scheduled"] - } - } - }, - { - "type": "object", - "required": ["type"], - "properties": { - "context": { - "type": "object" - }, - "headers": { - "type": "object" - }, - "type": { - "type": "string", - "enum": ["webhook"] - }, - "webhookData": { - "type": "object" - } - } - }, - { - "type": "object", - "required": ["eventType", "type"], - "properties": { - "context": { - "type": "object" - }, - "eventData": { - "type": "object" - }, - "eventType": { - "type": "string" - }, - "type": { - "type": "string", - "enum": ["event"] - } - } - } - ] - }, - { - "oneOf": [ - { - "type": "object", - "required": ["name", "systemPrompt"], - "properties": { - "contextVariables": { - "type": "object" - }, - "description": { - "type": "string" - }, - "maxSteps": { - "type": "number" - }, - "maxTokens": { - "type": "number" - }, - "model": { - "type": "string" - }, - "name": { - "type": "string" - }, - "outputFormat": { - "oneOf": [ - { - "type": "string", - "enum": ["text"] - }, - { - "type": "string", - "enum": ["json"] - } - ] - }, - "outputSchema": { - "type": "object", - "required": ["properties", "type"], - "properties": { - "additionalProperties": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "properties": { - "type": "object" - }, - "required": { - "type": "array", - "items": { - "type": "string" - } - }, - "type": { - "type": "string", - "enum": ["object"] - } - } - }, - "systemPrompt": { - "type": "string" - }, - "temperature": { - "type": "number" - }, - "tools": { - "type": "array", - "items": { - "type": "string" - } - }, - "userPrompt": { - "type": "string" - } - } - }, - { - "type": "object", - "required": ["llmNode"], - "properties": { - "llmNode": { - "type": "object", - "required": ["name", "systemPrompt"], - "properties": { - "contextVariables": { - "type": "object" - }, - "description": { - "type": "string" - }, - "maxSteps": { - "type": "number" - }, - "maxTokens": { - "type": "number" - }, - "model": { - "type": "string" - }, - "name": { - "type": "string" - }, - "outputFormat": { - "oneOf": [ - { - "type": "string", - "enum": ["text"] - }, - { - "type": "string", - "enum": ["json"] - } - ] - }, - "outputSchema": { - "type": "object", - "required": ["properties", "type"], - "properties": { - "additionalProperties": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "properties": { - "type": "object" - }, - "required": { - "type": "array", - "items": { - "type": "string" - } - }, - "type": { - "type": "string", - "enum": ["object"] - } - } - }, - "systemPrompt": { - "type": "string" - }, - "temperature": { - "type": "number" - }, - "tools": { - "type": "array", - "items": { - "type": "string" - } - }, - "userPrompt": { - "type": "string" - } - } - } - } - } - ] - }, - { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "expression": { - "type": "string" - }, - "variables": { - "type": "object" - } - } - }, - { - "type": "object", - "required": ["parameters", "type"], - "properties": { - "parameters": {}, - "retryPolicy": { - "type": "object", - "required": ["backoffMs", "maxRetries"], - "properties": { - "backoffMs": { - "type": "number" - }, - "maxRetries": { - "type": "number" - } - } - }, - "type": { - "type": "string" - } - } - }, - { - "type": "object", - "properties": { - "continueOnError": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "indexVariable": { - "type": "string" - }, - "itemVariable": { - "type": "string" - }, - "items": {}, - "maxIterations": { - "type": "number" - } + "agentSlug": { + "type": "string" + }, + "attachments": { + "type": "array", + "items": { + "type": "object", + "required": [ + "fileId", + "fileName", + "fileSize", + "fileType" + ], + "properties": { + "fileId": { + "type": "string", + "description": "ID from table \"_storage\"" + }, + "fileName": { + "type": "string" + }, + "fileSize": { + "type": "number" + }, + "fileType": { + "type": "string" } } - ] + } }, - "editMode": { - "oneOf": [ - { - "type": "string", - "enum": ["visual"] - }, - { - "type": "string", - "enum": ["json"] - }, - { - "type": "string", - "enum": ["ai"] - } - ] + "message": { + "type": "string" }, - "name": { + "modelIdA": { "type": "string" }, - "nextSteps": { - "type": "object" + "modelIdB": { + "type": "string" }, - "order": { - "type": "number" + "orgSlug": { + "type": "string" }, - "stepSlug": { + "organizationId": { "type": "string" }, - "stepType": { - "oneOf": [ - { - "type": "string", - "enum": ["trigger"] - }, - { - "type": "string", - "enum": ["llm"] - }, - { - "type": "string", - "enum": ["condition"] - }, - { - "type": "string", - "enum": ["action"] + "threadIdA": { + "type": "string" + }, + "threadIdB": { + "type": "string" + }, + "userContext": { + "type": "object", + "required": [ + "language", + "timezone" + ], + "properties": { + "language": { + "type": "string" }, - { - "type": "string", - "enum": ["loop"] + "timezone": { + "type": "string" } - ] + } + } + } + } + } + }, + "Response_agents.arena_chat.arenaChat": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "streamIdA", + "streamIdB" + ], + "properties": { + "streamIdA": { + "type": "string" }, - "wfDefinitionId": { - "type": "string", - "description": "ID from table \"wfDefinitions\"" + "streamIdB": { + "type": "string" + } + } + } + } + }, + "Request_documents.compare_documents.compareDocuments": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "baseFileName", + "baseStorageId", + "comparisonFileName", + "comparisonStorageId", + "organizationId" + ], + "properties": { + "baseFileName": { + "type": "string" + }, + "baseStorageId": { + "type": "string" + }, + "comparisonFileName": { + "type": "string" + }, + "comparisonStorageId": { + "type": "string" + }, + "organizationId": { + "type": "string" } } } } }, - "Response_wf_step_defs.mutations.createStep": { + "Response_documents.compare_documents.compareDocuments": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -18877,46 +33419,171 @@ "value": {} } }, - "Request_wf_step_defs.mutations.updateStep": { + "Request_feedback.mutations.submitFeedback": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["editMode", "stepRecordId", "updates"], + "required": [ + "messageId", + "organizationId", + "rating", + "threadId" + ], "properties": { - "editMode": { - "oneOf": [ - { - "type": "string", - "enum": ["visual"] + "comment": { + "type": "string" + }, + "messageId": { + "type": "string" + }, + "metadata": { + "type": "object", + "properties": { + "arenaVerdict": { + "type": "string" + }, + "modelA": { + "type": "string" }, + "modelB": { + "type": "string" + } + } + }, + "organizationId": { + "type": "string" + }, + "rating": { + "oneOf": [ { "type": "string", - "enum": ["json"] + "enum": [ + "positive" + ] }, { "type": "string", - "enum": ["ai"] + "enum": [ + "negative" + ] } ] }, - "stepRecordId": { - "type": "string", - "description": "ID from table \"wfStepDefs\"" + "threadId": { + "type": "string" + } + } + } + } + }, + "Response_feedback.mutations.submitFeedback": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "description": "ID from table \"messageFeedback\"" + } + } + }, + "Request_feedback.mutations.deleteFeedback": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "messageId", + "organizationId" + ], + "properties": { + "messageId": { + "type": "string" }, - "updates": {} + "organizationId": { + "type": "string" + } + } + } + } + }, + "Response_feedback.mutations.deleteFeedback": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "string", + "nullable": true + } + } + }, + "Request_feedback.queries.getMessageFeedback": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "messageId" + ], + "properties": { + "messageId": { + "type": "string" + } } } } }, - "Response_wf_step_defs.mutations.updateStep": { + "Response_feedback.queries.getMessageFeedback": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -18927,29 +33594,37 @@ "value": {} } }, - "Request_wf_step_defs.queries.getWorkflowSteps": { + "Request_feedback.queries.getFeedbackStats": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["wfDefinitionId"], + "required": [ + "organizationId" + ], "properties": { - "wfDefinitionId": { - "type": "string", - "description": "ID from table \"wfDefinitions\"" + "organizationId": { + "type": "string" } } } } }, - "Response_wf_step_defs.queries.getWorkflowSteps": { + "Response_feedback.queries.getFeedbackStats": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -18960,44 +33635,86 @@ "value": {} } }, - "Request_wf_step_defs.queries.validateStep": { + "Request_governance.mutations.upsertPolicy": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["stepConfig"], + "required": [ + "config", + "organizationId", + "policyType" + ], "properties": { - "stepConfig": { - "type": "object", - "properties": { - "config": {}, - "name": { - "type": "string" + "config": {}, + "organizationId": { + "type": "string" + }, + "policyType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "system_prompt" + ] }, - "stepSlug": { - "type": "string" + { + "type": "string", + "enum": [ + "budgets" + ] }, - "stepType": { - "type": "string" + { + "type": "string", + "enum": [ + "upload_policy" + ] + }, + { + "type": "string", + "enum": [ + "retention_policy" + ] + }, + { + "type": "string", + "enum": [ + "feature_flags" + ] + }, + { + "type": "string", + "enum": [ + "pii_config" + ] + }, + { + "type": "string", + "enum": [ + "default_models" + ] } - } - }, - "wfDefinitionId": { - "type": "string", - "description": "ID from table \"wfDefinitions\"" + ] } } } } }, - "Response_wf_step_defs.queries.validateStep": { + "Response_governance.mutations.upsertPolicy": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -19005,45 +33722,93 @@ "errorData": { "type": "object" }, - "value": {} + "value": { + "type": "string", + "description": "ID from table \"governancePolicies\"" + } } }, - "Request_agent_tools.human_input.mutations.submitHumanInputResponse": { + "Request_governance.mutations.upsertPiiConfig": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["approvalId", "response"], + "required": [ + "enabled", + "enabledPatterns", + "mode", + "organizationId" + ], "properties": { - "approvalId": { - "type": "string", - "description": "ID from table \"approvals\"" + "customPatterns": { + "type": "array", + "items": { + "type": "object", + "required": [ + "name", + "regex", + "replacement" + ], + "properties": { + "name": { + "type": "string" + }, + "regex": { + "type": "string" + }, + "replacement": { + "type": "string" + } + } + } }, - "response": { + "enabled": { + "type": "boolean" + }, + "enabledPatterns": { + "type": "array", + "items": { + "type": "string" + } + }, + "mode": { "oneOf": [ { - "type": "string" + "type": "string", + "enum": [ + "mask" + ] }, { - "type": "array", - "items": { - "type": "string" - } + "type": "string", + "enum": [ + "block" + ] } ] + }, + "organizationId": { + "type": "string" } } } } }, - "Response_agent_tools.human_input.mutations.submitHumanInputResponse": { + "Response_governance.mutations.upsertPiiConfig": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -19052,38 +33817,89 @@ "type": "object" }, "value": { - "type": "object", - "required": ["success"], - "properties": { - "streamId": { - "type": "string" - }, - "success": { - "type": "boolean" - }, - "threadId": { - "type": "string" - } - } + "type": "string", + "description": "ID from table \"governancePolicies\"" } } }, - "Request_files.mutations.generateUploadUrl": { + "Request_governance.queries.getPolicy": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { - "type": "object" + "type": "object", + "required": [ + "organizationId", + "policyType" + ], + "properties": { + "organizationId": { + "type": "string" + }, + "policyType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "system_prompt" + ] + }, + { + "type": "string", + "enum": [ + "budgets" + ] + }, + { + "type": "string", + "enum": [ + "upload_policy" + ] + }, + { + "type": "string", + "enum": [ + "retention_policy" + ] + }, + { + "type": "string", + "enum": [ + "feature_flags" + ] + }, + { + "type": "string", + "enum": [ + "pii_config" + ] + }, + { + "type": "string", + "enum": [ + "default_models" + ] + } + ] + } + } } } }, - "Response_files.mutations.generateUploadUrl": { + "Response_governance.queries.getPolicy": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -19091,36 +33907,40 @@ "errorData": { "type": "object" }, - "value": { - "type": "string" - } + "value": {} } }, - "Request_improve_message.actions.improveMessage": { + "Request_governance.queries.listPolicies": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["originalMessage"], + "required": [ + "organizationId" + ], "properties": { - "instruction": { - "type": "string" - }, - "originalMessage": { + "organizationId": { "type": "string" } } } } }, - "Response_improve_message.actions.improveMessage": { + "Response_governance.queries.listPolicies": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -19128,43 +33948,43 @@ "errorData": { "type": "object" }, - "value": { - "type": "object", - "required": ["improvedMessage"], - "properties": { - "error": { - "type": "string" - }, - "improvedMessage": { - "type": "string" - } - } - } + "value": {} } }, - "Request_integrations.actions.testConnection": { + "Request_governance.queries.getUsageSummary": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["integrationId"], + "required": [ + "organizationId" + ], "properties": { - "integrationId": { - "type": "string", - "description": "ID from table \"integrations\"" + "organizationId": { + "type": "string" + }, + "periodKey": { + "type": "string" } } } } }, - "Response_integrations.actions.testConnection": { + "Response_governance.queries.getUsageSummary": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -19172,152 +33992,88 @@ "errorData": { "type": "object" }, - "value": { - "type": "object", - "required": ["message", "success"], - "properties": { - "message": { - "type": "string" - }, - "success": { - "type": "boolean" - } - } - } + "value": {} } }, - "Request_integrations.actions.update": { + "Request_mcp_servers.actions.executeMcpTool": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["integrationId"], + "required": [ + "serverId", + "toolName" + ], "properties": { - "apiKeyAuth": { - "type": "object", - "required": ["key"], - "properties": { - "key": { - "type": "string" - }, - "keyPrefix": { - "type": "string" - } - } - }, - "basicAuth": { - "type": "object", - "required": ["password", "username"], - "properties": { - "password": { - "type": "string" - }, - "username": { - "type": "string" - } - } - }, - "capabilities": { - "type": "object", - "properties": { - "canPush": { - "type": "boolean" - }, - "canSync": { - "type": "boolean" - }, - "canWebhook": { - "type": "boolean" - }, - "syncFrequency": { - "type": "string" - } - } - }, - "connectionConfig": { - "type": "object", - "properties": { - "apiEndpoint": { - "type": "string" - }, - "apiVersion": { - "type": "string" - }, - "domain": { - "type": "string" - }, - "rateLimit": { - "type": "number" - }, - "timeout": { - "type": "number" - } - } - }, - "errorMessage": { - "type": "string" - }, - "integrationId": { + "serverId": { "type": "string", - "description": "ID from table \"integrations\"" - }, - "isActive": { - "type": "boolean" - }, - "metadata": {}, - "oauth2Auth": { - "type": "object", - "required": ["accessToken"], - "properties": { - "accessToken": { - "type": "string" - }, - "refreshToken": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "tokenExpiry": { - "type": "number" - } - } + "description": "ID from table \"mcpServers\"" }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": ["active"] - }, - { - "type": "string", - "enum": ["inactive"] - }, - { - "type": "string", - "enum": ["error"] - }, - { - "type": "string", - "enum": ["testing"] - } - ] + "toolArgs": {}, + "toolName": { + "type": "string" + } + } + } + } + }, + "Response_mcp_servers.actions.executeMcpTool": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": {} + } + }, + "Request_mcp_servers.actions.testConnection": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "id" + ], + "properties": { + "id": { + "type": "string", + "description": "ID from table \"mcpServers\"" } } } } }, - "Response_integrations.actions.update": { + "Response_mcp_servers.actions.testConnection": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -19325,260 +34081,207 @@ "errorData": { "type": "object" }, - "value": { - "type": "string", - "nullable": true - } + "value": {} } }, - "Request_integrations.actions.create": { + "Request_prompts.mutations.createPrompt": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["authMethod", "name", "organizationId", "title"], + "required": [ + "content", + "organizationId", + "scope", + "title" + ], "properties": { - "apiKeyAuth": { - "type": "object", - "required": ["key"], - "properties": { - "key": { - "type": "string" - }, - "keyPrefix": { - "type": "string" - } - } + "category": { + "type": "string" }, - "authMethod": { + "content": { + "type": "string" + }, + "description": { + "type": "string" + }, + "isPublished": { + "type": "boolean" + }, + "organizationId": { + "type": "string" + }, + "scope": { "oneOf": [ { "type": "string", - "enum": ["api_key"] - }, - { - "type": "string", - "enum": ["bearer_token"] + "enum": [ + "global" + ] }, { "type": "string", - "enum": ["basic_auth"] + "enum": [ + "team" + ] }, { "type": "string", - "enum": ["oauth2"] + "enum": [ + "personal" + ] } ] }, - "basicAuth": { - "type": "object", - "required": ["password", "username"], - "properties": { - "password": { - "type": "string" - }, - "username": { - "type": "string" - } - } - }, - "capabilities": { - "type": "object", - "properties": { - "canPush": { - "type": "boolean" - }, - "canSync": { - "type": "boolean" - }, - "canWebhook": { - "type": "boolean" - }, - "syncFrequency": { - "type": "string" - } - } - }, - "connectionConfig": { - "type": "object", - "properties": { - "apiEndpoint": { - "type": "string" - }, - "apiVersion": { - "type": "string" - }, - "domain": { - "type": "string" - }, - "rateLimit": { - "type": "number" - }, - "timeout": { - "type": "number" - } + "tags": { + "type": "array", + "items": { + "type": "string" } }, - "description": { - "type": "string" - }, - "metadata": {}, - "name": { + "teamId": { "type": "string" }, - "oauth2Auth": { - "type": "object", - "required": ["accessToken"], - "properties": { - "accessToken": { - "type": "string" - }, - "refreshToken": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "tokenExpiry": { - "type": "number" - } - } - }, - "organizationId": { + "title": { "type": "string" + } + } + } + } + }, + "Response_prompts.mutations.createPrompt": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "content", + "createdBy", + "isPublished", + "organizationId", + "scope", + "title", + "usageCount" + ], + "properties": { + "_creationTime": { + "type": "number" }, - "sqlConnectionConfig": { - "type": "object", - "required": ["database", "engine", "server"], - "properties": { - "database": { - "type": "string" - }, - "engine": { - "oneOf": [ - { - "type": "string", - "enum": ["mssql"] - }, - { - "type": "string", - "enum": ["postgres"] - }, - { - "type": "string", - "enum": ["mysql"] - } - ] - }, - "options": { - "type": "object", - "properties": { - "connectionTimeout": { - "type": "number" - }, - "encrypt": { - "type": "boolean" - }, - "requestTimeout": { - "type": "number" - }, - "trustServerCertificate": { - "type": "boolean" - } - } - }, - "port": { - "type": "number" - }, - "readOnly": { - "type": "boolean" - }, - "security": { - "type": "object", - "properties": { - "maxConnectionPoolSize": { - "type": "number" - }, - "maxResultRows": { - "type": "number" - }, - "queryTimeoutMs": { - "type": "number" - } - } - }, - "server": { - "type": "string" - } - } - }, - "sqlOperations": { - "type": "array", - "items": { - "type": "object", - "required": ["name", "query"], - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "operationType": { - "oneOf": [ - { - "type": "string", - "enum": ["read"] - }, - { - "type": "string", - "enum": ["write"] - } - ] - }, - "parametersSchema": {}, - "query": { - "type": "string" - }, - "requiresApproval": { - "type": "boolean" - }, - "title": { - "type": "string" - } - } - } - }, - "title": { + "_id": { "type": "string" }, - "type": { + "category": { + "type": "string" + }, + "content": { + "type": "string" + }, + "createdBy": { + "type": "string" + }, + "description": { + "type": "string" + }, + "isPublished": { + "type": "boolean" + }, + "organizationId": { + "type": "string" + }, + "scope": { "oneOf": [ { "type": "string", - "enum": ["rest_api"] + "enum": [ + "global" + ] + }, + { + "type": "string", + "enum": [ + "team" + ] }, { "type": "string", - "enum": ["sql"] + "enum": [ + "personal" + ] } ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "teamId": { + "type": "string" + }, + "title": { + "type": "string" + }, + "usageCount": { + "type": "number" + } + } + } + } + }, + "Request_prompts.mutations.deletePrompt": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "promptId" + ], + "properties": { + "promptId": { + "type": "string", + "description": "ID from table \"promptTemplates\"" } } } } }, - "Response_integrations.actions.create": { + "Response_prompts.mutations.deletePrompt": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -19588,33 +34291,42 @@ }, "value": { "type": "string", - "description": "ID from table \"integrations\"" + "nullable": true } } }, - "Request_integrations.mutations.deleteIntegration": { + "Request_prompts.mutations.incrementUsage": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["integrationId"], + "required": [ + "promptId" + ], "properties": { - "integrationId": { + "promptId": { "type": "string", - "description": "ID from table \"integrations\"" + "description": "ID from table \"promptTemplates\"" } } } } }, - "Response_integrations.mutations.deleteIntegration": { + "Response_prompts.mutations.incrementUsage": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -19628,22 +34340,84 @@ } } }, - "Request_sso_providers.actions.getWithClientId": { + "Request_prompts.mutations.updatePrompt": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { - "type": "object" + "type": "object", + "required": [ + "promptId" + ], + "properties": { + "category": { + "type": "string" + }, + "content": { + "type": "string" + }, + "description": { + "type": "string" + }, + "isPublished": { + "type": "boolean" + }, + "promptId": { + "type": "string", + "description": "ID from table \"promptTemplates\"" + }, + "scope": { + "oneOf": [ + { + "type": "string", + "enum": [ + "global" + ] + }, + { + "type": "string", + "enum": [ + "team" + ] + }, + { + "type": "string", + "enum": [ + "personal" + ] + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "teamId": { + "type": "string" + }, + "title": { + "type": "string" + } + } } } }, - "Response_sso_providers.actions.getWithClientId": { + "Response_prompts.mutations.updatePrompt": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -19654,158 +34428,76 @@ "value": { "type": "object", "required": [ + "_creationTime", "_id", - "autoProvisionRole", - "clientId", - "createdAt", - "defaultRole", - "issuer", + "content", + "createdBy", + "isPublished", "organizationId", - "providerId", - "roleMappingRules", - "scopes", - "updatedAt" + "scope", + "title", + "usageCount" ], "properties": { + "_creationTime": { + "type": "number" + }, "_id": { - "type": "string", - "description": "ID from table \"ssoProviders\"" + "type": "string" }, - "autoProvisionRole": { - "type": "boolean" + "category": { + "type": "string" }, - "clientId": { + "content": { "type": "string" }, - "createdAt": { - "type": "number" + "createdBy": { + "type": "string" }, - "defaultRole": { + "description": { + "type": "string" + }, + "isPublished": { + "type": "boolean" + }, + "organizationId": { + "type": "string" + }, + "scope": { "oneOf": [ { "type": "string", - "enum": ["admin"] - }, - { - "type": "string", - "enum": ["developer"] - }, - { - "type": "string", - "enum": ["editor"] + "enum": [ + "global" + ] }, { "type": "string", - "enum": ["member"] + "enum": [ + "team" + ] }, { "type": "string", - "enum": ["disabled"] + "enum": [ + "personal" + ] } ] }, - "issuer": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "providerFeatures": { - "type": "object", - "properties": { - "entraId": { - "type": "object", - "properties": { - "autoProvisionTeam": { - "type": "boolean" - }, - "enableOneDriveAccess": { - "type": "boolean" - }, - "excludeGroups": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "googleWorkspace": { - "type": "object", - "properties": { - "enableGoogleDriveAccess": { - "type": "boolean" - } - } - } - } - }, - "providerId": { - "type": "string" - }, - "roleMappingRules": { - "type": "array", - "items": { - "type": "object", - "required": ["pattern", "source", "targetRole"], - "properties": { - "pattern": { - "type": "string" - }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": ["jobTitle"] - }, - { - "type": "string", - "enum": ["appRole"] - }, - { - "type": "string", - "enum": ["group"] - }, - { - "type": "string", - "enum": ["claim"] - } - ] - }, - "targetRole": { - "oneOf": [ - { - "type": "string", - "enum": ["admin"] - }, - { - "type": "string", - "enum": ["developer"] - }, - { - "type": "string", - "enum": ["editor"] - }, - { - "type": "string", - "enum": ["member"] - }, - { - "type": "string", - "enum": ["disabled"] - } - ] - } - } - } - }, - "scopes": { + "tags": { "type": "array", "items": { "type": "string" } }, - "updatedAt": { + "teamId": { + "type": "string" + }, + "title": { + "type": "string" + }, + "usageCount": { "type": "number" } }, @@ -19813,28 +34505,38 @@ } } }, - "Request_sso_providers.actions.getSsoCredentialsForEmail": { + "Request_prompts.queries.getPrompt": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId"], + "required": [ + "promptId" + ], "properties": { - "organizationId": { - "type": "string" + "promptId": { + "type": "string", + "description": "ID from table \"promptTemplates\"" } } } } }, - "Response_sso_providers.actions.getSsoCredentialsForEmail": { + "Response_prompts.queries.getPrompt": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -19844,184 +34546,257 @@ }, "value": { "type": "object", - "required": ["clientId", "clientSecret", "tenantId"], + "required": [ + "_creationTime", + "_id", + "content", + "createdBy", + "isPublished", + "organizationId", + "scope", + "title", + "usageCount" + ], "properties": { - "clientId": { + "_creationTime": { + "type": "number" + }, + "_id": { "type": "string" }, - "clientSecret": { + "category": { "type": "string" }, - "tenantId": { + "content": { + "type": "string" + }, + "createdBy": { + "type": "string" + }, + "description": { + "type": "string" + }, + "isPublished": { + "type": "boolean" + }, + "organizationId": { + "type": "string" + }, + "scope": { + "oneOf": [ + { + "type": "string", + "enum": [ + "global" + ] + }, + { + "type": "string", + "enum": [ + "team" + ] + }, + { + "type": "string", + "enum": [ + "personal" + ] + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "teamId": { + "type": "string" + }, + "title": { "type": "string" + }, + "usageCount": { + "type": "number" } }, "nullable": true } } }, - "Request_sso_providers.actions.upsert": { + "Request_prompts.queries.listPrompts": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", "required": [ - "autoProvisionRole", - "clientId", - "defaultRole", - "issuer", - "organizationId", - "providerId", - "roleMappingRules", - "scopes" + "organizationId" ], "properties": { - "autoProvisionRole": { - "type": "boolean" - }, - "clientId": { - "type": "string" - }, - "clientSecret": { + "organizationId": { "type": "string" }, - "defaultRole": { + "scope": { "oneOf": [ { "type": "string", - "enum": ["admin"] - }, - { - "type": "string", - "enum": ["developer"] - }, - { - "type": "string", - "enum": ["editor"] + "enum": [ + "global" + ] }, { "type": "string", - "enum": ["member"] + "enum": [ + "team" + ] }, { "type": "string", - "enum": ["disabled"] + "enum": [ + "personal" + ] } ] - }, - "issuer": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "providerFeatures": { - "type": "object", - "properties": { - "entraId": { - "type": "object", - "properties": { - "autoProvisionTeam": { - "type": "boolean" - }, - "enableOneDriveAccess": { - "type": "boolean" - }, - "excludeGroups": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "googleWorkspace": { - "type": "object", - "properties": { - "enableGoogleDriveAccess": { - "type": "boolean" - } - } - } - } - }, - "providerId": { - "type": "string" - }, - "roleMappingRules": { - "type": "array", - "items": { - "type": "object", - "required": ["pattern", "source", "targetRole"], - "properties": { - "pattern": { - "type": "string" + } + } + } + } + }, + "Response_prompts.queries.listPrompts": { + "type": "object", + "required": [ + "status" + ], + "properties": { + "status": { + "type": "string", + "enum": [ + "success", + "error" + ] + }, + "errorMessage": { + "type": "string" + }, + "errorData": { + "type": "object" + }, + "value": { + "type": "array", + "items": { + "type": "object", + "required": [ + "_creationTime", + "_id", + "content", + "createdBy", + "isPublished", + "organizationId", + "scope", + "title", + "usageCount" + ], + "properties": { + "_creationTime": { + "type": "number" + }, + "_id": { + "type": "string" + }, + "category": { + "type": "string" + }, + "content": { + "type": "string" + }, + "createdBy": { + "type": "string" + }, + "description": { + "type": "string" + }, + "isPublished": { + "type": "boolean" + }, + "organizationId": { + "type": "string" + }, + "scope": { + "oneOf": [ + { + "type": "string", + "enum": [ + "global" + ] }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": ["jobTitle"] - }, - { - "type": "string", - "enum": ["appRole"] - }, - { - "type": "string", - "enum": ["group"] - }, - { - "type": "string", - "enum": ["claim"] - } + { + "type": "string", + "enum": [ + "team" ] }, - "targetRole": { - "oneOf": [ - { - "type": "string", - "enum": ["admin"] - }, - { - "type": "string", - "enum": ["developer"] - }, - { - "type": "string", - "enum": ["editor"] - }, - { - "type": "string", - "enum": ["member"] - }, - { - "type": "string", - "enum": ["disabled"] - } + { + "type": "string", + "enum": [ + "personal" ] } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" } - } - }, - "scopes": { - "type": "array", - "items": { + }, + "teamId": { + "type": "string" + }, + "title": { "type": "string" + }, + "usageCount": { + "type": "number" } } } } } }, - "Response_sso_providers.actions.upsert": { + "Request_threads.fork_thread.forkThread": { + "type": "object", + "required": [ + "args" + ], + "properties": { + "args": { + "type": "object", + "required": [ + "shareToken" + ], + "properties": { + "shareToken": { + "type": "string" + } + } + } + } + }, + "Response_threads.fork_thread.forkThread": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -20034,28 +34809,37 @@ } } }, - "Request_sso_providers.actions.remove": { + "Request_threads.get_shared_thread.getSharedThread": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["organizationId"], + "required": [ + "shareToken" + ], "properties": { - "organizationId": { + "shareToken": { "type": "string" } } } } }, - "Response_sso_providers.actions.remove": { + "Response_threads.get_shared_thread.getSharedThread": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -20063,40 +34847,40 @@ "errorData": { "type": "object" }, - "value": { - "type": "string", - "nullable": true - } + "value": {} } }, - "Request_sso_providers.actions.testConfig": { + "Request_threads.share_thread.shareThread": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { "type": "object", - "required": ["clientId", "clientSecret", "issuer"], + "required": [ + "threadId" + ], "properties": { - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "issuer": { + "threadId": { "type": "string" } } } } }, - "Response_sso_providers.actions.testConfig": { + "Response_threads.share_thread.shareThread": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -20105,35 +34889,41 @@ "type": "object" }, "value": { - "type": "object", - "required": ["valid"], - "properties": { - "error": { - "type": "string" - }, - "valid": { - "type": "boolean" - } - } + "type": "string" } } }, - "Request_sso_providers.actions.testExistingConfig": { + "Request_threads.share_thread.unshareThread": { "type": "object", - "required": ["args"], + "required": [ + "args" + ], "properties": { "args": { - "type": "object" + "type": "object", + "required": [ + "threadId" + ], + "properties": { + "threadId": { + "type": "string" + } + } } } }, - "Response_sso_providers.actions.testExistingConfig": { + "Response_threads.share_thread.unshareThread": { "type": "object", - "required": ["status"], + "required": [ + "status" + ], "properties": { "status": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "success", + "error" + ] }, "errorMessage": { "type": "string" @@ -20142,207 +34932,320 @@ "type": "object" }, "value": { - "type": "object", - "required": ["valid"], - "properties": { - "error": { - "type": "string" - }, - "valid": { - "type": "boolean" - } - } + "type": "string", + "nullable": true } } }, - "Request_team_members.mutations.addMember": { + "FailedResponse": { + "type": "object", + "properties": {} + }, + "ChatCompletionRequest": { "type": "object", - "required": ["args"], + "required": [ + "model", + "messages" + ], "properties": { - "args": { - "type": "object", - "required": ["organizationId", "teamId", "userId"], - "properties": { - "organizationId": { - "type": "string" - }, - "role": { + "model": { + "type": "string", + "description": "Agent slug (e.g., \"chat-agent\").", + "example": "chat-agent" + }, + "messages": { + "type": "array", + "description": "Conversation messages.", + "items": { + "$ref": "#/components/schemas/ChatMessage" + } + }, + "stream": { + "type": "boolean", + "description": "Enable SSE streaming.", + "default": false + }, + "temperature": { + "type": "number", + "minimum": 0, + "maximum": 2, + "description": "Sampling temperature." + }, + "max_tokens": { + "type": "integer", + "description": "Maximum tokens to generate." + }, + "top_p": { + "type": "number", + "description": "Nucleus sampling." + }, + "frequency_penalty": { + "type": "number" + }, + "presence_penalty": { + "type": "number" + }, + "stop": { + "oneOf": [ + { "type": "string" }, - "teamId": { - "type": "string" + { + "type": "array", + "items": { + "type": "string" + } + } + ], + "description": "Stop sequences." + }, + "response_format": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "text", + "json_object" + ] + } + }, + "description": "Set to `{\"type\": \"json_object\"}` for JSON mode." + }, + "tools": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ToolDefinition" + }, + "description": "Tool definitions for client-side tool calling. When provided, server-side agent tools are disabled." + }, + "tool_choice": { + "oneOf": [ + { + "type": "string", + "enum": [ + "auto", + "required", + "none" + ] }, - "userId": { - "type": "string" + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "function" + ] + }, + "function": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "required": [ + "name" + ] + } + } } - } + ], + "description": "Controls tool calling behavior." } } }, - "Response_team_members.mutations.addMember": { + "ChatMessage": { "type": "object", - "required": ["status"], + "required": [ + "role" + ], "properties": { - "status": { + "role": { "type": "string", - "enum": ["success", "error"] + "enum": [ + "system", + "user", + "assistant", + "tool" + ] }, - "errorMessage": { - "type": "string" + "content": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Message content." }, - "errorData": { - "type": "object" + "tool_calls": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ToolCall" + }, + "description": "Tool calls (assistant messages only)." }, - "value": {} + "tool_call_id": { + "type": "string", + "description": "ID of the tool call this result is for (tool messages only)." + } } }, - "Request_team_members.mutations.removeMember": { + "ToolDefinition": { "type": "object", - "required": ["args"], + "required": [ + "type", + "function" + ], "properties": { - "args": { + "type": { + "type": "string", + "enum": [ + "function" + ] + }, + "function": { "type": "object", - "required": ["organizationId", "teamMemberId"], + "required": [ + "name" + ], "properties": { - "organizationId": { + "name": { "type": "string" }, - "teamMemberId": { + "description": { "type": "string" + }, + "parameters": { + "type": "object", + "description": "JSON Schema for the function parameters." } } } } }, - "Response_team_members.mutations.removeMember": { + "ToolCall": { "type": "object", - "required": ["status"], "properties": { - "status": { - "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { + "id": { "type": "string" }, - "errorData": { - "type": "object" - }, - "value": { + "type": { "type": "string", - "nullable": true - } - } - }, - "Request_team_members.queries.listByTeam": { - "type": "object", - "required": ["args"], - "properties": { - "args": { + "enum": [ + "function" + ] + }, + "function": { "type": "object", - "required": ["teamId"], "properties": { - "teamId": { + "name": { "type": "string" + }, + "arguments": { + "type": "string", + "description": "JSON string of function arguments." } } } } }, - "Response_team_members.queries.listByTeam": { + "ChatCompletionResponse": { "type": "object", - "required": ["status"], "properties": { - "status": { + "id": { "type": "string", - "enum": ["success", "error"] + "example": "chatcmpl-abc123" }, - "errorMessage": { - "type": "string" + "object": { + "type": "string", + "enum": [ + "chat.completion" + ] }, - "errorData": { - "type": "object" + "created": { + "type": "integer" }, - "value": { + "model": { + "type": "string" + }, + "choices": { "type": "array", "items": { "type": "object", - "required": ["_id", "joinedAt", "role", "teamId", "userId"], "properties": { - "_id": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "email": { - "type": "string" - }, - "joinedAt": { - "type": "number" - }, - "role": { - "type": "string" + "index": { + "type": "integer" }, - "teamId": { - "type": "string" + "message": { + "$ref": "#/components/schemas/ChatMessage" }, - "userId": { - "type": "string" + "finish_reason": { + "type": "string", + "enum": [ + "stop", + "length", + "tool_calls" + ] } } } - } - } - }, - "Request_workflow_engine.mutations.startWorkflow": { - "type": "object", - "required": ["args"], - "properties": { - "args": { + }, + "usage": { "type": "object", - "required": ["organizationId", "triggeredBy", "wfDefinitionId"], "properties": { - "input": {}, - "organizationId": { - "type": "string" + "prompt_tokens": { + "type": "integer" }, - "triggerData": {}, - "triggeredBy": { - "type": "string" + "completion_tokens": { + "type": "integer" }, - "wfDefinitionId": { - "type": "string", - "description": "ID from table \"wfDefinitions\"" + "total_tokens": { + "type": "integer" } } } } }, - "Response_workflow_engine.mutations.startWorkflow": { + "ModelList": { "type": "object", - "required": ["status"], "properties": { - "status": { + "object": { "type": "string", - "enum": ["success", "error"] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" + "enum": [ + "list" + ] }, - "value": { - "type": "string", - "description": "ID from table \"wfExecutions\"" + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "chat-agent" + }, + "object": { + "type": "string", + "enum": [ + "model" + ] + }, + "created": { + "type": "integer" + }, + "owned_by": { + "type": "string" + } + } + } } } - }, - "FailedResponse": { - "type": "object", - "properties": {} } } } -} +} \ No newline at end of file diff --git a/services/platform/scripts/generate-openapi.ts b/services/platform/scripts/generate-openapi.ts index a2b9a5cc5..3b155d95f 100644 --- a/services/platform/scripts/generate-openapi.ts +++ b/services/platform/scripts/generate-openapi.ts @@ -42,6 +42,313 @@ interface OpenApiSpec { tags?: Array<{ name: string; description: string }>; } +/** + * Inject OpenAI-compatible Chat Completions API paths into the spec. + * These are custom HTTP routes registered via httpRouter, not generated + * by convex-helpers. + */ +function injectOpenAICompatPaths(spec: OpenApiSpec) { + const bearerAuth = { + bearerAuth: { + type: 'http', + scheme: 'bearer', + description: + 'API key as Bearer token (e.g., "Bearer tale_..."). Create keys in Settings > API Keys.', + }, + }; + Object.assign(spec.components.securitySchemes ?? {}, bearerAuth); + + const openaiTag = 'OpenAI Compatible'; + + spec.paths['/api/v1/chat/completions'] = { + post: { + tags: [openaiTag], + summary: 'Create chat completion', + description: `Send messages to an agent and receive a response. Fully compatible with the OpenAI Chat Completions API. + +**Two modes:** +- **Agent mode** (no \`tools\`): The agent uses server-side tools and auto-executes them. +- **Client tool mode** (\`tools\` provided): Only client-defined tools are used. Returns \`tool_calls\` for client execution.`, + operationId: 'createChatCompletion', + security: [{ bearerAuth: [] }], + parameters: [ + { + name: 'X-Organization-Slug', + in: 'header', + required: false, + schema: { type: 'string' }, + description: + 'Organization slug. Auto-resolved if user belongs to one org.', + }, + { + name: 'X-Thread-Id', + in: 'header', + required: false, + schema: { type: 'string' }, + description: 'Reuse a conversation thread across requests.', + }, + ], + requestBody: { + required: true, + content: { + 'application/json': { + schema: { $ref: '#/components/schemas/ChatCompletionRequest' }, + }, + }, + }, + responses: { + '200': { + description: + 'Chat completion response (or SSE stream if stream=true)', + content: { + 'application/json': { + schema: { $ref: '#/components/schemas/ChatCompletionResponse' }, + }, + 'text/event-stream': { + schema: { + type: 'string', + description: + 'SSE stream of ChatCompletionChunk objects, terminated by `data: [DONE]`', + }, + }, + }, + }, + '400': { + description: 'Invalid request (missing model, messages, etc.)', + }, + '401': { description: 'Invalid or missing API key' }, + '403': { description: 'Not a member of the organization' }, + '404': { description: 'Model (agent) not found' }, + '429': { description: 'Rate limit exceeded' }, + '500': { description: 'Generation failed' }, + }, + }, + }; + + spec.paths['/api/v1/models'] = { + get: { + tags: [openaiTag], + summary: 'List models', + description: + 'List available agents as OpenAI-compatible models. Only agents with `visibleInChat: true` are returned.', + operationId: 'listModels', + security: [{ bearerAuth: [] }], + parameters: [ + { + name: 'X-Organization-Slug', + in: 'header', + required: false, + schema: { type: 'string' }, + description: 'Organization slug.', + }, + ], + responses: { + '200': { + description: 'List of models', + content: { + 'application/json': { + schema: { $ref: '#/components/schemas/ModelList' }, + }, + }, + }, + '401': { description: 'Invalid or missing API key' }, + }, + }, + }; + + // Add schemas + const schemas = spec.components.schemas; + + schemas.ChatCompletionRequest = { + type: 'object', + required: ['model', 'messages'], + properties: { + model: { + type: 'string', + description: 'Agent slug (e.g., "chat-agent").', + example: 'chat-agent', + }, + messages: { + type: 'array', + description: 'Conversation messages.', + items: { $ref: '#/components/schemas/ChatMessage' }, + }, + stream: { + type: 'boolean', + description: 'Enable SSE streaming.', + default: false, + }, + temperature: { + type: 'number', + minimum: 0, + maximum: 2, + description: 'Sampling temperature.', + }, + max_tokens: { + type: 'integer', + description: 'Maximum tokens to generate.', + }, + top_p: { type: 'number', description: 'Nucleus sampling.' }, + frequency_penalty: { type: 'number' }, + presence_penalty: { type: 'number' }, + stop: { + oneOf: [ + { type: 'string' }, + { type: 'array', items: { type: 'string' } }, + ], + description: 'Stop sequences.', + }, + response_format: { + type: 'object', + properties: { + type: { + type: 'string', + enum: ['text', 'json_object'], + }, + }, + description: 'Set to `{"type": "json_object"}` for JSON mode.', + }, + tools: { + type: 'array', + items: { $ref: '#/components/schemas/ToolDefinition' }, + description: + 'Tool definitions for client-side tool calling. When provided, server-side agent tools are disabled.', + }, + tool_choice: { + oneOf: [ + { type: 'string', enum: ['auto', 'required', 'none'] }, + { + type: 'object', + properties: { + type: { type: 'string', enum: ['function'] }, + function: { + type: 'object', + properties: { name: { type: 'string' } }, + required: ['name'], + }, + }, + }, + ], + description: 'Controls tool calling behavior.', + }, + }, + }; + + schemas.ChatMessage = { + type: 'object', + required: ['role'], + properties: { + role: { + type: 'string', + enum: ['system', 'user', 'assistant', 'tool'], + }, + content: { + oneOf: [{ type: 'string' }, { type: 'null' }], + description: 'Message content.', + }, + tool_calls: { + type: 'array', + items: { $ref: '#/components/schemas/ToolCall' }, + description: 'Tool calls (assistant messages only).', + }, + tool_call_id: { + type: 'string', + description: + 'ID of the tool call this result is for (tool messages only).', + }, + }, + }; + + schemas.ToolDefinition = { + type: 'object', + required: ['type', 'function'], + properties: { + type: { type: 'string', enum: ['function'] }, + function: { + type: 'object', + required: ['name'], + properties: { + name: { type: 'string' }, + description: { type: 'string' }, + parameters: { + type: 'object', + description: 'JSON Schema for the function parameters.', + }, + }, + }, + }, + }; + + schemas.ToolCall = { + type: 'object', + properties: { + id: { type: 'string' }, + type: { type: 'string', enum: ['function'] }, + function: { + type: 'object', + properties: { + name: { type: 'string' }, + arguments: { + type: 'string', + description: 'JSON string of function arguments.', + }, + }, + }, + }, + }; + + schemas.ChatCompletionResponse = { + type: 'object', + properties: { + id: { type: 'string', example: 'chatcmpl-abc123' }, + object: { type: 'string', enum: ['chat.completion'] }, + created: { type: 'integer' }, + model: { type: 'string' }, + choices: { + type: 'array', + items: { + type: 'object', + properties: { + index: { type: 'integer' }, + message: { $ref: '#/components/schemas/ChatMessage' }, + finish_reason: { + type: 'string', + enum: ['stop', 'length', 'tool_calls'], + }, + }, + }, + }, + usage: { + type: 'object', + properties: { + prompt_tokens: { type: 'integer' }, + completion_tokens: { type: 'integer' }, + total_tokens: { type: 'integer' }, + }, + }, + }, + }; + + schemas.ModelList = { + type: 'object', + properties: { + object: { type: 'string', enum: ['list'] }, + data: { + type: 'array', + items: { + type: 'object', + properties: { + id: { type: 'string', example: 'chat-agent' }, + object: { type: 'string', enum: ['model'] }, + created: { type: 'integer' }, + owned_by: { type: 'string' }, + }, + }, + }, + }, + }; +} + function main() { const tempYamlPath = join(platformDir, 'convex-openapi-temp.yaml'); const outputPath = join(platformDir, 'public', 'openapi.json'); @@ -123,11 +430,19 @@ All endpoints accept POST requests with JSON body containing an \`args\` object: }; spec.tags = [ + { + name: 'OpenAI Compatible', + description: + 'OpenAI Chat Completions compatible API. Use any OpenAI SDK by pointing base_url to this server.', + }, { name: 'query', description: 'Read-only functions that fetch data' }, { name: 'mutation', description: 'Functions that modify data' }, { name: 'action', description: 'Functions that can call external APIs' }, ]; + // Inject OpenAI-compatible endpoints (custom HTTP routes not covered by convex-helpers) + injectOpenAICompatPaths(spec); + const outputDir = dirname(outputPath); if (!existsSync(outputDir)) { mkdirSync(outputDir, { recursive: true }); From 9fdfd175c814ccc4d7fc80b80aca756ee8575014 Mon Sep 17 00:00:00 2001 From: larryro <371767072@qq.com> Date: Thu, 9 Apr 2026 19:51:27 +0800 Subject: [PATCH 6/9] refactor(platform): output only public API endpoints in openapi.json Replace the full 263-endpoint spec (452KB) with a curated public spec (12.5KB) containing only the OpenAI-compatible endpoints. The Swagger UI at /docs now loads instantly and shows only externally relevant APIs. --- services/platform/public/openapi.json | 35162 +--------------- services/platform/scripts/generate-openapi.ts | 107 +- 2 files changed, 294 insertions(+), 34975 deletions(-) diff --git a/services/platform/public/openapi.json b/services/platform/public/openapi.json index 397a62a2e..3507f51ee 100644 --- a/services/platform/public/openapi.json +++ b/services/platform/public/openapi.json @@ -1,9 +1,9 @@ { "openapi": "3.0.3", "info": { - "title": "Tale Platform API", + "title": "Tale Public API", "version": "1.0.0", - "description": "Tale Platform API - Access your Convex backend via REST API.\n\n## Authentication\n\nAll API requests require an `x-api-key` header with your API key.\n\n```\nx-api-key: your-api-key-here\n```\n\nYou can create API keys in Settings > API Keys.\n\n## Request Format\n\nAll endpoints accept POST requests with JSON body containing an `args` object:\n\n```json\n{\n \"args\": {\n \"param1\": \"value1\",\n \"param2\": \"value2\"\n }\n}\n```" + "description": "Tale Public API — OpenAI-compatible Chat Completions interface.\n\n## Authentication\n\nUse a Bearer token with your API key:\n\n```\nAuthorization: Bearer tale_...\n```\n\nCreate API keys in **Settings > API Keys**.\n\n## Quick start\n\n```python\nfrom openai import OpenAI\n\nclient = OpenAI(\n base_url=\"https://your-instance.com/api/v1\",\n api_key=\"tale_...\",\n default_headers={\"X-Organization-Slug\": \"default\"},\n)\n\nresponse = client.chat.completions.create(\n model=\"chat-agent\",\n messages=[{\"role\": \"user\", \"content\": \"Hello!\"}],\n)\n```" }, "servers": [ { @@ -13,34934 +13,142 @@ ], "security": [ { - "apiKeyAuth": [] - } - ], - "tags": [ - { - "name": "OpenAI Compatible", - "description": "OpenAI Chat Completions compatible API. Use any OpenAI SDK by pointing base_url to this server." - }, - { - "name": "query", - "description": "Read-only functions that fetch data" - }, - { - "name": "mutation", - "description": "Functions that modify data" - }, - { - "name": "action", - "description": "Functions that can call external APIs" + "bearerAuth": [] } ], "paths": { - "/api/run/accounts/queries/hasCredentialAccount": { + "/api/v1/chat/completions": { "post": { - "summary": "Calls a query at the path accounts/queries.js:hasCredentialAccount", "tags": [ - "query" + "OpenAI Compatible" ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_accounts.queries.hasCredentialAccount" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_accounts.queries.hasCredentialAccount" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } + "summary": "Create chat completion", + "description": "Send messages to an agent and receive a response. Fully compatible with the OpenAI Chat Completions API.\n\n**Two modes:**\n- **Agent mode** (no `tools`): The agent uses server-side tools and auto-executes them.\n- **Client tool mode** (`tools` provided): Only client-defined tools are used. Returns `tool_calls` for client execution.", + "operationId": "createChatCompletion", + "security": [ + { + "bearerAuth": [] } - } - } - }, - "/api/run/accounts/queries/hasMicrosoftAccount": { - "post": { - "summary": "Calls a query at the path accounts/queries.js:hasMicrosoftAccount", - "tags": [ - "query" ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_accounts.queries.hasMicrosoftAccount" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_accounts.queries.hasMicrosoftAccount" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } + "parameters": [ + { + "name": "X-Organization-Slug", + "in": "header", + "required": false, + "schema": { + "type": "string" + }, + "description": "Organization slug. Auto-resolved if user belongs to one org." }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } + { + "name": "X-Thread-Id", + "in": "header", + "required": false, + "schema": { + "type": "string" + }, + "description": "Reuse a conversation thread across requests." } - } - } - }, - "/api/run/agents/file_actions/deleteAgent": { - "post": { - "summary": "Calls a action at the path agents/file_actions.js:deleteAgent", - "tags": [ - "action" ], "requestBody": { + "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Request_agents.file_actions.deleteAgent" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.file_actions.deleteAgent" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } + "$ref": "#/components/schemas/ChatCompletionRequest" } } } - } - } - }, - "/api/run/agents/file_actions/duplicateAgent": { - "post": { - "summary": "Calls a action at the path agents/file_actions.js:duplicateAgent", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.file_actions.duplicateAgent" - } - } - }, - "required": true }, "responses": { "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.file_actions.duplicateAgent" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", + "description": "Chat completion response (or SSE stream if stream=true)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FailedResponse" + "$ref": "#/components/schemas/ChatCompletionResponse" } - } - } - } - } - } - }, - "/api/run/agents/file_actions/listAgents": { - "post": { - "summary": "Calls a action at the path agents/file_actions.js:listAgents", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.file_actions.listAgents" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { + }, + "text/event-stream": { "schema": { - "$ref": "#/components/schemas/Response_agents.file_actions.listAgents" + "type": "string", + "description": "SSE stream of ChatCompletionChunk objects, terminated by `data: [DONE]`" } } } }, "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } + "description": "Invalid request (missing model, messages, etc.)" }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/file_actions/listHistory": { - "post": { - "summary": "Calls a action at the path agents/file_actions.js:listHistory", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.file_actions.listHistory" - } - } + "401": { + "description": "Invalid or missing API key" }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.file_actions.listHistory" - } - } - } + "403": { + "description": "Not a member of the organization" }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } + "404": { + "description": "Model (agent) not found" + }, + "429": { + "description": "Rate limit exceeded" }, "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } + "description": "Generation failed" } } } }, - "/api/run/agents/file_actions/readHistoryEntry": { - "post": { - "summary": "Calls a action at the path agents/file_actions.js:readHistoryEntry", + "/api/v1/models": { + "get": { "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.file_actions.readHistoryEntry" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.file_actions.readHistoryEntry" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/file_actions/restoreFromHistory": { - "post": { - "summary": "Calls a action at the path agents/file_actions.js:restoreFromHistory", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.file_actions.restoreFromHistory" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.file_actions.restoreFromHistory" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/file_actions/saveAgent": { - "post": { - "summary": "Calls a action at the path agents/file_actions.js:saveAgent", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.file_actions.saveAgent" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.file_actions.saveAgent" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/file_actions/snapshotToHistory": { - "post": { - "summary": "Calls a action at the path agents/file_actions.js:snapshotToHistory", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.file_actions.snapshotToHistory" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.file_actions.snapshotToHistory" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/file_actions/translateAgentFields": { - "post": { - "summary": "Calls a action at the path agents/file_actions.js:translateAgentFields", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.file_actions.translateAgentFields" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.file_actions.translateAgentFields" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/file_actions/readAgent": { - "post": { - "summary": "Calls a action at the path agents/file_actions.js:readAgent", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.file_actions.readAgent" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.file_actions.readAgent" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/mutations/updateAgentBindings": { - "post": { - "summary": "Calls a mutation at the path agents/mutations.js:updateAgentBindings", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.mutations.updateAgentBindings" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.mutations.updateAgentBindings" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/mutations/addKnowledgeFile": { - "post": { - "summary": "Calls a mutation at the path agents/mutations.js:addKnowledgeFile", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.mutations.addKnowledgeFile" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.mutations.addKnowledgeFile" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/mutations/removeKnowledgeFile": { - "post": { - "summary": "Calls a mutation at the path agents/mutations.js:removeKnowledgeFile", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.mutations.removeKnowledgeFile" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.mutations.removeKnowledgeFile" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/queries/getBindingByAgent": { - "post": { - "summary": "Calls a query at the path agents/queries.js:getBindingByAgent", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.queries.getBindingByAgent" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.queries.getBindingByAgent" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/queries/hasBindingsByTeam": { - "post": { - "summary": "Calls a query at the path agents/queries.js:hasBindingsByTeam", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.queries.hasBindingsByTeam" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.queries.hasBindingsByTeam" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/queries/getAvailableTools": { - "post": { - "summary": "Calls a query at the path agents/queries.js:getAvailableTools", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.queries.getAvailableTools" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.queries.getAvailableTools" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/queries/getAvailableIntegrations": { - "post": { - "summary": "Calls a query at the path agents/queries.js:getAvailableIntegrations", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.queries.getAvailableIntegrations" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.queries.getAvailableIntegrations" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/unified_chat/chatWithAgent": { - "post": { - "summary": "Calls a action at the path agents/unified_chat.js:chatWithAgent", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.unified_chat.chatWithAgent" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.unified_chat.chatWithAgent" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/webhooks/mutations/createWebhook": { - "post": { - "summary": "Calls a mutation at the path agents/webhooks/mutations.js:createWebhook", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.webhooks.mutations.createWebhook" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.webhooks.mutations.createWebhook" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/webhooks/mutations/toggleWebhook": { - "post": { - "summary": "Calls a mutation at the path agents/webhooks/mutations.js:toggleWebhook", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.webhooks.mutations.toggleWebhook" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.webhooks.mutations.toggleWebhook" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/webhooks/mutations/deleteWebhook": { - "post": { - "summary": "Calls a mutation at the path agents/webhooks/mutations.js:deleteWebhook", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.webhooks.mutations.deleteWebhook" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.webhooks.mutations.deleteWebhook" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/webhooks/queries/getWebhooks": { - "post": { - "summary": "Calls a query at the path agents/webhooks/queries.js:getWebhooks", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.webhooks.queries.getWebhooks" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.webhooks.queries.getWebhooks" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/approvals/actions/executeApprovedDocumentWrite": { - "post": { - "summary": "Calls a action at the path approvals/actions.js:executeApprovedDocumentWrite", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_approvals.actions.executeApprovedDocumentWrite" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_approvals.actions.executeApprovedDocumentWrite" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/approvals/actions/executeApprovedWorkflowCreation": { - "post": { - "summary": "Calls a action at the path approvals/actions.js:executeApprovedWorkflowCreation", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_approvals.actions.executeApprovedWorkflowCreation" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_approvals.actions.executeApprovedWorkflowCreation" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/approvals/actions/executeApprovedWorkflowRun": { - "post": { - "summary": "Calls a action at the path approvals/actions.js:executeApprovedWorkflowRun", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_approvals.actions.executeApprovedWorkflowRun" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_approvals.actions.executeApprovedWorkflowRun" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/approvals/actions/executeApprovedWorkflowUpdate": { - "post": { - "summary": "Calls a action at the path approvals/actions.js:executeApprovedWorkflowUpdate", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_approvals.actions.executeApprovedWorkflowUpdate" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_approvals.actions.executeApprovedWorkflowUpdate" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/approvals/actions/executeApprovedIntegrationOperation": { - "post": { - "summary": "Calls a action at the path approvals/actions.js:executeApprovedIntegrationOperation", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_approvals.actions.executeApprovedIntegrationOperation" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_approvals.actions.executeApprovedIntegrationOperation" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/approvals/mutations/updateApprovalStatus": { - "post": { - "summary": "Calls a mutation at the path approvals/mutations.js:updateApprovalStatus", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_approvals.mutations.updateApprovalStatus" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_approvals.mutations.updateApprovalStatus" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/approvals/mutations/removeRecommendedProduct": { - "post": { - "summary": "Calls a mutation at the path approvals/mutations.js:removeRecommendedProduct", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_approvals.mutations.removeRecommendedProduct" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_approvals.mutations.removeRecommendedProduct" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/approvals/queries/getApproval": { - "post": { - "summary": "Calls a query at the path approvals/queries.js:getApproval", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_approvals.queries.getApproval" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_approvals.queries.getApproval" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/approvals/queries/approxCountApprovalsByStatus": { - "post": { - "summary": "Calls a query at the path approvals/queries.js:approxCountApprovalsByStatus", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_approvals.queries.approxCountApprovalsByStatus" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_approvals.queries.approxCountApprovalsByStatus" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/approvals/queries/listApprovalsPaginated": { - "post": { - "summary": "Calls a query at the path approvals/queries.js:listApprovalsPaginated", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_approvals.queries.listApprovalsPaginated" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_approvals.queries.listApprovalsPaginated" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/approvals/queries/listApprovalsByOrganization": { - "post": { - "summary": "Calls a query at the path approvals/queries.js:listApprovalsByOrganization", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_approvals.queries.listApprovalsByOrganization" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_approvals.queries.listApprovalsByOrganization" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/approvals/queries/listActiveApprovalsByOrganization": { - "post": { - "summary": "Calls a query at the path approvals/queries.js:listActiveApprovalsByOrganization", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_approvals.queries.listActiveApprovalsByOrganization" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_approvals.queries.listActiveApprovalsByOrganization" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/approvals/queries/getPendingIntegrationApprovalsForThread": { - "post": { - "summary": "Calls a query at the path approvals/queries.js:getPendingIntegrationApprovalsForThread", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_approvals.queries.getPendingIntegrationApprovalsForThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_approvals.queries.getPendingIntegrationApprovalsForThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/approvals/queries/getWorkflowCreationApprovalsForThread": { - "post": { - "summary": "Calls a query at the path approvals/queries.js:getWorkflowCreationApprovalsForThread", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_approvals.queries.getWorkflowCreationApprovalsForThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_approvals.queries.getWorkflowCreationApprovalsForThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/approvals/queries/getHumanInputRequestsForThread": { - "post": { - "summary": "Calls a query at the path approvals/queries.js:getHumanInputRequestsForThread", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_approvals.queries.getHumanInputRequestsForThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_approvals.queries.getHumanInputRequestsForThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/audit_logs/queries/listAuditLogs": { - "post": { - "summary": "Calls a query at the path audit_logs/queries.js:listAuditLogs", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_audit_logs.queries.listAuditLogs" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_audit_logs.queries.listAuditLogs" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/audit_logs/queries/listAuditLogsPaginated": { - "post": { - "summary": "Calls a query at the path audit_logs/queries.js:listAuditLogsPaginated", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_audit_logs.queries.listAuditLogsPaginated" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_audit_logs.queries.listAuditLogsPaginated" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/audit_logs/queries/getResourceAuditTrail": { - "post": { - "summary": "Calls a query at the path audit_logs/queries.js:getResourceAuditTrail", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_audit_logs.queries.getResourceAuditTrail" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_audit_logs.queries.getResourceAuditTrail" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/audit_logs/queries/getActivitySummary": { - "post": { - "summary": "Calls a query at the path audit_logs/queries.js:getActivitySummary", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_audit_logs.queries.getActivitySummary" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_audit_logs.queries.getActivitySummary" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/branding/mutations/upsertBrandingBindings": { - "post": { - "summary": "Calls a mutation at the path branding/mutations.js:upsertBrandingBindings", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_branding.mutations.upsertBrandingBindings" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_branding.mutations.upsertBrandingBindings" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/branding/mutations/clearBrandingBindings": { - "post": { - "summary": "Calls a mutation at the path branding/mutations.js:clearBrandingBindings", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_branding.mutations.clearBrandingBindings" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_branding.mutations.clearBrandingBindings" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/actions/improveMessage": { - "post": { - "summary": "Calls a action at the path conversations/actions.js:improveMessage", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.actions.improveMessage" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.actions.improveMessage" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/mutations/addMessageToConversation": { - "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:addMessageToConversation", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.addMessageToConversation" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.addMessageToConversation" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/mutations/bulkArchiveConversations": { - "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:bulkArchiveConversations", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.bulkArchiveConversations" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.bulkArchiveConversations" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/mutations/bulkCloseConversations": { - "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:bulkCloseConversations", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.bulkCloseConversations" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.bulkCloseConversations" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/mutations/bulkReopenConversations": { - "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:bulkReopenConversations", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.bulkReopenConversations" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.bulkReopenConversations" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/mutations/bulkSpamConversations": { - "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:bulkSpamConversations", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.bulkSpamConversations" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.bulkSpamConversations" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/mutations/bulkUnarchiveConversations": { - "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:bulkUnarchiveConversations", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.bulkUnarchiveConversations" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.bulkUnarchiveConversations" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/mutations/closeConversation": { - "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:closeConversation", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.closeConversation" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.closeConversation" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/mutations/deleteConversation": { - "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:deleteConversation", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.deleteConversation" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.deleteConversation" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/mutations/downloadAttachments": { - "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:downloadAttachments", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.downloadAttachments" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.downloadAttachments" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/mutations/markConversationAsRead": { - "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:markConversationAsRead", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.markConversationAsRead" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.markConversationAsRead" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/mutations/markConversationAsSpam": { - "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:markConversationAsSpam", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.markConversationAsSpam" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.markConversationAsSpam" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/mutations/reopenConversation": { - "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:reopenConversation", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.reopenConversation" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.reopenConversation" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/mutations/sendMessageViaIntegration": { - "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:sendMessageViaIntegration", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.sendMessageViaIntegration" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.sendMessageViaIntegration" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/mutations/updateConversation": { - "post": { - "summary": "Calls a mutation at the path conversations/mutations.js:updateConversation", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.mutations.updateConversation" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.mutations.updateConversation" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/queries/approxCountConversationsByStatus": { - "post": { - "summary": "Calls a query at the path conversations/queries.js:approxCountConversationsByStatus", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.queries.approxCountConversationsByStatus" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.queries.approxCountConversationsByStatus" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/queries/getConversationWithMessages": { - "post": { - "summary": "Calls a query at the path conversations/queries.js:getConversationWithMessages", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.queries.getConversationWithMessages" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.queries.getConversationWithMessages" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/queries/listConversations": { - "post": { - "summary": "Calls a query at the path conversations/queries.js:listConversations", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.queries.listConversations" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.queries.listConversations" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/conversations/queries/listConversationsPaginated": { - "post": { - "summary": "Calls a query at the path conversations/queries.js:listConversationsPaginated", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_conversations.queries.listConversationsPaginated" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_conversations.queries.listConversationsPaginated" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/customers/mutations/bulkCreateCustomers": { - "post": { - "summary": "Calls a mutation at the path customers/mutations.js:bulkCreateCustomers", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_customers.mutations.bulkCreateCustomers" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_customers.mutations.bulkCreateCustomers" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/customers/mutations/deleteCustomer": { - "post": { - "summary": "Calls a mutation at the path customers/mutations.js:deleteCustomer", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_customers.mutations.deleteCustomer" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_customers.mutations.deleteCustomer" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/customers/mutations/updateCustomer": { - "post": { - "summary": "Calls a mutation at the path customers/mutations.js:updateCustomer", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_customers.mutations.updateCustomer" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_customers.mutations.updateCustomer" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/customers/queries/approxCountCustomers": { - "post": { - "summary": "Calls a query at the path customers/queries.js:approxCountCustomers", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_customers.queries.approxCountCustomers" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_customers.queries.approxCountCustomers" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/customers/queries/listCustomers": { - "post": { - "summary": "Calls a query at the path customers/queries.js:listCustomers", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_customers.queries.listCustomers" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_customers.queries.listCustomers" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/customers/queries/listCustomersPaginated": { - "post": { - "summary": "Calls a query at the path customers/queries.js:listCustomersPaginated", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_customers.queries.listCustomersPaginated" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_customers.queries.listCustomersPaginated" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/documents/actions/retryRagIndexing": { - "post": { - "summary": "Calls a action at the path documents/actions.js:retryRagIndexing", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_documents.actions.retryRagIndexing" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_documents.actions.retryRagIndexing" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/documents/mutations/updateDocument": { - "post": { - "summary": "Calls a mutation at the path documents/mutations.js:updateDocument", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_documents.mutations.updateDocument" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_documents.mutations.updateDocument" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/documents/mutations/deleteDocument": { - "post": { - "summary": "Calls a mutation at the path documents/mutations.js:deleteDocument", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_documents.mutations.deleteDocument" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_documents.mutations.deleteDocument" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/documents/mutations/createDocumentFromUpload": { - "post": { - "summary": "Calls a mutation at the path documents/mutations.js:createDocumentFromUpload", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_documents.mutations.createDocumentFromUpload" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_documents.mutations.createDocumentFromUpload" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/documents/queries/approxCountDocuments": { - "post": { - "summary": "Calls a query at the path documents/queries.js:approxCountDocuments", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_documents.queries.approxCountDocuments" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_documents.queries.approxCountDocuments" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/documents/queries/listDocuments": { - "post": { - "summary": "Calls a query at the path documents/queries.js:listDocuments", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_documents.queries.listDocuments" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_documents.queries.listDocuments" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/documents/queries/listDocumentsPaginated": { - "post": { - "summary": "Calls a query at the path documents/queries.js:listDocumentsPaginated", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_documents.queries.listDocumentsPaginated" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_documents.queries.listDocumentsPaginated" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/file_metadata/mutations/saveFileMetadata": { - "post": { - "summary": "Calls a mutation at the path file_metadata/mutations.js:saveFileMetadata", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_file_metadata.mutations.saveFileMetadata" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_file_metadata.mutations.saveFileMetadata" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/files/mutations/generateUploadUrl": { - "post": { - "summary": "Calls a mutation at the path files/mutations.js:generateUploadUrl", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_files.mutations.generateUploadUrl" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_files.mutations.generateUploadUrl" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/files/queries/getFileUrl": { - "post": { - "summary": "Calls a query at the path files/queries.js:getFileUrl", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_files.queries.getFileUrl" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_files.queries.getFileUrl" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/files/queries/getFileUrls": { - "post": { - "summary": "Calls a query at the path files/queries.js:getFileUrls", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_files.queries.getFileUrls" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_files.queries.getFileUrls" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/folders/mutations/createFolder": { - "post": { - "summary": "Calls a mutation at the path folders/mutations.js:createFolder", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_folders.mutations.createFolder" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_folders.mutations.createFolder" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/folders/mutations/deleteFolder": { - "post": { - "summary": "Calls a mutation at the path folders/mutations.js:deleteFolder", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_folders.mutations.deleteFolder" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_folders.mutations.deleteFolder" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/folders/mutations/renameFolder": { - "post": { - "summary": "Calls a mutation at the path folders/mutations.js:renameFolder", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_folders.mutations.renameFolder" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_folders.mutations.renameFolder" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/folders/mutations/updateFolderTeams": { - "post": { - "summary": "Calls a mutation at the path folders/mutations.js:updateFolderTeams", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_folders.mutations.updateFolderTeams" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_folders.mutations.updateFolderTeams" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/folders/queries/getFolder": { - "post": { - "summary": "Calls a query at the path folders/queries.js:getFolder", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_folders.queries.getFolder" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_folders.queries.getFolder" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/folders/queries/getFolderBreadcrumb": { - "post": { - "summary": "Calls a query at the path folders/queries.js:getFolderBreadcrumb", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_folders.queries.getFolderBreadcrumb" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_folders.queries.getFolderBreadcrumb" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/folders/queries/listFolders": { - "post": { - "summary": "Calls a query at the path folders/queries.js:listFolders", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_folders.queries.listFolders" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_folders.queries.listFolders" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/actions/generateOAuth2Url": { - "post": { - "summary": "Calls a action at the path integrations/actions.js:generateOAuth2Url", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.actions.generateOAuth2Url" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.actions.generateOAuth2Url" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/actions/saveOAuth2ClientCredentials": { - "post": { - "summary": "Calls a action at the path integrations/actions.js:saveOAuth2ClientCredentials", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.actions.saveOAuth2ClientCredentials" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.actions.saveOAuth2ClientCredentials" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/actions/testConnection": { - "post": { - "summary": "Calls a action at the path integrations/actions.js:testConnection", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.actions.testConnection" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.actions.testConnection" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/actions/saveCredentials": { - "post": { - "summary": "Calls a action at the path integrations/actions.js:saveCredentials", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.actions.saveCredentials" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.actions.saveCredentials" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/mutations/updateIcon": { - "post": { - "summary": "Calls a mutation at the path integrations/mutations.js:updateIcon", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.mutations.updateIcon" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.mutations.updateIcon" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/mutations/deleteIntegration": { - "post": { - "summary": "Calls a mutation at the path integrations/mutations.js:deleteIntegration", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.mutations.deleteIntegration" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.mutations.deleteIntegration" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/queries/get": { - "post": { - "summary": "Calls a query at the path integrations/queries.js:get", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.queries.get" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.queries.get" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/queries/getByName": { - "post": { - "summary": "Calls a query at the path integrations/queries.js:getByName", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.queries.getByName" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.queries.getByName" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/queries/list": { - "post": { - "summary": "Calls a query at the path integrations/queries.js:list", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.queries.list" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.queries.list" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/queries/listRelatedAutomations": { - "post": { - "summary": "Calls a query at the path integrations/queries.js:listRelatedAutomations", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.queries.listRelatedAutomations" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.queries.listRelatedAutomations" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/members/mutations/addMember": { - "post": { - "summary": "Calls a mutation at the path members/mutations.js:addMember", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_members.mutations.addMember" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_members.mutations.addMember" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/members/mutations/removeMember": { - "post": { - "summary": "Calls a mutation at the path members/mutations.js:removeMember", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_members.mutations.removeMember" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_members.mutations.removeMember" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/members/mutations/updateMemberRole": { - "post": { - "summary": "Calls a mutation at the path members/mutations.js:updateMemberRole", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_members.mutations.updateMemberRole" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_members.mutations.updateMemberRole" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/members/mutations/transferOwnership": { - "post": { - "summary": "Calls a mutation at the path members/mutations.js:transferOwnership", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_members.mutations.transferOwnership" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_members.mutations.transferOwnership" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/members/mutations/updateMemberDisplayName": { - "post": { - "summary": "Calls a mutation at the path members/mutations.js:updateMemberDisplayName", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_members.mutations.updateMemberDisplayName" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_members.mutations.updateMemberDisplayName" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/members/queries/getCurrentMemberContext": { - "post": { - "summary": "Calls a query at the path members/queries.js:getCurrentMemberContext", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_members.queries.getCurrentMemberContext" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_members.queries.getCurrentMemberContext" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/members/queries/listByOrganization": { - "post": { - "summary": "Calls a query at the path members/queries.js:listByOrganization", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_members.queries.listByOrganization" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_members.queries.listByOrganization" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/members/queries/getUserIdByEmail": { - "post": { - "summary": "Calls a query at the path members/queries.js:getUserIdByEmail", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_members.queries.getUserIdByEmail" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_members.queries.getUserIdByEmail" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/members/queries/getUserOrganizationsList": { - "post": { - "summary": "Calls a query at the path members/queries.js:getUserOrganizationsList", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_members.queries.getUserOrganizationsList" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_members.queries.getUserOrganizationsList" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/members/queries/approxCountMyTeams": { - "post": { - "summary": "Calls a query at the path members/queries.js:approxCountMyTeams", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_members.queries.approxCountMyTeams" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_members.queries.approxCountMyTeams" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/members/queries/getMyTeams": { - "post": { - "summary": "Calls a query at the path members/queries.js:getMyTeams", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_members.queries.getMyTeams" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_members.queries.getMyTeams" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/members/queries/listOrgTeams": { - "post": { - "summary": "Calls a query at the path members/queries.js:listOrgTeams", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_members.queries.listOrgTeams" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_members.queries.listOrgTeams" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/message_metadata/queries/getMessageMetadata": { - "post": { - "summary": "Calls a query at the path message_metadata/queries.js:getMessageMetadata", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_message_metadata.queries.getMessageMetadata" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_message_metadata.queries.getMessageMetadata" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/onedrive/actions/importFiles": { - "post": { - "summary": "Calls a action at the path onedrive/actions.js:importFiles", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_onedrive.actions.importFiles" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_onedrive.actions.importFiles" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/onedrive/actions/listSharePointDrives": { - "post": { - "summary": "Calls a action at the path onedrive/actions.js:listSharePointDrives", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_onedrive.actions.listSharePointDrives" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_onedrive.actions.listSharePointDrives" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/onedrive/actions/listSharePointFiles": { - "post": { - "summary": "Calls a action at the path onedrive/actions.js:listSharePointFiles", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_onedrive.actions.listSharePointFiles" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_onedrive.actions.listSharePointFiles" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/onedrive/actions/listSharePointSites": { - "post": { - "summary": "Calls a action at the path onedrive/actions.js:listSharePointSites", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_onedrive.actions.listSharePointSites" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_onedrive.actions.listSharePointSites" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/onedrive/actions/listFiles": { - "post": { - "summary": "Calls a action at the path onedrive/actions.js:listFiles", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_onedrive.actions.listFiles" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_onedrive.actions.listFiles" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/organizations/actions/initializeDefaultWorkflows": { - "post": { - "summary": "Calls a action at the path organizations/actions.js:initializeDefaultWorkflows", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_organizations.actions.initializeDefaultWorkflows" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_organizations.actions.initializeDefaultWorkflows" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/organizations/queries/getOrganization": { - "post": { - "summary": "Calls a query at the path organizations/queries.js:getOrganization", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_organizations.queries.getOrganization" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_organizations.queries.getOrganization" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/products/mutations/createProduct": { - "post": { - "summary": "Calls a mutation at the path products/mutations.js:createProduct", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_products.mutations.createProduct" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_products.mutations.createProduct" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/products/mutations/deleteProduct": { - "post": { - "summary": "Calls a mutation at the path products/mutations.js:deleteProduct", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_products.mutations.deleteProduct" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_products.mutations.deleteProduct" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/products/mutations/updateProduct": { - "post": { - "summary": "Calls a mutation at the path products/mutations.js:updateProduct", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_products.mutations.updateProduct" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_products.mutations.updateProduct" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/products/mutations/upsertProductTranslation": { - "post": { - "summary": "Calls a mutation at the path products/mutations.js:upsertProductTranslation", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_products.mutations.upsertProductTranslation" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_products.mutations.upsertProductTranslation" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/products/queries/approxCountProducts": { - "post": { - "summary": "Calls a query at the path products/queries.js:approxCountProducts", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_products.queries.approxCountProducts" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_products.queries.approxCountProducts" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/products/queries/listProducts": { - "post": { - "summary": "Calls a query at the path products/queries.js:listProducts", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_products.queries.listProducts" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_products.queries.listProducts" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/products/queries/listProductsPaginated": { - "post": { - "summary": "Calls a query at the path products/queries.js:listProductsPaginated", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_products.queries.listProductsPaginated" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_products.queries.listProductsPaginated" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/sso_providers/actions/getWithClientId": { - "post": { - "summary": "Calls a action at the path sso_providers/actions.js:getWithClientId", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_sso_providers.actions.getWithClientId" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_sso_providers.actions.getWithClientId" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/sso_providers/actions/getSsoCredentialsForEmail": { - "post": { - "summary": "Calls a action at the path sso_providers/actions.js:getSsoCredentialsForEmail", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_sso_providers.actions.getSsoCredentialsForEmail" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_sso_providers.actions.getSsoCredentialsForEmail" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/sso_providers/actions/upsert": { - "post": { - "summary": "Calls a action at the path sso_providers/actions.js:upsert", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_sso_providers.actions.upsert" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_sso_providers.actions.upsert" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/sso_providers/actions/remove": { - "post": { - "summary": "Calls a action at the path sso_providers/actions.js:remove", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_sso_providers.actions.remove" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_sso_providers.actions.remove" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/sso_providers/actions/testConfig": { - "post": { - "summary": "Calls a action at the path sso_providers/actions.js:testConfig", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_sso_providers.actions.testConfig" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_sso_providers.actions.testConfig" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/sso_providers/actions/testExistingConfig": { - "post": { - "summary": "Calls a action at the path sso_providers/actions.js:testExistingConfig", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_sso_providers.actions.testExistingConfig" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_sso_providers.actions.testExistingConfig" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/sso_providers/queries/get": { - "post": { - "summary": "Calls a query at the path sso_providers/queries.js:get", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_sso_providers.queries.get" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_sso_providers.queries.get" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/sso_providers/queries/isSsoConfigured": { - "post": { - "summary": "Calls a query at the path sso_providers/queries.js:isSsoConfigured", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_sso_providers.queries.isSsoConfigured" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_sso_providers.queries.isSsoConfigured" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/sso_providers/queries/getMicrosoftToken": { - "post": { - "summary": "Calls a query at the path sso_providers/queries.js:getMicrosoftToken", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_sso_providers.queries.getMicrosoftToken" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_sso_providers.queries.getMicrosoftToken" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/team_members/mutations/addMember": { - "post": { - "summary": "Calls a mutation at the path team_members/mutations.js:addMember", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_team_members.mutations.addMember" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_team_members.mutations.addMember" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/team_members/mutations/removeMember": { - "post": { - "summary": "Calls a mutation at the path team_members/mutations.js:removeMember", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_team_members.mutations.removeMember" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_team_members.mutations.removeMember" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/team_members/queries/listByTeam": { - "post": { - "summary": "Calls a query at the path team_members/queries.js:listByTeam", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_team_members.queries.listByTeam" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_team_members.queries.listByTeam" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/get_message_error/getMessageError": { - "post": { - "summary": "Calls a query at the path threads/get_message_error.js:getMessageError", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.get_message_error.getMessageError" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.get_message_error.getMessageError" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/mutations/forkThread": { - "post": { - "summary": "Calls a mutation at the path threads/mutations.js:forkThread", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.mutations.forkThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.mutations.forkThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/mutations/shareThread": { - "post": { - "summary": "Calls a mutation at the path threads/mutations.js:shareThread", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.mutations.shareThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.mutations.shareThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/mutations/unshareThread": { - "post": { - "summary": "Calls a mutation at the path threads/mutations.js:unshareThread", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.mutations.unshareThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.mutations.unshareThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/mutations/createChatThread": { - "post": { - "summary": "Calls a mutation at the path threads/mutations.js:createChatThread", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.mutations.createChatThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.mutations.createChatThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/mutations/deleteChatThread": { - "post": { - "summary": "Calls a mutation at the path threads/mutations.js:deleteChatThread", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.mutations.deleteChatThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.mutations.deleteChatThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/mutations/updateChatThread": { - "post": { - "summary": "Calls a mutation at the path threads/mutations.js:updateChatThread", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.mutations.updateChatThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.mutations.updateChatThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/mutations/cancelGeneration": { - "post": { - "summary": "Calls a mutation at the path threads/mutations.js:cancelGeneration", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.mutations.cancelGeneration" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.mutations.cancelGeneration" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/mutations/archiveChatThread": { - "post": { - "summary": "Calls a mutation at the path threads/mutations.js:archiveChatThread", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.mutations.archiveChatThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.mutations.archiveChatThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/mutations/unarchiveChatThread": { - "post": { - "summary": "Calls a mutation at the path threads/mutations.js:unarchiveChatThread", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.mutations.unarchiveChatThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.mutations.unarchiveChatThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/queries/getSharedThread": { - "post": { - "summary": "Calls a query at the path threads/queries.js:getSharedThread", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.queries.getSharedThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.queries.getSharedThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/queries/listThreads": { - "post": { - "summary": "Calls a query at the path threads/queries.js:listThreads", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.queries.listThreads" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.queries.listThreads" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/queries/listArchivedThreads": { - "post": { - "summary": "Calls a query at the path threads/queries.js:listArchivedThreads", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.queries.listArchivedThreads" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.queries.listArchivedThreads" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/queries/isThreadGenerating": { - "post": { - "summary": "Calls a query at the path threads/queries.js:isThreadGenerating", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.queries.isThreadGenerating" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.queries.isThreadGenerating" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/queries/getThreadMessagesStreaming": { - "post": { - "summary": "Calls a query at the path threads/queries.js:getThreadMessagesStreaming", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.queries.getThreadMessagesStreaming" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.queries.getThreadMessagesStreaming" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/queries/getFailedMessageErrors": { - "post": { - "summary": "Calls a query at the path threads/queries.js:getFailedMessageErrors", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.queries.getFailedMessageErrors" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.queries.getFailedMessageErrors" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/queries/getThreadStatus": { - "post": { - "summary": "Calls a query at the path threads/queries.js:getThreadStatus", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.queries.getThreadStatus" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.queries.getThreadStatus" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/queries/getThreadShareStatus": { - "post": { - "summary": "Calls a query at the path threads/queries.js:getThreadShareStatus", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.queries.getThreadShareStatus" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.queries.getThreadShareStatus" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/users/mutations/updateUserName": { - "post": { - "summary": "Calls a mutation at the path users/mutations.js:updateUserName", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_users.mutations.updateUserName" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_users.mutations.updateUserName" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/users/mutations/updateUserPassword": { - "post": { - "summary": "Calls a mutation at the path users/mutations.js:updateUserPassword", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_users.mutations.updateUserPassword" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_users.mutations.updateUserPassword" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/users/mutations/setMemberPassword": { - "post": { - "summary": "Calls a mutation at the path users/mutations.js:setMemberPassword", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_users.mutations.setMemberPassword" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_users.mutations.setMemberPassword" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/users/mutations/createMember": { - "post": { - "summary": "Calls a mutation at the path users/mutations.js:createMember", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_users.mutations.createMember" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_users.mutations.createMember" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/users/queries/hasAnyUsers": { - "post": { - "summary": "Calls a query at the path users/queries.js:hasAnyUsers", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_users.queries.hasAnyUsers" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_users.queries.hasAnyUsers" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/users/queries/getCurrentUser": { - "post": { - "summary": "Calls a query at the path users/queries.js:getCurrentUser", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_users.queries.getCurrentUser" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_users.queries.getCurrentUser" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/vendors/mutations/bulkCreateVendors": { - "post": { - "summary": "Calls a mutation at the path vendors/mutations.js:bulkCreateVendors", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_vendors.mutations.bulkCreateVendors" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_vendors.mutations.bulkCreateVendors" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/vendors/mutations/deleteVendor": { - "post": { - "summary": "Calls a mutation at the path vendors/mutations.js:deleteVendor", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_vendors.mutations.deleteVendor" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_vendors.mutations.deleteVendor" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/vendors/mutations/updateVendor": { - "post": { - "summary": "Calls a mutation at the path vendors/mutations.js:updateVendor", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_vendors.mutations.updateVendor" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_vendors.mutations.updateVendor" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/vendors/queries/approxCountVendors": { - "post": { - "summary": "Calls a query at the path vendors/queries.js:approxCountVendors", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_vendors.queries.approxCountVendors" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_vendors.queries.approxCountVendors" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/vendors/queries/listVendors": { - "post": { - "summary": "Calls a query at the path vendors/queries.js:listVendors", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_vendors.queries.listVendors" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_vendors.queries.listVendors" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/vendors/queries/listVendorsPaginated": { - "post": { - "summary": "Calls a query at the path vendors/queries.js:listVendorsPaginated", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_vendors.queries.listVendorsPaginated" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_vendors.queries.listVendorsPaginated" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/websites/actions/createWebsite": { - "post": { - "summary": "Calls a action at the path websites/actions.js:createWebsite", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_websites.actions.createWebsite" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_websites.actions.createWebsite" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/websites/actions/deleteWebsite": { - "post": { - "summary": "Calls a action at the path websites/actions.js:deleteWebsite", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_websites.actions.deleteWebsite" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_websites.actions.deleteWebsite" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/websites/actions/updateWebsite": { - "post": { - "summary": "Calls a action at the path websites/actions.js:updateWebsite", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_websites.actions.updateWebsite" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_websites.actions.updateWebsite" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/websites/actions/syncStatuses": { - "post": { - "summary": "Calls a action at the path websites/actions.js:syncStatuses", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_websites.actions.syncStatuses" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_websites.actions.syncStatuses" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/websites/actions/fetchPages": { - "post": { - "summary": "Calls a action at the path websites/actions.js:fetchPages", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_websites.actions.fetchPages" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_websites.actions.fetchPages" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/websites/actions/fetchChunks": { - "post": { - "summary": "Calls a action at the path websites/actions.js:fetchChunks", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_websites.actions.fetchChunks" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_websites.actions.fetchChunks" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/websites/actions/searchContent": { - "post": { - "summary": "Calls a action at the path websites/actions.js:searchContent", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_websites.actions.searchContent" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_websites.actions.searchContent" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/websites/mutations/updateWebsite": { - "post": { - "summary": "Calls a mutation at the path websites/mutations.js:updateWebsite", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_websites.mutations.updateWebsite" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_websites.mutations.updateWebsite" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/websites/queries/approxCountWebsites": { - "post": { - "summary": "Calls a query at the path websites/queries.js:approxCountWebsites", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_websites.queries.approxCountWebsites" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_websites.queries.approxCountWebsites" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/websites/queries/listWebsites": { - "post": { - "summary": "Calls a query at the path websites/queries.js:listWebsites", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_websites.queries.listWebsites" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_websites.queries.listWebsites" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/websites/queries/listWebsitesPaginated": { - "post": { - "summary": "Calls a query at the path websites/queries.js:listWebsitesPaginated", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_websites.queries.listWebsitesPaginated" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_websites.queries.listWebsitesPaginated" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/wf_executions/mutations/cancelExecution": { - "post": { - "summary": "Calls a mutation at the path wf_executions/mutations.js:cancelExecution", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_wf_executions.mutations.cancelExecution" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_wf_executions.mutations.cancelExecution" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/wf_executions/queries/approxCountExecutions": { - "post": { - "summary": "Calls a query at the path wf_executions/queries.js:approxCountExecutions", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_wf_executions.queries.approxCountExecutions" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_wf_executions.queries.approxCountExecutions" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/wf_executions/queries/getExecutionStatus": { - "post": { - "summary": "Calls a query at the path wf_executions/queries.js:getExecutionStatus", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_wf_executions.queries.getExecutionStatus" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_wf_executions.queries.getExecutionStatus" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/wf_executions/queries/getExecutionStepJournal": { - "post": { - "summary": "Calls a query at the path wf_executions/queries.js:getExecutionStepJournal", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_wf_executions.queries.getExecutionStepJournal" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_wf_executions.queries.getExecutionStepJournal" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/wf_executions/queries/getRawExecution": { - "post": { - "summary": "Calls a query at the path wf_executions/queries.js:getRawExecution", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_wf_executions.queries.getRawExecution" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_wf_executions.queries.getRawExecution" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/wf_executions/queries/listExecutions": { - "post": { - "summary": "Calls a query at the path wf_executions/queries.js:listExecutions", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_wf_executions.queries.listExecutions" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_wf_executions.queries.listExecutions" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/wf_executions/queries/listExecutionsCursor": { - "post": { - "summary": "Calls a query at the path wf_executions/queries.js:listExecutionsCursor", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_wf_executions.queries.listExecutionsCursor" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_wf_executions.queries.listExecutionsCursor" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/actions/generateCronExpression": { - "post": { - "summary": "Calls a action at the path workflows/triggers/actions.js:generateCronExpression", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.actions.generateCronExpression" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.actions.generateCronExpression" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/wf_executions/actions/startWorkflowFromFile": { - "post": { - "summary": "Calls a action at the path wf_executions/actions.js:startWorkflowFromFile", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_wf_executions.actions.startWorkflowFromFile" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_wf_executions.actions.startWorkflowFromFile" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/file_actions/deleteWorkflow": { - "post": { - "summary": "Calls a action at the path workflows/file_actions.js:deleteWorkflow", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.file_actions.deleteWorkflow" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.file_actions.deleteWorkflow" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/file_actions/duplicateWorkflow": { - "post": { - "summary": "Calls a action at the path workflows/file_actions.js:duplicateWorkflow", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.file_actions.duplicateWorkflow" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.file_actions.duplicateWorkflow" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/file_actions/getAvailableWorkflows": { - "post": { - "summary": "Calls a action at the path workflows/file_actions.js:getAvailableWorkflows", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.file_actions.getAvailableWorkflows" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.file_actions.getAvailableWorkflows" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/file_actions/installWorkflow": { - "post": { - "summary": "Calls a action at the path workflows/file_actions.js:installWorkflow", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.file_actions.installWorkflow" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.file_actions.installWorkflow" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/file_actions/listHistory": { - "post": { - "summary": "Calls a action at the path workflows/file_actions.js:listHistory", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.file_actions.listHistory" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.file_actions.listHistory" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/file_actions/listWorkflows": { - "post": { - "summary": "Calls a action at the path workflows/file_actions.js:listWorkflows", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.file_actions.listWorkflows" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.file_actions.listWorkflows" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/file_actions/readHistoryEntry": { - "post": { - "summary": "Calls a action at the path workflows/file_actions.js:readHistoryEntry", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.file_actions.readHistoryEntry" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.file_actions.readHistoryEntry" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/file_actions/renameWorkflow": { - "post": { - "summary": "Calls a action at the path workflows/file_actions.js:renameWorkflow", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.file_actions.renameWorkflow" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.file_actions.renameWorkflow" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/file_actions/restoreFromHistory": { - "post": { - "summary": "Calls a action at the path workflows/file_actions.js:restoreFromHistory", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.file_actions.restoreFromHistory" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.file_actions.restoreFromHistory" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/file_actions/saveWorkflowWithSnapshot": { - "post": { - "summary": "Calls a action at the path workflows/file_actions.js:saveWorkflowWithSnapshot", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.file_actions.saveWorkflowWithSnapshot" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.file_actions.saveWorkflowWithSnapshot" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/file_actions/readWorkflow": { - "post": { - "summary": "Calls a action at the path workflows/file_actions.js:readWorkflow", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.file_actions.readWorkflow" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.file_actions.readWorkflow" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/slug_mutations/createScheduleBySlug": { - "post": { - "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:createScheduleBySlug", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.createScheduleBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.createScheduleBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/slug_mutations/toggleScheduleBySlug": { - "post": { - "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:toggleScheduleBySlug", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.toggleScheduleBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.toggleScheduleBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/slug_mutations/updateScheduleBySlug": { - "post": { - "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:updateScheduleBySlug", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.updateScheduleBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.updateScheduleBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/slug_mutations/deleteScheduleBySlug": { - "post": { - "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:deleteScheduleBySlug", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.deleteScheduleBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.deleteScheduleBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/slug_mutations/createWebhookBySlug": { - "post": { - "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:createWebhookBySlug", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.createWebhookBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.createWebhookBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/slug_mutations/toggleWebhookBySlug": { - "post": { - "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:toggleWebhookBySlug", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.toggleWebhookBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.toggleWebhookBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/slug_mutations/deleteWebhookBySlug": { - "post": { - "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:deleteWebhookBySlug", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.deleteWebhookBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.deleteWebhookBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/slug_mutations/createEventSubscriptionBySlug": { - "post": { - "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:createEventSubscriptionBySlug", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.createEventSubscriptionBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.createEventSubscriptionBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/slug_mutations/toggleEventSubscriptionBySlug": { - "post": { - "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:toggleEventSubscriptionBySlug", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.toggleEventSubscriptionBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.toggleEventSubscriptionBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/slug_mutations/updateEventSubscriptionBySlug": { - "post": { - "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:updateEventSubscriptionBySlug", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.updateEventSubscriptionBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.updateEventSubscriptionBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/slug_mutations/deleteEventSubscriptionBySlug": { - "post": { - "summary": "Calls a mutation at the path workflows/triggers/slug_mutations.js:deleteEventSubscriptionBySlug", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.slug_mutations.deleteEventSubscriptionBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.slug_mutations.deleteEventSubscriptionBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/slug_queries/getSchedulesBySlug": { - "post": { - "summary": "Calls a query at the path workflows/triggers/slug_queries.js:getSchedulesBySlug", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.slug_queries.getSchedulesBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.slug_queries.getSchedulesBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/slug_queries/getWebhooksBySlug": { - "post": { - "summary": "Calls a query at the path workflows/triggers/slug_queries.js:getWebhooksBySlug", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.slug_queries.getWebhooksBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.slug_queries.getWebhooksBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/slug_queries/getEventSubscriptionsBySlug": { - "post": { - "summary": "Calls a query at the path workflows/triggers/slug_queries.js:getEventSubscriptionsBySlug", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.slug_queries.getEventSubscriptionsBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.slug_queries.getEventSubscriptionsBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/workflows/triggers/slug_queries/getTriggerLogsBySlug": { - "post": { - "summary": "Calls a query at the path workflows/triggers/slug_queries.js:getTriggerLogsBySlug", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_workflows.triggers.slug_queries.getTriggerLogsBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_workflows.triggers.slug_queries.getTriggerLogsBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/credential_mutations/updateCredentials": { - "post": { - "summary": "Calls a mutation at the path integrations/credential_mutations.js:updateCredentials", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.credential_mutations.updateCredentials" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.credential_mutations.updateCredentials" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/credential_mutations/deleteCredentials": { - "post": { - "summary": "Calls a mutation at the path integrations/credential_mutations.js:deleteCredentials", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.credential_mutations.deleteCredentials" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.credential_mutations.deleteCredentials" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/credential_queries/getBySlug": { - "post": { - "summary": "Calls a query at the path integrations/credential_queries.js:getBySlug", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.credential_queries.getBySlug" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.credential_queries.getBySlug" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/credential_queries/list": { - "post": { - "summary": "Calls a query at the path integrations/credential_queries.js:list", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.credential_queries.list" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.credential_queries.list" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/file_actions/installIntegration": { - "post": { - "summary": "Calls a action at the path integrations/file_actions.js:installIntegration", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.file_actions.installIntegration" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.file_actions.installIntegration" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/file_actions/listIntegrations": { - "post": { - "summary": "Calls a action at the path integrations/file_actions.js:listIntegrations", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.file_actions.listIntegrations" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.file_actions.listIntegrations" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/file_actions/saveIntegrationConfig": { - "post": { - "summary": "Calls a action at the path integrations/file_actions.js:saveIntegrationConfig", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.file_actions.saveIntegrationConfig" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.file_actions.saveIntegrationConfig" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/file_actions/uninstallIntegration": { - "post": { - "summary": "Calls a action at the path integrations/file_actions.js:uninstallIntegration", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.file_actions.uninstallIntegration" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.file_actions.uninstallIntegration" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/file_actions/writeIntegrationFiles": { - "post": { - "summary": "Calls a action at the path integrations/file_actions.js:writeIntegrationFiles", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.file_actions.writeIntegrationFiles" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.file_actions.writeIntegrationFiles" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/integrations/file_actions/readIntegration": { - "post": { - "summary": "Calls a action at the path integrations/file_actions.js:readIntegration", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_integrations.file_actions.readIntegration" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_integrations.file_actions.readIntegration" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/branding/file_actions/deleteImage": { - "post": { - "summary": "Calls a action at the path branding/file_actions.js:deleteImage", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_branding.file_actions.deleteImage" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_branding.file_actions.deleteImage" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/branding/file_actions/resetBranding": { - "post": { - "summary": "Calls a action at the path branding/file_actions.js:resetBranding", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_branding.file_actions.resetBranding" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_branding.file_actions.resetBranding" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/branding/file_actions/saveBranding": { - "post": { - "summary": "Calls a action at the path branding/file_actions.js:saveBranding", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_branding.file_actions.saveBranding" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_branding.file_actions.saveBranding" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/branding/file_actions/saveImage": { - "post": { - "summary": "Calls a action at the path branding/file_actions.js:saveImage", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_branding.file_actions.saveImage" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_branding.file_actions.saveImage" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/branding/file_actions/snapshotToHistory": { - "post": { - "summary": "Calls a action at the path branding/file_actions.js:snapshotToHistory", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_branding.file_actions.snapshotToHistory" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_branding.file_actions.snapshotToHistory" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/branding/file_actions/readBranding": { - "post": { - "summary": "Calls a action at the path branding/file_actions.js:readBranding", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_branding.file_actions.readBranding" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_branding.file_actions.readBranding" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/providers/file_actions/deleteProvider": { - "post": { - "summary": "Calls a action at the path providers/file_actions.js:deleteProvider", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_providers.file_actions.deleteProvider" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_providers.file_actions.deleteProvider" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/providers/file_actions/getAllProviderConfigs": { - "post": { - "summary": "Calls a action at the path providers/file_actions.js:getAllProviderConfigs", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_providers.file_actions.getAllProviderConfigs" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_providers.file_actions.getAllProviderConfigs" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/providers/file_actions/hasProviderSecret": { - "post": { - "summary": "Calls a action at the path providers/file_actions.js:hasProviderSecret", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_providers.file_actions.hasProviderSecret" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_providers.file_actions.hasProviderSecret" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/providers/file_actions/listProviders": { - "post": { - "summary": "Calls a action at the path providers/file_actions.js:listProviders", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_providers.file_actions.listProviders" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_providers.file_actions.listProviders" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/providers/file_actions/saveProvider": { - "post": { - "summary": "Calls a action at the path providers/file_actions.js:saveProvider", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_providers.file_actions.saveProvider" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_providers.file_actions.saveProvider" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/providers/file_actions/saveProviderSecret": { - "post": { - "summary": "Calls a action at the path providers/file_actions.js:saveProviderSecret", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_providers.file_actions.saveProviderSecret" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_providers.file_actions.saveProviderSecret" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/providers/file_actions/readProvider": { - "post": { - "summary": "Calls a action at the path providers/file_actions.js:readProvider", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_providers.file_actions.readProvider" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_providers.file_actions.readProvider" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agent_tools/human_input/actions/submitHumanInputResponse": { - "post": { - "summary": "Calls a action at the path agent_tools/human_input/actions.js:submitHumanInputResponse", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agent_tools.human_input.actions.submitHumanInputResponse" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agent_tools.human_input.actions.submitHumanInputResponse" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agent_tools/location/actions/submitLocationResponse": { - "post": { - "summary": "Calls a action at the path agent_tools/location/actions.js:submitLocationResponse", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agent_tools.location.actions.submitLocationResponse" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agent_tools.location.actions.submitLocationResponse" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/agents/arena_chat/arenaChat": { - "post": { - "summary": "Calls a action at the path agents/arena_chat.js:arenaChat", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_agents.arena_chat.arenaChat" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_agents.arena_chat.arenaChat" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/documents/compare_documents/compareDocuments": { - "post": { - "summary": "Calls a action at the path documents/compare_documents.js:compareDocuments", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_documents.compare_documents.compareDocuments" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_documents.compare_documents.compareDocuments" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/feedback/mutations/submitFeedback": { - "post": { - "summary": "Calls a mutation at the path feedback/mutations.js:submitFeedback", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_feedback.mutations.submitFeedback" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_feedback.mutations.submitFeedback" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/feedback/mutations/deleteFeedback": { - "post": { - "summary": "Calls a mutation at the path feedback/mutations.js:deleteFeedback", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_feedback.mutations.deleteFeedback" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_feedback.mutations.deleteFeedback" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/feedback/queries/getMessageFeedback": { - "post": { - "summary": "Calls a query at the path feedback/queries.js:getMessageFeedback", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_feedback.queries.getMessageFeedback" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_feedback.queries.getMessageFeedback" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/feedback/queries/getFeedbackStats": { - "post": { - "summary": "Calls a query at the path feedback/queries.js:getFeedbackStats", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_feedback.queries.getFeedbackStats" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_feedback.queries.getFeedbackStats" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/governance/mutations/upsertPolicy": { - "post": { - "summary": "Calls a mutation at the path governance/mutations.js:upsertPolicy", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_governance.mutations.upsertPolicy" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_governance.mutations.upsertPolicy" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/governance/mutations/upsertPiiConfig": { - "post": { - "summary": "Calls a mutation at the path governance/mutations.js:upsertPiiConfig", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_governance.mutations.upsertPiiConfig" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_governance.mutations.upsertPiiConfig" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/governance/queries/getPolicy": { - "post": { - "summary": "Calls a query at the path governance/queries.js:getPolicy", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_governance.queries.getPolicy" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_governance.queries.getPolicy" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/governance/queries/listPolicies": { - "post": { - "summary": "Calls a query at the path governance/queries.js:listPolicies", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_governance.queries.listPolicies" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_governance.queries.listPolicies" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/governance/queries/getUsageSummary": { - "post": { - "summary": "Calls a query at the path governance/queries.js:getUsageSummary", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_governance.queries.getUsageSummary" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_governance.queries.getUsageSummary" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/mcp_servers/actions/executeMcpTool": { - "post": { - "summary": "Calls a action at the path mcp_servers/actions.js:executeMcpTool", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_mcp_servers.actions.executeMcpTool" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_mcp_servers.actions.executeMcpTool" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/mcp_servers/actions/testConnection": { - "post": { - "summary": "Calls a action at the path mcp_servers/actions.js:testConnection", - "tags": [ - "action" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_mcp_servers.actions.testConnection" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_mcp_servers.actions.testConnection" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/prompts/mutations/createPrompt": { - "post": { - "summary": "Calls a mutation at the path prompts/mutations.js:createPrompt", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_prompts.mutations.createPrompt" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_prompts.mutations.createPrompt" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/prompts/mutations/deletePrompt": { - "post": { - "summary": "Calls a mutation at the path prompts/mutations.js:deletePrompt", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_prompts.mutations.deletePrompt" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_prompts.mutations.deletePrompt" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/prompts/mutations/incrementUsage": { - "post": { - "summary": "Calls a mutation at the path prompts/mutations.js:incrementUsage", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_prompts.mutations.incrementUsage" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_prompts.mutations.incrementUsage" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/prompts/mutations/updatePrompt": { - "post": { - "summary": "Calls a mutation at the path prompts/mutations.js:updatePrompt", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_prompts.mutations.updatePrompt" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_prompts.mutations.updatePrompt" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/prompts/queries/getPrompt": { - "post": { - "summary": "Calls a query at the path prompts/queries.js:getPrompt", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_prompts.queries.getPrompt" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_prompts.queries.getPrompt" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/prompts/queries/listPrompts": { - "post": { - "summary": "Calls a query at the path prompts/queries.js:listPrompts", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_prompts.queries.listPrompts" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_prompts.queries.listPrompts" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/fork_thread/forkThread": { - "post": { - "summary": "Calls a mutation at the path threads/fork_thread.js:forkThread", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.fork_thread.forkThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.fork_thread.forkThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/get_shared_thread/getSharedThread": { - "post": { - "summary": "Calls a query at the path threads/get_shared_thread.js:getSharedThread", - "tags": [ - "query" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.get_shared_thread.getSharedThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.get_shared_thread.getSharedThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/share_thread/shareThread": { - "post": { - "summary": "Calls a mutation at the path threads/share_thread.js:shareThread", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.share_thread.shareThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.share_thread.shareThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/run/threads/share_thread/unshareThread": { - "post": { - "summary": "Calls a mutation at the path threads/share_thread.js:unshareThread", - "tags": [ - "mutation" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Request_threads.share_thread.unshareThread" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Convex executed your request and returned a result", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Response_threads.share_thread.unshareThread" - } - } - } - }, - "400": { - "description": "Failed operation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - }, - "500": { - "description": "Convex Internal Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FailedResponse" - } - } - } - } - } - } - }, - "/api/v1/chat/completions": { - "post": { - "tags": [ - "OpenAI Compatible" - ], - "summary": "Create chat completion", - "description": "Send messages to an agent and receive a response. Fully compatible with the OpenAI Chat Completions API.\n\n**Two modes:**\n- **Agent mode** (no `tools`): The agent uses server-side tools and auto-executes them.\n- **Client tool mode** (`tools` provided): Only client-defined tools are used. Returns `tool_calls` for client execution.", - "operationId": "createChatCompletion", - "security": [ - { - "bearerAuth": [] - } - ], - "parameters": [ - { - "name": "X-Organization-Slug", - "in": "header", - "required": false, - "schema": { - "type": "string" - }, - "description": "Organization slug. Auto-resolved if user belongs to one org." - }, - { - "name": "X-Thread-Id", - "in": "header", - "required": false, - "schema": { - "type": "string" - }, - "description": "Reuse a conversation thread across requests." - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ChatCompletionRequest" - } - } - } - }, - "responses": { - "200": { - "description": "Chat completion response (or SSE stream if stream=true)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ChatCompletionResponse" - } - }, - "text/event-stream": { - "schema": { - "type": "string", - "description": "SSE stream of ChatCompletionChunk objects, terminated by `data: [DONE]`" - } - } - } - }, - "400": { - "description": "Invalid request (missing model, messages, etc.)" - }, - "401": { - "description": "Invalid or missing API key" - }, - "403": { - "description": "Not a member of the organization" - }, - "404": { - "description": "Model (agent) not found" - }, - "429": { - "description": "Rate limit exceeded" - }, - "500": { - "description": "Generation failed" - } - } - } - }, - "/api/v1/models": { - "get": { - "tags": [ - "OpenAI Compatible" - ], - "summary": "List models", - "description": "List available agents as OpenAI-compatible models. Only agents with `visibleInChat: true` are returned.", - "operationId": "listModels", - "security": [ - { - "bearerAuth": [] - } - ], - "parameters": [ - { - "name": "X-Organization-Slug", - "in": "header", - "required": false, - "schema": { - "type": "string" - }, - "description": "Organization slug." - } - ], - "responses": { - "200": { - "description": "List of models", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ModelList" - } - } - } - }, - "401": { - "description": "Invalid or missing API key" - } - } - } - } - }, - "components": { - "securitySchemes": { - "apiKeyAuth": { - "type": "apiKey", - "in": "header", - "name": "x-api-key", - "description": "API key for authentication. Create one in Settings > API Keys." - }, - "bearerAuth": { - "type": "http", - "scheme": "bearer", - "description": "API key as Bearer token (e.g., \"Bearer tale_...\"). Create keys in Settings > API Keys." - } - }, - "schemas": { - "Request_accounts.queries.hasCredentialAccount": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_accounts.queries.hasCredentialAccount": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "boolean" - } - } - }, - "Request_accounts.queries.hasMicrosoftAccount": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_accounts.queries.hasMicrosoftAccount": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "boolean" - } - } - }, - "Request_agents.file_actions.deleteAgent": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentName", - "orgSlug" - ], - "properties": { - "agentName": { - "type": "string" - }, - "orgSlug": { - "type": "string" - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_agents.file_actions.deleteAgent": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_agents.file_actions.duplicateAgent": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentName", - "orgSlug" - ], - "properties": { - "agentName": { - "type": "string" - }, - "orgSlug": { - "type": "string" - } - } - } - } - }, - "Response_agents.file_actions.duplicateAgent": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "newAgentName" - ], - "properties": { - "newAgentName": { - "type": "string" - } - } - } - } - }, - "Request_agents.file_actions.listAgents": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug" - ], - "properties": { - "orgSlug": { - "type": "string" - } - } - } - } - }, - "Response_agents.file_actions.listAgents": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_agents.file_actions.listHistory": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentName", - "orgSlug" - ], - "properties": { - "agentName": { - "type": "string" - }, - "orgSlug": { - "type": "string" - } - } - } - } - }, - "Response_agents.file_actions.listHistory": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_agents.file_actions.readHistoryEntry": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentName", - "orgSlug", - "timestamp" - ], - "properties": { - "agentName": { - "type": "string" - }, - "orgSlug": { - "type": "string" - }, - "timestamp": { - "type": "string" - } - } - } - } - }, - "Response_agents.file_actions.readHistoryEntry": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_agents.file_actions.restoreFromHistory": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentName", - "orgSlug", - "timestamp" - ], - "properties": { - "agentName": { - "type": "string" - }, - "orgSlug": { - "type": "string" - }, - "timestamp": { - "type": "string" - } - } - } - } - }, - "Response_agents.file_actions.restoreFromHistory": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "hash" - ], - "properties": { - "hash": { - "type": "string" - } - } - } - } - }, - "Request_agents.file_actions.saveAgent": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentName", - "config", - "orgSlug" - ], - "properties": { - "agentName": { - "type": "string" - }, - "config": {}, - "isNew": { - "type": "boolean" - }, - "oldAgentName": { - "type": "string" - }, - "orgSlug": { - "type": "string" - } - } - } - } - }, - "Response_agents.file_actions.saveAgent": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "hash" - ], - "properties": { - "hash": { - "type": "string" - } - } - } - } - }, - "Request_agents.file_actions.snapshotToHistory": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentName", - "orgSlug" - ], - "properties": { - "agentName": { - "type": "string" - }, - "orgSlug": { - "type": "string" - } - } - } - } - }, - "Response_agents.file_actions.snapshotToHistory": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "timestamp" - ], - "properties": { - "timestamp": { - "type": "string" - } - }, - "nullable": true - } - } - }, - "Request_agents.file_actions.translateAgentFields": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "fields", - "targetLocale" - ], - "properties": { - "fields": { - "type": "object" - }, - "targetLocale": { - "type": "string" - } - } - } - } - }, - "Response_agents.file_actions.translateAgentFields": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "translated" - ], - "properties": { - "error": { - "type": "string" - }, - "translated": { - "type": "object" - } - } - } - } - }, - "Request_agents.file_actions.readAgent": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentName", - "orgSlug" - ], - "properties": { - "agentName": { - "type": "string" - }, - "orgSlug": { - "type": "string" - } - } - } - } - }, - "Response_agents.file_actions.readAgent": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_agents.mutations.updateAgentBindings": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentSlug", - "organizationId" - ], - "properties": { - "agentSlug": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "teamId": { - "type": "string" - } - } - } - } - }, - "Response_agents.mutations.updateAgentBindings": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_agents.mutations.addKnowledgeFile": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentSlug", - "contentType", - "fileId", - "fileName", - "fileSize", - "organizationId" - ], - "properties": { - "agentSlug": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "fileName": { - "type": "string" - }, - "fileSize": { - "type": "number" - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_agents.mutations.addKnowledgeFile": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_agents.mutations.removeKnowledgeFile": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentSlug", - "fileId", - "organizationId" - ], - "properties": { - "agentSlug": { - "type": "string" - }, - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_agents.mutations.removeKnowledgeFile": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_agents.queries.getBindingByAgent": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentSlug", - "organizationId" - ], - "properties": { - "agentSlug": { - "type": "string" - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_agents.queries.getBindingByAgent": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_agents.queries.hasBindingsByTeam": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "teamId" - ], - "properties": { - "teamId": { - "type": "string" - } - } - } - } - }, - "Response_agents.queries.hasBindingsByTeam": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_agents.queries.getAvailableTools": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_agents.queries.getAvailableTools": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_agents.queries.getAvailableIntegrations": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_agents.queries.getAvailableIntegrations": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_agents.unified_chat.chatWithAgent": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentSlug", - "message", - "orgSlug", - "organizationId", - "threadId" - ], - "properties": { - "additionalContext": { - "type": "object" - }, - "agentSlug": { - "type": "string" - }, - "attachments": { - "type": "array", - "items": { - "type": "object", - "required": [ - "fileId", - "fileName", - "fileSize", - "fileType" - ], - "properties": { - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "fileName": { - "type": "string" - }, - "fileSize": { - "type": "number" - }, - "fileType": { - "type": "string" - } - } - } - }, - "maxSteps": { - "type": "number" - }, - "message": { - "type": "string" - }, - "modelId": { - "type": "string" - }, - "orgSlug": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "threadId": { - "type": "string" - }, - "userContext": { - "type": "object", - "required": [ - "language", - "timezone" - ], - "properties": { - "language": { - "type": "string" - }, - "timezone": { - "type": "string" - } - } - } - } - } - } - }, - "Response_agents.unified_chat.chatWithAgent": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "messageAlreadyExists", - "streamId" - ], - "properties": { - "messageAlreadyExists": { - "type": "boolean" - }, - "streamId": { - "type": "string" - } - } - } - } - }, - "Request_agents.webhooks.mutations.createWebhook": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentSlug", - "organizationId" - ], - "properties": { - "agentSlug": { - "type": "string" - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_agents.webhooks.mutations.createWebhook": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "token", - "webhookId" - ], - "properties": { - "token": { - "type": "string" - }, - "webhookId": { - "type": "string", - "description": "ID from table \"agentWebhooks\"" - } - } - } - } - }, - "Request_agents.webhooks.mutations.toggleWebhook": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "isActive", - "webhookId" - ], - "properties": { - "isActive": { - "type": "boolean" - }, - "webhookId": { - "type": "string", - "description": "ID from table \"agentWebhooks\"" - } - } - } - } - }, - "Response_agents.webhooks.mutations.toggleWebhook": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_agents.webhooks.mutations.deleteWebhook": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "webhookId" - ], - "properties": { - "webhookId": { - "type": "string", - "description": "ID from table \"agentWebhooks\"" - } - } - } - } - }, - "Response_agents.webhooks.mutations.deleteWebhook": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_agents.webhooks.queries.getWebhooks": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentSlug", - "organizationId" - ], - "properties": { - "agentSlug": { - "type": "string" - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_agents.webhooks.queries.getWebhooks": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_approvals.actions.executeApprovedDocumentWrite": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "approvalId" - ], - "properties": { - "approvalId": { - "type": "string", - "description": "ID from table \"approvals\"" - } - } - } - } - }, - "Response_approvals.actions.executeApprovedDocumentWrite": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_approvals.actions.executeApprovedWorkflowCreation": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "approvalId" - ], - "properties": { - "approvalId": { - "type": "string", - "description": "ID from table \"approvals\"" - } - } - } - } - }, - "Response_approvals.actions.executeApprovedWorkflowCreation": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_approvals.actions.executeApprovedWorkflowRun": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "approvalId" - ], - "properties": { - "approvalId": { - "type": "string", - "description": "ID from table \"approvals\"" - } - } - } - } - }, - "Response_approvals.actions.executeApprovedWorkflowRun": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_approvals.actions.executeApprovedWorkflowUpdate": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "approvalId" - ], - "properties": { - "approvalId": { - "type": "string", - "description": "ID from table \"approvals\"" - } - } - } - } - }, - "Response_approvals.actions.executeApprovedWorkflowUpdate": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_approvals.actions.executeApprovedIntegrationOperation": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "approvalId" - ], - "properties": { - "approvalId": { - "type": "string", - "description": "ID from table \"approvals\"" - } - } - } - } - }, - "Response_approvals.actions.executeApprovedIntegrationOperation": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_approvals.mutations.updateApprovalStatus": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "approvalId", - "status" - ], - "properties": { - "approvalId": { - "type": "string", - "description": "ID from table \"approvals\"" - }, - "comments": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "pending" - ] - }, - { - "type": "string", - "enum": [ - "executing" - ] - }, - { - "type": "string", - "enum": [ - "completed" - ] - }, - { - "type": "string", - "enum": [ - "rejected" - ] - } - ] - }, - "triggerAgentResponse": { - "type": "boolean" - } - } - } - } - }, - "Response_approvals.mutations.updateApprovalStatus": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_approvals.mutations.removeRecommendedProduct": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "approvalId", - "productId" - ], - "properties": { - "approvalId": { - "type": "string", - "description": "ID from table \"approvals\"" - }, - "productId": { - "type": "string" - } - } - } - } - }, - "Response_approvals.mutations.removeRecommendedProduct": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_approvals.queries.getApproval": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "approvalId" - ], - "properties": { - "approvalId": { - "type": "string", - "description": "ID from table \"approvals\"" - } - } - } - } - }, - "Response_approvals.queries.getApproval": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "organizationId", - "priority", - "resourceId", - "resourceType", - "status" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "approvedBy": { - "type": "string" - }, - "dueDate": { - "type": "number" - }, - "executedAt": { - "type": "number" - }, - "executionError": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "priority": { - "oneOf": [ - { - "type": "string", - "enum": [ - "low" - ] - }, - { - "type": "string", - "enum": [ - "medium" - ] - }, - { - "type": "string", - "enum": [ - "high" - ] - }, - { - "type": "string", - "enum": [ - "urgent" - ] - } - ] - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "conversations" - ] - }, - { - "type": "string", - "enum": [ - "integration_operation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_creation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_run" - ] - }, - { - "type": "string", - "enum": [ - "workflow_update" - ] - }, - { - "type": "string", - "enum": [ - "human_input_request" - ] - }, - { - "type": "string", - "enum": [ - "document_write" - ] - }, - { - "type": "string", - "enum": [ - "location_request" - ] - }, - { - "type": "string", - "enum": [ - "mcp_tool_call" - ] - } - ] - }, - "reviewedAt": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "pending" - ] - }, - { - "type": "string", - "enum": [ - "executing" - ] - }, - { - "type": "string", - "enum": [ - "completed" - ] - }, - { - "type": "string", - "enum": [ - "rejected" - ] - } - ] - }, - "stepSlug": { - "type": "string" - }, - "threadId": { - "type": "string" - }, - "wfExecutionId": { - "type": "string" - } - }, - "nullable": true - } - } - }, - "Request_approvals.queries.approxCountApprovalsByStatus": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "status" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "pending" - ] - }, - { - "type": "string", - "enum": [ - "resolved" - ] - } - ] - } - } - } - } - }, - "Response_approvals.queries.approxCountApprovalsByStatus": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "number" - } - } - }, - "Request_approvals.queries.listApprovalsPaginated": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "paginationOpts" - ], - "properties": { - "excludeStatus": { - "oneOf": [ - { - "type": "string", - "enum": [ - "pending" - ] - }, - { - "type": "string", - "enum": [ - "executing" - ] - }, - { - "type": "string", - "enum": [ - "completed" - ] - }, - { - "type": "string", - "enum": [ - "rejected" - ] - } - ] - }, - "organizationId": { - "type": "string" - }, - "paginationOpts": { - "type": "object", - "required": [ - "cursor", - "numItems" - ], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "endCursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "maximumBytesRead": { - "type": "number" - }, - "maximumRowsRead": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } - }, - "resourceType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "conversations" - ] - }, - { - "type": "string", - "enum": [ - "integration_operation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_creation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_run" - ] - }, - { - "type": "string", - "enum": [ - "workflow_update" - ] - }, - { - "type": "string", - "enum": [ - "human_input_request" - ] - }, - { - "type": "string", - "enum": [ - "document_write" - ] - }, - { - "type": "string", - "enum": [ - "location_request" - ] - }, - { - "type": "string", - "enum": [ - "mcp_tool_call" - ] - } - ] - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "pending" - ] - }, - { - "type": "string", - "enum": [ - "executing" - ] - }, - { - "type": "string", - "enum": [ - "completed" - ] - }, - { - "type": "string", - "enum": [ - "rejected" - ] - } - ] - } - } - } - } - }, - "Response_approvals.queries.listApprovalsPaginated": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_approvals.queries.listApprovalsByOrganization": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "limit": { - "type": "number" - }, - "organizationId": { - "type": "string" - }, - "resourceType": { - "oneOf": [ - { - "oneOf": [ - { - "type": "string", - "enum": [ - "conversations" - ] - }, - { - "type": "string", - "enum": [ - "integration_operation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_creation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_run" - ] - }, - { - "type": "string", - "enum": [ - "workflow_update" - ] - }, - { - "type": "string", - "enum": [ - "human_input_request" - ] - }, - { - "type": "string", - "enum": [ - "document_write" - ] - }, - { - "type": "string", - "enum": [ - "location_request" - ] - }, - { - "type": "string", - "enum": [ - "mcp_tool_call" - ] - } - ] - }, - { - "type": "array", - "items": { - "oneOf": [ - { - "type": "string", - "enum": [ - "conversations" - ] - }, - { - "type": "string", - "enum": [ - "integration_operation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_creation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_run" - ] - }, - { - "type": "string", - "enum": [ - "workflow_update" - ] - }, - { - "type": "string", - "enum": [ - "human_input_request" - ] - }, - { - "type": "string", - "enum": [ - "document_write" - ] - }, - { - "type": "string", - "enum": [ - "location_request" - ] - }, - { - "type": "string", - "enum": [ - "mcp_tool_call" - ] - } - ] - } - } - ] - }, - "search": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "pending" - ] - }, - { - "type": "string", - "enum": [ - "executing" - ] - }, - { - "type": "string", - "enum": [ - "completed" - ] - }, - { - "type": "string", - "enum": [ - "rejected" - ] - } - ] - } - } - } - } - }, - "Response_approvals.queries.listApprovalsByOrganization": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "organizationId", - "priority", - "resourceId", - "resourceType", - "status" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "approvedBy": { - "type": "string" - }, - "dueDate": { - "type": "number" - }, - "executedAt": { - "type": "number" - }, - "executionError": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "priority": { - "oneOf": [ - { - "type": "string", - "enum": [ - "low" - ] - }, - { - "type": "string", - "enum": [ - "medium" - ] - }, - { - "type": "string", - "enum": [ - "high" - ] - }, - { - "type": "string", - "enum": [ - "urgent" - ] - } - ] - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "conversations" - ] - }, - { - "type": "string", - "enum": [ - "integration_operation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_creation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_run" - ] - }, - { - "type": "string", - "enum": [ - "workflow_update" - ] - }, - { - "type": "string", - "enum": [ - "human_input_request" - ] - }, - { - "type": "string", - "enum": [ - "document_write" - ] - }, - { - "type": "string", - "enum": [ - "location_request" - ] - }, - { - "type": "string", - "enum": [ - "mcp_tool_call" - ] - } - ] - }, - "reviewedAt": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "pending" - ] - }, - { - "type": "string", - "enum": [ - "executing" - ] - }, - { - "type": "string", - "enum": [ - "completed" - ] - }, - { - "type": "string", - "enum": [ - "rejected" - ] - } - ] - }, - "stepSlug": { - "type": "string" - }, - "threadId": { - "type": "string" - }, - "wfExecutionId": { - "type": "string" - } - } - } - } - } - }, - "Request_approvals.queries.listActiveApprovalsByOrganization": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "limit": { - "type": "number" - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_approvals.queries.listActiveApprovalsByOrganization": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "organizationId", - "priority", - "resourceId", - "resourceType", - "status" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "approvedBy": { - "type": "string" - }, - "dueDate": { - "type": "number" - }, - "executedAt": { - "type": "number" - }, - "executionError": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "priority": { - "oneOf": [ - { - "type": "string", - "enum": [ - "low" - ] - }, - { - "type": "string", - "enum": [ - "medium" - ] - }, - { - "type": "string", - "enum": [ - "high" - ] - }, - { - "type": "string", - "enum": [ - "urgent" - ] - } - ] - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "conversations" - ] - }, - { - "type": "string", - "enum": [ - "integration_operation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_creation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_run" - ] - }, - { - "type": "string", - "enum": [ - "workflow_update" - ] - }, - { - "type": "string", - "enum": [ - "human_input_request" - ] - }, - { - "type": "string", - "enum": [ - "document_write" - ] - }, - { - "type": "string", - "enum": [ - "location_request" - ] - }, - { - "type": "string", - "enum": [ - "mcp_tool_call" - ] - } - ] - }, - "reviewedAt": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "pending" - ] - }, - { - "type": "string", - "enum": [ - "executing" - ] - }, - { - "type": "string", - "enum": [ - "completed" - ] - }, - { - "type": "string", - "enum": [ - "rejected" - ] - } - ] - }, - "stepSlug": { - "type": "string" - }, - "threadId": { - "type": "string" - }, - "wfExecutionId": { - "type": "string" - } - } - } - } - } - }, - "Request_approvals.queries.getPendingIntegrationApprovalsForThread": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "messageId": { - "type": "string" - }, - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_approvals.queries.getPendingIntegrationApprovalsForThread": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "organizationId", - "priority", - "resourceId", - "resourceType", - "status" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "approvedBy": { - "type": "string" - }, - "dueDate": { - "type": "number" - }, - "executedAt": { - "type": "number" - }, - "executionError": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "priority": { - "oneOf": [ - { - "type": "string", - "enum": [ - "low" - ] - }, - { - "type": "string", - "enum": [ - "medium" - ] - }, - { - "type": "string", - "enum": [ - "high" - ] - }, - { - "type": "string", - "enum": [ - "urgent" - ] - } - ] - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "conversations" - ] - }, - { - "type": "string", - "enum": [ - "integration_operation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_creation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_run" - ] - }, - { - "type": "string", - "enum": [ - "workflow_update" - ] - }, - { - "type": "string", - "enum": [ - "human_input_request" - ] - }, - { - "type": "string", - "enum": [ - "document_write" - ] - }, - { - "type": "string", - "enum": [ - "location_request" - ] - }, - { - "type": "string", - "enum": [ - "mcp_tool_call" - ] - } - ] - }, - "reviewedAt": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "pending" - ] - }, - { - "type": "string", - "enum": [ - "executing" - ] - }, - { - "type": "string", - "enum": [ - "completed" - ] - }, - { - "type": "string", - "enum": [ - "rejected" - ] - } - ] - }, - "stepSlug": { - "type": "string" - }, - "threadId": { - "type": "string" - }, - "wfExecutionId": { - "type": "string" - } - } - } - } - } - }, - "Request_approvals.queries.getWorkflowCreationApprovalsForThread": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "messageId": { - "type": "string" - }, - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_approvals.queries.getWorkflowCreationApprovalsForThread": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "organizationId", - "priority", - "resourceId", - "resourceType", - "status" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "approvedBy": { - "type": "string" - }, - "dueDate": { - "type": "number" - }, - "executedAt": { - "type": "number" - }, - "executionError": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "priority": { - "oneOf": [ - { - "type": "string", - "enum": [ - "low" - ] - }, - { - "type": "string", - "enum": [ - "medium" - ] - }, - { - "type": "string", - "enum": [ - "high" - ] - }, - { - "type": "string", - "enum": [ - "urgent" - ] - } - ] - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "conversations" - ] - }, - { - "type": "string", - "enum": [ - "integration_operation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_creation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_run" - ] - }, - { - "type": "string", - "enum": [ - "workflow_update" - ] - }, - { - "type": "string", - "enum": [ - "human_input_request" - ] - }, - { - "type": "string", - "enum": [ - "document_write" - ] - }, - { - "type": "string", - "enum": [ - "location_request" - ] - }, - { - "type": "string", - "enum": [ - "mcp_tool_call" - ] - } - ] - }, - "reviewedAt": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "pending" - ] - }, - { - "type": "string", - "enum": [ - "executing" - ] - }, - { - "type": "string", - "enum": [ - "completed" - ] - }, - { - "type": "string", - "enum": [ - "rejected" - ] - } - ] - }, - "stepSlug": { - "type": "string" - }, - "threadId": { - "type": "string" - }, - "wfExecutionId": { - "type": "string" - } - } - } - } - } - }, - "Request_approvals.queries.getHumanInputRequestsForThread": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "messageId": { - "type": "string" - }, - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_approvals.queries.getHumanInputRequestsForThread": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "organizationId", - "priority", - "resourceId", - "resourceType", - "status" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "approvedBy": { - "type": "string" - }, - "dueDate": { - "type": "number" - }, - "executedAt": { - "type": "number" - }, - "executionError": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "priority": { - "oneOf": [ - { - "type": "string", - "enum": [ - "low" - ] - }, - { - "type": "string", - "enum": [ - "medium" - ] - }, - { - "type": "string", - "enum": [ - "high" - ] - }, - { - "type": "string", - "enum": [ - "urgent" - ] - } - ] - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "conversations" - ] - }, - { - "type": "string", - "enum": [ - "integration_operation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_creation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_run" - ] - }, - { - "type": "string", - "enum": [ - "workflow_update" - ] - }, - { - "type": "string", - "enum": [ - "human_input_request" - ] - }, - { - "type": "string", - "enum": [ - "document_write" - ] - }, - { - "type": "string", - "enum": [ - "location_request" - ] - }, - { - "type": "string", - "enum": [ - "mcp_tool_call" - ] - } - ] - }, - "reviewedAt": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "pending" - ] - }, - { - "type": "string", - "enum": [ - "executing" - ] - }, - { - "type": "string", - "enum": [ - "completed" - ] - }, - { - "type": "string", - "enum": [ - "rejected" - ] - } - ] - }, - "stepSlug": { - "type": "string" - }, - "threadId": { - "type": "string" - }, - "wfExecutionId": { - "type": "string" - } - } - } - } - } - }, - "Request_audit_logs.queries.listAuditLogs": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "cursor": { - "type": "string" - }, - "filter": { - "type": "object", - "properties": { - "actorId": { - "type": "string" - }, - "category": { - "oneOf": [ - { - "type": "string", - "enum": [ - "auth" - ] - }, - { - "type": "string", - "enum": [ - "member" - ] - }, - { - "type": "string", - "enum": [ - "data" - ] - }, - { - "type": "string", - "enum": [ - "integration" - ] - }, - { - "type": "string", - "enum": [ - "workflow" - ] - }, - { - "type": "string", - "enum": [ - "security" - ] - }, - { - "type": "string", - "enum": [ - "admin" - ] - } - ] - }, - "endDate": { - "type": "number" - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "type": "string" - }, - "search": { - "type": "string" - }, - "startDate": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "success" - ] - }, - { - "type": "string", - "enum": [ - "failure" - ] - }, - { - "type": "string", - "enum": [ - "denied" - ] - } - ] - } - } - }, - "limit": { - "type": "number" - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_audit_logs.queries.listAuditLogs": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "logs" - ], - "properties": { - "logs": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "action", - "actorId", - "actorType", - "category", - "organizationId", - "resourceType", - "status", - "timestamp" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string", - "description": "ID from table \"auditLogs\"" - }, - "action": { - "type": "string" - }, - "actorEmail": { - "type": "string" - }, - "actorId": { - "type": "string" - }, - "actorRole": { - "type": "string" - }, - "actorType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "user" - ] - }, - { - "type": "string", - "enum": [ - "system" - ] - }, - { - "type": "string", - "enum": [ - "api" - ] - }, - { - "type": "string", - "enum": [ - "workflow" - ] - } - ] - }, - "category": { - "oneOf": [ - { - "type": "string", - "enum": [ - "auth" - ] - }, - { - "type": "string", - "enum": [ - "member" - ] - }, - { - "type": "string", - "enum": [ - "data" - ] - }, - { - "type": "string", - "enum": [ - "integration" - ] - }, - { - "type": "string", - "enum": [ - "workflow" - ] - }, - { - "type": "string", - "enum": [ - "security" - ] - }, - { - "type": "string", - "enum": [ - "admin" - ] - } - ] - }, - "changedFields": { - "type": "array", - "items": { - "type": "string" - } - }, - "errorMessage": { - "type": "string" - }, - "ipAddress": { - "type": "string" - }, - "metadata": {}, - "newState": {}, - "organizationId": { - "type": "string" - }, - "previousState": {}, - "requestId": { - "type": "string" - }, - "resourceId": { - "type": "string" - }, - "resourceName": { - "type": "string" - }, - "resourceType": { - "type": "string" - }, - "sessionId": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "success" - ] - }, - { - "type": "string", - "enum": [ - "failure" - ] - }, - { - "type": "string", - "enum": [ - "denied" - ] - } - ] - }, - "timestamp": { - "type": "number" - }, - "userAgent": { - "type": "string" - } - } - } - }, - "nextCursor": { - "type": "string" - } - } - } - } - }, - "Request_audit_logs.queries.listAuditLogsPaginated": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "paginationOpts" - ], - "properties": { - "category": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "paginationOpts": { - "type": "object", - "required": [ - "cursor", - "numItems" - ], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "endCursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "maximumBytesRead": { - "type": "number" - }, - "maximumRowsRead": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } - }, - "resourceType": { - "type": "string" - } - } - } - } - }, - "Response_audit_logs.queries.listAuditLogsPaginated": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_audit_logs.queries.getResourceAuditTrail": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "resourceId", - "resourceType" - ], - "properties": { - "limit": { - "type": "number" - }, - "organizationId": { - "type": "string" - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "type": "string" - } - } - } - } - }, - "Response_audit_logs.queries.getResourceAuditTrail": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "action", - "actorId", - "actorType", - "category", - "organizationId", - "resourceType", - "status", - "timestamp" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string", - "description": "ID from table \"auditLogs\"" - }, - "action": { - "type": "string" - }, - "actorEmail": { - "type": "string" - }, - "actorId": { - "type": "string" - }, - "actorRole": { - "type": "string" - }, - "actorType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "user" - ] - }, - { - "type": "string", - "enum": [ - "system" - ] - }, - { - "type": "string", - "enum": [ - "api" - ] - }, - { - "type": "string", - "enum": [ - "workflow" - ] - } - ] - }, - "category": { - "oneOf": [ - { - "type": "string", - "enum": [ - "auth" - ] - }, - { - "type": "string", - "enum": [ - "member" - ] - }, - { - "type": "string", - "enum": [ - "data" - ] - }, - { - "type": "string", - "enum": [ - "integration" - ] - }, - { - "type": "string", - "enum": [ - "workflow" - ] - }, - { - "type": "string", - "enum": [ - "security" - ] - }, - { - "type": "string", - "enum": [ - "admin" - ] - } - ] - }, - "changedFields": { - "type": "array", - "items": { - "type": "string" - } - }, - "errorMessage": { - "type": "string" - }, - "ipAddress": { - "type": "string" - }, - "metadata": {}, - "newState": {}, - "organizationId": { - "type": "string" - }, - "previousState": {}, - "requestId": { - "type": "string" - }, - "resourceId": { - "type": "string" - }, - "resourceName": { - "type": "string" - }, - "resourceType": { - "type": "string" - }, - "sessionId": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "success" - ] - }, - { - "type": "string", - "enum": [ - "failure" - ] - }, - { - "type": "string", - "enum": [ - "denied" - ] - } - ] - }, - "timestamp": { - "type": "number" - }, - "userAgent": { - "type": "string" - } - } - } - } - } - }, - "Request_audit_logs.queries.getActivitySummary": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "endDate": { - "type": "number" - }, - "organizationId": { - "type": "string" - }, - "startDate": { - "type": "number" - } - } - } - } - }, - "Response_audit_logs.queries.getActivitySummary": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "byCategory", - "byResourceType", - "deniedCount", - "failureCount", - "successCount", - "topActors", - "totalActions" - ], - "properties": { - "byCategory": { - "type": "object" - }, - "byResourceType": { - "type": "object" - }, - "deniedCount": { - "type": "number" - }, - "failureCount": { - "type": "number" - }, - "successCount": { - "type": "number" - }, - "topActors": { - "type": "array", - "items": { - "type": "object", - "required": [ - "actorId", - "count" - ], - "properties": { - "actorEmail": { - "type": "string" - }, - "actorId": { - "type": "string" - }, - "count": { - "type": "number" - } - } - } - }, - "totalActions": { - "type": "number" - } - } - } - } - }, - "Request_branding.mutations.upsertBrandingBindings": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "properties": { - "faviconDarkStorageId": { - "type": "string", - "description": "ID from table \"_storage\"", - "nullable": true - }, - "faviconLightStorageId": { - "type": "string", - "description": "ID from table \"_storage\"", - "nullable": true - }, - "logoStorageId": { - "type": "string", - "description": "ID from table \"_storage\"", - "nullable": true - } - } - } - } - }, - "Response_branding.mutations.upsertBrandingBindings": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_branding.mutations.clearBrandingBindings": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_branding.mutations.clearBrandingBindings": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_conversations.actions.improveMessage": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "originalMessage" - ], - "properties": { - "instruction": { - "type": "string" - }, - "originalMessage": { - "type": "string" - } - } - } - } - }, - "Response_conversations.actions.improveMessage": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "improvedMessage" - ], - "properties": { - "error": { - "type": "string" - }, - "improvedMessage": { - "type": "string" - } - } - } - } - }, - "Request_conversations.mutations.addMessageToConversation": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "content", - "conversationId", - "isCustomer", - "organizationId", - "sender" - ], - "properties": { - "attachment": { - "type": "object", - "required": [ - "filename", - "url" - ], - "properties": { - "contentType": { - "type": "string" - }, - "filename": { - "type": "string" - }, - "size": { - "type": "number" - }, - "url": { - "type": "string" - } - } - }, - "content": { - "type": "string" - }, - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" - }, - "externalMessageId": { - "type": "string" - }, - "isCustomer": { - "type": "boolean" - }, - "organizationId": { - "type": "string" - }, - "sender": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - }, - "Response_conversations.mutations.addMessageToConversation": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "description": "ID from table \"conversations\"" - } - } - }, - "Request_conversations.mutations.bulkArchiveConversations": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "conversationIds" - ], - "properties": { - "conversationIds": { - "type": "array", - "items": { - "type": "string", - "description": "ID from table \"conversations\"" - } - } - } - } - } - }, - "Response_conversations.mutations.bulkArchiveConversations": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "errors", - "failedCount", - "successCount" - ], - "properties": { - "errors": { - "type": "array", - "items": { - "type": "string" - } - }, - "failedCount": { - "type": "number" - }, - "successCount": { - "type": "number" - } - } - } - } - }, - "Request_conversations.mutations.bulkCloseConversations": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "conversationIds" - ], - "properties": { - "conversationIds": { - "type": "array", - "items": { - "type": "string", - "description": "ID from table \"conversations\"" - } - }, - "resolvedBy": { - "type": "string" - } - } - } - } - }, - "Response_conversations.mutations.bulkCloseConversations": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "errors", - "failedCount", - "successCount" - ], - "properties": { - "errors": { - "type": "array", - "items": { - "type": "string" - } - }, - "failedCount": { - "type": "number" - }, - "successCount": { - "type": "number" - } - } - } - } - }, - "Request_conversations.mutations.bulkReopenConversations": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "conversationIds" - ], - "properties": { - "conversationIds": { - "type": "array", - "items": { - "type": "string", - "description": "ID from table \"conversations\"" - } - } - } - } - } - }, - "Response_conversations.mutations.bulkReopenConversations": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "errors", - "failedCount", - "successCount" - ], - "properties": { - "errors": { - "type": "array", - "items": { - "type": "string" - } - }, - "failedCount": { - "type": "number" - }, - "successCount": { - "type": "number" - } - } - } - } - }, - "Request_conversations.mutations.bulkSpamConversations": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "conversationIds" - ], - "properties": { - "conversationIds": { - "type": "array", - "items": { - "type": "string", - "description": "ID from table \"conversations\"" - } - } - } - } - } - }, - "Response_conversations.mutations.bulkSpamConversations": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "errors", - "failedCount", - "successCount" - ], - "properties": { - "errors": { - "type": "array", - "items": { - "type": "string" - } - }, - "failedCount": { - "type": "number" - }, - "successCount": { - "type": "number" - } - } - } - } - }, - "Request_conversations.mutations.bulkUnarchiveConversations": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "conversationIds" - ], - "properties": { - "conversationIds": { - "type": "array", - "items": { - "type": "string", - "description": "ID from table \"conversations\"" - } - } - } - } - } - }, - "Response_conversations.mutations.bulkUnarchiveConversations": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "errors", - "failedCount", - "successCount" - ], - "properties": { - "errors": { - "type": "array", - "items": { - "type": "string" - } - }, - "failedCount": { - "type": "number" - }, - "successCount": { - "type": "number" - } - } - } - } - }, - "Request_conversations.mutations.closeConversation": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "conversationId" - ], - "properties": { - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" - }, - "resolvedBy": { - "type": "string" - } - } - } - } - }, - "Response_conversations.mutations.closeConversation": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_conversations.mutations.deleteConversation": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "conversationId" - ], - "properties": { - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" - } - } - } - } - }, - "Response_conversations.mutations.deleteConversation": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_conversations.mutations.downloadAttachments": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "messageId" - ], - "properties": { - "messageId": { - "type": "string", - "description": "ID from table \"conversationMessages\"" - } - } - } - } - }, - "Response_conversations.mutations.downloadAttachments": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_conversations.mutations.markConversationAsRead": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "conversationId" - ], - "properties": { - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" - } - } - } - } - }, - "Response_conversations.mutations.markConversationAsRead": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_conversations.mutations.markConversationAsSpam": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "conversationId" - ], - "properties": { - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" - } - } - } - } - }, - "Response_conversations.mutations.markConversationAsSpam": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_conversations.mutations.reopenConversation": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "conversationId" - ], - "properties": { - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" - } - } - } - } - }, - "Response_conversations.mutations.reopenConversation": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_conversations.mutations.sendMessageViaIntegration": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "content", - "conversationId", - "integrationName", - "organizationId", - "subject", - "to" - ], - "properties": { - "attachments": { - "type": "array", - "items": { - "type": "object", - "required": [ - "contentType", - "fileName", - "size", - "storageId" - ], - "properties": { - "contentType": { - "type": "string" - }, - "fileName": { - "type": "string" - }, - "size": { - "type": "number" - }, - "storageId": { - "type": "string", - "description": "ID from table \"_storage\"" - } - } - } - }, - "cc": { - "type": "array", - "items": { - "type": "string" - } - }, - "content": { - "type": "string" - }, - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" - }, - "html": { - "type": "string" - }, - "inReplyTo": { - "type": "string" - }, - "integrationName": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "references": { - "type": "array", - "items": { - "type": "string" - } - }, - "subject": { - "type": "string" - }, - "text": { - "type": "string" - }, - "to": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - }, - "Response_conversations.mutations.sendMessageViaIntegration": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "description": "ID from table \"conversationMessages\"" - } - } - }, - "Request_conversations.mutations.updateConversation": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "conversationId" - ], - "properties": { - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" - }, - "metadata": {}, - "priority": { - "oneOf": [ - { - "type": "string", - "enum": [ - "low" - ] - }, - { - "type": "string", - "enum": [ - "medium" - ] - }, - { - "type": "string", - "enum": [ - "high" - ] - }, - { - "type": "string", - "enum": [ - "urgent" - ] - } - ] - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "open" - ] - }, - { - "type": "string", - "enum": [ - "closed" - ] - }, - { - "type": "string", - "enum": [ - "spam" - ] - }, - { - "type": "string", - "enum": [ - "archived" - ] - } - ] - }, - "subject": { - "type": "string" - }, - "type": { - "type": "string" - } - } - } - } - }, - "Response_conversations.mutations.updateConversation": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_conversations.queries.approxCountConversationsByStatus": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "status" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "open" - ] - }, - { - "type": "string", - "enum": [ - "closed" - ] - }, - { - "type": "string", - "enum": [ - "spam" - ] - }, - { - "type": "string", - "enum": [ - "archived" - ] - } - ] - } - } - } - } - }, - "Response_conversations.queries.approxCountConversationsByStatus": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "number" - } - } - }, - "Request_conversations.queries.getConversationWithMessages": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "conversationId" - ], - "properties": { - "conversationId": { - "type": "string", - "description": "ID from table \"conversations\"" - } - } - } - } - }, - "Response_conversations.queries.getConversationWithMessages": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "business_id", - "created_at", - "customer", - "customer_id", - "description", - "id", - "message_count", - "messages", - "organizationId", - "title", - "unread_count", - "updated_at" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "business_id": { - "type": "string" - }, - "channel": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "customer": { - "type": "object", - "required": [ - "created_at", - "email", - "id", - "status" - ], - "properties": { - "created_at": { - "type": "string" - }, - "email": { - "type": "string" - }, - "id": { - "type": "string" - }, - "locale": { - "type": "string" - }, - "name": { - "type": "string" - }, - "source": { - "type": "string" - }, - "status": { - "type": "string" - } - } - }, - "customerId": { - "type": "string" - }, - "customer_id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "direction": { - "oneOf": [ - { - "type": "string", - "enum": [ - "inbound" - ] - }, - { - "type": "string", - "enum": [ - "outbound" - ] - } - ] - }, - "externalMessageId": { - "type": "string" - }, - "id": { - "type": "string" - }, - "integrationName": { - "type": "string" - }, - "lastMessageAt": { - "type": "number" - }, - "last_message_at": { - "type": "string" - }, - "last_read_at": { - "type": "string" - }, - "message_count": { - "type": "number" - }, - "messages": { - "type": "array", - "items": { - "type": "object", - "required": [ - "content", - "id", - "isCustomer", - "sender", - "status", - "timestamp" - ], - "properties": { - "attachment": { - "type": "object", - "required": [ - "filename", - "url" - ], - "properties": { - "contentType": { - "type": "string" - }, - "filename": { - "type": "string" - }, - "size": { - "type": "number" - }, - "url": { - "type": "string" - } - } - }, - "attachments": { - "type": "array", - "items": { - "type": "object", - "required": [ - "contentType", - "filename", - "id", - "size" - ], - "properties": { - "contentId": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "filename": { - "type": "string" - }, - "id": { - "type": "string" - }, - "size": { - "type": "number" - }, - "storageId": { - "type": "string" - }, - "url": { - "type": "string" - } - } - } - }, - "content": { - "type": "string" - }, - "id": { - "type": "string" - }, - "isCustomer": { - "type": "boolean" - }, - "sender": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "queued" - ] - }, - { - "type": "string", - "enum": [ - "sent" - ] - }, - { - "type": "string", - "enum": [ - "delivered" - ] - }, - { - "type": "string", - "enum": [ - "failed" - ] - } - ] - }, - "timestamp": { - "type": "string" - } - } - } - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "pendingApproval": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "organizationId", - "priority", - "resourceId", - "resourceType", - "status" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "approvedBy": { - "type": "string" - }, - "dueDate": { - "type": "number" - }, - "executedAt": { - "type": "number" - }, - "executionError": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "priority": { - "oneOf": [ - { - "type": "string", - "enum": [ - "low" - ] - }, - { - "type": "string", - "enum": [ - "medium" - ] - }, - { - "type": "string", - "enum": [ - "high" - ] - }, - { - "type": "string", - "enum": [ - "urgent" - ] - } - ] - }, - "resourceId": { - "type": "string" - }, - "resourceType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "conversations" - ] - }, - { - "type": "string", - "enum": [ - "integration_operation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_creation" - ] - }, - { - "type": "string", - "enum": [ - "workflow_run" - ] - }, - { - "type": "string", - "enum": [ - "workflow_update" - ] - }, - { - "type": "string", - "enum": [ - "human_input_request" - ] - }, - { - "type": "string", - "enum": [ - "document_write" - ] - }, - { - "type": "string", - "enum": [ - "location_request" - ] - }, - { - "type": "string", - "enum": [ - "mcp_tool_call" - ] - } - ] - }, - "reviewedAt": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "pending" - ] - }, - { - "type": "string", - "enum": [ - "executing" - ] - }, - { - "type": "string", - "enum": [ - "completed" - ] - }, - { - "type": "string", - "enum": [ - "rejected" - ] - } - ] - }, - "stepSlug": { - "type": "string" - }, - "threadId": { - "type": "string" - }, - "wfExecutionId": { - "type": "string" - } - }, - "nullable": true - }, - "priority": { - "type": "string" - }, - "resolved_at": { - "type": "string" - }, - "resolved_by": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "open" - ] - }, - { - "type": "string", - "enum": [ - "closed" - ] - }, - { - "type": "string", - "enum": [ - "spam" - ] - }, - { - "type": "string", - "enum": [ - "archived" - ] - } - ] - }, - "subject": { - "type": "string" - }, - "title": { - "type": "string" - }, - "type": { - "type": "string" - }, - "unread_count": { - "type": "number" - }, - "updated_at": { - "type": "string" - } - }, - "nullable": true - } - } - }, - "Request_conversations.queries.listConversations": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_conversations.queries.listConversations": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_conversations.queries.listConversationsPaginated": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "paginationOpts" - ], - "properties": { - "channel": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "paginationOpts": { - "type": "object", - "required": [ - "cursor", - "numItems" - ], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "endCursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "maximumBytesRead": { - "type": "number" - }, - "maximumRowsRead": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } - }, - "priority": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "open" - ] - }, - { - "type": "string", - "enum": [ - "closed" - ] - }, - { - "type": "string", - "enum": [ - "spam" - ] - }, - { - "type": "string", - "enum": [ - "archived" - ] - } - ] - } - } - } - } - }, - "Response_conversations.queries.listConversationsPaginated": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_customers.mutations.bulkCreateCustomers": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "customers", - "organizationId" - ], - "properties": { - "customers": { - "type": "array", - "items": { - "type": "object", - "required": [ - "email", - "source", - "status" - ], - "properties": { - "address": { - "type": "object", - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "state": { - "type": "string" - }, - "street": { - "type": "string" - } - } - }, - "email": { - "type": "string" - }, - "externalId": { - "type": "string" - }, - "locale": { - "type": "string" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": [ - "manual_import" - ] - }, - { - "type": "string", - "enum": [ - "file_upload" - ] - }, - { - "type": "string", - "enum": [ - "api_import" - ] - }, - { - "type": "string", - "enum": [ - "shopify" - ] - }, - { - "type": "string", - "enum": [ - "woocommerce" - ] - }, - { - "type": "string", - "enum": [ - "magento" - ] - }, - { - "type": "string", - "enum": [ - "bigcommerce" - ] - }, - { - "type": "string", - "enum": [ - "prestashop" - ] - }, - { - "type": "string", - "enum": [ - "circuly" - ] - }, - { - "type": "string", - "enum": [ - "chargebee" - ] - }, - { - "type": "string", - "enum": [ - "stripe" - ] - }, - { - "type": "string", - "enum": [ - "recurly" - ] - }, - { - "type": "string", - "enum": [ - "salesforce" - ] - }, - { - "type": "string", - "enum": [ - "hubspot" - ] - }, - { - "type": "string", - "enum": [ - "pipedrive" - ] - }, - { - "type": "string", - "enum": [ - "zoho" - ] - }, - { - "type": "string", - "enum": [ - "sap" - ] - }, - { - "type": "string", - "enum": [ - "protel" - ] - }, - { - "type": "string", - "enum": [ - "oracle" - ] - }, - { - "type": "string", - "enum": [ - "netsuite" - ] - }, - { - "type": "string", - "enum": [ - "mailchimp" - ] - }, - { - "type": "string", - "enum": [ - "klaviyo" - ] - }, - { - "type": "string", - "enum": [ - "sendgrid" - ] - }, - { - "type": "string", - "enum": [ - "webhook" - ] - }, - { - "type": "string", - "enum": [ - "zapier" - ] - }, - { - "type": "string", - "enum": [ - "custom" - ] - } - ] - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "active" - ] - }, - { - "type": "string", - "enum": [ - "churned" - ] - }, - { - "type": "string", - "enum": [ - "potential" - ] - } - ] - } - } - } - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_customers.mutations.bulkCreateCustomers": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "errors", - "failed", - "success" - ], - "properties": { - "errors": { - "type": "array", - "items": { - "type": "object", - "required": [ - "customer", - "error", - "errorCode", - "index" - ], - "properties": { - "customer": {}, - "error": { - "type": "string" - }, - "errorCode": { - "type": "string" - }, - "index": { - "type": "number" - } - } - } - }, - "failed": { - "type": "number" - }, - "success": { - "type": "number" - } - } - } - } - }, - "Request_customers.mutations.deleteCustomer": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "customerId" - ], - "properties": { - "customerId": { - "type": "string", - "description": "ID from table \"customers\"" - } - } - } - } - }, - "Response_customers.mutations.deleteCustomer": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_customers.mutations.updateCustomer": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "customerId" - ], - "properties": { - "address": { - "type": "object", - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "state": { - "type": "string" - }, - "street": { - "type": "string" - } - } - }, - "customerId": { - "type": "string", - "description": "ID from table \"customers\"" - }, - "email": { - "type": "string" - }, - "externalId": { - "type": "string" - }, - "locale": { - "type": "string" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": [ - "manual_import" - ] - }, - { - "type": "string", - "enum": [ - "file_upload" - ] - }, - { - "type": "string", - "enum": [ - "api_import" - ] - }, - { - "type": "string", - "enum": [ - "shopify" - ] - }, - { - "type": "string", - "enum": [ - "woocommerce" - ] - }, - { - "type": "string", - "enum": [ - "magento" - ] - }, - { - "type": "string", - "enum": [ - "bigcommerce" - ] - }, - { - "type": "string", - "enum": [ - "prestashop" - ] - }, - { - "type": "string", - "enum": [ - "circuly" - ] - }, - { - "type": "string", - "enum": [ - "chargebee" - ] - }, - { - "type": "string", - "enum": [ - "stripe" - ] - }, - { - "type": "string", - "enum": [ - "recurly" - ] - }, - { - "type": "string", - "enum": [ - "salesforce" - ] - }, - { - "type": "string", - "enum": [ - "hubspot" - ] - }, - { - "type": "string", - "enum": [ - "pipedrive" - ] - }, - { - "type": "string", - "enum": [ - "zoho" - ] - }, - { - "type": "string", - "enum": [ - "sap" - ] - }, - { - "type": "string", - "enum": [ - "protel" - ] - }, - { - "type": "string", - "enum": [ - "oracle" - ] - }, - { - "type": "string", - "enum": [ - "netsuite" - ] - }, - { - "type": "string", - "enum": [ - "mailchimp" - ] - }, - { - "type": "string", - "enum": [ - "klaviyo" - ] - }, - { - "type": "string", - "enum": [ - "sendgrid" - ] - }, - { - "type": "string", - "enum": [ - "webhook" - ] - }, - { - "type": "string", - "enum": [ - "zapier" - ] - }, - { - "type": "string", - "enum": [ - "custom" - ] - } - ] - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "active" - ] - }, - { - "type": "string", - "enum": [ - "churned" - ] - }, - { - "type": "string", - "enum": [ - "potential" - ] - } - ] - } - } - } - } - }, - "Response_customers.mutations.updateCustomer": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "organizationId", - "source" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "address": { - "type": "object", - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "state": { - "type": "string" - }, - "street": { - "type": "string" - } - } - }, - "email": { - "type": "string" - }, - "externalId": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - }, - "locale": { - "type": "string" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": [ - "manual_import" - ] - }, - { - "type": "string", - "enum": [ - "file_upload" - ] - }, - { - "type": "string", - "enum": [ - "api_import" - ] - }, - { - "type": "string", - "enum": [ - "shopify" - ] - }, - { - "type": "string", - "enum": [ - "woocommerce" - ] - }, - { - "type": "string", - "enum": [ - "magento" - ] - }, - { - "type": "string", - "enum": [ - "bigcommerce" - ] - }, - { - "type": "string", - "enum": [ - "prestashop" - ] - }, - { - "type": "string", - "enum": [ - "circuly" - ] - }, - { - "type": "string", - "enum": [ - "chargebee" - ] - }, - { - "type": "string", - "enum": [ - "stripe" - ] - }, - { - "type": "string", - "enum": [ - "recurly" - ] - }, - { - "type": "string", - "enum": [ - "salesforce" - ] - }, - { - "type": "string", - "enum": [ - "hubspot" - ] - }, - { - "type": "string", - "enum": [ - "pipedrive" - ] - }, - { - "type": "string", - "enum": [ - "zoho" - ] - }, - { - "type": "string", - "enum": [ - "sap" - ] - }, - { - "type": "string", - "enum": [ - "protel" - ] - }, - { - "type": "string", - "enum": [ - "oracle" - ] - }, - { - "type": "string", - "enum": [ - "netsuite" - ] - }, - { - "type": "string", - "enum": [ - "mailchimp" - ] - }, - { - "type": "string", - "enum": [ - "klaviyo" - ] - }, - { - "type": "string", - "enum": [ - "sendgrid" - ] - }, - { - "type": "string", - "enum": [ - "webhook" - ] - }, - { - "type": "string", - "enum": [ - "zapier" - ] - }, - { - "type": "string", - "enum": [ - "custom" - ] - } - ] - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "active" - ] - }, - { - "type": "string", - "enum": [ - "churned" - ] - }, - { - "type": "string", - "enum": [ - "potential" - ] - } - ] - } - }, - "nullable": true - } - } - }, - "Request_customers.queries.approxCountCustomers": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_customers.queries.approxCountCustomers": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "number" - } - } - }, - "Request_customers.queries.listCustomers": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_customers.queries.listCustomers": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "organizationId", - "source" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "address": { - "type": "object", - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "state": { - "type": "string" - }, - "street": { - "type": "string" - } - } - }, - "email": { - "type": "string" - }, - "externalId": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - }, - "locale": { - "type": "string" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": [ - "manual_import" - ] - }, - { - "type": "string", - "enum": [ - "file_upload" - ] - }, - { - "type": "string", - "enum": [ - "api_import" - ] - }, - { - "type": "string", - "enum": [ - "shopify" - ] - }, - { - "type": "string", - "enum": [ - "woocommerce" - ] - }, - { - "type": "string", - "enum": [ - "magento" - ] - }, - { - "type": "string", - "enum": [ - "bigcommerce" - ] - }, - { - "type": "string", - "enum": [ - "prestashop" - ] - }, - { - "type": "string", - "enum": [ - "circuly" - ] - }, - { - "type": "string", - "enum": [ - "chargebee" - ] - }, - { - "type": "string", - "enum": [ - "stripe" - ] - }, - { - "type": "string", - "enum": [ - "recurly" - ] - }, - { - "type": "string", - "enum": [ - "salesforce" - ] - }, - { - "type": "string", - "enum": [ - "hubspot" - ] - }, - { - "type": "string", - "enum": [ - "pipedrive" - ] - }, - { - "type": "string", - "enum": [ - "zoho" - ] - }, - { - "type": "string", - "enum": [ - "sap" - ] - }, - { - "type": "string", - "enum": [ - "protel" - ] - }, - { - "type": "string", - "enum": [ - "oracle" - ] - }, - { - "type": "string", - "enum": [ - "netsuite" - ] - }, - { - "type": "string", - "enum": [ - "mailchimp" - ] - }, - { - "type": "string", - "enum": [ - "klaviyo" - ] - }, - { - "type": "string", - "enum": [ - "sendgrid" - ] - }, - { - "type": "string", - "enum": [ - "webhook" - ] - }, - { - "type": "string", - "enum": [ - "zapier" - ] - }, - { - "type": "string", - "enum": [ - "custom" - ] - } - ] - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "active" - ] - }, - { - "type": "string", - "enum": [ - "churned" - ] - }, - { - "type": "string", - "enum": [ - "potential" - ] - } - ] - } - } - } - } - } - }, - "Request_customers.queries.listCustomersPaginated": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "paginationOpts" - ], - "properties": { - "locale": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "paginationOpts": { - "type": "object", - "required": [ - "cursor", - "numItems" - ], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "endCursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "maximumBytesRead": { - "type": "number" - }, - "maximumRowsRead": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } - }, - "source": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - }, - "Response_customers.queries.listCustomersPaginated": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_documents.actions.retryRagIndexing": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "documentId" - ], - "properties": { - "documentId": { - "type": "string", - "description": "ID from table \"documents\"" - } - } - } - } - }, - "Response_documents.actions.retryRagIndexing": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "success" - ], - "properties": { - "error": { - "type": "string" - }, - "success": { - "type": "boolean" - } - } - } - } - }, - "Request_documents.mutations.updateDocument": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "documentId" - ], - "properties": { - "content": { - "type": "string" - }, - "documentId": { - "type": "string", - "description": "ID from table \"documents\"" - }, - "extension": { - "type": "string" - }, - "externalItemId": { - "type": "string" - }, - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "metadata": {}, - "mimeType": { - "type": "string" - }, - "sourceProvider": { - "oneOf": [ - { - "type": "string", - "enum": [ - "onedrive" - ] - }, - { - "type": "string", - "enum": [ - "upload" - ] - }, - { - "type": "string", - "enum": [ - "sharepoint" - ] - }, - { - "type": "string", - "enum": [ - "agent" - ] - } - ] - }, - "teamIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "title": { - "type": "string" - } - } - } - } - }, - "Response_documents.mutations.updateDocument": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_documents.mutations.deleteDocument": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "documentId" - ], - "properties": { - "documentId": { - "type": "string", - "description": "ID from table \"documents\"" - } - } - } - } - }, - "Response_documents.mutations.deleteDocument": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_documents.mutations.createDocumentFromUpload": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "fileId", - "fileName", - "organizationId" - ], - "properties": { - "contentHash": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "fileName": { - "type": "string" - }, - "fileSize": { - "type": "number" - }, - "folderId": { - "type": "string", - "description": "ID from table \"folders\"" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "teamId": { - "type": "string" - } - } - } - } - }, - "Response_documents.mutations.createDocumentFromUpload": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "documentId", - "success" - ], - "properties": { - "documentId": { - "type": "string", - "description": "ID from table \"documents\"" - }, - "success": { - "type": "boolean" - } - } - } - } - }, - "Request_documents.queries.approxCountDocuments": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_documents.queries.approxCountDocuments": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "number" - } - } - }, - "Request_documents.queries.listDocuments": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_documents.queries.listDocuments": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_documents.queries.listDocumentsPaginated": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "paginationOpts" - ], - "properties": { - "extension": { - "type": "string" - }, - "folderId": { - "type": "string", - "description": "ID from table \"folders\"" - }, - "organizationId": { - "type": "string" - }, - "paginationOpts": { - "type": "object", - "required": [ - "cursor", - "numItems" - ], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "endCursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "maximumBytesRead": { - "type": "number" - }, - "maximumRowsRead": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } - }, - "sourceProvider": { - "type": "string" - } - } - } - } - }, - "Response_documents.queries.listDocumentsPaginated": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_file_metadata.mutations.saveFileMetadata": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "contentType", - "fileName", - "organizationId", - "size", - "storageId" - ], - "properties": { - "contentType": { - "type": "string" - }, - "documentId": { - "type": "string", - "description": "ID from table \"documents\"" - }, - "fileName": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "size": { - "type": "number" - }, - "storageId": { - "type": "string", - "description": "ID from table \"_storage\"" - } - } - } - } - }, - "Response_file_metadata.mutations.saveFileMetadata": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_files.mutations.generateUploadUrl": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_files.mutations.generateUploadUrl": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string" - } - } - }, - "Request_files.queries.getFileUrl": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "fileId" - ], - "properties": { - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" - } - } - } - } - }, - "Response_files.queries.getFileUrl": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_files.queries.getFileUrls": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "fileIds" - ], - "properties": { - "fileIds": { - "type": "array", - "items": { - "type": "string", - "description": "ID from table \"_storage\"" - } - } - } - } - } - }, - "Response_files.queries.getFileUrls": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "fileId", - "url" - ], - "properties": { - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "url": { - "type": "string", - "nullable": true - } - } - } - } - } - }, - "Request_folders.mutations.createFolder": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "name", - "organizationId" - ], - "properties": { - "name": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "parentId": { - "type": "string", - "description": "ID from table \"folders\"" - }, - "teamId": { - "type": "string" - } - } - } - } - }, - "Response_folders.mutations.createFolder": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "description": "ID from table \"folders\"" - } - } - }, - "Request_folders.mutations.deleteFolder": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "folderId" - ], - "properties": { - "folderId": { - "type": "string", - "description": "ID from table \"folders\"" - } - } - } - } - }, - "Response_folders.mutations.deleteFolder": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_folders.mutations.renameFolder": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "folderId", - "name" - ], - "properties": { - "folderId": { - "type": "string", - "description": "ID from table \"folders\"" - }, - "name": { - "type": "string" - } - } - } - } - }, - "Response_folders.mutations.renameFolder": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_folders.mutations.updateFolderTeams": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "folderId", - "teamIds" - ], - "properties": { - "folderId": { - "type": "string", - "description": "ID from table \"folders\"" - }, - "teamIds": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - }, - "Response_folders.mutations.updateFolderTeams": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_folders.queries.getFolder": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "folderId" - ], - "properties": { - "folderId": { - "type": "string", - "description": "ID from table \"folders\"" - } - } - } - } - }, - "Response_folders.queries.getFolder": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_folders.queries.getFolderBreadcrumb": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "folderId" - ], - "properties": { - "folderId": { - "type": "string", - "description": "ID from table \"folders\"" - } - } - } - } - }, - "Response_folders.queries.getFolderBreadcrumb": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_folders.queries.listFolders": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "parentId": { - "type": "string", - "description": "ID from table \"folders\"" - } - } - } - } - }, - "Response_folders.queries.listFolders": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_integrations.actions.generateOAuth2Url": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "credentialId", - "organizationId" - ], - "properties": { - "credentialId": { - "type": "string", - "description": "ID from table \"integrationCredentials\"" - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_integrations.actions.generateOAuth2Url": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string" - } - } - }, - "Request_integrations.actions.saveOAuth2ClientCredentials": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "authorizationUrl", - "clientId", - "clientSecret", - "credentialId", - "tokenUrl" - ], - "properties": { - "authorizationUrl": { - "type": "string" - }, - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "credentialId": { - "type": "string", - "description": "ID from table \"integrationCredentials\"" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "tokenUrl": { - "type": "string" - } - } - } - } - }, - "Response_integrations.actions.saveOAuth2ClientCredentials": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_integrations.actions.testConnection": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "credentialId" - ], - "properties": { - "apiKeyAuth": { - "type": "object", - "required": [ - "key" - ], - "properties": { - "key": { - "type": "string" - }, - "keyPrefix": { - "type": "string" - } - } - }, - "basicAuth": { - "type": "object", - "required": [ - "password", - "username" - ], - "properties": { - "password": { - "type": "string" - }, - "username": { - "type": "string" - } - } - }, - "connectionConfig": {}, - "credentialId": { - "type": "string", - "description": "ID from table \"integrationCredentials\"" - }, - "oauth2Auth": { - "type": "object", - "required": [ - "accessToken" - ], - "properties": { - "accessToken": { - "type": "string" - }, - "refreshToken": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "tokenExpiry": { - "type": "number" - } - } - }, - "sqlConnectionConfig": { - "type": "object", - "required": [ - "engine" - ], - "properties": { - "database": { - "type": "string" - }, - "engine": { - "oneOf": [ - { - "type": "string", - "enum": [ - "mssql" - ] - }, - { - "type": "string", - "enum": [ - "postgres" - ] - }, - { - "type": "string", - "enum": [ - "mysql" - ] - } - ] - }, - "options": { - "type": "object", - "properties": { - "connectionTimeout": { - "type": "number" - }, - "encrypt": { - "type": "boolean" - }, - "requestTimeout": { - "type": "number" - }, - "trustServerCertificate": { - "type": "boolean" - } - } - }, - "port": { - "type": "number" - }, - "readOnly": { - "type": "boolean" - }, - "security": { - "type": "object", - "properties": { - "maxConnectionPoolSize": { - "type": "number" - }, - "maxResultRows": { - "type": "number" - }, - "queryTimeoutMs": { - "type": "number" - } - } - }, - "server": { - "type": "string" - } - } - } - } - } - } - }, - "Response_integrations.actions.testConnection": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "message", - "success" - ], - "properties": { - "message": { - "type": "string" - }, - "success": { - "type": "boolean" - } - } - } - } - }, - "Request_integrations.actions.saveCredentials": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "credentialId" - ], - "properties": { - "apiKeyAuth": { - "type": "object", - "required": [ - "key" - ], - "properties": { - "key": { - "type": "string" - }, - "keyPrefix": { - "type": "string" - } - } - }, - "authMethod": { - "oneOf": [ - { - "type": "string", - "enum": [ - "api_key" - ] - }, - { - "type": "string", - "enum": [ - "bearer_token" - ] - }, - { - "type": "string", - "enum": [ - "basic_auth" - ] - }, - { - "type": "string", - "enum": [ - "oauth2" - ] - } - ] - }, - "basicAuth": { - "type": "object", - "required": [ - "password", - "username" - ], - "properties": { - "password": { - "type": "string" - }, - "username": { - "type": "string" - } - } - }, - "capabilities": { - "type": "object", - "properties": { - "canPush": { - "type": "boolean" - }, - "canSync": { - "type": "boolean" - }, - "canWebhook": { - "type": "boolean" - }, - "syncFrequency": { - "type": "string" - } - } - }, - "connectionConfig": {}, - "credentialId": { - "type": "string", - "description": "ID from table \"integrationCredentials\"" - }, - "iconStorageId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "isActive": { - "type": "boolean" - }, - "metadata": {}, - "oauth2Auth": { - "type": "object", - "required": [ - "accessToken" - ], - "properties": { - "accessToken": { - "type": "string" - }, - "refreshToken": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "tokenExpiry": { - "type": "number" - } - } - }, - "sqlConnectionConfig": { - "type": "object", - "required": [ - "engine" - ], - "properties": { - "database": { - "type": "string" - }, - "engine": { - "oneOf": [ - { - "type": "string", - "enum": [ - "mssql" - ] - }, - { - "type": "string", - "enum": [ - "postgres" - ] - }, - { - "type": "string", - "enum": [ - "mysql" - ] - } - ] - }, - "options": { - "type": "object", - "properties": { - "connectionTimeout": { - "type": "number" - }, - "encrypt": { - "type": "boolean" - }, - "requestTimeout": { - "type": "number" - }, - "trustServerCertificate": { - "type": "boolean" - } - } - }, - "port": { - "type": "number" - }, - "readOnly": { - "type": "boolean" - }, - "security": { - "type": "object", - "properties": { - "maxConnectionPoolSize": { - "type": "number" - }, - "maxResultRows": { - "type": "number" - }, - "queryTimeoutMs": { - "type": "number" - } - } - }, - "server": { - "type": "string" - } - } - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "active" - ] - }, - { - "type": "string", - "enum": [ - "inactive" - ] - }, - { - "type": "string", - "enum": [ - "error" - ] - }, - { - "type": "string", - "enum": [ - "testing" - ] - } - ] - } - } - } - } - }, - "Response_integrations.actions.saveCredentials": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_integrations.mutations.updateIcon": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "integrationId" - ], - "properties": { - "iconStorageId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "integrationId": { - "type": "string", - "description": "ID from table \"integrations\"" - } - } - } - } - }, - "Response_integrations.mutations.updateIcon": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_integrations.mutations.deleteIntegration": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "integrationId" - ], - "properties": { - "integrationId": { - "type": "string", - "description": "ID from table \"integrations\"" - } - } - } - } - }, - "Response_integrations.mutations.deleteIntegration": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_integrations.queries.get": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "integrationId" - ], - "properties": { - "integrationId": { - "type": "string", - "description": "ID from table \"integrations\"" - } - } - } - } - }, - "Response_integrations.queries.get": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "authMethod", - "isActive", - "name", - "organizationId", - "status", - "title" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "apiKeyAuth": { - "type": "object", - "required": [ - "keyEncrypted" - ], - "properties": { - "keyEncrypted": { - "type": "string" - }, - "keyPrefix": { - "type": "string" - } - } - }, - "authMethod": { - "oneOf": [ - { - "type": "string", - "enum": [ - "api_key" - ] - }, - { - "type": "string", - "enum": [ - "bearer_token" - ] - }, - { - "type": "string", - "enum": [ - "basic_auth" - ] - }, - { - "type": "string", - "enum": [ - "oauth2" - ] - } - ] - }, - "basicAuth": { - "type": "object", - "required": [ - "passwordEncrypted", - "username" - ], - "properties": { - "passwordEncrypted": { - "type": "string" - }, - "username": { - "type": "string" - } - } - }, - "capabilities": { - "type": "object", - "properties": { - "canPush": { - "type": "boolean" - }, - "canSync": { - "type": "boolean" - }, - "canWebhook": { - "type": "boolean" - }, - "syncFrequency": { - "type": "string" - } - } - }, - "connectionConfig": {}, - "connector": { - "type": "object", - "required": [ - "code", - "operations", - "secretBindings", - "version" - ], - "properties": { - "allowedHosts": { - "type": "array", - "items": { - "type": "string" - } - }, - "code": { - "type": "string" - }, - "operations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "operationType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "read" - ] - }, - { - "type": "string", - "enum": [ - "write" - ] - } - ] - }, - "parametersSchema": {}, - "requiredScopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "requiresApproval": { - "type": "boolean" - }, - "title": { - "type": "string" - } - } - } - }, - "secretBindings": { - "type": "array", - "items": { - "type": "string" - } - }, - "timeoutMs": { - "type": "number" - }, - "version": { - "type": "number" - } - } - }, - "description": { - "type": "string" - }, - "errorMessage": { - "type": "string" - }, - "iconStorageId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "iconUrl": { - "type": "string", - "nullable": true - }, - "isActive": { - "type": "boolean" - }, - "lastErrorAt": { - "type": "number" - }, - "lastSuccessAt": { - "type": "number" - }, - "lastSyncedAt": { - "type": "number" - }, - "lastTestedAt": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "oauth2Auth": { - "type": "object", - "required": [ - "accessTokenEncrypted" - ], - "properties": { - "accessTokenEncrypted": { - "type": "string" - }, - "refreshTokenEncrypted": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "tokenExpiry": { - "type": "number" - } - } - }, - "oauth2Config": { - "type": "object", - "required": [ - "authorizationUrl", - "tokenUrl" - ], - "properties": { - "authorizationUrl": { - "type": "string" - }, - "clientId": { - "type": "string" - }, - "clientSecretEncrypted": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "tokenUrl": { - "type": "string" - } - } - }, - "organizationId": { - "type": "string" - }, - "sqlConnectionConfig": { - "type": "object", - "required": [ - "engine" - ], - "properties": { - "database": { - "type": "string" - }, - "engine": { - "oneOf": [ - { - "type": "string", - "enum": [ - "mssql" - ] - }, - { - "type": "string", - "enum": [ - "postgres" - ] - }, - { - "type": "string", - "enum": [ - "mysql" - ] - } - ] - }, - "options": { - "type": "object", - "properties": { - "connectionTimeout": { - "type": "number" - }, - "encrypt": { - "type": "boolean" - }, - "requestTimeout": { - "type": "number" - }, - "trustServerCertificate": { - "type": "boolean" - } - } - }, - "port": { - "type": "number" - }, - "readOnly": { - "type": "boolean" - }, - "security": { - "type": "object", - "properties": { - "maxConnectionPoolSize": { - "type": "number" - }, - "maxResultRows": { - "type": "number" - }, - "queryTimeoutMs": { - "type": "number" - } - } - }, - "server": { - "type": "string" - } - } - }, - "sqlOperations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "query" - ], - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "operationType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "read" - ] - }, - { - "type": "string", - "enum": [ - "write" - ] - } - ] - }, - "parametersSchema": {}, - "query": { - "type": "string" - }, - "requiredScopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "requiresApproval": { - "type": "boolean" - }, - "title": { - "type": "string" - } - } - } - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "active" - ] - }, - { - "type": "string", - "enum": [ - "inactive" - ] - }, - { - "type": "string", - "enum": [ - "error" - ] - }, - { - "type": "string", - "enum": [ - "testing" - ] - } - ] - }, - "supportedAuthMethods": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "string", - "enum": [ - "api_key" - ] - }, - { - "type": "string", - "enum": [ - "bearer_token" - ] - }, - { - "type": "string", - "enum": [ - "basic_auth" - ] - }, - { - "type": "string", - "enum": [ - "oauth2" - ] - } - ] - } - }, - "syncStats": { - "type": "object", - "properties": { - "failedSyncCount": { - "type": "number" - }, - "lastSyncCount": { - "type": "number" - }, - "totalRecords": { - "type": "number" - } - } - }, - "title": { - "type": "string" - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "rest_api" - ] - }, - { - "type": "string", - "enum": [ - "sql" - ] - } - ] - } - }, - "nullable": true - } - } - }, - "Request_integrations.queries.getByName": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "name", - "organizationId" - ], - "properties": { - "name": { - "type": "string" - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_integrations.queries.getByName": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "authMethod", - "isActive", - "name", - "organizationId", - "status", - "title" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "apiKeyAuth": { - "type": "object", - "required": [ - "keyEncrypted" - ], - "properties": { - "keyEncrypted": { - "type": "string" - }, - "keyPrefix": { - "type": "string" - } - } - }, - "authMethod": { - "oneOf": [ - { - "type": "string", - "enum": [ - "api_key" - ] - }, - { - "type": "string", - "enum": [ - "bearer_token" - ] - }, - { - "type": "string", - "enum": [ - "basic_auth" - ] - }, - { - "type": "string", - "enum": [ - "oauth2" - ] - } - ] - }, - "basicAuth": { - "type": "object", - "required": [ - "passwordEncrypted", - "username" - ], - "properties": { - "passwordEncrypted": { - "type": "string" - }, - "username": { - "type": "string" - } - } - }, - "capabilities": { - "type": "object", - "properties": { - "canPush": { - "type": "boolean" - }, - "canSync": { - "type": "boolean" - }, - "canWebhook": { - "type": "boolean" - }, - "syncFrequency": { - "type": "string" - } - } - }, - "connectionConfig": {}, - "connector": { - "type": "object", - "required": [ - "code", - "operations", - "secretBindings", - "version" - ], - "properties": { - "allowedHosts": { - "type": "array", - "items": { - "type": "string" - } - }, - "code": { - "type": "string" - }, - "operations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "operationType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "read" - ] - }, - { - "type": "string", - "enum": [ - "write" - ] - } - ] - }, - "parametersSchema": {}, - "requiredScopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "requiresApproval": { - "type": "boolean" - }, - "title": { - "type": "string" - } - } - } - }, - "secretBindings": { - "type": "array", - "items": { - "type": "string" - } - }, - "timeoutMs": { - "type": "number" - }, - "version": { - "type": "number" - } - } - }, - "description": { - "type": "string" - }, - "errorMessage": { - "type": "string" - }, - "iconStorageId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "iconUrl": { - "type": "string", - "nullable": true - }, - "isActive": { - "type": "boolean" - }, - "lastErrorAt": { - "type": "number" - }, - "lastSuccessAt": { - "type": "number" - }, - "lastSyncedAt": { - "type": "number" - }, - "lastTestedAt": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "oauth2Auth": { - "type": "object", - "required": [ - "accessTokenEncrypted" - ], - "properties": { - "accessTokenEncrypted": { - "type": "string" - }, - "refreshTokenEncrypted": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "tokenExpiry": { - "type": "number" - } - } - }, - "oauth2Config": { - "type": "object", - "required": [ - "authorizationUrl", - "tokenUrl" - ], - "properties": { - "authorizationUrl": { - "type": "string" - }, - "clientId": { - "type": "string" - }, - "clientSecretEncrypted": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "tokenUrl": { - "type": "string" - } - } - }, - "organizationId": { - "type": "string" - }, - "sqlConnectionConfig": { - "type": "object", - "required": [ - "engine" - ], - "properties": { - "database": { - "type": "string" - }, - "engine": { - "oneOf": [ - { - "type": "string", - "enum": [ - "mssql" - ] - }, - { - "type": "string", - "enum": [ - "postgres" - ] - }, - { - "type": "string", - "enum": [ - "mysql" - ] - } - ] - }, - "options": { - "type": "object", - "properties": { - "connectionTimeout": { - "type": "number" - }, - "encrypt": { - "type": "boolean" - }, - "requestTimeout": { - "type": "number" - }, - "trustServerCertificate": { - "type": "boolean" - } - } - }, - "port": { - "type": "number" - }, - "readOnly": { - "type": "boolean" - }, - "security": { - "type": "object", - "properties": { - "maxConnectionPoolSize": { - "type": "number" - }, - "maxResultRows": { - "type": "number" - }, - "queryTimeoutMs": { - "type": "number" - } - } - }, - "server": { - "type": "string" - } - } - }, - "sqlOperations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "query" - ], - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "operationType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "read" - ] - }, - { - "type": "string", - "enum": [ - "write" - ] - } - ] - }, - "parametersSchema": {}, - "query": { - "type": "string" - }, - "requiredScopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "requiresApproval": { - "type": "boolean" - }, - "title": { - "type": "string" - } - } - } - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "active" - ] - }, - { - "type": "string", - "enum": [ - "inactive" - ] - }, - { - "type": "string", - "enum": [ - "error" - ] - }, - { - "type": "string", - "enum": [ - "testing" - ] - } - ] - }, - "supportedAuthMethods": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "string", - "enum": [ - "api_key" - ] - }, - { - "type": "string", - "enum": [ - "bearer_token" - ] - }, - { - "type": "string", - "enum": [ - "basic_auth" - ] - }, - { - "type": "string", - "enum": [ - "oauth2" - ] - } - ] - } - }, - "syncStats": { - "type": "object", - "properties": { - "failedSyncCount": { - "type": "number" - }, - "lastSyncCount": { - "type": "number" - }, - "totalRecords": { - "type": "number" - } - } - }, - "title": { - "type": "string" - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "rest_api" - ] - }, - { - "type": "string", - "enum": [ - "sql" - ] - } - ] - } - }, - "nullable": true - } - } - }, - "Request_integrations.queries.list": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "name": { - "type": "string" - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_integrations.queries.list": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "authMethod", - "isActive", - "name", - "organizationId", - "status", - "title" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "apiKeyAuth": { - "type": "object", - "required": [ - "keyEncrypted" - ], - "properties": { - "keyEncrypted": { - "type": "string" - }, - "keyPrefix": { - "type": "string" - } - } - }, - "authMethod": { - "oneOf": [ - { - "type": "string", - "enum": [ - "api_key" - ] - }, - { - "type": "string", - "enum": [ - "bearer_token" - ] - }, - { - "type": "string", - "enum": [ - "basic_auth" - ] - }, - { - "type": "string", - "enum": [ - "oauth2" - ] - } - ] - }, - "basicAuth": { - "type": "object", - "required": [ - "passwordEncrypted", - "username" - ], - "properties": { - "passwordEncrypted": { - "type": "string" - }, - "username": { - "type": "string" - } - } - }, - "capabilities": { - "type": "object", - "properties": { - "canPush": { - "type": "boolean" - }, - "canSync": { - "type": "boolean" - }, - "canWebhook": { - "type": "boolean" - }, - "syncFrequency": { - "type": "string" - } - } - }, - "connectionConfig": {}, - "connector": { - "type": "object", - "required": [ - "code", - "operations", - "secretBindings", - "version" - ], - "properties": { - "allowedHosts": { - "type": "array", - "items": { - "type": "string" - } - }, - "code": { - "type": "string" - }, - "operations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "operationType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "read" - ] - }, - { - "type": "string", - "enum": [ - "write" - ] - } - ] - }, - "parametersSchema": {}, - "requiredScopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "requiresApproval": { - "type": "boolean" - }, - "title": { - "type": "string" - } - } - } - }, - "secretBindings": { - "type": "array", - "items": { - "type": "string" - } - }, - "timeoutMs": { - "type": "number" - }, - "version": { - "type": "number" - } - } - }, - "description": { - "type": "string" - }, - "errorMessage": { - "type": "string" - }, - "iconStorageId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "iconUrl": { - "type": "string", - "nullable": true - }, - "isActive": { - "type": "boolean" - }, - "lastErrorAt": { - "type": "number" - }, - "lastSuccessAt": { - "type": "number" - }, - "lastSyncedAt": { - "type": "number" - }, - "lastTestedAt": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "oauth2Auth": { - "type": "object", - "required": [ - "accessTokenEncrypted" - ], - "properties": { - "accessTokenEncrypted": { - "type": "string" - }, - "refreshTokenEncrypted": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "tokenExpiry": { - "type": "number" - } - } - }, - "oauth2Config": { - "type": "object", - "required": [ - "authorizationUrl", - "tokenUrl" - ], - "properties": { - "authorizationUrl": { - "type": "string" - }, - "clientId": { - "type": "string" - }, - "clientSecretEncrypted": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "tokenUrl": { - "type": "string" - } - } - }, - "organizationId": { - "type": "string" - }, - "sqlConnectionConfig": { - "type": "object", - "required": [ - "engine" - ], - "properties": { - "database": { - "type": "string" - }, - "engine": { - "oneOf": [ - { - "type": "string", - "enum": [ - "mssql" - ] - }, - { - "type": "string", - "enum": [ - "postgres" - ] - }, - { - "type": "string", - "enum": [ - "mysql" - ] - } - ] - }, - "options": { - "type": "object", - "properties": { - "connectionTimeout": { - "type": "number" - }, - "encrypt": { - "type": "boolean" - }, - "requestTimeout": { - "type": "number" - }, - "trustServerCertificate": { - "type": "boolean" - } - } - }, - "port": { - "type": "number" - }, - "readOnly": { - "type": "boolean" - }, - "security": { - "type": "object", - "properties": { - "maxConnectionPoolSize": { - "type": "number" - }, - "maxResultRows": { - "type": "number" - }, - "queryTimeoutMs": { - "type": "number" - } - } - }, - "server": { - "type": "string" - } - } - }, - "sqlOperations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "query" - ], - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "operationType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "read" - ] - }, - { - "type": "string", - "enum": [ - "write" - ] - } - ] - }, - "parametersSchema": {}, - "query": { - "type": "string" - }, - "requiredScopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "requiresApproval": { - "type": "boolean" - }, - "title": { - "type": "string" - } - } - } - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "active" - ] - }, - { - "type": "string", - "enum": [ - "inactive" - ] - }, - { - "type": "string", - "enum": [ - "error" - ] - }, - { - "type": "string", - "enum": [ - "testing" - ] - } - ] - }, - "supportedAuthMethods": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "string", - "enum": [ - "api_key" - ] - }, - { - "type": "string", - "enum": [ - "bearer_token" - ] - }, - { - "type": "string", - "enum": [ - "basic_auth" - ] - }, - { - "type": "string", - "enum": [ - "oauth2" - ] - } - ] - } - }, - "syncStats": { - "type": "object", - "properties": { - "failedSyncCount": { - "type": "number" - }, - "lastSyncCount": { - "type": "number" - }, - "totalRecords": { - "type": "number" - } - } - }, - "title": { - "type": "string" - }, - "type": { - "oneOf": [ - { - "type": "string", - "enum": [ - "rest_api" - ] - }, - { - "type": "string", - "enum": [ - "sql" - ] - } - ] - } - } - } - } - } - }, - "Request_integrations.queries.listRelatedAutomations": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "integrationName", - "organizationId" - ], - "properties": { - "integrationName": { - "type": "string" - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_integrations.queries.listRelatedAutomations": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_members.mutations.addMember": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "userId" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "role": { - "oneOf": [ - { - "type": "string", - "enum": [ - "owner" - ] - }, - { - "type": "string", - "enum": [ - "disabled" - ] - }, - { - "type": "string", - "enum": [ - "member" - ] - }, - { - "type": "string", - "enum": [ - "editor" - ] - }, - { - "type": "string", - "enum": [ - "developer" - ] - }, - { - "type": "string", - "enum": [ - "admin" - ] - } - ] - }, - "userId": { - "type": "string" - } - } - } - } - }, - "Response_members.mutations.addMember": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string" - } - } - }, - "Request_members.mutations.removeMember": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "memberId" - ], - "properties": { - "memberId": { - "type": "string" - } - } - } - } - }, - "Response_members.mutations.removeMember": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_members.mutations.updateMemberRole": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "memberId", - "role" - ], - "properties": { - "memberId": { - "type": "string" - }, - "role": { - "oneOf": [ - { - "type": "string", - "enum": [ - "owner" - ] - }, - { - "type": "string", - "enum": [ - "disabled" - ] - }, - { - "type": "string", - "enum": [ - "member" - ] - }, - { - "type": "string", - "enum": [ - "editor" - ] - }, - { - "type": "string", - "enum": [ - "developer" - ] - }, - { - "type": "string", - "enum": [ - "admin" - ] - } - ] - } - } - } - } - }, - "Response_members.mutations.updateMemberRole": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_members.mutations.transferOwnership": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "targetMemberId" - ], - "properties": { - "targetMemberId": { - "type": "string" - } - } - } - } - }, - "Response_members.mutations.transferOwnership": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_members.mutations.updateMemberDisplayName": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "displayName", - "memberId" - ], - "properties": { - "displayName": { - "type": "string" - }, - "memberId": { - "type": "string" - } - } - } - } - }, - "Response_members.mutations.updateMemberDisplayName": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_members.queries.getCurrentMemberContext": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_members.queries.getCurrentMemberContext": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "nullable": true, - "oneOf": [ - { - "type": "object", - "required": [ - "createdAt", - "isAdmin", - "memberId", - "organizationId", - "role", - "status", - "userId" - ], - "properties": { - "createdAt": { - "type": "number" - }, - "displayName": { - "type": "string" - }, - "isAdmin": { - "type": "boolean" - }, - "memberId": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "role": { - "oneOf": [ - { - "type": "string", - "enum": [ - "owner" - ] - }, - { - "type": "string", - "enum": [ - "disabled" - ] - }, - { - "type": "string", - "enum": [ - "member" - ] - }, - { - "type": "string", - "enum": [ - "editor" - ] - }, - { - "type": "string", - "enum": [ - "developer" - ] - }, - { - "type": "string", - "enum": [ - "admin" - ] - } - ] - }, - "status": { - "type": "string", - "enum": [ - "ok" - ] - }, - "userId": { - "type": "string" - } - } - }, - { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "not_found" - ] - } - } - }, - { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "not_member" - ] - } - } - } - ] - } - } - }, - "Request_members.queries.listByOrganization": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_members.queries.listByOrganization": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_id", - "createdAt", - "organizationId", - "role", - "userId" - ], - "properties": { - "_id": { - "type": "string" - }, - "createdAt": { - "type": "number" - }, - "displayName": { - "type": "string" - }, - "email": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "role": { - "oneOf": [ - { - "type": "string", - "enum": [ - "owner" - ] - }, - { - "type": "string", - "enum": [ - "disabled" - ] - }, - { - "type": "string", - "enum": [ - "member" - ] - }, - { - "type": "string", - "enum": [ - "editor" - ] - }, - { - "type": "string", - "enum": [ - "developer" - ] - }, - { - "type": "string", - "enum": [ - "admin" - ] - } - ] - }, - "userId": { - "type": "string" - } - } - } - } - } - }, - "Request_members.queries.getUserIdByEmail": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "email" - ], - "properties": { - "email": { - "type": "string" - } - } - } - } - }, - "Response_members.queries.getUserIdByEmail": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_members.queries.getUserOrganizationsList": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_members.queries.getUserOrganizationsList": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "organizationId", - "role" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "role": { - "oneOf": [ - { - "type": "string", - "enum": [ - "owner" - ] - }, - { - "type": "string", - "enum": [ - "disabled" - ] - }, - { - "type": "string", - "enum": [ - "member" - ] - }, - { - "type": "string", - "enum": [ - "editor" - ] - }, - { - "type": "string", - "enum": [ - "developer" - ] - }, - { - "type": "string", - "enum": [ - "admin" - ] - } - ] - } - } - } - } - } - }, - "Request_members.queries.approxCountMyTeams": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_members.queries.approxCountMyTeams": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "number" - } - } - }, - "Request_members.queries.getMyTeams": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_members.queries.getMyTeams": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "id", - "name" - ], - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - } - } - } - }, - "Request_members.queries.listOrgTeams": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_members.queries.listOrgTeams": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "id", - "name" - ], - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - } - } - } - }, - "Request_message_metadata.queries.getMessageMetadata": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "messageId" - ], - "properties": { - "messageId": { - "type": "string" - } - } - } - } - }, - "Response_message_metadata.queries.getMessageMetadata": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "messageId", - "model", - "provider", - "threadId" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string", - "description": "ID from table \"messageMetadata\"" - }, - "cachedInputTokens": { - "type": "number" - }, - "contextStats": { - "type": "object", - "required": [ - "approvalCount", - "hasRag", - "messageCount", - "totalTokens" - ], - "properties": { - "approvalCount": { - "type": "number" - }, - "hasIntegrations": { - "type": "boolean" - }, - "hasRag": { - "type": "boolean" - }, - "hasSummary": { - "type": "boolean" - }, - "hasWebContext": { - "type": "boolean" - }, - "messageCount": { - "type": "number" - }, - "totalTokens": { - "type": "number" - } - } - }, - "contextWindow": { - "type": "string" - }, - "durationMs": { - "type": "number" - }, - "error": { - "type": "string" - }, - "inputTokens": { - "type": "number" - }, - "messageId": { - "type": "string" - }, - "model": { - "type": "string" - }, - "outputTokens": { - "type": "number" - }, - "provider": { - "type": "string" - }, - "providerMetadata": {}, - "reasoning": { - "type": "string" - }, - "reasoningTokens": { - "type": "number" - }, - "subAgentUsage": { - "type": "array", - "items": { - "type": "object", - "required": [ - "toolName" - ], - "properties": { - "durationMs": { - "type": "number" - }, - "input": { - "type": "string" - }, - "inputTokens": { - "type": "number" - }, - "model": { - "type": "string" - }, - "output": { - "type": "string" - }, - "outputTokens": { - "type": "number" - }, - "provider": { - "type": "string" - }, - "toolName": { - "type": "string" - }, - "totalTokens": { - "type": "number" - } - } - } - }, - "threadId": { - "type": "string" - }, - "timeToFirstTokenMs": { - "type": "number" - }, - "toolsUsage": { - "type": "array", - "items": { - "type": "object", - "required": [ - "toolName" - ], - "properties": { - "durationMs": { - "type": "number" - }, - "input": { - "type": "string" - }, - "inputTokens": { - "type": "number" - }, - "model": { - "type": "string" - }, - "output": { - "type": "string" - }, - "outputTokens": { - "type": "number" - }, - "provider": { - "type": "string" - }, - "toolName": { - "type": "string" - }, - "totalTokens": { - "type": "number" - } - } - } - }, - "totalTokens": { - "type": "number" - } - }, - "nullable": true - } - } - }, - "Request_onedrive.actions.importFiles": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "importType", - "items", - "organizationId" - ], - "properties": { - "importType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "one-time" - ] - }, - { - "type": "string", - "enum": [ - "sync" - ] - } - ] - }, - "items": { - "type": "array", - "items": { - "type": "object", - "required": [ - "id", - "name", - "size" - ], - "properties": { - "driveId": { - "type": "string" - }, - "id": { - "type": "string" - }, - "isDirectlySelected": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "relativePath": { - "type": "string" - }, - "selectedParentId": { - "type": "string" - }, - "selectedParentName": { - "type": "string" - }, - "selectedParentPath": { - "type": "string" - }, - "siteId": { - "type": "string" - }, - "size": { - "type": "number" - }, - "sourceType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "onedrive" - ] - }, - { - "type": "string", - "enum": [ - "sharepoint" - ] - } - ] - } - } - } - }, - "organizationId": { - "type": "string" - }, - "teamId": { - "type": "string" - } - } - } - } - }, - "Response_onedrive.actions.importFiles": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "failedCount", - "results", - "skippedCount", - "success", - "successCount", - "totalFiles" - ], - "properties": { - "error": { - "type": "string" - }, - "failedCount": { - "type": "number" - }, - "results": { - "type": "array", - "items": { - "type": "object", - "required": [ - "fileId", - "fileName", - "status" - ], - "properties": { - "documentId": { - "type": "string", - "description": "ID from table \"documents\"" - }, - "error": { - "type": "string" - }, - "fileId": { - "type": "string" - }, - "fileName": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "success" - ] - }, - { - "type": "string", - "enum": [ - "skipped" - ] - }, - { - "type": "string", - "enum": [ - "error" - ] - } - ] - } - } - } - }, - "skippedCount": { - "type": "number" - }, - "success": { - "type": "boolean" - }, - "successCount": { - "type": "number" - }, - "totalFiles": { - "type": "number" - } - } - } - } - }, - "Request_onedrive.actions.listSharePointDrives": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "siteId" - ], - "properties": { - "siteId": { - "type": "string" - } - } - } - } - }, - "Response_onedrive.actions.listSharePointDrives": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "success" - ], - "properties": { - "drives": { - "type": "array", - "items": { - "type": "object", - "required": [ - "driveType", - "id", - "name" - ], - "properties": { - "description": { - "type": "string" - }, - "driveType": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "webUrl": { - "type": "string" - } - } - } - }, - "error": { - "type": "string" - }, - "success": { - "type": "boolean" - } - } - } - } - }, - "Request_onedrive.actions.listSharePointFiles": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "driveId", - "siteId" - ], - "properties": { - "driveId": { - "type": "string" - }, - "folderId": { - "type": "string" - }, - "siteId": { - "type": "string" - } - } - } - } - }, - "Response_onedrive.actions.listSharePointFiles": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "success" - ], - "properties": { - "error": { - "type": "string" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "required": [ - "id", - "isFolder", - "name", - "size" - ], - "properties": { - "childCount": { - "type": "number" - }, - "id": { - "type": "string" - }, - "isFolder": { - "type": "boolean" - }, - "lastModified": { - "type": "number" - }, - "mimeType": { - "type": "string" - }, - "name": { - "type": "string" - }, - "size": { - "type": "number" - }, - "webUrl": { - "type": "string" - } - } - } - }, - "success": { - "type": "boolean" - } - } - } - } - }, - "Request_onedrive.actions.listSharePointSites": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "properties": { - "search": { - "type": "string" - } - } - } - } - }, - "Response_onedrive.actions.listSharePointSites": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "success" - ], - "properties": { - "error": { - "type": "string" - }, - "sites": { - "type": "array", - "items": { - "type": "object", - "required": [ - "displayName", - "id", - "name", - "webUrl" - ], - "properties": { - "description": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "webUrl": { - "type": "string" - } - } - } - }, - "success": { - "type": "boolean" - } - } - } - } - }, - "Request_onedrive.actions.listFiles": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "properties": { - "folderId": { - "type": "string" - }, - "search": { - "type": "string" - } - } - } - } - }, - "Response_onedrive.actions.listFiles": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "success" - ], - "properties": { - "error": { - "type": "string" - }, - "items": { - "type": "array", - "items": { - "type": "object", - "required": [ - "id", - "isFolder", - "name", - "size" - ], - "properties": { - "childCount": { - "type": "number" - }, - "id": { - "type": "string" - }, - "isFolder": { - "type": "boolean" - }, - "lastModified": { - "type": "number" - }, - "mimeType": { - "type": "string" - }, - "name": { - "type": "string" - }, - "size": { - "type": "number" - }, - "webUrl": { - "type": "string" - } - } - } - }, - "success": { - "type": "boolean" - } - } - } - } - }, - "Request_organizations.actions.initializeDefaultWorkflows": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_organizations.actions.initializeDefaultWorkflows": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_organizations.queries.getOrganization": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string" - } - } - } - } - }, - "Response_organizations.queries.getOrganization": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "createdAt", - "name" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "createdAt": { - "type": "number" - }, - "logo": { - "type": "string", - "nullable": true - }, - "metadata": {}, - "name": { - "type": "string" - }, - "slug": { - "type": "string" - } - }, - "nullable": true - } - } - }, - "Request_products.mutations.createProduct": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "name", - "organizationId" - ], - "properties": { - "category": { - "type": "string" - }, - "currency": { - "type": "string" - }, - "description": { - "type": "string" - }, - "imageUrl": { - "type": "string" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "price": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "active" - ] - }, - { - "type": "string", - "enum": [ - "inactive" - ] - }, - { - "type": "string", - "enum": [ - "draft" - ] - }, - { - "type": "string", - "enum": [ - "archived" - ] - } - ] - }, - "stock": { - "type": "number" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "translations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "language", - "lastUpdated" - ], - "properties": { - "category": { - "type": "string" - }, - "createdAt": { - "type": "number" - }, - "description": { - "type": "string" - }, - "language": { - "type": "string" - }, - "lastUpdated": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - } - } - } - }, - "Response_products.mutations.createProduct": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "description": "ID from table \"products\"" - } - } - }, - "Request_products.mutations.deleteProduct": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "productId" - ], - "properties": { - "productId": { - "type": "string", - "description": "ID from table \"products\"" - } - } - } - } - }, - "Response_products.mutations.deleteProduct": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "description": "ID from table \"products\"" - } - } - }, - "Request_products.mutations.updateProduct": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "productId" - ], - "properties": { - "category": { - "type": "string" - }, - "currency": { - "type": "string" - }, - "description": { - "type": "string" - }, - "imageUrl": { - "type": "string" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "price": { - "type": "number" - }, - "productId": { - "type": "string", - "description": "ID from table \"products\"" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "active" - ] - }, - { - "type": "string", - "enum": [ - "inactive" - ] - }, - { - "type": "string", - "enum": [ - "draft" - ] - }, - { - "type": "string", - "enum": [ - "archived" - ] - } - ] - }, - "stock": { - "type": "number" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "translations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "language", - "lastUpdated" - ], - "properties": { - "category": { - "type": "string" - }, - "createdAt": { - "type": "number" - }, - "description": { - "type": "string" - }, - "language": { - "type": "string" - }, - "lastUpdated": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - } - } - } - }, - "Response_products.mutations.updateProduct": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "description": "ID from table \"products\"" - } - } - }, - "Request_products.mutations.upsertProductTranslation": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "language", - "productId" - ], - "properties": { - "category": { - "type": "string" - }, - "description": { - "type": "string" - }, - "language": { - "type": "string" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "productId": { - "type": "string", - "description": "ID from table \"products\"" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - }, - "Response_products.mutations.upsertProductTranslation": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "description": "ID from table \"products\"" - } - } - }, - "Request_products.queries.approxCountProducts": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_products.queries.approxCountProducts": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "number" - } - } - }, - "Request_products.queries.listProducts": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_products.queries.listProducts": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "name", - "organizationId" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "category": { - "type": "string" - }, - "currency": { - "type": "string" - }, - "description": { - "type": "string" - }, - "externalId": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - }, - "imageUrl": { - "type": "string" - }, - "lastUpdated": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "price": { - "type": "number" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "active" - ] - }, - { - "type": "string", - "enum": [ - "inactive" - ] - }, - { - "type": "string", - "enum": [ - "draft" - ] - }, - { - "type": "string", - "enum": [ - "archived" - ] - } - ] - }, - "stock": { - "type": "number" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "translations": { - "type": "array", - "items": { - "type": "object", - "required": [ - "language", - "lastUpdated" - ], - "properties": { - "category": { - "type": "string" - }, - "createdAt": { - "type": "number" - }, - "description": { - "type": "string" - }, - "language": { - "type": "string" - }, - "lastUpdated": { - "type": "number" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - } - } - } - } - }, - "Request_products.queries.listProductsPaginated": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "paginationOpts" - ], - "properties": { - "category": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "paginationOpts": { - "type": "object", - "required": [ - "cursor", - "numItems" - ], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "endCursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "maximumBytesRead": { - "type": "number" - }, - "maximumRowsRead": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } - }, - "status": { - "type": "string" - } - } - } - } - }, - "Response_products.queries.listProductsPaginated": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_sso_providers.actions.getWithClientId": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_sso_providers.actions.getWithClientId": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "_id", - "autoProvisionRole", - "clientId", - "createdAt", - "defaultRole", - "issuer", - "organizationId", - "providerId", - "roleMappingRules", - "scopes", - "updatedAt" - ], - "properties": { - "_id": { - "type": "string", - "description": "ID from table \"ssoProviders\"" - }, - "autoProvisionRole": { - "type": "boolean" - }, - "clientId": { - "type": "string" - }, - "createdAt": { - "type": "number" - }, - "defaultRole": { - "oneOf": [ - { - "type": "string", - "enum": [ - "disabled" - ] - }, - { - "type": "string", - "enum": [ - "member" - ] - }, - { - "type": "string", - "enum": [ - "editor" - ] - }, - { - "type": "string", - "enum": [ - "developer" - ] - }, - { - "type": "string", - "enum": [ - "admin" - ] - } - ] - }, - "issuer": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "providerFeatures": { - "type": "object", - "properties": { - "entraId": { - "type": "object", - "properties": { - "autoProvisionTeam": { - "type": "boolean" - }, - "domainHint": { - "type": "string" - }, - "enableOneDriveAccess": { - "type": "boolean" - }, - "excludeGroups": { - "type": "array", - "items": { - "type": "string" - } - }, - "seamlessSsoEnabled": { - "type": "boolean" - } - } - }, - "googleWorkspace": { - "type": "object", - "properties": { - "enableGoogleDriveAccess": { - "type": "boolean" - } - } - } - } - }, - "providerId": { - "type": "string" - }, - "roleMappingRules": { - "type": "array", - "items": { - "type": "object", - "required": [ - "pattern", - "source", - "targetRole" - ], - "properties": { - "pattern": { - "type": "string" - }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": [ - "jobTitle" - ] - }, - { - "type": "string", - "enum": [ - "appRole" - ] - }, - { - "type": "string", - "enum": [ - "group" - ] - }, - { - "type": "string", - "enum": [ - "claim" - ] - } - ] - }, - "targetRole": { - "oneOf": [ - { - "type": "string", - "enum": [ - "disabled" - ] - }, - { - "type": "string", - "enum": [ - "member" - ] - }, - { - "type": "string", - "enum": [ - "editor" - ] - }, - { - "type": "string", - "enum": [ - "developer" - ] - }, - { - "type": "string", - "enum": [ - "admin" - ] - } - ] - } - } - } - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "updatedAt": { - "type": "number" - } - }, - "nullable": true - } - } - }, - "Request_sso_providers.actions.getSsoCredentialsForEmail": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_sso_providers.actions.getSsoCredentialsForEmail": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "clientId", - "clientSecret", - "tenantId" - ], - "properties": { - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "tenantId": { - "type": "string" - } - }, - "nullable": true - } - } - }, - "Request_sso_providers.actions.upsert": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "autoProvisionRole", - "clientId", - "defaultRole", - "issuer", - "organizationId", - "providerId", - "roleMappingRules", - "scopes" - ], - "properties": { - "autoProvisionRole": { - "type": "boolean" - }, - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "defaultRole": { - "oneOf": [ - { - "type": "string", - "enum": [ - "disabled" - ] - }, - { - "type": "string", - "enum": [ - "member" - ] - }, - { - "type": "string", - "enum": [ - "editor" - ] - }, - { - "type": "string", - "enum": [ - "developer" - ] - }, - { - "type": "string", - "enum": [ - "admin" - ] - } - ] - }, - "issuer": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "providerFeatures": { - "type": "object", - "properties": { - "entraId": { - "type": "object", - "properties": { - "autoProvisionTeam": { - "type": "boolean" - }, - "domainHint": { - "type": "string" - }, - "enableOneDriveAccess": { - "type": "boolean" - }, - "excludeGroups": { - "type": "array", - "items": { - "type": "string" - } - }, - "seamlessSsoEnabled": { - "type": "boolean" - } - } - }, - "googleWorkspace": { - "type": "object", - "properties": { - "enableGoogleDriveAccess": { - "type": "boolean" - } - } - } - } - }, - "providerId": { - "type": "string" - }, - "roleMappingRules": { - "type": "array", - "items": { - "type": "object", - "required": [ - "pattern", - "source", - "targetRole" - ], - "properties": { - "pattern": { - "type": "string" - }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": [ - "jobTitle" - ] - }, - { - "type": "string", - "enum": [ - "appRole" - ] - }, - { - "type": "string", - "enum": [ - "group" - ] - }, - { - "type": "string", - "enum": [ - "claim" - ] - } - ] - }, - "targetRole": { - "oneOf": [ - { - "type": "string", - "enum": [ - "disabled" - ] - }, - { - "type": "string", - "enum": [ - "member" - ] - }, - { - "type": "string", - "enum": [ - "editor" - ] - }, - { - "type": "string", - "enum": [ - "developer" - ] - }, - { - "type": "string", - "enum": [ - "admin" - ] - } - ] - } - } - } - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - }, - "Response_sso_providers.actions.upsert": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string" - } - } - }, - "Request_sso_providers.actions.remove": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_sso_providers.actions.remove": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_sso_providers.actions.testConfig": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "clientId", - "clientSecret", - "issuer" - ], - "properties": { - "clientId": { - "type": "string" - }, - "clientSecret": { - "type": "string" - }, - "issuer": { - "type": "string" - } - } - } - } - }, - "Response_sso_providers.actions.testConfig": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "valid" - ], - "properties": { - "error": { - "type": "string" - }, - "valid": { - "type": "boolean" - } - } - } - } - }, - "Request_sso_providers.actions.testExistingConfig": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_sso_providers.actions.testExistingConfig": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "valid" - ], - "properties": { - "error": { - "type": "string" - }, - "valid": { - "type": "boolean" - } - } - } - } - }, - "Request_sso_providers.queries.get": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_sso_providers.queries.get": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "_id", - "autoProvisionRole", - "createdAt", - "defaultRole", - "issuer", - "organizationId", - "providerId", - "roleMappingRules", - "scopes", - "updatedAt" - ], - "properties": { - "_id": { - "type": "string", - "description": "ID from table \"ssoProviders\"" - }, - "autoProvisionRole": { - "type": "boolean" - }, - "createdAt": { - "type": "number" - }, - "defaultRole": { - "oneOf": [ - { - "type": "string", - "enum": [ - "disabled" - ] - }, - { - "type": "string", - "enum": [ - "member" - ] - }, - { - "type": "string", - "enum": [ - "editor" - ] - }, - { - "type": "string", - "enum": [ - "developer" - ] - }, - { - "type": "string", - "enum": [ - "admin" - ] - } - ] - }, - "issuer": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "providerFeatures": { - "type": "object", - "properties": { - "entraId": { - "type": "object", - "properties": { - "autoProvisionTeam": { - "type": "boolean" - }, - "domainHint": { - "type": "string" - }, - "enableOneDriveAccess": { - "type": "boolean" - }, - "excludeGroups": { - "type": "array", - "items": { - "type": "string" - } - }, - "seamlessSsoEnabled": { - "type": "boolean" - } - } - }, - "googleWorkspace": { - "type": "object", - "properties": { - "enableGoogleDriveAccess": { - "type": "boolean" - } - } - } - } - }, - "providerId": { - "type": "string" - }, - "roleMappingRules": { - "type": "array", - "items": { - "type": "object", - "required": [ - "pattern", - "source", - "targetRole" - ], - "properties": { - "pattern": { - "type": "string" - }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": [ - "jobTitle" - ] - }, - { - "type": "string", - "enum": [ - "appRole" - ] - }, - { - "type": "string", - "enum": [ - "group" - ] - }, - { - "type": "string", - "enum": [ - "claim" - ] - } - ] - }, - "targetRole": { - "oneOf": [ - { - "type": "string", - "enum": [ - "disabled" - ] - }, - { - "type": "string", - "enum": [ - "member" - ] - }, - { - "type": "string", - "enum": [ - "editor" - ] - }, - { - "type": "string", - "enum": [ - "developer" - ] - }, - { - "type": "string", - "enum": [ - "admin" - ] - } - ] - } - } - } - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "updatedAt": { - "type": "number" - } - }, - "nullable": true - } - } - }, - "Request_sso_providers.queries.isSsoConfigured": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_sso_providers.queries.isSsoConfigured": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "enabled" - ], - "properties": { - "enabled": { - "type": "boolean" - }, - "providerType": { - "type": "string" - }, - "seamlessSsoEnabled": { - "type": "boolean" - } - } - } - } - }, - "Request_sso_providers.queries.getMicrosoftToken": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_sso_providers.queries.getMicrosoftToken": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "accessToken", - "expiresAt", - "isExpired", - "refreshToken" - ], - "properties": { - "accessToken": { - "type": "string", - "nullable": true - }, - "expiresAt": { - "type": "number", - "nullable": true - }, - "isExpired": { - "type": "boolean" - }, - "refreshToken": { - "type": "string", - "nullable": true - } - }, - "nullable": true - } - } - }, - "Request_team_members.mutations.addMember": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "teamId", - "userId" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "teamId": { - "type": "string" - }, - "userId": { - "type": "string" - } - } - } - } - }, - "Response_team_members.mutations.addMember": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_team_members.mutations.removeMember": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "teamMemberId" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "teamMemberId": { - "type": "string" - } - } - } - } - }, - "Response_team_members.mutations.removeMember": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_team_members.queries.listByTeam": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "teamId" - ], - "properties": { - "teamId": { - "type": "string" - } - } - } - } - }, - "Response_team_members.queries.listByTeam": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_id", - "joinedAt", - "role", - "teamId", - "userId" - ], - "properties": { - "_id": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "email": { - "type": "string" - }, - "joinedAt": { - "type": "number" - }, - "role": { - "type": "string" - }, - "teamId": { - "type": "string" - }, - "userId": { - "type": "string" - } - } - } - } - } - }, - "Request_threads.get_message_error.getMessageError": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_threads.get_message_error.getMessageError": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_threads.mutations.forkThread": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "shareToken" - ], - "properties": { - "shareToken": { - "type": "string" - } - } - } - } - }, - "Response_threads.mutations.forkThread": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string" - } - } - }, - "Request_threads.mutations.shareThread": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_threads.mutations.shareThread": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string" - } - } - }, - "Request_threads.mutations.unshareThread": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_threads.mutations.unshareThread": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_threads.mutations.createChatThread": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "chatType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "general" - ] - }, - { - "type": "string", - "enum": [ - "workflow_assistant" - ] - }, - { - "type": "string", - "enum": [ - "agent_test" - ] - } - ] - }, - "organizationId": { - "type": "string" - }, - "title": { - "type": "string" - } - } - } - } - }, - "Response_threads.mutations.createChatThread": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string" - } - } - }, - "Request_threads.mutations.deleteChatThread": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_threads.mutations.deleteChatThread": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_threads.mutations.updateChatThread": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId", - "title" - ], - "properties": { - "threadId": { - "type": "string" - }, - "title": { - "type": "string" - } - } - } - } - }, - "Response_threads.mutations.updateChatThread": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_threads.mutations.cancelGeneration": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "displayedContent": { - "type": "string", - "nullable": true - }, - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_threads.mutations.cancelGeneration": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_threads.mutations.archiveChatThread": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_threads.mutations.archiveChatThread": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_threads.mutations.unarchiveChatThread": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_threads.mutations.unarchiveChatThread": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_threads.queries.getSharedThread": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "shareToken" - ], - "properties": { - "shareToken": { - "type": "string" - } - } - } - } - }, - "Response_threads.queries.getSharedThread": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_threads.queries.listThreads": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "properties": { - "paginationOpts": { - "type": "object", - "required": [ - "cursor", - "numItems" - ], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "endCursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "maximumBytesRead": { - "type": "number" - }, - "maximumRowsRead": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } - } - } - } - } - }, - "Response_threads.queries.listThreads": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_threads.queries.listArchivedThreads": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "properties": { - "paginationOpts": { - "type": "object", - "required": [ - "cursor", - "numItems" - ], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "endCursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "maximumBytesRead": { - "type": "number" - }, - "maximumRowsRead": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } - } - } - } - } - }, - "Response_threads.queries.listArchivedThreads": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_threads.queries.isThreadGenerating": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_threads.queries.isThreadGenerating": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "boolean" - } - } - }, - "Request_threads.queries.getThreadMessagesStreaming": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "paginationOpts", - "threadId" - ], - "properties": { - "paginationOpts": { - "type": "object", - "required": [ - "cursor", - "numItems" - ], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "endCursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "maximumBytesRead": { - "type": "number" - }, - "maximumRowsRead": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } - }, - "streamArgs": { - "oneOf": [ - { - "type": "object", - "required": [ - "kind" - ], - "properties": { - "kind": { - "type": "string", - "enum": [ - "list" - ] - }, - "startOrder": { - "type": "number" - } - } - }, - { - "type": "object", - "required": [ - "cursors", - "kind" - ], - "properties": { - "cursors": { - "type": "array", - "items": { - "type": "object", - "required": [ - "cursor", - "streamId" - ], - "properties": { - "cursor": { - "type": "number" - }, - "streamId": { - "type": "string" - } - } - } - }, - "kind": { - "type": "string", - "enum": [ - "deltas" - ] - } - } - } - ] - }, - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_threads.queries.getThreadMessagesStreaming": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_threads.queries.getFailedMessageErrors": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_threads.queries.getFailedMessageErrors": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_threads.queries.getThreadStatus": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_threads.queries.getThreadStatus": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_threads.queries.getThreadShareStatus": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_threads.queries.getThreadShareStatus": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_users.mutations.updateUserName": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - } - } - } - } - }, - "Response_users.mutations.updateUserName": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_users.mutations.updateUserPassword": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "newPassword" - ], - "properties": { - "currentPassword": { - "type": "string" - }, - "newPassword": { - "type": "string" - } - } - } - } - }, - "Response_users.mutations.updateUserPassword": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_users.mutations.setMemberPassword": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "memberId", - "newPassword" - ], - "properties": { - "memberId": { - "type": "string" - }, - "newPassword": { - "type": "string" - } - } - } - } - }, - "Response_users.mutations.setMemberPassword": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_users.mutations.createMember": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "email", - "organizationId" - ], - "properties": { - "displayName": { - "type": "string" - }, - "email": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "password": { - "type": "string" - }, - "role": { - "oneOf": [ - { - "type": "string", - "enum": [ - "owner" - ] - }, - { - "type": "string", - "enum": [ - "admin" - ] - }, - { - "type": "string", - "enum": [ - "developer" - ] - }, - { - "type": "string", - "enum": [ - "editor" - ] - }, - { - "type": "string", - "enum": [ - "member" - ] - }, - { - "type": "string", - "enum": [ - "disabled" - ] - } - ] - } - } - } - } - }, - "Response_users.mutations.createMember": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "isExistingUser", - "memberId", - "userId" - ], - "properties": { - "isExistingUser": { - "type": "boolean" - }, - "memberId": { - "type": "string" - }, - "userId": { - "type": "string" - } - } - } - } - }, - "Request_users.queries.hasAnyUsers": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_users.queries.hasAnyUsers": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "boolean" - } - } - }, - "Request_users.queries.getCurrentUser": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_users.queries.getCurrentUser": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "userId" - ], - "properties": { - "email": { - "type": "string" - }, - "name": { - "type": "string" - }, - "userId": { - "type": "string" - } - }, - "nullable": true - } - } - }, - "Request_vendors.mutations.bulkCreateVendors": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "vendors" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "vendors": { - "type": "array", - "items": { - "type": "object", - "required": [ - "email", - "source" - ], - "properties": { - "address": { - "type": "object", - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "state": { - "type": "string" - }, - "street": { - "type": "string" - } - } - }, - "email": { - "type": "string" - }, - "externalId": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - } - ] - }, - "locale": { - "type": "string" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "notes": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": [ - "manual_import" - ] - }, - { - "type": "string", - "enum": [ - "file_upload" - ] - }, - { - "type": "string", - "enum": [ - "api_import" - ] - }, - { - "type": "string", - "enum": [ - "shopify" - ] - }, - { - "type": "string", - "enum": [ - "woocommerce" - ] - }, - { - "type": "string", - "enum": [ - "magento" - ] - }, - { - "type": "string", - "enum": [ - "bigcommerce" - ] - }, - { - "type": "string", - "enum": [ - "prestashop" - ] - }, - { - "type": "string", - "enum": [ - "circuly" - ] - }, - { - "type": "string", - "enum": [ - "chargebee" - ] - }, - { - "type": "string", - "enum": [ - "stripe" - ] - }, - { - "type": "string", - "enum": [ - "recurly" - ] - }, - { - "type": "string", - "enum": [ - "salesforce" - ] - }, - { - "type": "string", - "enum": [ - "hubspot" - ] - }, - { - "type": "string", - "enum": [ - "pipedrive" - ] - }, - { - "type": "string", - "enum": [ - "zoho" - ] - }, - { - "type": "string", - "enum": [ - "sap" - ] - }, - { - "type": "string", - "enum": [ - "protel" - ] - }, - { - "type": "string", - "enum": [ - "oracle" - ] - }, - { - "type": "string", - "enum": [ - "netsuite" - ] - }, - { - "type": "string", - "enum": [ - "mailchimp" - ] - }, - { - "type": "string", - "enum": [ - "klaviyo" - ] - }, - { - "type": "string", - "enum": [ - "sendgrid" - ] - }, - { - "type": "string", - "enum": [ - "webhook" - ] - }, - { - "type": "string", - "enum": [ - "zapier" - ] - }, - { - "type": "string", - "enum": [ - "custom" - ] - } - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - } - } - } - }, - "Response_vendors.mutations.bulkCreateVendors": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "errors", - "failed", - "success" - ], - "properties": { - "errors": { - "type": "array", - "items": { - "type": "object", - "required": [ - "error", - "errorCode", - "index", - "vendor" - ], - "properties": { - "error": { - "type": "string" - }, - "errorCode": { - "type": "string" - }, - "index": { - "type": "number" - }, - "vendor": {} - } - } - }, - "failed": { - "type": "number" - }, - "success": { - "type": "number" - } - } - } - } - }, - "Request_vendors.mutations.deleteVendor": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "vendorId" - ], - "properties": { - "vendorId": { - "type": "string", - "description": "ID from table \"vendors\"" - } - } - } - } - }, - "Response_vendors.mutations.deleteVendor": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_vendors.mutations.updateVendor": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "vendorId" - ], - "properties": { - "address": { - "type": "object", - "properties": { - "city": { - "type": "string" - }, - "country": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "state": { - "type": "string" - }, - "street": { - "type": "string" - } - } - }, - "email": { - "type": "string" - }, - "externalId": { - "type": "string" - }, - "locale": { - "type": "string" - }, - "metadata": {}, - "name": { - "type": "string" - }, - "notes": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "source": { - "oneOf": [ - { - "type": "string", - "enum": [ - "manual_import" - ] - }, - { - "type": "string", - "enum": [ - "file_upload" - ] - }, - { - "type": "string", - "enum": [ - "api_import" - ] - }, - { - "type": "string", - "enum": [ - "shopify" - ] - }, - { - "type": "string", - "enum": [ - "woocommerce" - ] - }, - { - "type": "string", - "enum": [ - "magento" - ] - }, - { - "type": "string", - "enum": [ - "bigcommerce" - ] - }, - { - "type": "string", - "enum": [ - "prestashop" - ] - }, - { - "type": "string", - "enum": [ - "circuly" - ] - }, - { - "type": "string", - "enum": [ - "chargebee" - ] - }, - { - "type": "string", - "enum": [ - "stripe" - ] - }, - { - "type": "string", - "enum": [ - "recurly" - ] - }, - { - "type": "string", - "enum": [ - "salesforce" - ] - }, - { - "type": "string", - "enum": [ - "hubspot" - ] - }, - { - "type": "string", - "enum": [ - "pipedrive" - ] - }, - { - "type": "string", - "enum": [ - "zoho" - ] - }, - { - "type": "string", - "enum": [ - "sap" - ] - }, - { - "type": "string", - "enum": [ - "protel" - ] - }, - { - "type": "string", - "enum": [ - "oracle" - ] - }, - { - "type": "string", - "enum": [ - "netsuite" - ] - }, - { - "type": "string", - "enum": [ - "mailchimp" - ] - }, - { - "type": "string", - "enum": [ - "klaviyo" - ] - }, - { - "type": "string", - "enum": [ - "sendgrid" - ] - }, - { - "type": "string", - "enum": [ - "webhook" - ] - }, - { - "type": "string", - "enum": [ - "zapier" - ] - }, - { - "type": "string", - "enum": [ - "custom" - ] - } - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "vendorId": { - "type": "string", - "description": "ID from table \"vendors\"" - } - } - } - } - }, - "Response_vendors.mutations.updateVendor": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_vendors.queries.approxCountVendors": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_vendors.queries.approxCountVendors": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "number" - } - } - }, - "Request_vendors.queries.listVendors": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_vendors.queries.listVendors": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_vendors.queries.listVendorsPaginated": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "paginationOpts" - ], - "properties": { - "locale": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "paginationOpts": { - "type": "object", - "required": [ - "cursor", - "numItems" - ], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "endCursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "maximumBytesRead": { - "type": "number" - }, - "maximumRowsRead": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } - }, - "source": { - "type": "string" - } - } - } - } - }, - "Response_vendors.queries.listVendorsPaginated": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_websites.actions.createWebsite": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "domain", - "organizationId", - "scanInterval" - ], - "properties": { - "description": { - "type": "string" - }, - "domain": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "scanInterval": { - "type": "string" - }, - "title": { - "type": "string" - } - } - } - } - }, - "Response_websites.actions.createWebsite": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "description": "ID from table \"websites\"" - } - } - }, - "Request_websites.actions.deleteWebsite": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "websiteId" - ], - "properties": { - "websiteId": { - "type": "string", - "description": "ID from table \"websites\"" - } - } - } - } - }, - "Response_websites.actions.deleteWebsite": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_websites.actions.updateWebsite": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "websiteId" - ], - "properties": { - "description": { - "type": "string" - }, - "domain": { - "type": "string" - }, - "scanInterval": { - "type": "string" - }, - "title": { - "type": "string" - }, - "websiteId": { - "type": "string", - "description": "ID from table \"websites\"" - } - } - } - } - }, - "Response_websites.actions.updateWebsite": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_websites.actions.syncStatuses": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_websites.actions.syncStatuses": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_websites.actions.fetchPages": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "websiteId" - ], - "properties": { - "limit": { - "type": "number" - }, - "offset": { - "type": "number" - }, - "websiteId": { - "type": "string", - "description": "ID from table \"websites\"" - } - } - } - } - }, - "Response_websites.actions.fetchPages": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "hasMore", - "offset", - "pages", - "total" - ], - "properties": { - "hasMore": { - "type": "boolean" - }, - "offset": { - "type": "number" - }, - "pages": { - "type": "array", - "items": { - "type": "object", - "required": [ - "chunks_count", - "content_hash", - "discovered_at", - "indexed", - "last_crawled_at", - "status", - "title", - "url", - "word_count" - ], - "properties": { - "chunks_count": { - "type": "number" - }, - "content_hash": { - "type": "string", - "nullable": true - }, - "discovered_at": { - "type": "string", - "nullable": true - }, - "indexed": { - "type": "boolean" - }, - "last_crawled_at": { - "type": "string", - "nullable": true - }, - "status": { - "type": "string" - }, - "title": { - "type": "string", - "nullable": true - }, - "url": { - "type": "string" - }, - "word_count": { - "type": "number" - } - } - } - }, - "total": { - "type": "number" - } - } - } - } - }, - "Request_websites.actions.fetchChunks": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "url", - "websiteId" - ], - "properties": { - "url": { - "type": "string" - }, - "websiteId": { - "type": "string", - "description": "ID from table \"websites\"" - } - } - } - } - }, - "Response_websites.actions.fetchChunks": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_websites.actions.searchContent": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "query", - "websiteId" - ], - "properties": { - "limit": { - "type": "number" - }, - "query": { - "type": "string" - }, - "websiteId": { - "type": "string", - "description": "ID from table \"websites\"" - } - } - } - } - }, - "Response_websites.actions.searchContent": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_websites.mutations.updateWebsite": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "websiteId" - ], - "properties": { - "description": { - "type": "string" - }, - "domain": { - "type": "string" - }, - "scanInterval": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "idle" - ] - }, - { - "type": "string", - "enum": [ - "scanning" - ] - }, - { - "type": "string", - "enum": [ - "active" - ] - }, - { - "type": "string", - "enum": [ - "error" - ] - }, - { - "type": "string", - "enum": [ - "deleting" - ] - } - ] - }, - "title": { - "type": "string" - }, - "websiteId": { - "type": "string", - "description": "ID from table \"websites\"" - } - } - } - } - }, - "Response_websites.mutations.updateWebsite": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_websites.queries.approxCountWebsites": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_websites.queries.approxCountWebsites": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "number" - } - } - }, - "Request_websites.queries.listWebsites": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_websites.queries.listWebsites": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "domain", - "organizationId", - "scanInterval" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "crawledPageCount": { - "type": "number" - }, - "description": { - "type": "string" - }, - "domain": { - "type": "string" - }, - "lastScannedAt": { - "type": "number" - }, - "metadata": {}, - "organizationId": { - "type": "string" - }, - "pageCount": { - "type": "number" - }, - "scanInterval": { - "type": "string" - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "idle" - ] - }, - { - "type": "string", - "enum": [ - "scanning" - ] - }, - { - "type": "string", - "enum": [ - "active" - ] - }, - { - "type": "string", - "enum": [ - "error" - ] - }, - { - "type": "string", - "enum": [ - "deleting" - ] - } - ] - }, - "title": { - "type": "string" - } - } - } - } - } - }, - "Request_websites.queries.listWebsitesPaginated": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "paginationOpts" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "paginationOpts": { - "type": "object", - "required": [ - "cursor", - "numItems" - ], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "endCursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "maximumBytesRead": { - "type": "number" - }, - "maximumRowsRead": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } - }, - "scanInterval": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - }, - "Response_websites.queries.listWebsitesPaginated": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_wf_executions.mutations.cancelExecution": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "executionId" - ], - "properties": { - "executionId": { - "type": "string", - "description": "ID from table \"wfExecutions\"" - } - } - } - } - }, - "Response_wf_executions.mutations.cancelExecution": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_wf_executions.queries.approxCountExecutions": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "wfDefinitionId" - ], - "properties": { - "wfDefinitionId": { - "type": "string" - } - } - } - } - }, - "Response_wf_executions.queries.approxCountExecutions": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "number" - } - } - }, - "Request_wf_executions.queries.getExecutionStatus": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "executionId" - ], - "properties": { - "executionId": { - "type": "string", - "description": "ID from table \"wfExecutions\"" - } - } - } - } - }, - "Response_wf_executions.queries.getExecutionStatus": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_wf_executions.queries.getExecutionStepJournal": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "executionId" - ], - "properties": { - "executionId": { - "type": "string", - "description": "ID from table \"wfExecutions\"" - } - } - } - } - }, - "Response_wf_executions.queries.getExecutionStepJournal": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_wf_executions.queries.getRawExecution": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "executionId" - ], - "properties": { - "executionId": { - "type": "string", - "description": "ID from table \"wfExecutions\"" - } - } - } - } - }, - "Response_wf_executions.queries.getRawExecution": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_wf_executions.queries.listExecutions": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "paginationOpts", - "wfDefinitionId" - ], - "properties": { - "dateFrom": { - "type": "string" - }, - "dateTo": { - "type": "string" - }, - "paginationOpts": { - "type": "object", - "required": [ - "cursor", - "numItems" - ], - "properties": { - "cursor": { - "type": "string", - "nullable": true - }, - "endCursor": { - "type": "string", - "nullable": true - }, - "id": { - "type": "number" - }, - "maximumBytesRead": { - "type": "number" - }, - "maximumRowsRead": { - "type": "number" - }, - "numItems": { - "type": "number" - } - } - }, - "status": { - "type": "array", - "items": { - "type": "string" - } - }, - "triggeredBy": { - "type": "string" - }, - "wfDefinitionId": { - "type": "string" - } - } - } - } - }, - "Response_wf_executions.queries.listExecutions": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_wf_executions.queries.listExecutionsCursor": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "wfDefinitionId" - ], - "properties": { - "cursor": { - "type": "string" - }, - "dateFrom": { - "type": "string" - }, - "dateTo": { - "type": "string" - }, - "numItems": { - "type": "number" - }, - "searchTerm": { - "type": "string" - }, - "status": { - "type": "array", - "items": { - "type": "string" - } - }, - "triggeredBy": { - "type": "string" - }, - "wfDefinitionId": { - "type": "string" - } - } - } - } - }, - "Response_wf_executions.queries.listExecutionsCursor": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_workflows.triggers.actions.generateCronExpression": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "naturalLanguage" - ], - "properties": { - "naturalLanguage": { - "type": "string" - } - } - } - } - }, - "Response_workflows.triggers.actions.generateCronExpression": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "cronExpression", - "description" - ], - "properties": { - "cronExpression": { - "type": "string" - }, - "description": { - "type": "string" - } - } - } - } - }, - "Request_wf_executions.actions.startWorkflowFromFile": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "triggeredBy", - "workflowSlug" - ], - "properties": { - "input": {}, - "organizationId": { - "type": "string" - }, - "triggerData": {}, - "triggeredBy": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_wf_executions.actions.startWorkflowFromFile": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "description": "ID from table \"wfExecutions\"", - "nullable": true - } - } - }, - "Request_workflows.file_actions.deleteWorkflow": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug", - "workflowSlug" - ], - "properties": { - "orgSlug": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.file_actions.deleteWorkflow": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_workflows.file_actions.duplicateWorkflow": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug", - "workflowSlug" - ], - "properties": { - "orgSlug": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.file_actions.duplicateWorkflow": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "newSlug" - ], - "properties": { - "newSlug": { - "type": "string" - } - } - } - } - }, - "Request_workflows.file_actions.getAvailableWorkflows": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_workflows.file_actions.getAvailableWorkflows": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "id", - "name" - ], - "properties": { - "description": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - } - } - } - }, - "Request_workflows.file_actions.installWorkflow": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug", - "workflowSlug" - ], - "properties": { - "orgSlug": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.file_actions.installWorkflow": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "hash" - ], - "properties": { - "hash": { - "type": "string" - } - } - } - } - }, - "Request_workflows.file_actions.listHistory": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug", - "workflowSlug" - ], - "properties": { - "orgSlug": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.file_actions.listHistory": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_workflows.file_actions.listWorkflows": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug" - ], - "properties": { - "filter": { - "oneOf": [ - { - "type": "string", - "enum": [ - "installed" - ] - }, - { - "type": "string", - "enum": [ - "templates" - ] - }, - { - "type": "string", - "enum": [ - "all" - ] - } - ] - }, - "orgSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.file_actions.listWorkflows": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_workflows.file_actions.readHistoryEntry": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug", - "timestamp", - "workflowSlug" - ], - "properties": { - "orgSlug": { - "type": "string" - }, - "timestamp": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.file_actions.readHistoryEntry": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_workflows.file_actions.renameWorkflow": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "newSlug", - "oldSlug", - "orgSlug" - ], - "properties": { - "newSlug": { - "type": "string" - }, - "oldSlug": { - "type": "string" - }, - "orgSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.file_actions.renameWorkflow": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_workflows.file_actions.restoreFromHistory": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug", - "timestamp", - "workflowSlug" - ], - "properties": { - "orgSlug": { - "type": "string" - }, - "timestamp": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.file_actions.restoreFromHistory": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "hash" - ], - "properties": { - "hash": { - "type": "string" - } - } - } - } - }, - "Request_workflows.file_actions.saveWorkflowWithSnapshot": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "config", - "orgSlug", - "workflowSlug" - ], - "properties": { - "config": {}, - "expectedHash": { - "type": "string" - }, - "orgSlug": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.file_actions.saveWorkflowWithSnapshot": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "hash" - ], - "properties": { - "hash": { - "type": "string" - } - } - } - } - }, - "Request_workflows.file_actions.readWorkflow": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug", - "workflowSlug" - ], - "properties": { - "orgSlug": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.file_actions.readWorkflow": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_workflows.triggers.slug_mutations.createScheduleBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "cronExpression", - "organizationId", - "timezone", - "workflowSlug" - ], - "properties": { - "cronExpression": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "timezone": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.triggers.slug_mutations.createScheduleBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "description": "ID from table \"wfSchedules\"" - } - } - }, - "Request_workflows.triggers.slug_mutations.toggleScheduleBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "isActive", - "scheduleId" - ], - "properties": { - "isActive": { - "type": "boolean" - }, - "scheduleId": { - "type": "string", - "description": "ID from table \"wfSchedules\"" - } - } - } - } - }, - "Response_workflows.triggers.slug_mutations.toggleScheduleBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_workflows.triggers.slug_mutations.updateScheduleBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "cronExpression", - "scheduleId", - "timezone" - ], - "properties": { - "cronExpression": { - "type": "string" - }, - "scheduleId": { - "type": "string", - "description": "ID from table \"wfSchedules\"" - }, - "timezone": { - "type": "string" - } - } - } - } - }, - "Response_workflows.triggers.slug_mutations.updateScheduleBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_workflows.triggers.slug_mutations.deleteScheduleBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "scheduleId" - ], - "properties": { - "scheduleId": { - "type": "string", - "description": "ID from table \"wfSchedules\"" - } - } - } - } - }, - "Response_workflows.triggers.slug_mutations.deleteScheduleBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_workflows.triggers.slug_mutations.createWebhookBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "workflowSlug" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.triggers.slug_mutations.createWebhookBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "token", - "webhookId" - ], - "properties": { - "token": { - "type": "string" - }, - "webhookId": { - "type": "string", - "description": "ID from table \"wfWebhooks\"" - } - } - } - } - }, - "Request_workflows.triggers.slug_mutations.toggleWebhookBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "isActive", - "webhookId" - ], - "properties": { - "isActive": { - "type": "boolean" - }, - "webhookId": { - "type": "string", - "description": "ID from table \"wfWebhooks\"" - } - } - } - } - }, - "Response_workflows.triggers.slug_mutations.toggleWebhookBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_workflows.triggers.slug_mutations.deleteWebhookBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "webhookId" - ], - "properties": { - "webhookId": { - "type": "string", - "description": "ID from table \"wfWebhooks\"" - } - } - } - } - }, - "Response_workflows.triggers.slug_mutations.deleteWebhookBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_workflows.triggers.slug_mutations.createEventSubscriptionBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "eventType", - "organizationId", - "workflowSlug" - ], - "properties": { - "eventFilter": { - "type": "object" - }, - "eventType": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.triggers.slug_mutations.createEventSubscriptionBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "description": "ID from table \"wfEventSubscriptions\"" - } - } - }, - "Request_workflows.triggers.slug_mutations.toggleEventSubscriptionBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "isActive", - "subscriptionId" - ], - "properties": { - "isActive": { - "type": "boolean" - }, - "subscriptionId": { - "type": "string", - "description": "ID from table \"wfEventSubscriptions\"" - } - } - } - } - }, - "Response_workflows.triggers.slug_mutations.toggleEventSubscriptionBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_workflows.triggers.slug_mutations.updateEventSubscriptionBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "subscriptionId" - ], - "properties": { - "eventFilter": { - "type": "object" - }, - "subscriptionId": { - "type": "string", - "description": "ID from table \"wfEventSubscriptions\"" - } - } - } - } - }, - "Response_workflows.triggers.slug_mutations.updateEventSubscriptionBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_workflows.triggers.slug_mutations.deleteEventSubscriptionBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "subscriptionId" - ], - "properties": { - "subscriptionId": { - "type": "string", - "description": "ID from table \"wfEventSubscriptions\"" - } - } - } - } - }, - "Response_workflows.triggers.slug_mutations.deleteEventSubscriptionBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_workflows.triggers.slug_queries.getSchedulesBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "workflowSlug" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.triggers.slug_queries.getSchedulesBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_workflows.triggers.slug_queries.getWebhooksBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "workflowSlug" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.triggers.slug_queries.getWebhooksBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_workflows.triggers.slug_queries.getEventSubscriptionsBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "workflowSlug" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.triggers.slug_queries.getEventSubscriptionsBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_workflows.triggers.slug_queries.getTriggerLogsBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "workflowSlug" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "workflowSlug": { - "type": "string" - } - } - } - } - }, - "Response_workflows.triggers.slug_queries.getTriggerLogsBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_integrations.credential_mutations.updateCredentials": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "credentialId" - ], - "properties": { - "apiKeyAuth": { - "type": "object", - "required": [ - "keyEncrypted" - ], - "properties": { - "keyEncrypted": { - "type": "string" - }, - "keyPrefix": { - "type": "string" - } - } - }, - "authMethod": { - "oneOf": [ - { - "type": "string", - "enum": [ - "api_key" - ] - }, - { - "type": "string", - "enum": [ - "bearer_token" - ] - }, - { - "type": "string", - "enum": [ - "basic_auth" - ] - }, - { - "type": "string", - "enum": [ - "oauth2" - ] - } - ] - }, - "basicAuth": { - "type": "object", - "required": [ - "passwordEncrypted", - "username" - ], - "properties": { - "passwordEncrypted": { - "type": "string" - }, - "username": { - "type": "string" - } - } - }, - "capabilities": { - "type": "object", - "properties": { - "canPush": { - "type": "boolean" - }, - "canSync": { - "type": "boolean" - }, - "canWebhook": { - "type": "boolean" - }, - "syncFrequency": { - "type": "string" - } - } - }, - "connectionConfig": {}, - "credentialId": { - "type": "string", - "description": "ID from table \"integrationCredentials\"" - }, - "errorMessage": { - "type": "string" - }, - "iconStorageId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "isActive": { - "type": "boolean" - }, - "lastErrorAt": { - "type": "number" - }, - "lastSuccessAt": { - "type": "number" - }, - "lastSyncedAt": { - "type": "number" - }, - "lastTestedAt": { - "type": "number" - }, - "metadata": {}, - "oauth2Auth": { - "type": "object", - "required": [ - "accessTokenEncrypted" - ], - "properties": { - "accessTokenEncrypted": { - "type": "string" - }, - "refreshTokenEncrypted": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "tokenExpiry": { - "type": "number" - } - } - }, - "oauth2Config": { - "type": "object", - "required": [ - "authorizationUrl", - "tokenUrl" - ], - "properties": { - "authorizationUrl": { - "type": "string" - }, - "clientId": { - "type": "string" - }, - "clientSecretEncrypted": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "tokenUrl": { - "type": "string" - } - } - }, - "sqlConnectionConfig": { - "type": "object", - "required": [ - "engine" - ], - "properties": { - "database": { - "type": "string" - }, - "engine": { - "oneOf": [ - { - "type": "string", - "enum": [ - "mssql" - ] - }, - { - "type": "string", - "enum": [ - "postgres" - ] - }, - { - "type": "string", - "enum": [ - "mysql" - ] - } - ] - }, - "options": { - "type": "object", - "properties": { - "connectionTimeout": { - "type": "number" - }, - "encrypt": { - "type": "boolean" - }, - "requestTimeout": { - "type": "number" - }, - "trustServerCertificate": { - "type": "boolean" - } - } - }, - "port": { - "type": "number" - }, - "readOnly": { - "type": "boolean" - }, - "security": { - "type": "object", - "properties": { - "maxConnectionPoolSize": { - "type": "number" - }, - "maxResultRows": { - "type": "number" - }, - "queryTimeoutMs": { - "type": "number" - } - } - }, - "server": { - "type": "string" - } - } - }, - "status": { - "oneOf": [ - { - "type": "string", - "enum": [ - "active" - ] - }, - { - "type": "string", - "enum": [ - "inactive" - ] - }, - { - "type": "string", - "enum": [ - "error" - ] - }, - { - "type": "string", - "enum": [ - "testing" - ] - } - ] - }, - "supportedAuthMethods": { - "type": "array", - "items": { - "oneOf": [ - { - "type": "string", - "enum": [ - "api_key" - ] - }, - { - "type": "string", - "enum": [ - "bearer_token" - ] - }, - { - "type": "string", - "enum": [ - "basic_auth" - ] - }, - { - "type": "string", - "enum": [ - "oauth2" - ] - } - ] - } - } - } - } - } - }, - "Response_integrations.credential_mutations.updateCredentials": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_integrations.credential_mutations.deleteCredentials": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "credentialId" - ], - "properties": { - "credentialId": { - "type": "string", - "description": "ID from table \"integrationCredentials\"" - } - } - } - } - }, - "Response_integrations.credential_mutations.deleteCredentials": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_integrations.credential_queries.getBySlug": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "slug" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "slug": { - "type": "string" - } - } - } - } - }, - "Response_integrations.credential_queries.getBySlug": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_integrations.credential_queries.list": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_integrations.credential_queries.list": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_integrations.file_actions.installIntegration": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug", - "organizationId", - "slug" - ], - "properties": { - "orgSlug": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "slug": { - "type": "string" - } - } - } - } - }, - "Response_integrations.file_actions.installIntegration": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "credentialId", - "hash" - ], - "properties": { - "credentialId": { - "type": "string", - "description": "ID from table \"integrationCredentials\"" - }, - "hash": { - "type": "string" - } - } - } - } - }, - "Request_integrations.file_actions.listIntegrations": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug" - ], - "properties": { - "filter": { - "oneOf": [ - { - "type": "string", - "enum": [ - "installed" - ] - }, - { - "type": "string", - "enum": [ - "templates" - ] - }, - { - "type": "string", - "enum": [ - "all" - ] - } - ] - }, - "orgSlug": { - "type": "string" - } - } - } - } - }, - "Response_integrations.file_actions.listIntegrations": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_integrations.file_actions.saveIntegrationConfig": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "config", - "orgSlug", - "slug" - ], - "properties": { - "config": {}, - "expectedHash": { - "type": "string" - }, - "orgSlug": { - "type": "string" - }, - "slug": { - "type": "string" - } - } - } - } - }, - "Response_integrations.file_actions.saveIntegrationConfig": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "hash" - ], - "properties": { - "hash": { - "type": "string" - } - } - } - } - }, - "Request_integrations.file_actions.uninstallIntegration": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug", - "slug" - ], - "properties": { - "orgSlug": { - "type": "string" - }, - "slug": { - "type": "string" - } - } - } - } - }, - "Response_integrations.file_actions.uninstallIntegration": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "hash" - ], - "properties": { - "hash": { - "type": "string" - } - } - } - } - }, - "Request_integrations.file_actions.writeIntegrationFiles": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "config", - "orgSlug", - "slug" - ], - "properties": { - "config": {}, - "connectorCode": { - "type": "string" - }, - "orgSlug": { - "type": "string" - }, - "slug": { - "type": "string" - } - } - } - } - }, - "Response_integrations.file_actions.writeIntegrationFiles": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "hash" - ], - "properties": { - "hash": { - "type": "string" - } - } - } - } - }, - "Request_integrations.file_actions.readIntegration": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug", - "slug" - ], - "properties": { - "orgSlug": { - "type": "string" - }, - "slug": { - "type": "string" - } - } - } - } - }, - "Response_integrations.file_actions.readIntegration": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_branding.file_actions.deleteImage": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string" - } - } - } - } - }, - "Response_branding.file_actions.deleteImage": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_branding.file_actions.resetBranding": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_branding.file_actions.resetBranding": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_branding.file_actions.saveBranding": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "config" - ], - "properties": { - "config": { - "type": "object", - "properties": { - "accentColor": { - "type": "string" - }, - "appName": { - "type": "string" - }, - "brandColor": { - "type": "string" - }, - "faviconDarkFilename": { - "type": "string" - }, - "faviconLightFilename": { - "type": "string" - }, - "logoFilename": { - "type": "string" - }, - "textLogo": { - "type": "string" - } - } - } - } - } - } - }, - "Response_branding.file_actions.saveBranding": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "hash" - ], - "properties": { - "hash": { - "type": "string" - } - } - } - } - }, - "Request_branding.file_actions.saveImage": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "base64", - "mimeType", - "type" - ], - "properties": { - "base64": { - "type": "string" - }, - "mimeType": { - "type": "string" - }, - "type": { - "type": "string" - } - } - } - } - }, - "Response_branding.file_actions.saveImage": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "filename" - ], - "properties": { - "filename": { - "type": "string" - } - } - } - } - }, - "Request_branding.file_actions.snapshotToHistory": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_branding.file_actions.snapshotToHistory": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "timestamp" - ], - "properties": { - "timestamp": { - "type": "string" - } - }, - "nullable": true - } - } - }, - "Request_branding.file_actions.readBranding": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object" - } - } - }, - "Response_branding.file_actions.readBranding": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "faviconDarkUrl", - "faviconLightUrl", - "hash", - "logoUrl" - ], - "properties": { - "accentColor": { - "type": "string" - }, - "appName": { - "type": "string" - }, - "brandColor": { - "type": "string" - }, - "faviconDarkFilename": { - "type": "string" - }, - "faviconDarkUrl": { - "type": "string", - "nullable": true - }, - "faviconLightFilename": { - "type": "string" - }, - "faviconLightUrl": { - "type": "string", - "nullable": true - }, - "hash": { - "type": "string" - }, - "logoFilename": { - "type": "string" - }, - "logoUrl": { - "type": "string", - "nullable": true - }, - "textLogo": { - "type": "string" - } - } - } - } - }, - "Request_providers.file_actions.deleteProvider": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug", - "providerName" - ], - "properties": { - "orgSlug": { - "type": "string" - }, - "providerName": { - "type": "string" - } - } - } - } - }, - "Response_providers.file_actions.deleteProvider": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_providers.file_actions.getAllProviderConfigs": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug" - ], - "properties": { - "orgSlug": { - "type": "string" - } - } - } - } - }, - "Response_providers.file_actions.getAllProviderConfigs": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_providers.file_actions.hasProviderSecret": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug", - "providerName" - ], - "properties": { - "orgSlug": { - "type": "string" - }, - "providerName": { - "type": "string" - } - } - } - } - }, - "Response_providers.file_actions.hasProviderSecret": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_providers.file_actions.listProviders": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug" - ], - "properties": { - "orgSlug": { - "type": "string" - } - } - } - } - }, - "Response_providers.file_actions.listProviders": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_providers.file_actions.saveProvider": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "config", - "orgSlug", - "providerName" - ], - "properties": { - "config": {}, - "orgSlug": { - "type": "string" - }, - "providerName": { - "type": "string" - } - } - } - } - }, - "Response_providers.file_actions.saveProvider": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "hash" - ], - "properties": { - "hash": { - "type": "string" - } - } - } - } - }, - "Request_providers.file_actions.saveProviderSecret": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "apiKey", - "orgSlug", - "providerName" - ], - "properties": { - "apiKey": { - "type": "string" - }, - "orgSlug": { - "type": "string" - }, - "providerName": { - "type": "string" - } - } - } - } - }, - "Response_providers.file_actions.saveProviderSecret": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_providers.file_actions.readProvider": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "orgSlug", - "providerName" - ], - "properties": { - "orgSlug": { - "type": "string" - }, - "providerName": { - "type": "string" - } - } - } - } - }, - "Response_providers.file_actions.readProvider": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_agent_tools.human_input.actions.submitHumanInputResponse": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "approvalId", - "response" - ], - "properties": { - "approvalId": { - "type": "string", - "description": "ID from table \"approvals\"" - }, - "modelId": { - "type": "string" - }, - "response": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - } - ] - } - } - } - } - }, - "Response_agent_tools.human_input.actions.submitHumanInputResponse": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "success" - ], - "properties": { - "streamId": { - "type": "string" - }, - "success": { - "type": "boolean" - }, - "threadId": { - "type": "string" - } - } - } - } - }, - "Request_agent_tools.location.actions.submitLocationResponse": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "approvalId" - ], - "properties": { - "approvalId": { - "type": "string", - "description": "ID from table \"approvals\"" - }, - "denied": { - "type": "boolean" - }, - "location": { - "type": "string" - }, - "modelId": { - "type": "string" - } - } - } - } - }, - "Response_agent_tools.location.actions.submitLocationResponse": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "success" - ], - "properties": { - "streamId": { - "type": "string" - }, - "success": { - "type": "boolean" - }, - "threadId": { - "type": "string" - } - } - } - } - }, - "Request_agents.arena_chat.arenaChat": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "agentSlug", - "message", - "modelIdA", - "modelIdB", - "orgSlug", - "organizationId", - "threadIdA", - "threadIdB" - ], - "properties": { - "agentSlug": { - "type": "string" - }, - "attachments": { - "type": "array", - "items": { - "type": "object", - "required": [ - "fileId", - "fileName", - "fileSize", - "fileType" - ], - "properties": { - "fileId": { - "type": "string", - "description": "ID from table \"_storage\"" - }, - "fileName": { - "type": "string" - }, - "fileSize": { - "type": "number" - }, - "fileType": { - "type": "string" - } - } - } - }, - "message": { - "type": "string" - }, - "modelIdA": { - "type": "string" - }, - "modelIdB": { - "type": "string" - }, - "orgSlug": { - "type": "string" - }, - "organizationId": { - "type": "string" - }, - "threadIdA": { - "type": "string" - }, - "threadIdB": { - "type": "string" - }, - "userContext": { - "type": "object", - "required": [ - "language", - "timezone" - ], - "properties": { - "language": { - "type": "string" - }, - "timezone": { - "type": "string" - } - } - } - } - } - } - }, - "Response_agents.arena_chat.arenaChat": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "streamIdA", - "streamIdB" - ], - "properties": { - "streamIdA": { - "type": "string" - }, - "streamIdB": { - "type": "string" - } - } - } - } - }, - "Request_documents.compare_documents.compareDocuments": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "baseFileName", - "baseStorageId", - "comparisonFileName", - "comparisonStorageId", - "organizationId" - ], - "properties": { - "baseFileName": { - "type": "string" - }, - "baseStorageId": { - "type": "string" - }, - "comparisonFileName": { - "type": "string" - }, - "comparisonStorageId": { - "type": "string" - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_documents.compare_documents.compareDocuments": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_feedback.mutations.submitFeedback": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "messageId", - "organizationId", - "rating", - "threadId" - ], - "properties": { - "comment": { - "type": "string" - }, - "messageId": { - "type": "string" - }, - "metadata": { - "type": "object", - "properties": { - "arenaVerdict": { - "type": "string" - }, - "modelA": { - "type": "string" - }, - "modelB": { - "type": "string" - } - } - }, - "organizationId": { - "type": "string" - }, - "rating": { - "oneOf": [ - { - "type": "string", - "enum": [ - "positive" - ] - }, - { - "type": "string", - "enum": [ - "negative" - ] - } - ] - }, - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_feedback.mutations.submitFeedback": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "description": "ID from table \"messageFeedback\"" - } - } - }, - "Request_feedback.mutations.deleteFeedback": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "messageId", - "organizationId" - ], - "properties": { - "messageId": { - "type": "string" - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_feedback.mutations.deleteFeedback": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_feedback.queries.getMessageFeedback": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "messageId" - ], - "properties": { - "messageId": { - "type": "string" - } - } - } - } - }, - "Response_feedback.queries.getMessageFeedback": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_feedback.queries.getFeedbackStats": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_feedback.queries.getFeedbackStats": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_governance.mutations.upsertPolicy": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "config", - "organizationId", - "policyType" - ], - "properties": { - "config": {}, - "organizationId": { - "type": "string" - }, - "policyType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "system_prompt" - ] - }, - { - "type": "string", - "enum": [ - "budgets" - ] - }, - { - "type": "string", - "enum": [ - "upload_policy" - ] - }, - { - "type": "string", - "enum": [ - "retention_policy" - ] - }, - { - "type": "string", - "enum": [ - "feature_flags" - ] - }, - { - "type": "string", - "enum": [ - "pii_config" - ] - }, - { - "type": "string", - "enum": [ - "default_models" - ] - } - ] - } - } - } - } - }, - "Response_governance.mutations.upsertPolicy": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "description": "ID from table \"governancePolicies\"" - } - } - }, - "Request_governance.mutations.upsertPiiConfig": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "enabled", - "enabledPatterns", - "mode", - "organizationId" - ], - "properties": { - "customPatterns": { - "type": "array", - "items": { - "type": "object", - "required": [ - "name", - "regex", - "replacement" - ], - "properties": { - "name": { - "type": "string" - }, - "regex": { - "type": "string" - }, - "replacement": { - "type": "string" - } - } - } - }, - "enabled": { - "type": "boolean" - }, - "enabledPatterns": { - "type": "array", - "items": { - "type": "string" - } - }, - "mode": { - "oneOf": [ - { - "type": "string", - "enum": [ - "mask" - ] - }, - { - "type": "string", - "enum": [ - "block" - ] - } - ] - }, - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_governance.mutations.upsertPiiConfig": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "description": "ID from table \"governancePolicies\"" - } - } - }, - "Request_governance.queries.getPolicy": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId", - "policyType" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "policyType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "system_prompt" - ] - }, - { - "type": "string", - "enum": [ - "budgets" - ] - }, - { - "type": "string", - "enum": [ - "upload_policy" - ] - }, - { - "type": "string", - "enum": [ - "retention_policy" - ] - }, - { - "type": "string", - "enum": [ - "feature_flags" - ] - }, - { - "type": "string", - "enum": [ - "pii_config" - ] - }, - { - "type": "string", - "enum": [ - "default_models" - ] - } - ] - } - } - } - } - }, - "Response_governance.queries.getPolicy": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_governance.queries.listPolicies": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - } - } - } - } - }, - "Response_governance.queries.listPolicies": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_governance.queries.getUsageSummary": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "periodKey": { - "type": "string" - } - } - } - } - }, - "Response_governance.queries.getUsageSummary": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_mcp_servers.actions.executeMcpTool": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "serverId", - "toolName" - ], - "properties": { - "serverId": { - "type": "string", - "description": "ID from table \"mcpServers\"" - }, - "toolArgs": {}, - "toolName": { - "type": "string" - } - } - } - } - }, - "Response_mcp_servers.actions.executeMcpTool": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_mcp_servers.actions.testConnection": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "id" - ], - "properties": { - "id": { - "type": "string", - "description": "ID from table \"mcpServers\"" - } - } - } - } - }, - "Response_mcp_servers.actions.testConnection": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_prompts.mutations.createPrompt": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "content", - "organizationId", - "scope", - "title" - ], - "properties": { - "category": { - "type": "string" - }, - "content": { - "type": "string" - }, - "description": { - "type": "string" - }, - "isPublished": { - "type": "boolean" - }, - "organizationId": { - "type": "string" - }, - "scope": { - "oneOf": [ - { - "type": "string", - "enum": [ - "global" - ] - }, - { - "type": "string", - "enum": [ - "team" - ] - }, - { - "type": "string", - "enum": [ - "personal" - ] - } - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "teamId": { - "type": "string" - }, - "title": { - "type": "string" - } - } - } - } - }, - "Response_prompts.mutations.createPrompt": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "content", - "createdBy", - "isPublished", - "organizationId", - "scope", - "title", - "usageCount" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "category": { - "type": "string" - }, - "content": { - "type": "string" - }, - "createdBy": { - "type": "string" - }, - "description": { - "type": "string" - }, - "isPublished": { - "type": "boolean" - }, - "organizationId": { - "type": "string" - }, - "scope": { - "oneOf": [ - { - "type": "string", - "enum": [ - "global" - ] - }, - { - "type": "string", - "enum": [ - "team" - ] - }, - { - "type": "string", - "enum": [ - "personal" - ] - } - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "teamId": { - "type": "string" - }, - "title": { - "type": "string" - }, - "usageCount": { - "type": "number" - } - } - } - } - }, - "Request_prompts.mutations.deletePrompt": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "promptId" - ], - "properties": { - "promptId": { - "type": "string", - "description": "ID from table \"promptTemplates\"" - } - } - } - } - }, - "Response_prompts.mutations.deletePrompt": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_prompts.mutations.incrementUsage": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "promptId" - ], - "properties": { - "promptId": { - "type": "string", - "description": "ID from table \"promptTemplates\"" - } - } - } - } - }, - "Response_prompts.mutations.incrementUsage": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string", - "nullable": true - } - } - }, - "Request_prompts.mutations.updatePrompt": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "promptId" - ], - "properties": { - "category": { - "type": "string" - }, - "content": { - "type": "string" - }, - "description": { - "type": "string" - }, - "isPublished": { - "type": "boolean" - }, - "promptId": { - "type": "string", - "description": "ID from table \"promptTemplates\"" - }, - "scope": { - "oneOf": [ - { - "type": "string", - "enum": [ - "global" - ] - }, - { - "type": "string", - "enum": [ - "team" - ] - }, - { - "type": "string", - "enum": [ - "personal" - ] - } - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "teamId": { - "type": "string" - }, - "title": { - "type": "string" - } - } - } - } - }, - "Response_prompts.mutations.updatePrompt": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "content", - "createdBy", - "isPublished", - "organizationId", - "scope", - "title", - "usageCount" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "category": { - "type": "string" - }, - "content": { - "type": "string" - }, - "createdBy": { - "type": "string" - }, - "description": { - "type": "string" - }, - "isPublished": { - "type": "boolean" - }, - "organizationId": { - "type": "string" - }, - "scope": { - "oneOf": [ - { - "type": "string", - "enum": [ - "global" - ] - }, - { - "type": "string", - "enum": [ - "team" - ] - }, - { - "type": "string", - "enum": [ - "personal" - ] - } - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "teamId": { - "type": "string" - }, - "title": { - "type": "string" - }, - "usageCount": { - "type": "number" - } - }, - "nullable": true - } - } - }, - "Request_prompts.queries.getPrompt": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "promptId" - ], - "properties": { - "promptId": { - "type": "string", - "description": "ID from table \"promptTemplates\"" - } - } - } - } - }, - "Response_prompts.queries.getPrompt": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "content", - "createdBy", - "isPublished", - "organizationId", - "scope", - "title", - "usageCount" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "category": { - "type": "string" - }, - "content": { - "type": "string" - }, - "createdBy": { - "type": "string" - }, - "description": { - "type": "string" - }, - "isPublished": { - "type": "boolean" - }, - "organizationId": { - "type": "string" - }, - "scope": { - "oneOf": [ - { - "type": "string", - "enum": [ - "global" - ] - }, - { - "type": "string", - "enum": [ - "team" - ] - }, - { - "type": "string", - "enum": [ - "personal" - ] - } - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "teamId": { - "type": "string" - }, - "title": { - "type": "string" - }, - "usageCount": { - "type": "number" - } - }, - "nullable": true - } - } - }, - "Request_prompts.queries.listPrompts": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "organizationId" - ], - "properties": { - "organizationId": { - "type": "string" - }, - "scope": { - "oneOf": [ - { - "type": "string", - "enum": [ - "global" - ] - }, - { - "type": "string", - "enum": [ - "team" - ] - }, - { - "type": "string", - "enum": [ - "personal" - ] - } - ] - } - } - } - } - }, - "Response_prompts.queries.listPrompts": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "array", - "items": { - "type": "object", - "required": [ - "_creationTime", - "_id", - "content", - "createdBy", - "isPublished", - "organizationId", - "scope", - "title", - "usageCount" - ], - "properties": { - "_creationTime": { - "type": "number" - }, - "_id": { - "type": "string" - }, - "category": { - "type": "string" - }, - "content": { - "type": "string" - }, - "createdBy": { - "type": "string" - }, - "description": { - "type": "string" - }, - "isPublished": { - "type": "boolean" - }, - "organizationId": { - "type": "string" - }, - "scope": { - "oneOf": [ - { - "type": "string", - "enum": [ - "global" - ] - }, - { - "type": "string", - "enum": [ - "team" - ] - }, - { - "type": "string", - "enum": [ - "personal" - ] - } - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "teamId": { - "type": "string" - }, - "title": { - "type": "string" - }, - "usageCount": { - "type": "number" - } - } - } - } - } - }, - "Request_threads.fork_thread.forkThread": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "shareToken" - ], - "properties": { - "shareToken": { - "type": "string" - } - } - } - } - }, - "Response_threads.fork_thread.forkThread": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string" - } - } - }, - "Request_threads.get_shared_thread.getSharedThread": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "shareToken" - ], - "properties": { - "shareToken": { - "type": "string" - } - } - } - } - }, - "Response_threads.get_shared_thread.getSharedThread": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": {} - } - }, - "Request_threads.share_thread.shareThread": { - "type": "object", - "required": [ - "args" - ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "threadId": { - "type": "string" - } - } - } - } - }, - "Response_threads.share_thread.shareThread": { - "type": "object", - "required": [ - "status" + "OpenAI Compatible" ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" - }, - "value": { - "type": "string" + "summary": "List models", + "description": "List available agents as OpenAI-compatible models. Only agents with `visibleInChat: true` are returned.", + "operationId": "listModels", + "security": [ + { + "bearerAuth": [] } - } - }, - "Request_threads.share_thread.unshareThread": { - "type": "object", - "required": [ - "args" ], - "properties": { - "args": { - "type": "object", - "required": [ - "threadId" - ], - "properties": { - "threadId": { - "type": "string" - } - } + "parameters": [ + { + "name": "X-Organization-Slug", + "in": "header", + "required": false, + "schema": { + "type": "string" + }, + "description": "Organization slug." } - } - }, - "Response_threads.share_thread.unshareThread": { - "type": "object", - "required": [ - "status" ], - "properties": { - "status": { - "type": "string", - "enum": [ - "success", - "error" - ] - }, - "errorMessage": { - "type": "string" - }, - "errorData": { - "type": "object" + "responses": { + "200": { + "description": "List of models", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModelList" + } + } + } }, - "value": { - "type": "string", - "nullable": true + "401": { + "description": "Invalid or missing API key" } } - }, - "FailedResponse": { - "type": "object", - "properties": {} - }, + } + } + }, + "components": { + "securitySchemes": { + "bearerAuth": { + "type": "http", + "scheme": "bearer", + "description": "API key as Bearer token (e.g., \"Bearer tale_...\"). Create keys in Settings > API Keys." + } + }, + "schemas": { "ChatCompletionRequest": { "type": "object", "required": [ @@ -35056,6 +264,98 @@ } } }, + "ChatCompletionResponse": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "chatcmpl-abc123" + }, + "object": { + "type": "string", + "enum": [ + "chat.completion" + ] + }, + "created": { + "type": "integer" + }, + "model": { + "type": "string" + }, + "choices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "index": { + "type": "integer" + }, + "message": { + "$ref": "#/components/schemas/ChatMessage" + }, + "finish_reason": { + "type": "string", + "enum": [ + "stop", + "length", + "tool_calls" + ] + } + } + } + }, + "usage": { + "type": "object", + "properties": { + "prompt_tokens": { + "type": "integer" + }, + "completion_tokens": { + "type": "integer" + }, + "total_tokens": { + "type": "integer" + } + } + } + } + }, + "ModelList": { + "type": "object", + "properties": { + "object": { + "type": "string", + "enum": [ + "list" + ] + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "chat-agent" + }, + "object": { + "type": "string", + "enum": [ + "model" + ] + }, + "created": { + "type": "integer" + }, + "owned_by": { + "type": "string" + } + } + } + } + } + }, "ChatMessage": { "type": "object", "required": [ @@ -35153,99 +453,13 @@ } } } - }, - "ChatCompletionResponse": { - "type": "object", - "properties": { - "id": { - "type": "string", - "example": "chatcmpl-abc123" - }, - "object": { - "type": "string", - "enum": [ - "chat.completion" - ] - }, - "created": { - "type": "integer" - }, - "model": { - "type": "string" - }, - "choices": { - "type": "array", - "items": { - "type": "object", - "properties": { - "index": { - "type": "integer" - }, - "message": { - "$ref": "#/components/schemas/ChatMessage" - }, - "finish_reason": { - "type": "string", - "enum": [ - "stop", - "length", - "tool_calls" - ] - } - } - } - }, - "usage": { - "type": "object", - "properties": { - "prompt_tokens": { - "type": "integer" - }, - "completion_tokens": { - "type": "integer" - }, - "total_tokens": { - "type": "integer" - } - } - } - } - }, - "ModelList": { - "type": "object", - "properties": { - "object": { - "type": "string", - "enum": [ - "list" - ] - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string", - "example": "chat-agent" - }, - "object": { - "type": "string", - "enum": [ - "model" - ] - }, - "created": { - "type": "integer" - }, - "owned_by": { - "type": "string" - } - } - } - } - } } } - } + }, + "tags": [ + { + "name": "OpenAI Compatible", + "description": "OpenAI Chat Completions compatible API. Use any OpenAI SDK by pointing base_url to this server." + } + ] } \ No newline at end of file diff --git a/services/platform/scripts/generate-openapi.ts b/services/platform/scripts/generate-openapi.ts index 3b155d95f..dd84fc300 100644 --- a/services/platform/scripts/generate-openapi.ts +++ b/services/platform/scripts/generate-openapi.ts @@ -448,11 +448,116 @@ All endpoints accept POST requests with JSON body containing an \`args\` object: mkdirSync(outputDir, { recursive: true }); } - writeFileSync(outputPath, JSON.stringify(spec, null, 2), 'utf-8'); + // Output only the public-facing spec (curated endpoints for external use) + const publicSpec = generatePublicSpec(spec); + writeFileSync(outputPath, JSON.stringify(publicSpec, null, 2), 'utf-8'); rmSync(tempYamlPath, { force: true }); console.log(`OpenAPI spec written to ${outputPath}`); } +/** + * Generate a lightweight public-facing OpenAPI spec for the Swagger UI. + * + * Only includes curated endpoints that external integrators need: + * - OpenAI-compatible chat completions + * - Model listing + * + * The full spec (openapi.json) is still available for internal use. + */ +function generatePublicSpec(fullSpec: OpenApiSpec): OpenApiSpec { + const publicPaths: Record = {}; + + // Pick only /api/v1/* paths (public API) + for (const [path, def] of Object.entries(fullSpec.paths)) { + if (path.startsWith('/api/v1/')) { + publicPaths[path] = def; + } + } + + // Collect referenced schemas + const referencedSchemas = new Set(); + const json = JSON.stringify(publicPaths); + const refPattern = /#\/components\/schemas\/([^"]+)/g; + let match; + while ((match = refPattern.exec(json)) !== null) { + referencedSchemas.add(match[1]); + } + + // Recursively resolve nested schema refs + let prevSize = 0; + while (referencedSchemas.size !== prevSize) { + prevSize = referencedSchemas.size; + for (const name of [...referencedSchemas]) { + const schema = fullSpec.components.schemas[name]; + if (!schema) continue; + const schemaJson = JSON.stringify(schema); + let nested; + while ((nested = refPattern.exec(schemaJson)) !== null) { + referencedSchemas.add(nested[1]); + } + } + } + + const publicSchemas: Record = {}; + for (const name of referencedSchemas) { + if (fullSpec.components.schemas[name]) { + publicSchemas[name] = fullSpec.components.schemas[name]; + } + } + + return { + openapi: fullSpec.openapi, + info: { + title: 'Tale Public API', + version: '1.0.0', + description: ` +Tale Public API — OpenAI-compatible Chat Completions interface. + +## Authentication + +Use a Bearer token with your API key: + +\`\`\` +Authorization: Bearer tale_... +\`\`\` + +Create API keys in **Settings > API Keys**. + +## Quick start + +\`\`\`python +from openai import OpenAI + +client = OpenAI( + base_url="https://your-instance.com/api/v1", + api_key="tale_...", + default_headers={"X-Organization-Slug": "default"}, +) + +response = client.chat.completions.create( + model="chat-agent", + messages=[{"role": "user", "content": "Hello!"}], +) +\`\`\` +`.trim(), + }, + servers: fullSpec.servers, + security: [{ bearerAuth: [] }], + paths: publicPaths, + components: { + securitySchemes: { + bearerAuth: fullSpec.components.securitySchemes?.bearerAuth ?? { + type: 'http', + scheme: 'bearer', + description: 'API key as Bearer token.', + }, + }, + schemas: publicSchemas, + }, + tags: (fullSpec.tags ?? []).filter((t) => t.name === 'OpenAI Compatible'), + }; +} + main(); From 5303da22809a73b00924622fc6fd38e062485fae Mon Sep 17 00:00:00 2001 From: larryro <371767072@qq.com> Date: Thu, 9 Apr 2026 19:58:56 +0800 Subject: [PATCH 7/9] fix(platform): fix swagger UI page scroll on /docs route The #root div had overflow:clip which prevented scrolling on the standalone docs page. Override overflow and height for html, body, and #root when the swagger-ui-standalone class is present. --- services/platform/app/routes/docs.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/platform/app/routes/docs.tsx b/services/platform/app/routes/docs.tsx index b9130a172..8fbbcc043 100644 --- a/services/platform/app/routes/docs.tsx +++ b/services/platform/app/routes/docs.tsx @@ -64,6 +64,13 @@ function ApiDocsPage() {