import type { ApplyGlobalResponse } from 'hono/client'; import type { JwtVariables } from 'hono/jwt'; type FinanceCurrency = "ruble" | "dollar" | "euro"; type FinanceTransactionType = "refund" | "income" | "expense" | "transfer"; declare const PERSONA_CHOICES: { readonly language: { readonly label: "Language"; readonly default: "auto"; readonly options: { readonly auto: "The language of the customer's latest message"; readonly ru: "Russian"; readonly en: "English"; }; }; readonly tone: { readonly label: "Tone"; readonly default: "professional"; readonly options: { readonly professional: "Professional: polite, clear and businesslike, with neutral warmth. No slang and no emoji."; readonly friendly: "Friendly: warm and conversational, like a helpful person who is glad to hear from them, in plain everyday words. An exclamation mark is fine. Use an emoji only if the customer has used one, and never more than one. Stay respectful."; readonly formal: "Formal: courteous and reserved, in complete, polished sentences that open with a courteous greeting. No exclamation marks anywhere, including the greeting. No slang and no emoji."; }; }; readonly detail: { readonly label: "Length"; readonly default: "brief"; readonly options: { readonly brief: "Brief: one or two sentences, about 35 words at most."; readonly balanced: "Balanced: three to five sentences: the answer plus one helpful detail or next step."; readonly detailed: "Detailed: two or three short paragraphs. Answer fully with every relevant fact from the conversation and the workspace-provided text, then suggest a next step. Never invent facts to fill the space."; }; }; }; type PersonaChoice = keyof typeof PERSONA_CHOICES; type PersonaChoiceOption = keyof (typeof PERSONA_CHOICES)[Field]["options"] & string; declare const PAYMENT_METHODS: { readonly cash: "cash"; readonly card: "card"; readonly bank_transfer: "bank transfer"; readonly online: "online payment"; readonly installments: "installments"; }; type PaymentMethod = keyof typeof PAYMENT_METHODS; type AiUnavailableReason = /** AI_ENABLED is not set: the master switch for the whole deployment. */ "service_disabled" | "no_subscription" | "subscription_not_active" /** An unpaid invoice is outstanding, which also blocks ordinary writes. */ | "payment_pending" | "plan_has_no_ai" | "allowance_exhausted" /** The workspace has AI switched off in its own settings. */ | "workspace_disabled"; type GrowthDirection = "positive" | "negative" | "none"; type Variables = JwtVariables; /** Shared error body for middleware / HTTPException responses (typed into AppType). */ export type ApiError = { success: false; error: string; code?: string; }; declare const routes: import("hono/hono-base").HonoBase<{ Variables: Variables; }, ({ "/swagger-ui": { $get: { input: {}; output: {}; outputFormat: string; status: import("hono/utils/http-status").StatusCode; }; }; } & { "/docs": { $get: { input: {}; output: {}; outputFormat: string; status: import("hono/utils/http-status").StatusCode; }; }; } & { "/health": { $get: { input: {}; output: { status: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/": { $get: { input: {}; output: { message: string; link: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; }) | import("hono/types").MergeSchemaPath<{ "/stream": { $get: { input: {}; output: {}; outputFormat: string; status: import("hono/utils/http-status").StatusCode; }; }; }, "/event"> | import("hono/types").MergeSchemaPath<{ "/vk": { $get: { input: {}; output: undefined; outputFormat: "redirect"; status: 302; }; }; } & { "/vk/callback": { $get: { input: {}; output: undefined; outputFormat: "redirect"; status: 302; } | { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 502; }; }; } & { "/google": { $get: { input: {}; output: undefined; outputFormat: "redirect"; status: 302; }; }; } & { "/google/callback": { $get: { input: {}; output: undefined; outputFormat: "redirect"; status: 302; } | { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 503; } | { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 403; }; }; } & { "/request-otp": { $post: { input: { json: { email: string; }; }; output: { success: boolean; expiresAt: any; }; outputFormat: "json"; status: 200 | 400; }; }; } & { "/verify-otp": { $post: { input: { json: { email: string; otp: string; keepSignIn?: boolean | undefined; }; }; output: { success: boolean; error: string | undefined; }; outputFormat: "json"; status: 200 | 400; } | { input: { json: { email: string; otp: string; keepSignIn?: boolean | undefined; }; }; output: { success: false; accessToken: null; refreshToken: null; }; outputFormat: "json"; status: 400; } | { input: { json: { email: string; otp: string; keepSignIn?: boolean | undefined; }; }; output: { success: true; accessToken: string; refreshToken: string; }; outputFormat: "json"; status: 200; }; }; } & { "/request-sms-otp": { $post: { input: { json: { dialCode: string; number: string; }; }; output: { success: boolean; expiresAt: any; }; outputFormat: "json"; status: 200 | 400; }; }; } & { "/verify-sms-otp": { $post: { input: { json: { dialCode: string; number: string; otp: string; keepSignIn?: boolean | undefined; }; }; output: { success: boolean; error: string | undefined; }; outputFormat: "json"; status: 200 | 400; } | { input: { json: { dialCode: string; number: string; otp: string; keepSignIn?: boolean | undefined; }; }; output: { success: false; accessToken: null; refreshToken: null; }; outputFormat: "json"; status: 400; } | { input: { json: { dialCode: string; number: string; otp: string; keepSignIn?: boolean | undefined; }; }; output: { success: true; accessToken: string; refreshToken: string; }; outputFormat: "json"; status: 200; }; }; } & { "/request-voice-otp": { $post: { input: { json: { dialCode: string; number: string; }; }; output: { success: boolean; expiresAt: any; }; outputFormat: "json"; status: 200 | 400; }; }; } & { "/verify-voice-otp": { $post: { input: { json: { dialCode: string; number: string; otp: string; keepSignIn?: boolean | undefined; }; }; output: { success: boolean; error: string | undefined; }; outputFormat: "json"; status: 200 | 400; } | { input: { json: { dialCode: string; number: string; otp: string; keepSignIn?: boolean | undefined; }; }; output: { success: false; accessToken: null; refreshToken: null; }; outputFormat: "json"; status: 400; } | { input: { json: { dialCode: string; number: string; otp: string; keepSignIn?: boolean | undefined; }; }; output: { success: true; accessToken: string; refreshToken: string; }; outputFormat: "json"; status: 200; }; }; } & { "/me": { $get: { input: {}; output: { success: true; user: { id: string; email: string | null; phone: string | null; emailVerified: boolean; phoneVerified: boolean; firstName: string | null; lastName: string | null; profilePicture: string | null; }; }; outputFormat: "json"; status: 200; }; }; } & { "/me": { $post: { input: { json: { firstName: string; lastName: string; }; }; output: { success: boolean; }; outputFormat: "json"; status: 200; }; }; } & { "/refresh": { $get: { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 401; } | { input: {}; output: { success: true; accessToken: string; }; outputFormat: "json"; status: 200; }; }; } & { "/logout": { $get: { input: {}; output: { success: boolean; message: string | false; }; outputFormat: "json"; status: 200 | 400; }; }; } & { "/logout-all": { $get: { input: {}; output: { success: boolean; message: false | "All tokens invalidated"; }; outputFormat: "json"; status: 200 | 400; }; }; }, "/auth"> | import("hono/types").MergeSchemaPath<{ "/plans": { $get: { input: {}; output: { success: true; plans: { id: string; code: string; name: string; kind: string; sortOrder: number; prices: { [x: string]: number; }; limits: { [x: string]: number; }; }[]; enterprise: { code: string; cta: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/plans/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; plans: { id: string; code: string; name: string; kind: string; sortOrder: number; prices: { [x: string]: number; }; limits: { [x: string]: number; }; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/admin/enterprise-plan": { $post: { input: { json: { workspace: string; email: string; code: string; name: string; monthlyAmountKopecks: number; yearlyAmountKopecks: number; limits: { metric: "tasks" | "comments" | "customers" | "services" | "storage_bytes"; limitValue: number; }[]; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 401; } | { input: { json: { workspace: string; email: string; code: string; name: string; monthlyAmountKopecks: number; yearlyAmountKopecks: number; limits: { metric: "tasks" | "comments" | "customers" | "services" | "storage_bytes"; limitValue: number; }[]; }; }; output: { success: true; plan: { id: string; created_at: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; name: string; active: boolean; code: string; sortOrder: number; kind: string; publiclyVisible: boolean; }; }; outputFormat: "json"; status: 201; } | { input: { json: { workspace: string; email: string; code: string; name: string; monthlyAmountKopecks: number; yearlyAmountKopecks: number; limits: { metric: "tasks" | "comments" | "customers" | "services" | "storage_bytes"; limitValue: number; }[]; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400 | 404; }; }; } & { "/admin/coupons": { $get: { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 401; } | { input: {}; output: { success: true; coupons: { id: string; code: string; discountType: string; fixedKopecks: number | null; percent: number | null; active: boolean; expiresAt: string | null; maxRedemptions: number | null; redemptionCount: number; planId: string | null; seats: number | null; interval: string | null; billingCycles: number | null; restrictedToUserId: string | null; createdAt: string; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/admin/coupons": { $post: { input: { json: { code: string; discountType: "fixed" | "percent"; fixedKopecks?: number | undefined; percent?: number | undefined; expiresAt?: string | number | undefined; maxRedemptions?: number | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 401; } | { input: { json: { code: string; discountType: "fixed" | "percent"; fixedKopecks?: number | undefined; percent?: number | undefined; expiresAt?: string | number | undefined; maxRedemptions?: number | undefined; }; }; output: { success: true; coupon: { expiresAt: string | null; id: string; created_at: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; active: boolean; code: string; discountType: string; redemptionCount: number; percent: number | null; fixedKopecks: number | null; maxRedemptions: number | null; planId: string | null; seats: number | null; interval: string | null; billingCycles: number | null; restrictedToUserId: string | null; createdBy: string; sourceInvoiceId: string | null; notifiedAt: string | null; }; }; outputFormat: "json"; status: 201; } | { input: { json: { code: string; discountType: "fixed" | "percent"; fixedKopecks?: number | undefined; percent?: number | undefined; expiresAt?: string | number | undefined; maxRedemptions?: number | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400 | 409; }; }; } & { "/admin/coupons/:couponId": { $patch: { input: { json: { active?: boolean | undefined; expiresAt?: string | number | null | undefined; maxRedemptions?: number | null | undefined; }; } & { param: { couponId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 401; } | { input: { json: { active?: boolean | undefined; expiresAt?: string | number | null | undefined; maxRedemptions?: number | null | undefined; }; } & { param: { couponId: string; }; }; output: { success: true; coupon: { updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; code: string; discountType: string; fixedKopecks: number | null; percent: number | null; active: boolean; expiresAt: string | null; maxRedemptions: number | null; redemptionCount: number; createdBy: string; planId: string | null; seats: number | null; interval: string | null; billingCycles: number | null; restrictedToUserId: string | null; sourceInvoiceId: string | null; notifiedAt: string | null; }; }; outputFormat: "json"; status: 200; } | { input: { json: { active?: boolean | undefined; expiresAt?: string | number | null | undefined; maxRedemptions?: number | null | undefined; }; } & { param: { couponId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400 | 404; }; }; } & { "/admin/coupons/:couponId": { $delete: { input: { param: { couponId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 401; } | { input: { param: { couponId: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; } | { input: { param: { couponId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; }; }; } & { "/create": { $post: { input: { json: { name: string; maxCollaborators: number; plan?: string | undefined; billingInterval?: "monthly" | "yearly" | undefined; billingCycles?: number | undefined; category?: "real estate and property" | "construction and home improvement" | "healthcare and medical" | "beauty and wellness" | "fitness and sports" | "education" | "recruitment and hr" | "legal and professional services" | "consulting" | "marketing and creative agencies" | "migration and study abroad" | "hospitality and events" | "tourism and travel" | "restaurants and food service" | "retail and e-commerce" | "wholesale and distribution" | "manufacturing and industrial" | "automotive" | "technology and saas" | "customer support and contact centers" | "home services" | "franchise and multi-branch businesses" | "general" | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 500 | 400 | 404 | 403; } | { input: { json: { name: string; maxCollaborators: number; plan?: string | undefined; billingInterval?: "monthly" | "yearly" | undefined; billingCycles?: number | undefined; category?: "real estate and property" | "construction and home improvement" | "healthcare and medical" | "beauty and wellness" | "fitness and sports" | "education" | "recruitment and hr" | "legal and professional services" | "consulting" | "marketing and creative agencies" | "migration and study abroad" | "hospitality and events" | "tourism and travel" | "restaurants and food service" | "retail and e-commerce" | "wholesale and distribution" | "manufacturing and industrial" | "automotive" | "technology and saas" | "customer support and contact centers" | "home services" | "franchise and multi-branch businesses" | "general" | undefined; }; }; output: { success: true; workspace: string; name: string; invoiceId: any; subscriptionStatus: any; }; outputFormat: "json"; status: 201; }; }; } & { "/list": { $get: { input: {}; output: { success: true; workspaces: { workspaceId: string; workspaceName: string; profilePicture: string | null; workspaceCategory: string; role: string; maxCollaborators: number; hasPaid: boolean; status: string; planCode: string | null; subscriptionStatus: string | null; trialEndsAt: string | null; token: string | null; isOwner: boolean; resources: { name: string; action: string; }[]; }[]; unpaidLimit: number; }; outputFormat: "json"; status: 200; }; }; } & { "/billing/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 403; } | { input: { param: { workspace: string; }; }; output: { subscription: null; pendingInvoice: null; recommendations: null; success: true; } | { subscription: { id: string; status: string; seats: number; interval: string | null; billingCycles: number; trialEndsAt: string | null; periodEnd: string | null; planCode: string; planName: string; planId: string; }; pendingInvoice: { planCode: string; planName: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; subscriptionId: string; planId: string; status: string; kind: string; seats: number; interval: string; billingCycles: number; amountKopecks: number; subtotalKopecks: number; discountKopecks: number; couponCode: string | null; currency: string; periodStart: string; periodEnd: string; providerPaymentId: string | null; paymentUrl: string | null; paidAt: string | null; } | null; recommendations: { usage: { seats: number; tasks: number; comments: number; customers: number; services: number; storage_bytes: number; }; plans: { fits: boolean; overLimit: string[]; id: string; code: string; name: string; kind: string; sortOrder: number; prices: { [x: string]: number; }; limits: { [x: string]: number; }; }[]; } | null; success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/policies/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; collaborators: { firstName: string; lastName: string; email: string; role: string; collaboratorId: string; status: string; resources: { name: string; action: string; }[]; profilePicture: string | null; isOwner?: boolean | undefined; isCurrentUser?: boolean | undefined; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/calculator": { $post: { input: { json: { services: "crm"[]; maxCollaborators: number; }; }; output: { success: true; plans: { id: string; code: string; name: string; kind: string; sortOrder: number; prices: { [x: string]: number; }; limits: { [x: string]: number; }; }[]; price: { code: string; amountKopecks: number; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/resources": { $get: { input: {}; output: { success: true; resources: { id: string; name: string; action: string; description: string; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/invite": { $post: { input: { json: { email: string; workspace: string; resources: string[]; role: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { email: string; workspace: string; resources: string[]; role: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { email: string; workspace: string; resources: string[]; role: string; }; }; output: { success: true; token: string; }; outputFormat: "json"; status: 201; }; }; } & { "/invite/cancel": { $post: { input: { json: { workspace: string; collaboratorId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; collaboratorId: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/invite/:workspace/:token/status": { $get: { input: { param: { workspace: string; token: string; }; }; output: { status: "valid"; email: string; forCurrentUser: boolean; success: true; } | { status: "expired" | "canceled" | "accepted" | "not_found"; success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/invite/:workspace/:token": { $get: { input: { param: { workspace: string; token: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 403; } | { input: { param: { workspace: string; token: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { workspace: string; token: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 502; } | { input: { param: { workspace: string; token: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/policies": { $post: { input: { json: { collaboratorId: string; resources: string[]; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { collaboratorId: string; resources: string[]; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { collaboratorId: string; resources: string[]; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 503; } | { input: { json: { collaboratorId: string; resources: string[]; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 502; } | { input: { json: { collaboratorId: string; resources: string[]; workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/role": { $post: { input: { json: { workspace: string; collaboratorId: string; role: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; collaboratorId: string; role: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/settings": { $post: { input: { json: { workspace: string; name?: string | undefined; maxCollaborators?: number | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; name?: string | undefined; maxCollaborators?: number | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; name?: string | undefined; maxCollaborators?: number | undefined; }; }; output: { success: true; workspace: string; name: string; maxCollaborators: number; hasPaid: boolean; }; outputFormat: "json"; status: 200; }; }; } & { "/settings/remove-collaborator": { $post: { input: { json: { collaboratorId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { collaboratorId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 503; } | { input: { json: { collaboratorId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 502; } | { input: { json: { collaboratorId: string; workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/delete": { $post: { input: { json: { workspace: string; confirm: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; confirm: string; }; }; output: { success: false; error: string; code: string | undefined; }; outputFormat: "json"; status: 400 | 404 | 409 | 403 | 502 | 503; } | { input: { json: { workspace: string; confirm: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/leave/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; }, "/workspace"> | import("hono/types").MergeSchemaPath<{ "/create": { $post: { input: { json: { workspace: string; taskId: string; content: string; replyTo?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; taskId: string; content: string; replyTo?: string | undefined; }; }; output: { success: true; }; outputFormat: "json"; status: 201; }; }; } & { "/list/:workspace/:taskId": { $get: { input: { param: { workspace: string; } & { taskId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; } & { taskId: string; }; }; output: { success: true; comments: { updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; taskId: string; workspaceId: string; content: string; isFlow: boolean; reply: string | null; created_by: string; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/delete": { $post: { input: { json: { workspace: string; taskId: string; commentId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; taskId: string; commentId: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/edit": { $post: { input: { json: { workspace: string; taskId: string; commentId: string; content: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; taskId: string; commentId: string; content: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 403; } | { input: { json: { workspace: string; taskId: string; commentId: string; content: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/history/:workspace/:taskId/:commentId": { $get: { input: { param: { workspace: string; } & { taskId: string; } & { commentId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; } & { taskId: string; } & { commentId: string; }; }; output: { success: true; history: { editorFirstName: string | null; editorLastName: string | null; editorProfilePicture: string | null; id: string; commentId: string; taskId: string; workspaceId: string; previousContent: string; content: string; editedBy: string; createdAt: string; }[]; }; outputFormat: "json"; status: 200; }; }; }, "/comments"> | import("hono/types").MergeSchemaPath<{ "/create": { $post: { input: { json: { workspace: string; customerId?: string | undefined; subject: string; description?: string | undefined; phaseId?: string | undefined; priority?: "low" | "medium" | "high" | undefined; assignees?: string[] | undefined; comments?: string[] | undefined; attachments?: string[] | undefined; visibility?: "public" | "private" | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; customerId?: string | undefined; subject: string; description?: string | undefined; phaseId?: string | undefined; priority?: "low" | "medium" | "high" | undefined; assignees?: string[] | undefined; comments?: string[] | undefined; attachments?: string[] | undefined; visibility?: "public" | "private" | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; customerId?: string | undefined; subject: string; description?: string | undefined; phaseId?: string | undefined; priority?: "low" | "medium" | "high" | undefined; assignees?: string[] | undefined; comments?: string[] | undefined; attachments?: string[] | undefined; visibility?: "public" | "private" | undefined; }; }; output: { success: true; task: { description: string | null; id: string; created_at: string; workspaceId: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; subject: string; created_by: string; phaseId: string | null; priority: string | null; customerId: string | null; visibility: string | null; }; }; outputFormat: "json"; status: 201; }; }; } & { "/list/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; tasks: { id: string; subject: string; description: string | null; visibility: string | null; phaseId: string | null; phaseName: string | null; phaseSortOrder: number | null; priority: string | null; created_at: string; workspaceId: string; created_by: string; comments_count: number; tags: { id: string; name: string; description: string | null; }[]; }[] | undefined; collaborators: { id: string; firstName: string | null; lastName: string | null; profilePicture: string | null; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/delete": { $post: { input: { json: { taskId: string; workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/:workspace/:taskId": { $get: { input: { param: { workspace: string; } & { taskId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; } & { taskId: string; }; }; output: { success: true; task: { id: string; subject: string; description: string | null; visibility: string | null; phaseId: string | null; phaseName: string | null; phaseSortOrder: number | null; priority: string | null; created_at: string; workspaceId: string; created_by: string; comments_count: number; tags: { id: string; name: string; description: string | null; }[]; }; collaborators: { id: string; firstName: string | null; lastName: string | null; profilePicture: string | null; }[]; customer: ({ createdBy: { id: string; firstName: string | null; lastName: string | null; profilePicture: string | null; } | null; tags: { id: string; name: string; description: string | null; }[]; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; created_by: string | null; type: string | null; name: string; companyName: string | null; phone: string | null; telegram: string | null; whatsapp: string | null; instagram: string | null; vk: string | null; igSynapseId: string | null; waSynapseId: string | null; tgSynapseId: string | null; vkSynapseId: string | null; email: string | null; leadSource: string | null; budgetMin: number | null; budgetMax: number | null; fullPayment: boolean | null; mortgagePayment: boolean | null; installmentPayment: boolean | null; fullPaymentAmount: number | null; mortgagePaymentAmount: number | null; installmentPaymentAmount: number | null; minArea: number | null; maxArea: number | null; roomsCount: number | null; preferredDistricts: string[] | null; propertyType: string | null; housingType: string | null; housingTypeNew: boolean | null; housingTypeResale: boolean | null; commercialType: string | null; landType: string | null; maxMetroDistance: number | null; dealStatus: string | null; preferredPaymentMethod: string | null; childrenCount: number | null; hasPets: boolean | null; carsCount: number | null; birthDate: string | null; notes: string | null; } | { createdBy: { id: string; firstName: string | null; lastName: string | null; profilePicture: string | null; } | null; tags: { id: string; name: string; description: string | null; }[]; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; name: string; email: string | null; website: string | null; type: string | null; description: string | null; active: boolean | null; phone: string | null; companyPhone: string | null; companyAddress: string | null; address: string | null; birthDate: string | null; utmSource: string | null; created_by: string | null; })[]; failureReasons: { id: string; title: string; description: string | null; workspaceId: string; created_at: string; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/update": { $post: { input: { json: { workspace: string; taskId: string; subject?: string | undefined; description?: string | undefined; phaseId?: string | undefined; priority?: "low" | "medium" | "high" | undefined; assignees?: string[] | undefined; visibility?: "public" | "private" | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; taskId: string; subject?: string | undefined; description?: string | undefined; phaseId?: string | undefined; priority?: "low" | "medium" | "high" | undefined; assignees?: string[] | undefined; visibility?: "public" | "private" | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 403; } | { input: { json: { workspace: string; taskId: string; subject?: string | undefined; description?: string | undefined; phaseId?: string | undefined; priority?: "low" | "medium" | "high" | undefined; assignees?: string[] | undefined; visibility?: "public" | "private" | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; taskId: string; subject?: string | undefined; description?: string | undefined; phaseId?: string | undefined; priority?: "low" | "medium" | "high" | undefined; assignees?: string[] | undefined; visibility?: "public" | "private" | undefined; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/assign-customer": { $post: { input: { json: { workspace: string; taskId: string; customerId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; taskId: string; customerId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; taskId: string; customerId: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/remove-customer": { $post: { input: { json: { workspace: string; taskId: string; customerId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; taskId: string; customerId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; taskId: string; customerId: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; }, "/tasks"> | import("hono/types").MergeSchemaPath<{ "/list/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; phases: { updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; name: string; sortOrder: number; isBuiltin: boolean; }[]; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/create": { $post: { input: { json: { workspace: string; name: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 409; } | { input: { json: { workspace: string; name: string; }; }; output: { success: true; phase: { id: string; created_at: string; workspaceId: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; name: string; sortOrder: number; isBuiltin: boolean; }; }; outputFormat: "json"; status: 201; }; }; } & { "/update": { $post: { input: { json: { workspace: string; phaseId: string; name: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; phaseId: string; name: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 409; } | { input: { json: { workspace: string; phaseId: string; name: string; }; }; output: { success: true; phase: { updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; name: string; sortOrder: number; isBuiltin: boolean; }; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/reorder": { $post: { input: { json: { workspace: string; phaseIds: string[]; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; phaseIds: string[]; }; }; output: { success: true; phases: { updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; name: string; sortOrder: number; isBuiltin: boolean; }[]; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/delete": { $post: { input: { json: { workspace: string; phaseId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; phaseId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 409; } | { input: { json: { workspace: string; phaseId: string; }; }; output: { success: true; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; }, "/task-phases"> | import("hono/types").MergeSchemaPath<{ "/list/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; templates: { id: string; title: string; content: string; created_by: string; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/create": { $post: { input: { json: { workspace: string; name: string; content: string; }; }; output: { success: true; template: { title: string; id: string; created_at: string; workspaceId: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_by: string; content: string; }[]; }; outputFormat: "json"; status: 201; }; }; } & { "/delete": { $post: { input: { json: { templateId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { templateId: string; workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; }, "/templates"> | import("hono/types").MergeSchemaPath<{ "/create": { $post: { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: {}; output: { success: true; service: { title: string; description: string | null; type: string | null; id: string; created_at: string; workspaceId: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; active: boolean | null; price: number | null; created_by: string | null; fullPayment: boolean | null; mortgagePayment: boolean | null; installmentPayment: boolean | null; fullPaymentAmount: number | null; mortgagePaymentAmount: number | null; installmentPaymentAmount: number | null; roomsCount: number | null; propertyType: string | null; housingType: string | null; commercialType: string | null; landType: string | null; currency: string | null; propertyStatus: string | null; commercialClass: string | null; ownershipType: string | null; loadingDockAccess: boolean | null; waterAccess: boolean | null; electricityAccess: boolean | null; gasAccess: boolean | null; sewageAccess: boolean | null; internetAccess: boolean | null; elevaorAccess: boolean | null; seprateEntrance: boolean | null; furnishedType: string | null; parkingType: string | null; balconyAccess: boolean | null; loggiaAccess: boolean | null; otherFeatures: string | null; pricePerSquareMeter: number | null; agencyCommission: number | null; alternativeEURCurrency: boolean | null; alternativeRUBCurrency: boolean | null; alternativeUSDCurrency: boolean | null; estimatedDeliveryDate: string | null; bathroomsCount: number | null; bedroomsCount: number | null; totalArea: number | null; livingArea: number | null; ceilingHeight: number | null; floor: number | null; totalFloors: number | null; yearBuilt: string | null; renovation: string | null; developerName: string | null; city: string | null; district: string | null; nearestMetroStation: string | null; fullAddress: string | null; latitude: string | null; longitude: string | null; }[] | { title: string; description: string | null; type: string | null; id: string; created_at: string; workspaceId: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; name: string; active: boolean | null; price: number | null; created_by: string | null; currency: string | null; stock: number | null; qrCode: string | null; }[]; }; outputFormat: "json"; status: 201; }; }; } & { "/update": { $post: { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: {}; output: { success: true; service: { updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; created_by: string | null; title: string; active: boolean | null; type: string | null; currency: string | null; description: string | null; price: number | null; propertyType: string | null; propertyStatus: string | null; housingType: string | null; commercialType: string | null; commercialClass: string | null; landType: string | null; ownershipType: string | null; loadingDockAccess: boolean | null; waterAccess: boolean | null; electricityAccess: boolean | null; gasAccess: boolean | null; sewageAccess: boolean | null; internetAccess: boolean | null; elevaorAccess: boolean | null; seprateEntrance: boolean | null; furnishedType: string | null; parkingType: string | null; balconyAccess: boolean | null; loggiaAccess: boolean | null; otherFeatures: string | null; fullPayment: boolean | null; mortgagePayment: boolean | null; installmentPayment: boolean | null; fullPaymentAmount: number | null; mortgagePaymentAmount: number | null; installmentPaymentAmount: number | null; pricePerSquareMeter: number | null; agencyCommission: number | null; alternativeEURCurrency: boolean | null; alternativeRUBCurrency: boolean | null; alternativeUSDCurrency: boolean | null; estimatedDeliveryDate: string | null; roomsCount: number | null; bathroomsCount: number | null; bedroomsCount: number | null; totalArea: number | null; livingArea: number | null; ceilingHeight: number | null; floor: number | null; totalFloors: number | null; yearBuilt: string | null; renovation: string | null; developerName: string | null; city: string | null; district: string | null; nearestMetroStation: string | null; fullAddress: string | null; latitude: string | null; longitude: string | null; }[] | { title: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; created_by: string | null; name: string; description: string | null; stock: number | null; currency: string | null; type: string | null; active: boolean | null; price: number | null; qrCode: string | null; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/list/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { workspace: string; }; }; output: { success: true; services: { createdBy: { id: string; firstName: string | null; lastName: string | null; profilePicture: string | null; } | null; tags: { id: string; name: string; description: string | null; }[]; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; created_by: string | null; title: string; active: boolean | null; type: string | null; currency: string | null; description: string | null; price: number | null; propertyType: string | null; propertyStatus: string | null; housingType: string | null; commercialType: string | null; commercialClass: string | null; landType: string | null; ownershipType: string | null; loadingDockAccess: boolean | null; waterAccess: boolean | null; electricityAccess: boolean | null; gasAccess: boolean | null; sewageAccess: boolean | null; internetAccess: boolean | null; elevaorAccess: boolean | null; seprateEntrance: boolean | null; furnishedType: string | null; parkingType: string | null; balconyAccess: boolean | null; loggiaAccess: boolean | null; otherFeatures: string | null; fullPayment: boolean | null; mortgagePayment: boolean | null; installmentPayment: boolean | null; fullPaymentAmount: number | null; mortgagePaymentAmount: number | null; installmentPaymentAmount: number | null; pricePerSquareMeter: number | null; agencyCommission: number | null; alternativeEURCurrency: boolean | null; alternativeRUBCurrency: boolean | null; alternativeUSDCurrency: boolean | null; estimatedDeliveryDate: string | null; roomsCount: number | null; bathroomsCount: number | null; bedroomsCount: number | null; totalArea: number | null; livingArea: number | null; ceilingHeight: number | null; floor: number | null; totalFloors: number | null; yearBuilt: string | null; renovation: string | null; developerName: string | null; city: string | null; district: string | null; nearestMetroStation: string | null; fullAddress: string | null; latitude: string | null; longitude: string | null; }[] | { title: string; createdBy: { id: string; firstName: string | null; lastName: string | null; profilePicture: string | null; } | null; tags: { id: string; name: string; description: string | null; }[]; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; created_by: string | null; name: string; description: string | null; stock: number | null; currency: string | null; type: string | null; active: boolean | null; price: number | null; qrCode: string | null; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/get/:workspace/:serviceId": { $get: { input: { param: { workspace: string; } & { serviceId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { workspace: string; } & { serviceId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; } & { serviceId: string; }; }; output: { success: true; service: { createdBy: { id: string; firstName: string | null; lastName: string | null; profilePicture: string | null; } | null; tags: { id: string; name: string; description: string | null; }[]; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; created_by: string | null; title: string; active: boolean | null; type: string | null; currency: string | null; description: string | null; price: number | null; propertyType: string | null; propertyStatus: string | null; housingType: string | null; commercialType: string | null; commercialClass: string | null; landType: string | null; ownershipType: string | null; loadingDockAccess: boolean | null; waterAccess: boolean | null; electricityAccess: boolean | null; gasAccess: boolean | null; sewageAccess: boolean | null; internetAccess: boolean | null; elevaorAccess: boolean | null; seprateEntrance: boolean | null; furnishedType: string | null; parkingType: string | null; balconyAccess: boolean | null; loggiaAccess: boolean | null; otherFeatures: string | null; fullPayment: boolean | null; mortgagePayment: boolean | null; installmentPayment: boolean | null; fullPaymentAmount: number | null; mortgagePaymentAmount: number | null; installmentPaymentAmount: number | null; pricePerSquareMeter: number | null; agencyCommission: number | null; alternativeEURCurrency: boolean | null; alternativeRUBCurrency: boolean | null; alternativeUSDCurrency: boolean | null; estimatedDeliveryDate: string | null; roomsCount: number | null; bathroomsCount: number | null; bedroomsCount: number | null; totalArea: number | null; livingArea: number | null; ceilingHeight: number | null; floor: number | null; totalFloors: number | null; yearBuilt: string | null; renovation: string | null; developerName: string | null; city: string | null; district: string | null; nearestMetroStation: string | null; fullAddress: string | null; latitude: string | null; longitude: string | null; } | { title: string; createdBy: { id: string; firstName: string | null; lastName: string | null; profilePicture: string | null; } | null; tags: { id: string; name: string; description: string | null; }[]; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; created_by: string | null; name: string; description: string | null; stock: number | null; currency: string | null; type: string | null; active: boolean | null; price: number | null; qrCode: string | null; }; }; outputFormat: "json"; status: 200; }; }; } & { "/delete": { $post: { input: { json: { serviceId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { serviceId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { serviceId: string; workspace: string; }; }; output: { success: false; error: string; code: string; }; outputFormat: "json"; status: 409; } | { input: { json: { serviceId: string; workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; }, "/services"> | import("hono/types").MergeSchemaPath<{ "/create": { $post: { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: {}; output: { success: false; error: string; fields: string[]; }; outputFormat: "json"; status: 409; } | { input: {}; output: { success: true; customer: { type: string | null; id: string; created_at: string; workspaceId: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; name: string; email: string | null; phone: string | null; created_by: string | null; companyName: string | null; telegram: string | null; whatsapp: string | null; instagram: string | null; vk: string | null; igSynapseId: string | null; waSynapseId: string | null; tgSynapseId: string | null; vkSynapseId: string | null; leadSource: string | null; budgetMin: number | null; budgetMax: number | null; fullPayment: boolean | null; mortgagePayment: boolean | null; installmentPayment: boolean | null; fullPaymentAmount: number | null; mortgagePaymentAmount: number | null; installmentPaymentAmount: number | null; minArea: number | null; maxArea: number | null; roomsCount: number | null; preferredDistricts: string[] | null; propertyType: string | null; housingType: string | null; housingTypeNew: boolean | null; housingTypeResale: boolean | null; commercialType: string | null; landType: string | null; maxMetroDistance: number | null; dealStatus: string | null; preferredPaymentMethod: string | null; childrenCount: number | null; hasPets: boolean | null; carsCount: number | null; birthDate: string | null; notes: string | null; }[] | { description: string | null; type: string | null; id: string; created_at: string; workspaceId: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; name: string; active: boolean | null; email: string | null; phone: string | null; created_by: string | null; website: string | null; birthDate: string | null; companyPhone: string | null; companyAddress: string | null; address: string | null; utmSource: string | null; }[]; }; outputFormat: "json"; status: 201; }; }; } & { "/list/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { workspace: string; }; }; output: { success: true; customers: { createdBy: { id: string; firstName: string | null; lastName: string | null; profilePicture: string | null; } | null; tags: { id: string; name: string; description: string | null; }[]; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; created_by: string | null; type: string | null; name: string; companyName: string | null; phone: string | null; telegram: string | null; whatsapp: string | null; instagram: string | null; vk: string | null; igSynapseId: string | null; waSynapseId: string | null; tgSynapseId: string | null; vkSynapseId: string | null; email: string | null; leadSource: string | null; budgetMin: number | null; budgetMax: number | null; fullPayment: boolean | null; mortgagePayment: boolean | null; installmentPayment: boolean | null; fullPaymentAmount: number | null; mortgagePaymentAmount: number | null; installmentPaymentAmount: number | null; minArea: number | null; maxArea: number | null; roomsCount: number | null; preferredDistricts: string[] | null; propertyType: string | null; housingType: string | null; housingTypeNew: boolean | null; housingTypeResale: boolean | null; commercialType: string | null; landType: string | null; maxMetroDistance: number | null; dealStatus: string | null; preferredPaymentMethod: string | null; childrenCount: number | null; hasPets: boolean | null; carsCount: number | null; birthDate: string | null; notes: string | null; }[] | { createdBy: { id: string; firstName: string | null; lastName: string | null; profilePicture: string | null; } | null; tags: { id: string; name: string; description: string | null; }[]; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; name: string; email: string | null; website: string | null; type: string | null; description: string | null; active: boolean | null; phone: string | null; companyPhone: string | null; companyAddress: string | null; address: string | null; birthDate: string | null; utmSource: string | null; created_by: string | null; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/get/:workspace/:customerId": { $get: { input: { param: { workspace: string; } & { customerId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; } & { customerId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { workspace: string; } & { customerId: string; }; }; output: { success: true; customer: { createdBy: { id: string; firstName: string | null; lastName: string | null; profilePicture: string | null; } | null; tags: { id: string; name: string; description: string | null; }[]; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; created_by: string | null; type: string | null; name: string; companyName: string | null; phone: string | null; telegram: string | null; whatsapp: string | null; instagram: string | null; vk: string | null; igSynapseId: string | null; waSynapseId: string | null; tgSynapseId: string | null; vkSynapseId: string | null; email: string | null; leadSource: string | null; budgetMin: number | null; budgetMax: number | null; fullPayment: boolean | null; mortgagePayment: boolean | null; installmentPayment: boolean | null; fullPaymentAmount: number | null; mortgagePaymentAmount: number | null; installmentPaymentAmount: number | null; minArea: number | null; maxArea: number | null; roomsCount: number | null; preferredDistricts: string[] | null; propertyType: string | null; housingType: string | null; housingTypeNew: boolean | null; housingTypeResale: boolean | null; commercialType: string | null; landType: string | null; maxMetroDistance: number | null; dealStatus: string | null; preferredPaymentMethod: string | null; childrenCount: number | null; hasPets: boolean | null; carsCount: number | null; birthDate: string | null; notes: string | null; } | { createdBy: { id: string; firstName: string | null; lastName: string | null; profilePicture: string | null; } | null; tags: { id: string; name: string; description: string | null; }[]; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; name: string; email: string | null; website: string | null; type: string | null; description: string | null; active: boolean | null; phone: string | null; companyPhone: string | null; companyAddress: string | null; address: string | null; birthDate: string | null; utmSource: string | null; created_by: string | null; }; }; outputFormat: "json"; status: 200; }; }; } & { "/delete": { $post: { input: { json: { customerId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { customerId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { customerId: string; workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/update": { $post: { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: {}; output: { success: false; error: string; fields: string[]; }; outputFormat: "json"; status: 409; } | { input: {}; output: { success: true; customer: { updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; created_by: string | null; type: string | null; name: string; companyName: string | null; phone: string | null; telegram: string | null; whatsapp: string | null; instagram: string | null; vk: string | null; igSynapseId: string | null; waSynapseId: string | null; tgSynapseId: string | null; vkSynapseId: string | null; email: string | null; leadSource: string | null; budgetMin: number | null; budgetMax: number | null; fullPayment: boolean | null; mortgagePayment: boolean | null; installmentPayment: boolean | null; fullPaymentAmount: number | null; mortgagePaymentAmount: number | null; installmentPaymentAmount: number | null; minArea: number | null; maxArea: number | null; roomsCount: number | null; preferredDistricts: string[] | null; propertyType: string | null; housingType: string | null; housingTypeNew: boolean | null; housingTypeResale: boolean | null; commercialType: string | null; landType: string | null; maxMetroDistance: number | null; dealStatus: string | null; preferredPaymentMethod: string | null; childrenCount: number | null; hasPets: boolean | null; carsCount: number | null; birthDate: string | null; notes: string | null; }[] | { updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; name: string; email: string | null; website: string | null; type: string | null; description: string | null; active: boolean | null; phone: string | null; companyPhone: string | null; companyAddress: string | null; address: string | null; birthDate: string | null; utmSource: string | null; created_by: string | null; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/get-tasks/:workspace/:customerId": { $get: { input: { param: { workspace: string; } & { customerId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; } & { customerId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { workspace: string; } & { customerId: string; }; }; output: { success: true; tasks: { id: string; subject: string; description: string | null; visibility: string | null; phaseId: string | null; phaseName: string | null; phaseSortOrder: number | null; priority: string | null; created_at: string; workspaceId: string; created_by: string; comments_count: number; tags: { id: string; name: string; description: string | null; }[]; }[] | null; }; outputFormat: "json"; status: 200; }; }; }, "/customers"> | import("hono/types").MergeSchemaPath<{ "/create": { $post: { input: { json: { installmentNumber?: number | null | undefined; totalInstallments?: number | null | undefined; installmentGroupId?: string | null | undefined; workspace: string; invoiceId: string; serviceId?: string | undefined; SellerFinanceAccountId: string; customerId: string; date: string | number; language: "ru" | "en"; currency: "USD" | "EUR" | "RUB"; vatOption: "vat_included" | "vat_excluded"; vatRate?: number | undefined; buyerInn?: string | undefined; buyerKpp?: string | undefined; services?: { serviceId?: string | null | undefined; name: string; unitPrice: number; quantity?: number | undefined; discount?: number | undefined; description?: string | undefined; }[] | undefined; unitName?: string | undefined; unitPrice?: number | undefined; unitQuantity?: number | undefined; notes?: string | undefined; status?: "pending" | "canceled" | "paid" | "refunded" | undefined; discount?: number | undefined; fullPayment?: boolean | undefined; installment?: boolean | undefined; subscription?: boolean | undefined; subscriptionStartDate?: string | number | undefined; subscriptionEndDate?: string | number | undefined; paymentMethod?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400 | 404; } | { input: { json: { installmentNumber?: number | null | undefined; totalInstallments?: number | null | undefined; installmentGroupId?: string | null | undefined; workspace: string; invoiceId: string; serviceId?: string | undefined; SellerFinanceAccountId: string; customerId: string; date: string | number; language: "ru" | "en"; currency: "USD" | "EUR" | "RUB"; vatOption: "vat_included" | "vat_excluded"; vatRate?: number | undefined; buyerInn?: string | undefined; buyerKpp?: string | undefined; services?: { serviceId?: string | null | undefined; name: string; unitPrice: number; quantity?: number | undefined; discount?: number | undefined; description?: string | undefined; }[] | undefined; unitName?: string | undefined; unitPrice?: number | undefined; unitQuantity?: number | undefined; notes?: string | undefined; status?: "pending" | "canceled" | "paid" | "refunded" | undefined; discount?: number | undefined; fullPayment?: boolean | undefined; installment?: boolean | undefined; subscription?: boolean | undefined; subscriptionStartDate?: string | number | undefined; subscriptionEndDate?: string | number | undefined; paymentMethod?: string | undefined; }; }; output: { success: true; cinvoice: { id: string; created_at: string; workspaceId: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; invoiceId: string; status: string; created_by: string; customerId: string; fullPayment: boolean | null; installment: boolean | null; notes: string | null; currency: string; serviceId: string | null; invoiceDiscount: number; discount: number; SellerFinanceAccountId: string; date: string; language: string; vatOption: string; unitName: string; unitPrice: number; unitQuantity: number; installmentNumber: number | null; totalInstallments: number | null; installmentGroupId: string | null; vatRate: number | null; paidAt: string | null; buyerInn: string | null; buyerKpp: string | null; subscription: boolean | null; subscriptionStartDate: string | null; subscriptionEndDate: string | null; paymentMethod: string | null; subtotal: number; lineDiscounts: number; total: number; services: { id: string; serviceId: string | null; position: number; name: string; unitPrice: number; quantity: number; discount: number; description: string | null; }[]; }[]; }; outputFormat: "json"; status: 201; }; }; } & { "/accounts/list/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; accounts: { id: string; created_at: string; workspaceId: string; updated_at: string | null; name: string; active: boolean; companyName: string | null; currency: FinanceCurrency; vatRate: number | null; order: number; cardColor: string; country: string | null; companyAccountNumber: string | null; companyInn: string | null; companyKpp: string | null; companyOgrn: string | null; bankName: string | null; bankBik: string | null; bankKc: string | null; bankInn: string | null; bankKpp: string | null; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/list/:workspace/:customerId": { $get: { input: { param: { workspace: string; } & { customerId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; } & { customerId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { workspace: string; } & { customerId: string; }; }; output: { success: true; cinvoices: { id: string; created_at: string; workspaceId: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; invoiceId: string; status: string; created_by: string; customerId: string; fullPayment: boolean | null; installment: boolean | null; notes: string | null; currency: string; serviceId: string | null; invoiceDiscount: number; discount: number; SellerFinanceAccountId: string; date: string; language: string; vatOption: string; unitName: string; unitPrice: number; unitQuantity: number; installmentNumber: number | null; totalInstallments: number | null; installmentGroupId: string | null; vatRate: number | null; paidAt: string | null; buyerInn: string | null; buyerKpp: string | null; subscription: boolean | null; subscriptionStartDate: string | null; subscriptionEndDate: string | null; paymentMethod: string | null; subtotal: number; lineDiscounts: number; total: number; services: { id: string; serviceId: string | null; position: number; name: string; unitPrice: number; quantity: number; discount: number; description: string | null; }[]; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/services/usage/:workspace": { $get: { input: { query: { from?: string | number | undefined; to?: string | number | undefined; status?: "pending" | "canceled" | "paid" | "refunded" | undefined; customerId?: string | undefined; }; } & { param: { workspace: string; }; }; output: { services: { serviceId: string | null; name: string; invoiceCount: number; quantity: number; amounts: { currency: string; amountMinor: number; }[]; }[]; totals: { serviceCount: number; catalogServiceCount: number; invoiceCount: number; lineCount: number; }; success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/update": { $post: { input: { json: { installmentNumber?: number | null | undefined; totalInstallments?: number | null | undefined; installmentGroupId?: string | null | undefined; cinvoiceId: string; workspace: string; invoiceId?: string | undefined; services?: { serviceId?: string | null | undefined; name: string; unitPrice: number; quantity?: number | undefined; discount?: number | undefined; description?: string | undefined; }[] | undefined; serviceId?: string | undefined; SellerFinanceAccountId?: string | undefined; customerId?: string | undefined; date?: string | number | undefined; language?: "ru" | "en" | undefined; currency?: "USD" | "EUR" | "RUB" | undefined; vatOption?: "vat_included" | "vat_excluded" | undefined; vatRate?: number | undefined; buyerInn?: string | undefined; buyerKpp?: string | undefined; unitName?: string | undefined; unitPrice?: number | undefined; unitQuantity?: number | undefined; notes?: string | undefined; status?: "pending" | "canceled" | "paid" | "refunded" | undefined; discount?: number | undefined; fullPayment?: boolean | undefined; installment?: boolean | undefined; subscription?: boolean | undefined; subscriptionStartDate?: string | number | undefined; subscriptionEndDate?: string | number | undefined; paymentMethod?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400 | 404; } | { input: { json: { installmentNumber?: number | null | undefined; totalInstallments?: number | null | undefined; installmentGroupId?: string | null | undefined; cinvoiceId: string; workspace: string; invoiceId?: string | undefined; services?: { serviceId?: string | null | undefined; name: string; unitPrice: number; quantity?: number | undefined; discount?: number | undefined; description?: string | undefined; }[] | undefined; serviceId?: string | undefined; SellerFinanceAccountId?: string | undefined; customerId?: string | undefined; date?: string | number | undefined; language?: "ru" | "en" | undefined; currency?: "USD" | "EUR" | "RUB" | undefined; vatOption?: "vat_included" | "vat_excluded" | undefined; vatRate?: number | undefined; buyerInn?: string | undefined; buyerKpp?: string | undefined; unitName?: string | undefined; unitPrice?: number | undefined; unitQuantity?: number | undefined; notes?: string | undefined; status?: "pending" | "canceled" | "paid" | "refunded" | undefined; discount?: number | undefined; fullPayment?: boolean | undefined; installment?: boolean | undefined; subscription?: boolean | undefined; subscriptionStartDate?: string | number | undefined; subscriptionEndDate?: string | number | undefined; paymentMethod?: string | undefined; }; }; output: { success: true; cinvoice: { id: string; created_at: string; workspaceId: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; invoiceId: string; status: string; created_by: string; customerId: string; fullPayment: boolean | null; installment: boolean | null; notes: string | null; currency: string; serviceId: string | null; invoiceDiscount: number; discount: number; SellerFinanceAccountId: string; date: string; language: string; vatOption: string; unitName: string; unitPrice: number; unitQuantity: number; installmentNumber: number | null; totalInstallments: number | null; installmentGroupId: string | null; vatRate: number | null; paidAt: string | null; buyerInn: string | null; buyerKpp: string | null; subscription: boolean | null; subscriptionStartDate: string | null; subscriptionEndDate: string | null; paymentMethod: string | null; subtotal: number; lineDiscounts: number; total: number; services: { id: string; serviceId: string | null; position: number; name: string; unitPrice: number; quantity: number; discount: number; description: string | null; }[]; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/delete": { $post: { input: { json: { cinvoiceId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { cinvoiceId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { cinvoiceId: string; workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; }, "/cinvoices"> | import("hono/types").MergeSchemaPath<{ "/create": { $post: { input: { json: { workspace: string; customerId: string; serviceId: string; notes?: string | undefined; date: string | number; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; customerId: string; serviceId: string; notes?: string | undefined; date: string | number; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; customerId: string; serviceId: string; notes?: string | undefined; date: string | number; }; }; output: { success: true; history: { id: string; created_at: string; workspaceId: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_by: string; customerId: string; notes: string | null; serviceId: string; date: string; }[]; }; outputFormat: "json"; status: 201; }; }; } & { "/list/:workspace/:customerId": { $get: { input: { param: { workspace: string; } & { customerId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; } & { customerId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { workspace: string; } & { customerId: string; }; }; output: { success: true; history: { createdBy: { id: string; firstName: string | null; lastName: string | null; profilePicture: string | null; } | null; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; customerId: string; serviceId: string; notes: string | null; date: string; created_by: string; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/update": { $post: { input: { json: { chistoryId: string; workspace: string; customerId?: string | undefined; serviceId?: string | undefined; notes?: string | undefined; date?: string | number | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { chistoryId: string; workspace: string; customerId?: string | undefined; serviceId?: string | undefined; notes?: string | undefined; date?: string | number | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { chistoryId: string; workspace: string; customerId?: string | undefined; serviceId?: string | undefined; notes?: string | undefined; date?: string | number | undefined; }; }; output: { success: true; history: { updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; workspaceId: string; customerId: string; serviceId: string; notes: string | null; date: string; created_by: string; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/delete": { $post: { input: { json: { chistoryId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { chistoryId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { chistoryId: string; workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; }, "/chistory"> | import("hono/types").MergeSchemaPath<{ "/list/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; collaborators: { collaboratorId: string; role: string; profilePicture: string | null; firstName: string | null; lastName: string | null; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/list/:workspace/:taskId": { $get: { input: { param: { workspace: string; } & { taskId: string; }; }; output: { success: true; assignees: { assigneeId: string; workspaceId: string; collaboratorId: string; taskId: string; startDate: string | null; endDate: string | null; description: string | null; profilePicture: string | null; firstName: string | null; lastName: string | null; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/create": { $post: { input: { json: { collaboratorId: string; taskId: string; workspace: string; startDate?: string | number | undefined; endDate?: string | number | undefined; description?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { collaboratorId: string; taskId: string; workspace: string; startDate?: string | number | undefined; endDate?: string | number | undefined; description?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { collaboratorId: string; taskId: string; workspace: string; startDate?: string | number | undefined; endDate?: string | number | undefined; description?: string | undefined; }; }; output: { success: true; assignee: { description: string | null; id: string; created_at: string; workspaceId: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; collaboratorId: string; created_by: string; taskId: string; startDate: string | null; endDate: string | null; }; }; outputFormat: "json"; status: 201; }; }; } & { "/remove": { $post: { input: { json: { collaboratorId: string; taskId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { collaboratorId: string; taskId: string; workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/update": { $post: { input: { json: { workspace: string; taskId: string; collaboratorId: string; startDate?: string | number | null | undefined; endDate?: string | number | null | undefined; description?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; taskId: string; collaboratorId: string; startDate?: string | number | null | undefined; endDate?: string | number | null | undefined; description?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; taskId: string; collaboratorId: string; startDate?: string | number | null | undefined; endDate?: string | number | null | undefined; description?: string | undefined; }; }; output: { success: true; result: { updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; taskId: string; collaboratorId: string; startDate: string | null; endDate: string | null; description: string | null; workspaceId: string; created_by: string; }; }; outputFormat: "json"; status: 200; }; }; }, "/assignees"> | import("hono/types").MergeSchemaPath<{ "/list/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; tags: { id: string; name: string; description: string | null; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/create": { $post: { input: { json: { workspace: string; name: string; description?: string | undefined; }; }; output: { success: true; tag: { description: string | null; id: string; created_at: string; workspaceId: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; name: string; }[]; }; outputFormat: "json"; status: 201; }; }; } & { "/update": { $post: { input: { json: { tagId: string; workspace: string; name?: string | undefined; description?: string | undefined; }; }; output: { success: true; tag: { rows: never[]; command: string; rowCount: number | null; oid: number; fields: { name: string; tableID: number; columnID: number; dataTypeID: number; dataTypeSize: number; dataTypeModifier: number; format: string; }[]; }; }; outputFormat: "json"; status: 200; }; }; } & { "/delete": { $post: { input: { json: { tagId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { tagId: string; workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/assign-to-task": { $post: { input: { json: { workspace: string; taskId: string; tagId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; taskId: string; tagId: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/assign-to-customer": { $post: { input: { json: { workspace: string; customerId: string; tagId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; customerId: string; tagId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; customerId: string; tagId: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/remove-from-customer": { $post: { input: { json: { workspace: string; customerId: string; tagId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; customerId: string; tagId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; customerId: string; tagId: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/assign-to-service": { $post: { input: { json: { workspace: string; serviceId: string; tagId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; serviceId: string; tagId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; serviceId: string; tagId: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/remove-from-service": { $post: { input: { json: { workspace: string; serviceId: string; tagId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; serviceId: string; tagId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; serviceId: string; tagId: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/remove-from-task": { $post: { input: { json: { workspace: string; taskId: string; tagId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; taskId: string; tagId: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; }, "/tags"> | import("hono/types").MergeSchemaPath<{ "/list/:workspace/:taskId": { $get: { input: { param: { workspace: string; } & { taskId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; } & { taskId: string; }; }; output: { success: true; reasons: { id: string; title: string; description: string | null; workspaceId: string; created_at: string; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/list/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; reasons: { updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; title: string; description: string | null; workspaceId: string; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/get/:workspace/:failureReasonId": { $get: { input: { param: { workspace: string; } & { failureReasonId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; } & { failureReasonId: string; }; }; output: { success: true; reason: { updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; title: string; description: string | null; workspaceId: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/create": { $post: { input: { json: { workspace: string; title: string; description?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 409; } | { input: { json: { workspace: string; title: string; description?: string | undefined; }; }; output: { success: true; reason: { title: string; description: string | null; id: string; created_at: string; workspaceId: string; updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; }; }; outputFormat: "json"; status: 201; }; }; } & { "/update": { $post: { input: { json: { failureReasonId: string; workspace: string; title?: string | undefined; description?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { failureReasonId: string; workspace: string; title?: string | undefined; description?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 409; } | { input: { json: { failureReasonId: string; workspace: string; title?: string | undefined; description?: string | undefined; }; }; output: { success: true; reason: { updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; title: string; description: string | null; workspaceId: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/delete": { $post: { input: { json: { failureReasonId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { failureReasonId: string; workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/assign-to-task": { $post: { input: { json: { workspace: string; taskId: string; failureReasonIds: string[]; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; taskId: string; failureReasonIds: string[]; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/remove-from-task": { $post: { input: { json: { workspace: string; taskId: string; failureReasonIds: string[]; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; taskId: string; failureReasonIds: string[]; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; }, "/freason"> | import("hono/types").MergeSchemaPath<{ "/google/connect": { $get: { input: {}; output: { success: true; url: string; }; outputFormat: "json"; status: 200; }; }; } & { "/google/callback": { $get: { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 503; } | { input: {}; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/list": { $get: { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: {}; output: { success: true; integrations: { scope: string; status: string; }; user: string | null | undefined; }; outputFormat: "json"; status: 200; }; }; } & { "/google/disconnect": { $get: { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: {}; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/calendar/create-event": { $post: { input: { json: { workspace: string; title: string; description?: string | undefined; startDate: string | number; endDate: string | number; type?: "event" | "conference" | "booking" | "meeting" | undefined; timeZone: string; attendees?: { email: string; }[] | undefined; conferenceData?: boolean | undefined; reminders?: { method: "email" | "popup"; minutes: number; }[] | undefined; }; }; output: { success: true; event: { request?: { addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; readonly aborted: boolean; readonly bufferSize: number; readonly closed: boolean; readonly destroyed: boolean; readonly endAfterHeaders: boolean; readonly id?: number | undefined | undefined; readonly pending: boolean; readonly rstCode: number; readonly sentHeaders: { [x: string]: import("node:http").OutgoingHttpHeader | undefined; accept?: string | string[] | undefined | undefined; "accept-charset"?: string | string[] | undefined | undefined; "accept-encoding"?: string | string[] | undefined | undefined; "accept-language"?: string | string[] | undefined | undefined; "accept-ranges"?: string | undefined | undefined; "access-control-allow-credentials"?: string | undefined | undefined; "access-control-allow-headers"?: string | undefined | undefined; "access-control-allow-methods"?: string | undefined | undefined; "access-control-allow-origin"?: string | undefined | undefined; "access-control-expose-headers"?: string | undefined | undefined; "access-control-max-age"?: string | undefined | undefined; "access-control-request-headers"?: string | undefined | undefined; "access-control-request-method"?: string | undefined | undefined; age?: string | undefined | undefined; allow?: string | undefined | undefined; authorization?: string | undefined | undefined; "cache-control"?: string | undefined | undefined; "cdn-cache-control"?: string | undefined | undefined; connection?: string | string[] | undefined | undefined; "content-disposition"?: string | undefined | undefined; "content-encoding"?: string | undefined | undefined; "content-language"?: string | undefined | undefined; "content-length"?: string | number | undefined | undefined; "content-location"?: string | undefined | undefined; "content-range"?: string | undefined | undefined; "content-security-policy"?: string | undefined | undefined; "content-security-policy-report-only"?: string | undefined | undefined; "content-type"?: string | undefined | undefined; cookie?: string | string[] | undefined | undefined; dav?: string | string[] | undefined | undefined; dnt?: string | undefined | undefined; date?: string | undefined | undefined; etag?: string | undefined | undefined; expect?: string | undefined | undefined; expires?: string | undefined | undefined; forwarded?: string | undefined | undefined; from?: string | undefined | undefined; host?: string | undefined | undefined; "if-match"?: string | undefined | undefined; "if-modified-since"?: string | undefined | undefined; "if-none-match"?: string | undefined | undefined; "if-range"?: string | undefined | undefined; "if-unmodified-since"?: string | undefined | undefined; "last-modified"?: string | undefined | undefined; link?: string | string[] | undefined | undefined; location?: string | undefined | undefined; "max-forwards"?: string | undefined | undefined; origin?: string | undefined | undefined; pragma?: string | string[] | undefined | undefined; "proxy-authenticate"?: string | string[] | undefined | undefined; "proxy-authorization"?: string | undefined | undefined; "public-key-pins"?: string | undefined | undefined; "public-key-pins-report-only"?: string | undefined | undefined; range?: string | undefined | undefined; referer?: string | undefined | undefined; "referrer-policy"?: string | undefined | undefined; refresh?: string | undefined | undefined; "retry-after"?: string | undefined | undefined; "sec-websocket-accept"?: string | undefined | undefined; "sec-websocket-extensions"?: string | string[] | undefined | undefined; "sec-websocket-key"?: string | undefined | undefined; "sec-websocket-protocol"?: string | string[] | undefined | undefined; "sec-websocket-version"?: string | undefined | undefined; server?: string | undefined | undefined; "set-cookie"?: string | string[] | undefined | undefined; "strict-transport-security"?: string | undefined | undefined; te?: string | undefined | undefined; trailer?: string | undefined | undefined; "transfer-encoding"?: string | undefined | undefined; "user-agent"?: string | undefined | undefined; upgrade?: string | undefined | undefined; "upgrade-insecure-requests"?: string | undefined | undefined; vary?: string | undefined | undefined; via?: string | string[] | undefined | undefined; warning?: string | undefined | undefined; "www-authenticate"?: string | string[] | undefined | undefined; "x-content-type-options"?: string | undefined | undefined; "x-dns-prefetch-control"?: string | undefined | undefined; "x-frame-options"?: string | undefined | undefined; "x-xss-protection"?: string | undefined | undefined; }; readonly sentInfoHeaders?: { [x: string]: import("node:http").OutgoingHttpHeader | undefined; accept?: string | string[] | undefined | undefined; "accept-charset"?: string | string[] | undefined | undefined; "accept-encoding"?: string | string[] | undefined | undefined; "accept-language"?: string | string[] | undefined | undefined; "accept-ranges"?: string | undefined | undefined; "access-control-allow-credentials"?: string | undefined | undefined; "access-control-allow-headers"?: string | undefined | undefined; "access-control-allow-methods"?: string | undefined | undefined; "access-control-allow-origin"?: string | undefined | undefined; "access-control-expose-headers"?: string | undefined | undefined; "access-control-max-age"?: string | undefined | undefined; "access-control-request-headers"?: string | undefined | undefined; "access-control-request-method"?: string | undefined | undefined; age?: string | undefined | undefined; allow?: string | undefined | undefined; authorization?: string | undefined | undefined; "cache-control"?: string | undefined | undefined; "cdn-cache-control"?: string | undefined | undefined; connection?: string | string[] | undefined | undefined; "content-disposition"?: string | undefined | undefined; "content-encoding"?: string | undefined | undefined; "content-language"?: string | undefined | undefined; "content-length"?: string | number | undefined | undefined; "content-location"?: string | undefined | undefined; "content-range"?: string | undefined | undefined; "content-security-policy"?: string | undefined | undefined; "content-security-policy-report-only"?: string | undefined | undefined; "content-type"?: string | undefined | undefined; cookie?: string | string[] | undefined | undefined; dav?: string | string[] | undefined | undefined; dnt?: string | undefined | undefined; date?: string | undefined | undefined; etag?: string | undefined | undefined; expect?: string | undefined | undefined; expires?: string | undefined | undefined; forwarded?: string | undefined | undefined; from?: string | undefined | undefined; host?: string | undefined | undefined; "if-match"?: string | undefined | undefined; "if-modified-since"?: string | undefined | undefined; "if-none-match"?: string | undefined | undefined; "if-range"?: string | undefined | undefined; "if-unmodified-since"?: string | undefined | undefined; "last-modified"?: string | undefined | undefined; link?: string | string[] | undefined | undefined; location?: string | undefined | undefined; "max-forwards"?: string | undefined | undefined; origin?: string | undefined | undefined; pragma?: string | string[] | undefined | undefined; "proxy-authenticate"?: string | string[] | undefined | undefined; "proxy-authorization"?: string | undefined | undefined; "public-key-pins"?: string | undefined | undefined; "public-key-pins-report-only"?: string | undefined | undefined; range?: string | undefined | undefined; referer?: string | undefined | undefined; "referrer-policy"?: string | undefined | undefined; refresh?: string | undefined | undefined; "retry-after"?: string | undefined | undefined; "sec-websocket-accept"?: string | undefined | undefined; "sec-websocket-extensions"?: string | string[] | undefined | undefined; "sec-websocket-key"?: string | undefined | undefined; "sec-websocket-protocol"?: string | string[] | undefined | undefined; "sec-websocket-version"?: string | undefined | undefined; server?: string | undefined | undefined; "set-cookie"?: string | string[] | undefined | undefined; "strict-transport-security"?: string | undefined | undefined; te?: string | undefined | undefined; trailer?: string | undefined | undefined; "transfer-encoding"?: string | undefined | undefined; "user-agent"?: string | undefined | undefined; upgrade?: string | undefined | undefined; "upgrade-insecure-requests"?: string | undefined | undefined; vary?: string | undefined | undefined; via?: string | string[] | undefined | undefined; warning?: string | undefined | undefined; "www-authenticate"?: string | string[] | undefined | undefined; "x-content-type-options"?: string | undefined | undefined; "x-dns-prefetch-control"?: string | undefined | undefined; "x-frame-options"?: string | undefined | undefined; "x-xss-protection"?: string | undefined | undefined; }[] | undefined; readonly sentTrailers?: { [x: string]: import("node:http").OutgoingHttpHeader | undefined; accept?: string | string[] | undefined | undefined; "accept-charset"?: string | string[] | undefined | undefined; "accept-encoding"?: string | string[] | undefined | undefined; "accept-language"?: string | string[] | undefined | undefined; "accept-ranges"?: string | undefined | undefined; "access-control-allow-credentials"?: string | undefined | undefined; "access-control-allow-headers"?: string | undefined | undefined; "access-control-allow-methods"?: string | undefined | undefined; "access-control-allow-origin"?: string | undefined | undefined; "access-control-expose-headers"?: string | undefined | undefined; "access-control-max-age"?: string | undefined | undefined; "access-control-request-headers"?: string | undefined | undefined; "access-control-request-method"?: string | undefined | undefined; age?: string | undefined | undefined; allow?: string | undefined | undefined; authorization?: string | undefined | undefined; "cache-control"?: string | undefined | undefined; "cdn-cache-control"?: string | undefined | undefined; connection?: string | string[] | undefined | undefined; "content-disposition"?: string | undefined | undefined; "content-encoding"?: string | undefined | undefined; "content-language"?: string | undefined | undefined; "content-length"?: string | number | undefined | undefined; "content-location"?: string | undefined | undefined; "content-range"?: string | undefined | undefined; "content-security-policy"?: string | undefined | undefined; "content-security-policy-report-only"?: string | undefined | undefined; "content-type"?: string | undefined | undefined; cookie?: string | string[] | undefined | undefined; dav?: string | string[] | undefined | undefined; dnt?: string | undefined | undefined; date?: string | undefined | undefined; etag?: string | undefined | undefined; expect?: string | undefined | undefined; expires?: string | undefined | undefined; forwarded?: string | undefined | undefined; from?: string | undefined | undefined; host?: string | undefined | undefined; "if-match"?: string | undefined | undefined; "if-modified-since"?: string | undefined | undefined; "if-none-match"?: string | undefined | undefined; "if-range"?: string | undefined | undefined; "if-unmodified-since"?: string | undefined | undefined; "last-modified"?: string | undefined | undefined; link?: string | string[] | undefined | undefined; location?: string | undefined | undefined; "max-forwards"?: string | undefined | undefined; origin?: string | undefined | undefined; pragma?: string | string[] | undefined | undefined; "proxy-authenticate"?: string | string[] | undefined | undefined; "proxy-authorization"?: string | undefined | undefined; "public-key-pins"?: string | undefined | undefined; "public-key-pins-report-only"?: string | undefined | undefined; range?: string | undefined | undefined; referer?: string | undefined | undefined; "referrer-policy"?: string | undefined | undefined; refresh?: string | undefined | undefined; "retry-after"?: string | undefined | undefined; "sec-websocket-accept"?: string | undefined | undefined; "sec-websocket-extensions"?: string | string[] | undefined | undefined; "sec-websocket-key"?: string | undefined | undefined; "sec-websocket-protocol"?: string | string[] | undefined | undefined; "sec-websocket-version"?: string | undefined | undefined; server?: string | undefined | undefined; "set-cookie"?: string | string[] | undefined | undefined; "strict-transport-security"?: string | undefined | undefined; te?: string | undefined | undefined; trailer?: string | undefined | undefined; "transfer-encoding"?: string | undefined | undefined; "user-agent"?: string | undefined | undefined; upgrade?: string | undefined | undefined; "upgrade-insecure-requests"?: string | undefined | undefined; vary?: string | undefined | undefined; via?: string | string[] | undefined | undefined; warning?: string | undefined | undefined; "www-authenticate"?: string | string[] | undefined | undefined; "x-content-type-options"?: string | undefined | undefined; "x-dns-prefetch-control"?: string | undefined | undefined; "x-frame-options"?: string | undefined | undefined; "x-xss-protection"?: string | undefined | undefined; } | undefined; readonly session: { readonly alpnProtocol?: string | undefined | undefined; readonly closed: boolean; readonly connecting: boolean; readonly destroyed: boolean; readonly encrypted?: boolean | undefined | undefined; readonly localSettings: { headerTableSize?: number | undefined | undefined; enablePush?: boolean | undefined | undefined; initialWindowSize?: number | undefined | undefined; maxFrameSize?: number | undefined | undefined; maxConcurrentStreams?: number | undefined | undefined; maxHeaderListSize?: number | undefined | undefined; enableConnectProtocol?: boolean | undefined | undefined; customSettings?: { [x: number]: number; } | undefined; }; readonly originSet?: string[] | undefined | undefined; readonly pendingSettingsAck: boolean; readonly remoteSettings: { headerTableSize?: number | undefined | undefined; enablePush?: boolean | undefined | undefined; initialWindowSize?: number | undefined | undefined; maxFrameSize?: number | undefined | undefined; maxConcurrentStreams?: number | undefined | undefined; maxHeaderListSize?: number | undefined | undefined; enableConnectProtocol?: boolean | undefined | undefined; customSettings?: { [x: number]: number; } | undefined; }; readonly socket: { write: never; connect: never; setEncoding: never; setTimeout: never; setNoDelay: never; setKeepAlive: never; setTypeOfService: never; readonly autoSelectFamilyAttemptedAddresses: string[]; readonly bufferSize: number; readonly bytesRead: number; readonly bytesWritten: number; readonly connecting: boolean; readonly pending: boolean; readonly destroyed: boolean; readonly localAddress?: string | undefined; readonly localPort?: number | undefined; readonly localFamily?: string | undefined; readonly readyState: import("node:net").SocketReadyState; readonly remoteAddress: string | undefined; readonly remoteFamily: string | undefined; readonly remotePort: number | undefined; readonly server: { listen: never; close: never; getConnections: never; maxConnections: number; connections: number; readonly listening: boolean; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; setMaxListeners: never; } | null; readonly timeout?: number | undefined; end: never; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; allowHalfOpen: boolean; pipe: never; setMaxListeners: never; readonly readableAborted: boolean; readable: boolean; readonly readableDidRead: boolean; readonly readableEncoding: BufferEncoding | null; readonly readableEnded: boolean; readableFlowing: boolean | null; readonly readableHighWaterMark: number; readonly readableLength: number; readonly readableObjectMode: boolean; readonly closed: boolean; readonly errored: { name: string; message: string; stack?: string | undefined; cause?: import("hono/utils/types").JSONValue | undefined; } | null; _construct?: undefined; _read: never; read: never; unpipe: never; unshift: never; wrap: never; push: never; compose: never; iterator: never; map: never; filter: never; forEach: never; toArray: never; some: never; find: never; every: never; flatMap: never; drop: never; take: never; reduce: never; _destroy: never; destroy: never; writable: boolean; readonly writableAborted: boolean; readonly writableEnded: boolean; readonly writableFinished: boolean; readonly writableHighWaterMark: number; readonly writableLength: number; readonly writableObjectMode: boolean; readonly writableCorked: number; readonly writableNeedDrain: boolean; _write: never; _writev?: undefined; _final: never; setDefaultEncoding: never; } | { authorized: boolean; alpnProtocol: string | false | null; authorizationError: { name: string; message: string; stack?: string | undefined; cause?: import("hono/utils/types").JSONValue | undefined; }; encrypted: true; getPeerCertificate: never; renegotiate: never; servername: string | false | null; setKeyCert: never; setMaxSendFragment: never; exportKeyingMaterial: never; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; write: never; connect: never; setEncoding: never; setTimeout: never; setNoDelay: never; setKeepAlive: never; setTypeOfService: never; readonly autoSelectFamilyAttemptedAddresses: string[]; readonly bufferSize: number; readonly bytesRead: number; readonly bytesWritten: number; readonly connecting: boolean; readonly pending: boolean; readonly destroyed: boolean; readonly localAddress?: string | undefined; readonly localPort?: number | undefined; readonly localFamily?: string | undefined; readonly readyState: import("node:net").SocketReadyState; readonly remoteAddress: string | undefined; readonly remoteFamily: string | undefined; readonly remotePort: number | undefined; readonly server: { listen: never; close: never; getConnections: never; maxConnections: number; connections: number; readonly listening: boolean; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; setMaxListeners: never; } | null; readonly timeout?: number | undefined; end: never; allowHalfOpen: boolean; pipe: never; setMaxListeners: never; readonly readableAborted: boolean; readable: boolean; readonly readableDidRead: boolean; readonly readableEncoding: BufferEncoding | null; readonly readableEnded: boolean; readableFlowing: boolean | null; readonly readableHighWaterMark: number; readonly readableLength: number; readonly readableObjectMode: boolean; readonly closed: boolean; readonly errored: { name: string; message: string; stack?: string | undefined; cause?: import("hono/utils/types").JSONValue | undefined; } | null; _construct?: undefined; _read: never; read: never; unpipe: never; unshift: never; wrap: never; push: never; compose: never; iterator: never; map: never; filter: never; forEach: never; toArray: never; some: never; find: never; every: never; flatMap: never; drop: never; take: never; reduce: never; _destroy: never; destroy: never; writable: boolean; readonly writableAborted: boolean; readonly writableEnded: boolean; readonly writableFinished: boolean; readonly writableHighWaterMark: number; readonly writableLength: number; readonly writableObjectMode: boolean; readonly writableCorked: number; readonly writableNeedDrain: boolean; _write: never; _writev?: undefined; _final: never; setDefaultEncoding: never; }; readonly state: { effectiveLocalWindowSize?: number | undefined | undefined; effectiveRecvDataLength?: number | undefined | undefined; nextStreamID?: number | undefined | undefined; localWindowSize?: number | undefined | undefined; lastProcStreamID?: number | undefined | undefined; remoteWindowSize?: number | undefined | undefined; outboundQueueSize?: number | undefined | undefined; deflateDynamicTableSize?: number | undefined | undefined; inflateDynamicTableSize?: number | undefined | undefined; }; readonly type: number; close: never; destroy: never; goaway: never; ping: never; setLocalWindowSize: never; setTimeout: never; settings: never; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; setMaxListeners: never; } | undefined; readonly state: { localWindowSize?: number | undefined | undefined; state?: number | undefined | undefined; localClose?: number | undefined | undefined; remoteClose?: number | undefined | undefined; sumDependencyWeight?: number | undefined | undefined; weight?: number | undefined | undefined; }; close: never; setTimeout: never; sendTrailers: never; allowHalfOpen: boolean; pipe: never; setMaxListeners: never; readonly readableAborted: boolean; readable: boolean; readonly readableDidRead: boolean; readonly readableEncoding: BufferEncoding | null; readonly readableEnded: boolean; readableFlowing: boolean | null; readonly readableHighWaterMark: number; readonly readableLength: number; readonly readableObjectMode: boolean; readonly errored: { name: string; message: string; stack?: string | undefined; cause?: import("hono/utils/types").JSONValue | undefined; } | null; _construct?: undefined; _read: never; read: never; setEncoding: never; unpipe: never; unshift: never; wrap: never; push: never; compose: never; iterator: never; map: never; filter: never; forEach: never; toArray: never; some: never; find: never; every: never; flatMap: never; drop: never; take: never; reduce: never; _destroy: never; destroy: never; writable: boolean; readonly writableAborted: boolean; readonly writableEnded: boolean; readonly writableFinished: boolean; readonly writableHighWaterMark: number; readonly writableLength: number; readonly writableObjectMode: boolean; readonly writableCorked: number; readonly writableNeedDrain: boolean; _write: never; _writev?: undefined; _final: never; write: never; setDefaultEncoding: never; end: never; } | undefined; headers: { [x: string]: string | string[] | undefined; ":path"?: string | undefined | undefined; ":method"?: string | undefined | undefined; ":authority"?: string | undefined | undefined; ":scheme"?: string | undefined | undefined; ":protocol"?: string | undefined | undefined; accept?: string | undefined | undefined; "accept-encoding"?: string | undefined | undefined; "accept-language"?: string | undefined | undefined; "accept-patch"?: string | undefined | undefined; "accept-ranges"?: string | undefined | undefined; "access-control-allow-credentials"?: string | undefined | undefined; "access-control-allow-headers"?: string | undefined | undefined; "access-control-allow-methods"?: string | undefined | undefined; "access-control-allow-origin"?: string | undefined | undefined; "access-control-expose-headers"?: string | undefined | undefined; "access-control-max-age"?: string | undefined | undefined; "access-control-request-headers"?: string | undefined | undefined; "access-control-request-method"?: string | undefined | undefined; age?: string | undefined | undefined; allow?: string | undefined | undefined; "alt-svc"?: string | undefined | undefined; authorization?: string | undefined | undefined; "cache-control"?: string | undefined | undefined; connection?: string | undefined | undefined; "content-disposition"?: string | undefined | undefined; "content-encoding"?: string | undefined | undefined; "content-language"?: string | undefined | undefined; "content-length"?: string | undefined | undefined; "content-location"?: string | undefined | undefined; "content-range"?: string | undefined | undefined; "content-type"?: string | undefined | undefined; cookie?: string | undefined | undefined; date?: string | undefined | undefined; etag?: string | undefined | undefined; expect?: string | undefined | undefined; expires?: string | undefined | undefined; forwarded?: string | undefined | undefined; from?: string | undefined | undefined; host?: string | undefined | undefined; "if-match"?: string | undefined | undefined; "if-modified-since"?: string | undefined | undefined; "if-none-match"?: string | undefined | undefined; "if-unmodified-since"?: string | undefined | undefined; "last-modified"?: string | undefined | undefined; location?: string | undefined | undefined; origin?: string | undefined | undefined; pragma?: string | undefined | undefined; "proxy-authenticate"?: string | undefined | undefined; "proxy-authorization"?: string | undefined | undefined; "public-key-pins"?: string | undefined | undefined; range?: string | undefined | undefined; referer?: string | undefined | undefined; "retry-after"?: string | undefined | undefined; "sec-fetch-site"?: string | undefined | undefined; "sec-fetch-mode"?: string | undefined | undefined; "sec-fetch-user"?: string | undefined | undefined; "sec-fetch-dest"?: string | undefined | undefined; "sec-websocket-accept"?: string | undefined | undefined; "sec-websocket-extensions"?: string | undefined | undefined; "sec-websocket-key"?: string | undefined | undefined; "sec-websocket-protocol"?: string | undefined | undefined; "sec-websocket-version"?: string | undefined | undefined; "set-cookie"?: string[] | undefined | undefined; "strict-transport-security"?: string | undefined | undefined; tk?: string | undefined | undefined; trailer?: string | undefined | undefined; "transfer-encoding"?: string | undefined | undefined; upgrade?: string | undefined | undefined; "user-agent"?: string | undefined | undefined; vary?: string | undefined | undefined; via?: string | undefined | undefined; warning?: string | undefined | undefined; "www-authenticate"?: string | undefined | undefined; ":status"?: number | undefined | undefined; }; readonly url: string; readonly type: ResponseType; data: { anyoneCanAddSelf?: boolean | null | undefined; attachments?: { fileId?: string | null | undefined; fileUrl?: string | null | undefined; iconLink?: string | null | undefined; mimeType?: string | null | undefined; title?: string | null | undefined; }[] | undefined; attendees?: { additionalGuests?: number | null | undefined; asyncOperation?: string | null | undefined; comment?: string | null | undefined; displayName?: string | null | undefined; email?: string | null | undefined; id?: string | null | undefined; optional?: boolean | null | undefined; organizer?: boolean | null | undefined; resource?: boolean | null | undefined; responseStatus?: string | null | undefined; self?: boolean | null | undefined; }[] | undefined; attendeesOmitted?: boolean | null | undefined; birthdayProperties?: { contact?: string | null | undefined; customTypeName?: string | null | undefined; type?: string | null | undefined; } | undefined; colorId?: string | null | undefined; conferenceData?: { conferenceId?: string | null | undefined; conferenceSolution?: { iconUri?: string | null | undefined; key?: { type?: string | null | undefined; } | undefined; name?: string | null | undefined; } | undefined; createRequest?: { conferenceSolutionKey?: { type?: string | null | undefined; } | undefined; requestId?: string | null | undefined; status?: { statusCode?: string | null | undefined; } | undefined; } | undefined; entryPoints?: { accessCode?: string | null | undefined; entryPointFeatures?: string[] | null | undefined; entryPointType?: string | null | undefined; label?: string | null | undefined; meetingCode?: string | null | undefined; passcode?: string | null | undefined; password?: string | null | undefined; pin?: string | null | undefined; regionCode?: string | null | undefined; uri?: string | null | undefined; }[] | undefined; notes?: string | null | undefined; parameters?: { addOnParameters?: { parameters?: { [x: string]: string; } | null | undefined; } | undefined; } | undefined; signature?: string | null | undefined; } | undefined; created?: string | null | undefined; creator?: { displayName?: string | undefined; email?: string | undefined; id?: string | undefined; self?: boolean | undefined; } | null | undefined; description?: string | null | undefined; end?: { date?: string | null | undefined; dateTime?: string | null | undefined; timeZone?: string | null | undefined; } | undefined; endTimeUnspecified?: boolean | null | undefined; etag?: string | null | undefined; eventLabelId?: string | null | undefined; eventType?: string | null | undefined; extendedProperties?: { private?: { [x: string]: string; } | undefined; shared?: { [x: string]: string; } | undefined; } | null | undefined; focusTimeProperties?: { autoDeclineMode?: string | null | undefined; chatStatus?: string | null | undefined; declineMessage?: string | null | undefined; } | undefined; gadget?: { display?: string | undefined; height?: number | undefined; iconLink?: string | undefined; link?: string | undefined; preferences?: { [x: string]: string; } | undefined; title?: string | undefined; type?: string | undefined; width?: number | undefined; } | null | undefined; guestsCanInviteOthers?: boolean | null | undefined; guestsCanModify?: boolean | null | undefined; guestsCanSeeOtherGuests?: boolean | null | undefined; hangoutLink?: string | null | undefined; htmlLink?: string | null | undefined; iCalUID?: string | null | undefined; id?: string | null | undefined; kind?: string | null | undefined; location?: string | null | undefined; locked?: boolean | null | undefined; organizer?: { displayName?: string | undefined; email?: string | undefined; id?: string | undefined; self?: boolean | undefined; } | null | undefined; originalStartTime?: { date?: string | null | undefined; dateTime?: string | null | undefined; timeZone?: string | null | undefined; } | undefined; outOfOfficeProperties?: { autoDeclineMode?: string | null | undefined; declineMessage?: string | null | undefined; } | undefined; privateCopy?: boolean | null | undefined; recurrence?: string[] | null | undefined; recurringEventId?: string | null | undefined; reminders?: { overrides?: { method?: string | null | undefined; minutes?: number | null | undefined; }[] | undefined; useDefault?: boolean | undefined; } | null | undefined; sequence?: number | null | undefined; source?: { title?: string | undefined; url?: string | undefined; } | null | undefined; start?: { date?: string | null | undefined; dateTime?: string | null | undefined; timeZone?: string | null | undefined; } | undefined; status?: string | null | undefined; summary?: string | null | undefined; transparency?: string | null | undefined; updated?: string | null | undefined; visibility?: string | null | undefined; workingLocationProperties?: { customLocation?: { label?: string | undefined; } | null | undefined; homeOffice?: any | null; officeLocation?: { buildingId?: string | undefined; deskId?: string | undefined; floorId?: string | undefined; floorSectionId?: string | undefined; label?: string | undefined; } | null | undefined; type?: string | null | undefined; } | undefined; }; readonly status: number; readonly body: { readonly locked: boolean; pipeThrough: never; pipeTo: never; values: never; } | null; readonly ok: boolean; config: { headers: { [x: string]: string; "set-cookie"?: string[] | undefined; }; url: string; adapter?: undefined; baseURL?: string | undefined; data?: string | {} | { readonly readableAborted: boolean; readable: boolean; readonly readableDidRead: boolean; readonly readableEncoding: BufferEncoding | null; readonly readableEnded: boolean; readableFlowing: boolean | null; readonly readableHighWaterMark: number; readonly readableLength: number; readonly readableObjectMode: boolean; destroyed: boolean; readonly closed: boolean; readonly errored: { name: string; message: string; stack?: string | undefined; cause?: import("hono/utils/types").JSONValue | undefined; } | null; _construct?: undefined; _read: never; read: never; setEncoding: never; unpipe: never; unshift: never; wrap: never; push: never; compose: never; iterator: never; map: never; filter: never; forEach: never; toArray: never; some: never; find: never; every: never; flatMap: never; drop: never; take: never; reduce: never; _destroy: never; destroy: never; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; pipe: never; setMaxListeners: never; } | { readonly lastModified: number; readonly name: string; readonly webkitRelativePath: string; readonly size: number; readonly type: string; slice: never; image: never; } | { readonly size: number; readonly type: string; slice: never; image: never; } | { append: never; delete: never; get: never; getAll: never; has: never; set: never; forEach: never; } | { readonly locked: boolean; pipeThrough: never; pipeTo: never; values: never; } | { [x: string]: string; } | { readonly byteLength: number; slice: never; resize: never; } | { [x: number]: number; readonly BYTES_PER_ELEMENT: number; readonly buffer: { readonly byteLength: number; slice: never; resize: never; } | { readonly byteLength: number; slice: never; grow: never; }; readonly byteLength: number; readonly byteOffset: number; copyWithin: never; every: never; fill: never; filter: never; find: never; findIndex: never; forEach: never; indexOf: never; join: never; lastIndexOf: never; readonly length: number; map: never; reduce: never; reduceRight: never; set: never; slice: never; some: never; sort: never; subarray: never; includes: never; at: never; toBase64: never; setFromBase64: never; setFromHex: never; } | { [x: number]: number; readonly BYTES_PER_ELEMENT: number; readonly buffer: { readonly byteLength: number; slice: never; resize: never; } | { readonly byteLength: number; slice: never; grow: never; }; readonly byteLength: number; readonly byteOffset: number; copyWithin: never; every: never; fill: never; filter: never; find: never; findIndex: never; forEach: never; indexOf: never; join: never; lastIndexOf: never; readonly length: number; map: never; reduce: never; reduceRight: never; set: never; slice: never; some: never; sort: never; subarray: never; includes: never; at: never; } | { [x: number]: number; readonly BYTES_PER_ELEMENT: number; readonly buffer: { readonly byteLength: number; slice: never; resize: never; } | { readonly byteLength: number; slice: never; grow: never; }; readonly byteLength: number; readonly byteOffset: number; copyWithin: never; every: never; fill: never; filter: never; find: never; findIndex: never; forEach: never; indexOf: never; join: never; lastIndexOf: never; readonly length: number; map: never; reduce: never; reduceRight: never; set: never; slice: never; some: never; sort: never; subarray: never; includes: never; at: never; } | { [x: number]: number; readonly BYTES_PER_ELEMENT: number; readonly buffer: { readonly byteLength: number; slice: never; resize: never; } | { readonly byteLength: number; slice: never; grow: never; }; readonly byteLength: number; readonly byteOffset: number; copyWithin: never; every: never; fill: never; filter: never; find: never; findIndex: never; forEach: never; indexOf: never; join: never; lastIndexOf: never; readonly length: number; map: never; reduce: never; reduceRight: never; set: never; slice: never; some: never; sort: never; subarray: never; includes: never; at: never; } | { [x: number]: number; readonly BYTES_PER_ELEMENT: number; readonly buffer: { readonly byteLength: number; slice: never; resize: never; } | { readonly byteLength: number; slice: never; grow: never; }; readonly byteLength: number; readonly byteOffset: number; copyWithin: never; every: never; fill: never; filter: never; find: never; findIndex: never; forEach: never; indexOf: never; join: never; lastIndexOf: never; readonly length: number; map: never; reduce: never; reduceRight: never; set: never; slice: never; some: never; sort: never; subarray: never; includes: never; at: never; } | { [x: number]: number; readonly BYTES_PER_ELEMENT: number; readonly buffer: { readonly byteLength: number; slice: never; resize: never; } | { readonly byteLength: number; slice: never; grow: never; }; readonly byteLength: number; readonly byteOffset: number; copyWithin: never; every: never; fill: never; filter: never; find: never; findIndex: never; forEach: never; indexOf: never; join: never; lastIndexOf: never; readonly length: number; map: never; reduce: never; reduceRight: never; set: never; slice: never; some: never; sort: never; subarray: never; includes: never; at: never; } | { [x: number]: number; readonly BYTES_PER_ELEMENT: number; readonly buffer: { readonly byteLength: number; slice: never; resize: never; } | { readonly byteLength: number; slice: never; grow: never; }; readonly byteLength: number; readonly byteOffset: number; copyWithin: never; every: never; fill: never; filter: never; find: never; findIndex: never; forEach: never; indexOf: never; join: never; lastIndexOf: never; readonly length: number; map: never; reduce: never; reduceRight: never; set: never; slice: never; some: never; sort: never; subarray: never; includes: never; at: never; } | { [x: number]: never; readonly BYTES_PER_ELEMENT: number; readonly buffer: { readonly byteLength: number; slice: never; resize: never; } | { readonly byteLength: number; slice: never; grow: never; }; readonly byteLength: number; readonly byteOffset: number; copyWithin: never; every: never; fill: never; filter: never; find: never; findIndex: never; forEach: never; includes: never; indexOf: never; join: never; lastIndexOf: never; readonly length: number; map: never; reduce: never; reduceRight: never; set: never; slice: never; some: never; sort: never; subarray: never; toLocaleString: never; at: never; } | { [x: number]: never; readonly BYTES_PER_ELEMENT: number; readonly buffer: { readonly byteLength: number; slice: never; resize: never; } | { readonly byteLength: number; slice: never; grow: never; }; readonly byteLength: number; readonly byteOffset: number; copyWithin: never; every: never; fill: never; filter: never; find: never; findIndex: never; forEach: never; includes: never; indexOf: never; join: never; lastIndexOf: never; readonly length: number; map: never; reduce: never; reduceRight: never; set: never; slice: never; some: never; sort: never; subarray: never; toLocaleString: never; at: never; } | { [x: number]: number; readonly BYTES_PER_ELEMENT: number; readonly buffer: { readonly byteLength: number; slice: never; resize: never; } | { readonly byteLength: number; slice: never; grow: never; }; readonly byteLength: number; readonly byteOffset: number; at: never; copyWithin: never; every: never; fill: never; filter: never; find: never; findIndex: never; findLast: never; findLastIndex: never; forEach: never; includes: never; indexOf: never; join: never; lastIndexOf: never; readonly length: number; map: never; reduce: never; reduceRight: never; set: never; slice: never; some: never; sort: never; subarray: never; toLocaleString: never; toSorted: never; with: never; } | { [x: number]: number; readonly BYTES_PER_ELEMENT: number; readonly buffer: { readonly byteLength: number; slice: never; resize: never; } | { readonly byteLength: number; slice: never; grow: never; }; readonly byteLength: number; readonly byteOffset: number; copyWithin: never; every: never; fill: never; filter: never; find: never; findIndex: never; forEach: never; indexOf: never; join: never; lastIndexOf: never; readonly length: number; map: never; reduce: never; reduceRight: never; set: never; slice: never; some: never; sort: never; subarray: never; includes: never; at: never; } | { [x: number]: number; readonly BYTES_PER_ELEMENT: number; readonly buffer: { readonly byteLength: number; slice: never; resize: never; } | { readonly byteLength: number; slice: never; grow: never; }; readonly byteLength: number; readonly byteOffset: number; copyWithin: never; every: never; fill: never; filter: never; find: never; findIndex: never; forEach: never; indexOf: never; join: never; lastIndexOf: never; readonly length: number; map: never; reduce: never; reduceRight: never; set: never; slice: never; some: never; sort: never; subarray: never; includes: never; at: never; } | { readonly buffer: { readonly byteLength: number; slice: never; resize: never; } | { readonly byteLength: number; slice: never; grow: never; }; readonly byteLength: number; readonly byteOffset: number; getFloat32: never; getFloat64: never; getInt8: never; getInt16: never; getInt32: never; getUint8: never; getUint16: never; getUint32: never; setFloat32: never; setFloat64: never; setInt8: never; setInt16: never; setInt32: never; setUint8: never; setUint16: never; setUint32: never; getBigInt64: never; getBigUint64: never; setBigInt64: never; setBigUint64: never; getFloat16: never; setFloat16: never; } | {} | { readonly size: number; readonly type: string; slice: never; image: never; } | { append: never; set: never; get: never; getAll: never; has: never; delete: never; forEach: never; } | {} | { type: "Buffer"; data: number[]; } | { readonly buffer: { readonly byteLength: number; slice: never; resize: never; } | { readonly byteLength: number; slice: never; grow: never; }; readonly byteLength: number; readonly byteOffset: number; } | null | undefined; maxContentLength?: number | undefined; maxRedirects?: number | undefined; follow?: number | undefined; multipart?: { headers: { [x: string]: string; "set-cookie"?: string[] | undefined; }; content: string | { readonly readableAborted: boolean; readable: boolean; readonly readableDidRead: boolean; readonly readableEncoding: BufferEncoding | null; readonly readableEnded: boolean; readableFlowing: boolean | null; readonly readableHighWaterMark: number; readonly readableLength: number; readonly readableObjectMode: boolean; destroyed: boolean; readonly closed: boolean; readonly errored: { name: string; message: string; stack?: string | undefined; cause?: import("hono/utils/types").JSONValue | undefined; } | null; _construct?: undefined; _read: never; read: never; setEncoding: never; unpipe: never; unshift: never; wrap: never; push: never; compose: never; iterator: never; map: never; filter: never; forEach: never; toArray: never; some: never; find: never; every: never; flatMap: never; drop: never; take: never; reduce: never; _destroy: never; destroy: never; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; pipe: never; setMaxListeners: never; }; }[] | undefined; params?: any; paramsSerializer?: undefined; timeout?: number | undefined; responseType?: "arraybuffer" | "blob" | "json" | "text" | "stream" | "unknown" | undefined; agent?: { maxFreeSockets: number; maxSockets: number; maxTotalSockets: number; readonly freeSockets: { readonly [x: string]: { write: never; connect: never; setEncoding: never; setTimeout: never; setNoDelay: never; setKeepAlive: never; setTypeOfService: never; readonly autoSelectFamilyAttemptedAddresses: string[]; readonly bufferSize: number; readonly bytesRead: number; readonly bytesWritten: number; readonly connecting: boolean; readonly pending: boolean; readonly destroyed: boolean; readonly localAddress?: string | undefined; readonly localPort?: number | undefined; readonly localFamily?: string | undefined; readonly readyState: import("node:net").SocketReadyState; readonly remoteAddress: string | undefined; readonly remoteFamily: string | undefined; readonly remotePort: number | undefined; readonly server: { listen: never; close: never; getConnections: never; maxConnections: number; connections: number; readonly listening: boolean; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; setMaxListeners: never; } | null; readonly timeout?: number | undefined; end: never; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; allowHalfOpen: boolean; pipe: never; setMaxListeners: never; readonly readableAborted: boolean; readable: boolean; readonly readableDidRead: boolean; readonly readableEncoding: BufferEncoding | null; readonly readableEnded: boolean; readableFlowing: boolean | null; readonly readableHighWaterMark: number; readonly readableLength: number; readonly readableObjectMode: boolean; readonly closed: boolean; readonly errored: { name: string; message: string; stack?: string | undefined; cause?: import("hono/utils/types").JSONValue | undefined; } | null; _construct?: undefined; _read: never; read: never; unpipe: never; unshift: never; wrap: never; push: never; compose: never; iterator: never; map: never; filter: never; forEach: never; toArray: never; some: never; find: never; every: never; flatMap: never; drop: never; take: never; reduce: never; _destroy: never; destroy: never; writable: boolean; readonly writableAborted: boolean; readonly writableEnded: boolean; readonly writableFinished: boolean; readonly writableHighWaterMark: number; readonly writableLength: number; readonly writableObjectMode: boolean; readonly writableCorked: number; readonly writableNeedDrain: boolean; _write: never; _writev?: undefined; _final: never; setDefaultEncoding: never; }[] | undefined; }; readonly sockets: { readonly [x: string]: { write: never; connect: never; setEncoding: never; setTimeout: never; setNoDelay: never; setKeepAlive: never; setTypeOfService: never; readonly autoSelectFamilyAttemptedAddresses: string[]; readonly bufferSize: number; readonly bytesRead: number; readonly bytesWritten: number; readonly connecting: boolean; readonly pending: boolean; readonly destroyed: boolean; readonly localAddress?: string | undefined; readonly localPort?: number | undefined; readonly localFamily?: string | undefined; readonly readyState: import("node:net").SocketReadyState; readonly remoteAddress: string | undefined; readonly remoteFamily: string | undefined; readonly remotePort: number | undefined; readonly server: { listen: never; close: never; getConnections: never; maxConnections: number; connections: number; readonly listening: boolean; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; setMaxListeners: never; } | null; readonly timeout?: number | undefined; end: never; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; allowHalfOpen: boolean; pipe: never; setMaxListeners: never; readonly readableAborted: boolean; readable: boolean; readonly readableDidRead: boolean; readonly readableEncoding: BufferEncoding | null; readonly readableEnded: boolean; readableFlowing: boolean | null; readonly readableHighWaterMark: number; readonly readableLength: number; readonly readableObjectMode: boolean; readonly closed: boolean; readonly errored: { name: string; message: string; stack?: string | undefined; cause?: import("hono/utils/types").JSONValue | undefined; } | null; _construct?: undefined; _read: never; read: never; unpipe: never; unshift: never; wrap: never; push: never; compose: never; iterator: never; map: never; filter: never; forEach: never; toArray: never; some: never; find: never; every: never; flatMap: never; drop: never; take: never; reduce: never; _destroy: never; destroy: never; writable: boolean; readonly writableAborted: boolean; readonly writableEnded: boolean; readonly writableFinished: boolean; readonly writableHighWaterMark: number; readonly writableLength: number; readonly writableObjectMode: boolean; readonly writableCorked: number; readonly writableNeedDrain: boolean; _write: never; _writev?: undefined; _final: never; setDefaultEncoding: never; }[] | undefined; }; readonly requests: { readonly [x: string]: { aborted: boolean; host: string; protocol: string; reusedSocket: boolean; maxHeadersCount: number; method: string; path: string; onSocket: never; setTimeout: never; setNoDelay: never; setSocketKeepAlive: never; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; readonly req: { aborted: boolean; httpVersion: string; httpVersionMajor: number; httpVersionMinor: number; complete: boolean; connection: { write: never; connect: never; setEncoding: never; setTimeout: never; setNoDelay: never; setKeepAlive: never; setTypeOfService: never; readonly autoSelectFamilyAttemptedAddresses: string[]; readonly bufferSize: number; readonly bytesRead: number; readonly bytesWritten: number; readonly connecting: boolean; readonly pending: boolean; readonly destroyed: boolean; readonly localAddress?: string | undefined; readonly localPort?: number | undefined; readonly localFamily?: string | undefined; readonly readyState: import("node:net").SocketReadyState; readonly remoteAddress: string | undefined; readonly remoteFamily: string | undefined; readonly remotePort: number | undefined; readonly server: { listen: never; close: never; getConnections: never; maxConnections: number; connections: number; readonly listening: boolean; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; setMaxListeners: never; } | null; readonly timeout?: number | undefined; end: never; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; allowHalfOpen: boolean; pipe: never; setMaxListeners: never; readonly readableAborted: boolean; readable: boolean; readonly readableDidRead: boolean; readonly readableEncoding: BufferEncoding | null; readonly readableEnded: boolean; readableFlowing: boolean | null; readonly readableHighWaterMark: number; readonly readableLength: number; readonly readableObjectMode: boolean; readonly closed: boolean; readonly errored: { name: string; message: string; stack?: string | undefined; cause?: import("hono/utils/types").JSONValue | undefined; } | null; _construct?: undefined; _read: never; read: never; unpipe: never; unshift: never; wrap: never; push: never; compose: never; iterator: never; map: never; filter: never; forEach: never; toArray: never; some: never; find: never; every: never; flatMap: never; drop: never; take: never; reduce: never; _destroy: never; destroy: never; writable: boolean; readonly writableAborted: boolean; readonly writableEnded: boolean; readonly writableFinished: boolean; readonly writableHighWaterMark: number; readonly writableLength: number; readonly writableObjectMode: boolean; readonly writableCorked: number; readonly writableNeedDrain: boolean; _write: never; _writev?: undefined; _final: never; setDefaultEncoding: never; }; socket: { write: never; connect: never; setEncoding: never; setTimeout: never; setNoDelay: never; setKeepAlive: never; setTypeOfService: never; readonly autoSelectFamilyAttemptedAddresses: string[]; readonly bufferSize: number; readonly bytesRead: number; readonly bytesWritten: number; readonly connecting: boolean; readonly pending: boolean; readonly destroyed: boolean; readonly localAddress?: string | undefined; readonly localPort?: number | undefined; readonly localFamily?: string | undefined; readonly readyState: import("node:net").SocketReadyState; readonly remoteAddress: string | undefined; readonly remoteFamily: string | undefined; readonly remotePort: number | undefined; readonly server: { listen: never; close: never; getConnections: never; maxConnections: number; connections: number; readonly listening: boolean; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; setMaxListeners: never; } | null; readonly timeout?: number | undefined; end: never; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; allowHalfOpen: boolean; pipe: never; setMaxListeners: never; readonly readableAborted: boolean; readable: boolean; readonly readableDidRead: boolean; readonly readableEncoding: BufferEncoding | null; readonly readableEnded: boolean; readableFlowing: boolean | null; readonly readableHighWaterMark: number; readonly readableLength: number; readonly readableObjectMode: boolean; readonly closed: boolean; readonly errored: { name: string; message: string; stack?: string | undefined; cause?: import("hono/utils/types").JSONValue | undefined; } | null; _construct?: undefined; _read: never; read: never; unpipe: never; unshift: never; wrap: never; push: never; compose: never; iterator: never; map: never; filter: never; forEach: never; toArray: never; some: never; find: never; every: never; flatMap: never; drop: never; take: never; reduce: never; _destroy: never; destroy: never; writable: boolean; readonly writableAborted: boolean; readonly writableEnded: boolean; readonly writableFinished: boolean; readonly writableHighWaterMark: number; readonly writableLength: number; readonly writableObjectMode: boolean; readonly writableCorked: number; readonly writableNeedDrain: boolean; _write: never; _writev?: undefined; _final: never; setDefaultEncoding: never; }; headers: { [x: string]: string | string[] | undefined; accept?: string | undefined | undefined; "accept-encoding"?: string | undefined | undefined; "accept-language"?: string | undefined | undefined; "accept-patch"?: string | undefined | undefined; "accept-ranges"?: string | undefined | undefined; "access-control-allow-credentials"?: string | undefined | undefined; "access-control-allow-headers"?: string | undefined | undefined; "access-control-allow-methods"?: string | undefined | undefined; "access-control-allow-origin"?: string | undefined | undefined; "access-control-expose-headers"?: string | undefined | undefined; "access-control-max-age"?: string | undefined | undefined; "access-control-request-headers"?: string | undefined | undefined; "access-control-request-method"?: string | undefined | undefined; age?: string | undefined | undefined; allow?: string | undefined | undefined; "alt-svc"?: string | undefined | undefined; authorization?: string | undefined | undefined; "cache-control"?: string | undefined | undefined; connection?: string | undefined | undefined; "content-disposition"?: string | undefined | undefined; "content-encoding"?: string | undefined | undefined; "content-language"?: string | undefined | undefined; "content-length"?: string | undefined | undefined; "content-location"?: string | undefined | undefined; "content-range"?: string | undefined | undefined; "content-type"?: string | undefined | undefined; cookie?: string | undefined | undefined; date?: string | undefined | undefined; etag?: string | undefined | undefined; expect?: string | undefined | undefined; expires?: string | undefined | undefined; forwarded?: string | undefined | undefined; from?: string | undefined | undefined; host?: string | undefined | undefined; "if-match"?: string | undefined | undefined; "if-modified-since"?: string | undefined | undefined; "if-none-match"?: string | undefined | undefined; "if-unmodified-since"?: string | undefined | undefined; "last-modified"?: string | undefined | undefined; location?: string | undefined | undefined; origin?: string | undefined | undefined; pragma?: string | undefined | undefined; "proxy-authenticate"?: string | undefined | undefined; "proxy-authorization"?: string | undefined | undefined; "public-key-pins"?: string | undefined | undefined; range?: string | undefined | undefined; referer?: string | undefined | undefined; "retry-after"?: string | undefined | undefined; "sec-fetch-site"?: string | undefined | undefined; "sec-fetch-mode"?: string | undefined | undefined; "sec-fetch-user"?: string | undefined | undefined; "sec-fetch-dest"?: string | undefined | undefined; "sec-websocket-accept"?: string | undefined | undefined; "sec-websocket-extensions"?: string | undefined | undefined; "sec-websocket-key"?: string | undefined | undefined; "sec-websocket-protocol"?: string | undefined | undefined; "sec-websocket-version"?: string | undefined | undefined; "set-cookie"?: string[] | undefined | undefined; "strict-transport-security"?: string | undefined | undefined; tk?: string | undefined | undefined; trailer?: string | undefined | undefined; "transfer-encoding"?: string | undefined | undefined; upgrade?: string | undefined | undefined; "user-agent"?: string | undefined | undefined; vary?: string | undefined | undefined; via?: string | undefined | undefined; warning?: string | undefined | undefined; "www-authenticate"?: string | undefined | undefined; }; headersDistinct: { [x: string]: string[] | undefined; }; rawHeaders: string[]; trailers: { [x: string]: string | undefined; }; trailersDistinct: { [x: string]: string[] | undefined; }; rawTrailers: string[]; setTimeout: never; readonly signal: { readonly aborted: boolean; onabort: null; readonly reason: any; addEventListener: never; removeEventListener: never; dispatchEvent: never; }; method?: string | undefined | undefined; url?: string | undefined | undefined; statusCode?: number | undefined | undefined; statusMessage?: string | undefined | undefined; destroy: never; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; readonly readableAborted: boolean; readable: boolean; readonly readableDidRead: boolean; readonly readableEncoding: BufferEncoding | null; readonly readableEnded: boolean; readableFlowing: boolean | null; readonly readableHighWaterMark: number; readonly readableLength: number; readonly readableObjectMode: boolean; destroyed: boolean; readonly closed: boolean; readonly errored: { name: string; message: string; stack?: string | undefined; cause?: import("hono/utils/types").JSONValue | undefined; } | null; _construct?: undefined; _read: never; read: never; setEncoding: never; unpipe: never; unshift: never; wrap: never; push: never; compose: never; iterator: never; map: never; filter: never; forEach: never; toArray: never; some: never; find: never; every: never; flatMap: never; drop: never; take: never; reduce: never; _destroy: never; pipe: never; setMaxListeners: never; }; chunkedEncoding: boolean; shouldKeepAlive: boolean; useChunkedEncodingByDefault: boolean; sendDate: boolean; finished: boolean; readonly headersSent: boolean; readonly connection: { write: never; connect: never; setEncoding: never; setTimeout: never; setNoDelay: never; setKeepAlive: never; setTypeOfService: never; readonly autoSelectFamilyAttemptedAddresses: string[]; readonly bufferSize: number; readonly bytesRead: number; readonly bytesWritten: number; readonly connecting: boolean; readonly pending: boolean; readonly destroyed: boolean; readonly localAddress?: string | undefined; readonly localPort?: number | undefined; readonly localFamily?: string | undefined; readonly readyState: import("node:net").SocketReadyState; readonly remoteAddress: string | undefined; readonly remoteFamily: string | undefined; readonly remotePort: number | undefined; readonly server: { listen: never; close: never; getConnections: never; maxConnections: number; connections: number; readonly listening: boolean; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; setMaxListeners: never; } | null; readonly timeout?: number | undefined; end: never; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; allowHalfOpen: boolean; pipe: never; setMaxListeners: never; readonly readableAborted: boolean; readable: boolean; readonly readableDidRead: boolean; readonly readableEncoding: BufferEncoding | null; readonly readableEnded: boolean; readableFlowing: boolean | null; readonly readableHighWaterMark: number; readonly readableLength: number; readonly readableObjectMode: boolean; readonly closed: boolean; readonly errored: { name: string; message: string; stack?: string | undefined; cause?: import("hono/utils/types").JSONValue | undefined; } | null; _construct?: undefined; _read: never; read: never; unpipe: never; unshift: never; wrap: never; push: never; compose: never; iterator: never; map: never; filter: never; forEach: never; toArray: never; some: never; find: never; every: never; flatMap: never; drop: never; take: never; reduce: never; _destroy: never; destroy: never; writable: boolean; readonly writableAborted: boolean; readonly writableEnded: boolean; readonly writableFinished: boolean; readonly writableHighWaterMark: number; readonly writableLength: number; readonly writableObjectMode: boolean; readonly writableCorked: number; readonly writableNeedDrain: boolean; _write: never; _writev?: undefined; _final: never; setDefaultEncoding: never; } | null; readonly socket: { write: never; connect: never; setEncoding: never; setTimeout: never; setNoDelay: never; setKeepAlive: never; setTypeOfService: never; readonly autoSelectFamilyAttemptedAddresses: string[]; readonly bufferSize: number; readonly bytesRead: number; readonly bytesWritten: number; readonly connecting: boolean; readonly pending: boolean; readonly destroyed: boolean; readonly localAddress?: string | undefined; readonly localPort?: number | undefined; readonly localFamily?: string | undefined; readonly readyState: import("node:net").SocketReadyState; readonly remoteAddress: string | undefined; readonly remoteFamily: string | undefined; readonly remotePort: number | undefined; readonly server: { listen: never; close: never; getConnections: never; maxConnections: number; connections: number; readonly listening: boolean; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; setMaxListeners: never; } | null; readonly timeout?: number | undefined; end: never; addListener: never; listenerCount: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; removeListener: never; allowHalfOpen: boolean; pipe: never; setMaxListeners: never; readonly readableAborted: boolean; readable: boolean; readonly readableDidRead: boolean; readonly readableEncoding: BufferEncoding | null; readonly readableEnded: boolean; readableFlowing: boolean | null; readonly readableHighWaterMark: number; readonly readableLength: number; readonly readableObjectMode: boolean; readonly closed: boolean; readonly errored: { name: string; message: string; stack?: string | undefined; cause?: import("hono/utils/types").JSONValue | undefined; } | null; _construct?: undefined; _read: never; read: never; unpipe: never; unshift: never; wrap: never; push: never; compose: never; iterator: never; map: never; filter: never; forEach: never; toArray: never; some: never; find: never; every: never; flatMap: never; drop: never; take: never; reduce: never; _destroy: never; destroy: never; writable: boolean; readonly writableAborted: boolean; readonly writableEnded: boolean; readonly writableFinished: boolean; readonly writableHighWaterMark: number; readonly writableLength: number; readonly writableObjectMode: boolean; readonly writableCorked: number; readonly writableNeedDrain: boolean; _write: never; _writev?: undefined; _final: never; setDefaultEncoding: never; } | null; setHeader: never; setHeaders: never; appendHeader: never; getHeader: never; hasHeader: never; removeHeader: never; addTrailers: never; writable: boolean; readonly writableAborted: boolean; readonly writableEnded: boolean; readonly writableFinished: boolean; readonly writableHighWaterMark: number; readonly writableLength: number; readonly writableObjectMode: boolean; readonly writableCorked: number; destroyed: boolean; readonly closed: boolean; readonly errored: { name: string; message: string; stack?: string | undefined; cause?: import("hono/utils/types").JSONValue | undefined; } | null; readonly writableNeedDrain: boolean; _write: never; _writev?: undefined; _construct?: undefined; _destroy: never; _final: never; write: never; setDefaultEncoding: never; end: never; destroy: never; pipe: never; setMaxListeners: never; }[] | undefined; }; createConnection: never; keepSocketAlive: never; reuseSocket: never; getName: never; addListener: never; emit: never; listenerCount: never; listeners: never; off: never; on: never; once: never; prependListener: never; prependOnceListener: never; rawListeners: never; removeAllListeners: never; removeListener: never; setMaxListeners: never; } | undefined; validateStatus?: undefined; retryConfig?: { retry?: number | undefined; currentRetryAttempt?: number | undefined; retryDelay?: number | undefined; httpMethodsToRetry?: string[] | undefined; statusCodesToRetry?: number[][] | undefined; onRetryAttempt?: undefined; shouldRetry?: undefined; noResponseRetries?: number | undefined; retryBackoff?: undefined; timeOfFirstRequest?: number | undefined; totalTimeout?: number | undefined; maxRetryDelay?: number | undefined; retryDelayMultiplier?: number | undefined; } | undefined; retry?: boolean | undefined; size?: number | undefined; fetchImplementation?: { preconnect: never; } | undefined; cert?: string | undefined; key?: string | undefined; proxy?: string | undefined; noProxy?: (string | { exec: never; test: never; readonly source: string; readonly global: boolean; readonly ignoreCase: boolean; readonly multiline: boolean; lastIndex: number; compile: never; readonly flags: string; readonly sticky: boolean; readonly unicode: boolean; readonly dotAll: boolean; readonly hasIndices: boolean; })[] | undefined; errorRedactor?: false | undefined; body?: string | { readonly size: number; readonly type: string; slice: never; image: never; } | { append: never; delete: never; get: never; getAll: never; has: never; set: never; forEach: never; } | { [x: string]: string; } | { readonly byteLength: number; slice: never; resize: never; } | { readonly locked: boolean; pipeThrough: never; pipeTo: never; values: never; } | { readonly buffer: { readonly byteLength: number; slice: never; resize: never; }; readonly byteLength: number; readonly byteOffset: number; } | null | undefined; cache?: RequestCache | undefined; credentials?: RequestCredentials | undefined; integrity?: string | undefined; keepalive?: boolean | undefined; method?: string | undefined; mode?: RequestMode | undefined; priority?: RequestPriority | undefined; redirect?: RequestRedirect | undefined; referrer?: string | undefined; referrerPolicy?: ReferrerPolicy | undefined; signal?: { readonly aborted: boolean; onabort: null; readonly reason: any; addEventListener: never; removeEventListener: never; dispatchEvent: never; } | null | undefined; window?: null | undefined; }; readonly redirected: boolean; readonly statusText: string; readonly bodyUsed: boolean; }; }; outputFormat: "json"; status: 200; }; }; } & { "/calendar/:workspace/get-event": { $get: { input: { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { param: { workspace: string; }; }; output: { success: true; event: { anyoneCanAddSelf?: boolean | null | undefined; attachments?: { fileId?: string | null | undefined; fileUrl?: string | null | undefined; iconLink?: string | null | undefined; mimeType?: string | null | undefined; title?: string | null | undefined; }[] | undefined; attendees?: { additionalGuests?: number | null | undefined; asyncOperation?: string | null | undefined; comment?: string | null | undefined; displayName?: string | null | undefined; email?: string | null | undefined; id?: string | null | undefined; optional?: boolean | null | undefined; organizer?: boolean | null | undefined; resource?: boolean | null | undefined; responseStatus?: string | null | undefined; self?: boolean | null | undefined; }[] | undefined; attendeesOmitted?: boolean | null | undefined; birthdayProperties?: { contact?: string | null | undefined; customTypeName?: string | null | undefined; type?: string | null | undefined; } | undefined; colorId?: string | null | undefined; conferenceData?: { conferenceId?: string | null | undefined; conferenceSolution?: { iconUri?: string | null | undefined; key?: { type?: string | null | undefined; } | undefined; name?: string | null | undefined; } | undefined; createRequest?: { conferenceSolutionKey?: { type?: string | null | undefined; } | undefined; requestId?: string | null | undefined; status?: { statusCode?: string | null | undefined; } | undefined; } | undefined; entryPoints?: { accessCode?: string | null | undefined; entryPointFeatures?: string[] | null | undefined; entryPointType?: string | null | undefined; label?: string | null | undefined; meetingCode?: string | null | undefined; passcode?: string | null | undefined; password?: string | null | undefined; pin?: string | null | undefined; regionCode?: string | null | undefined; uri?: string | null | undefined; }[] | undefined; notes?: string | null | undefined; parameters?: { addOnParameters?: { parameters?: { [x: string]: string; } | null | undefined; } | undefined; } | undefined; signature?: string | null | undefined; } | undefined; created?: string | null | undefined; creator?: { displayName?: string | undefined; email?: string | undefined; id?: string | undefined; self?: boolean | undefined; } | null | undefined; description?: string | null | undefined; end?: { date?: string | null | undefined; dateTime?: string | null | undefined; timeZone?: string | null | undefined; } | undefined; endTimeUnspecified?: boolean | null | undefined; etag?: string | null | undefined; eventLabelId?: string | null | undefined; eventType?: string | null | undefined; extendedProperties?: { private?: { [x: string]: string; } | undefined; shared?: { [x: string]: string; } | undefined; } | null | undefined; focusTimeProperties?: { autoDeclineMode?: string | null | undefined; chatStatus?: string | null | undefined; declineMessage?: string | null | undefined; } | undefined; gadget?: { display?: string | undefined; height?: number | undefined; iconLink?: string | undefined; link?: string | undefined; preferences?: { [x: string]: string; } | undefined; title?: string | undefined; type?: string | undefined; width?: number | undefined; } | null | undefined; guestsCanInviteOthers?: boolean | null | undefined; guestsCanModify?: boolean | null | undefined; guestsCanSeeOtherGuests?: boolean | null | undefined; hangoutLink?: string | null | undefined; htmlLink?: string | null | undefined; iCalUID?: string | null | undefined; id?: string | null | undefined; kind?: string | null | undefined; location?: string | null | undefined; locked?: boolean | null | undefined; organizer?: { displayName?: string | undefined; email?: string | undefined; id?: string | undefined; self?: boolean | undefined; } | null | undefined; originalStartTime?: { date?: string | null | undefined; dateTime?: string | null | undefined; timeZone?: string | null | undefined; } | undefined; outOfOfficeProperties?: { autoDeclineMode?: string | null | undefined; declineMessage?: string | null | undefined; } | undefined; privateCopy?: boolean | null | undefined; recurrence?: string[] | null | undefined; recurringEventId?: string | null | undefined; reminders?: { overrides?: { method?: string | null | undefined; minutes?: number | null | undefined; }[] | undefined; useDefault?: boolean | undefined; } | null | undefined; sequence?: number | null | undefined; source?: { title?: string | undefined; url?: string | undefined; } | null | undefined; start?: { date?: string | null | undefined; dateTime?: string | null | undefined; timeZone?: string | null | undefined; } | undefined; status?: string | null | undefined; summary?: string | null | undefined; transparency?: string | null | undefined; updated?: string | null | undefined; visibility?: string | null | undefined; workingLocationProperties?: { customLocation?: { label?: string | undefined; } | null | undefined; homeOffice?: any | null; officeLocation?: { buildingId?: string | undefined; deskId?: string | undefined; floorId?: string | undefined; floorSectionId?: string | undefined; label?: string | undefined; } | null | undefined; type?: string | null | undefined; } | undefined; }; }; outputFormat: "json"; status: 200; }; }; } & { "/calendar/update-event": { $post: { input: { json: { eventId: string; workspace: string; title?: string | undefined; description?: string | undefined; type?: "event" | "conference" | "booking" | "meeting" | undefined; attendees?: { email: string; }[] | undefined; conferenceData?: boolean | undefined; reminders?: { method: "email" | "popup"; minutes: number; }[] | undefined; startDate?: string | number | undefined; endDate?: string | number | undefined; timeZone?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { eventId: string; workspace: string; title?: string | undefined; description?: string | undefined; type?: "event" | "conference" | "booking" | "meeting" | undefined; attendees?: { email: string; }[] | undefined; conferenceData?: boolean | undefined; reminders?: { method: "email" | "popup"; minutes: number; }[] | undefined; startDate?: string | number | undefined; endDate?: string | number | undefined; timeZone?: string | undefined; }; }; output: { success: true; event: { anyoneCanAddSelf?: boolean | null | undefined; attachments?: { fileId?: string | null | undefined; fileUrl?: string | null | undefined; iconLink?: string | null | undefined; mimeType?: string | null | undefined; title?: string | null | undefined; }[] | undefined; attendees?: { additionalGuests?: number | null | undefined; asyncOperation?: string | null | undefined; comment?: string | null | undefined; displayName?: string | null | undefined; email?: string | null | undefined; id?: string | null | undefined; optional?: boolean | null | undefined; organizer?: boolean | null | undefined; resource?: boolean | null | undefined; responseStatus?: string | null | undefined; self?: boolean | null | undefined; }[] | undefined; attendeesOmitted?: boolean | null | undefined; birthdayProperties?: { contact?: string | null | undefined; customTypeName?: string | null | undefined; type?: string | null | undefined; } | undefined; colorId?: string | null | undefined; conferenceData?: { conferenceId?: string | null | undefined; conferenceSolution?: { iconUri?: string | null | undefined; key?: { type?: string | null | undefined; } | undefined; name?: string | null | undefined; } | undefined; createRequest?: { conferenceSolutionKey?: { type?: string | null | undefined; } | undefined; requestId?: string | null | undefined; status?: { statusCode?: string | null | undefined; } | undefined; } | undefined; entryPoints?: { accessCode?: string | null | undefined; entryPointFeatures?: string[] | null | undefined; entryPointType?: string | null | undefined; label?: string | null | undefined; meetingCode?: string | null | undefined; passcode?: string | null | undefined; password?: string | null | undefined; pin?: string | null | undefined; regionCode?: string | null | undefined; uri?: string | null | undefined; }[] | undefined; notes?: string | null | undefined; parameters?: { addOnParameters?: { parameters?: { [x: string]: string; } | null | undefined; } | undefined; } | undefined; signature?: string | null | undefined; } | undefined; created?: string | null | undefined; creator?: { displayName?: string | undefined; email?: string | undefined; id?: string | undefined; self?: boolean | undefined; } | null | undefined; description?: string | null | undefined; end?: { date?: string | null | undefined; dateTime?: string | null | undefined; timeZone?: string | null | undefined; } | undefined; endTimeUnspecified?: boolean | null | undefined; etag?: string | null | undefined; eventLabelId?: string | null | undefined; eventType?: string | null | undefined; extendedProperties?: { private?: { [x: string]: string; } | undefined; shared?: { [x: string]: string; } | undefined; } | null | undefined; focusTimeProperties?: { autoDeclineMode?: string | null | undefined; chatStatus?: string | null | undefined; declineMessage?: string | null | undefined; } | undefined; gadget?: { display?: string | undefined; height?: number | undefined; iconLink?: string | undefined; link?: string | undefined; preferences?: { [x: string]: string; } | undefined; title?: string | undefined; type?: string | undefined; width?: number | undefined; } | null | undefined; guestsCanInviteOthers?: boolean | null | undefined; guestsCanModify?: boolean | null | undefined; guestsCanSeeOtherGuests?: boolean | null | undefined; hangoutLink?: string | null | undefined; htmlLink?: string | null | undefined; iCalUID?: string | null | undefined; id?: string | null | undefined; kind?: string | null | undefined; location?: string | null | undefined; locked?: boolean | null | undefined; organizer?: { displayName?: string | undefined; email?: string | undefined; id?: string | undefined; self?: boolean | undefined; } | null | undefined; originalStartTime?: { date?: string | null | undefined; dateTime?: string | null | undefined; timeZone?: string | null | undefined; } | undefined; outOfOfficeProperties?: { autoDeclineMode?: string | null | undefined; declineMessage?: string | null | undefined; } | undefined; privateCopy?: boolean | null | undefined; recurrence?: string[] | null | undefined; recurringEventId?: string | null | undefined; reminders?: { overrides?: { method?: string | null | undefined; minutes?: number | null | undefined; }[] | undefined; useDefault?: boolean | undefined; } | null | undefined; sequence?: number | null | undefined; source?: { title?: string | undefined; url?: string | undefined; } | null | undefined; start?: { date?: string | null | undefined; dateTime?: string | null | undefined; timeZone?: string | null | undefined; } | undefined; status?: string | null | undefined; summary?: string | null | undefined; transparency?: string | null | undefined; updated?: string | null | undefined; visibility?: string | null | undefined; workingLocationProperties?: { customLocation?: { label?: string | undefined; } | null | undefined; homeOffice?: any | null; officeLocation?: { buildingId?: string | undefined; deskId?: string | undefined; floorId?: string | undefined; floorSectionId?: string | undefined; label?: string | undefined; } | null | undefined; type?: string | null | undefined; } | undefined; }; }; outputFormat: "json"; status: 200; }; }; } & { "/calendar/remove-event": { $post: { input: { json: { eventId: string; workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/calendar/cancel-event": { $post: { input: { json: { eventId: string; workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/calendar/:workspace/list-events-by-month": { $get: { input: { query: { year?: string | string[] | undefined; month: string | string[]; }; } & { param: { workspace: string; }; }; output: { success: true; events: { anyoneCanAddSelf?: boolean | null | undefined; attachments?: { fileId?: string | null | undefined; fileUrl?: string | null | undefined; iconLink?: string | null | undefined; mimeType?: string | null | undefined; title?: string | null | undefined; }[] | undefined; attendees?: { additionalGuests?: number | null | undefined; asyncOperation?: string | null | undefined; comment?: string | null | undefined; displayName?: string | null | undefined; email?: string | null | undefined; id?: string | null | undefined; optional?: boolean | null | undefined; organizer?: boolean | null | undefined; resource?: boolean | null | undefined; responseStatus?: string | null | undefined; self?: boolean | null | undefined; }[] | undefined; attendeesOmitted?: boolean | null | undefined; birthdayProperties?: { contact?: string | null | undefined; customTypeName?: string | null | undefined; type?: string | null | undefined; } | undefined; colorId?: string | null | undefined; conferenceData?: { conferenceId?: string | null | undefined; conferenceSolution?: { iconUri?: string | null | undefined; key?: { type?: string | null | undefined; } | undefined; name?: string | null | undefined; } | undefined; createRequest?: { conferenceSolutionKey?: { type?: string | null | undefined; } | undefined; requestId?: string | null | undefined; status?: { statusCode?: string | null | undefined; } | undefined; } | undefined; entryPoints?: { accessCode?: string | null | undefined; entryPointFeatures?: string[] | null | undefined; entryPointType?: string | null | undefined; label?: string | null | undefined; meetingCode?: string | null | undefined; passcode?: string | null | undefined; password?: string | null | undefined; pin?: string | null | undefined; regionCode?: string | null | undefined; uri?: string | null | undefined; }[] | undefined; notes?: string | null | undefined; parameters?: { addOnParameters?: { parameters?: { [x: string]: string; } | null | undefined; } | undefined; } | undefined; signature?: string | null | undefined; } | undefined; created?: string | null | undefined; creator?: { displayName?: string | undefined; email?: string | undefined; id?: string | undefined; self?: boolean | undefined; } | null | undefined; description?: string | null | undefined; end?: { date?: string | null | undefined; dateTime?: string | null | undefined; timeZone?: string | null | undefined; } | undefined; endTimeUnspecified?: boolean | null | undefined; etag?: string | null | undefined; eventLabelId?: string | null | undefined; eventType?: string | null | undefined; extendedProperties?: { private?: { [x: string]: string; } | undefined; shared?: { [x: string]: string; } | undefined; } | null | undefined; focusTimeProperties?: { autoDeclineMode?: string | null | undefined; chatStatus?: string | null | undefined; declineMessage?: string | null | undefined; } | undefined; gadget?: { display?: string | undefined; height?: number | undefined; iconLink?: string | undefined; link?: string | undefined; preferences?: { [x: string]: string; } | undefined; title?: string | undefined; type?: string | undefined; width?: number | undefined; } | null | undefined; guestsCanInviteOthers?: boolean | null | undefined; guestsCanModify?: boolean | null | undefined; guestsCanSeeOtherGuests?: boolean | null | undefined; hangoutLink?: string | null | undefined; htmlLink?: string | null | undefined; iCalUID?: string | null | undefined; id?: string | null | undefined; kind?: string | null | undefined; location?: string | null | undefined; locked?: boolean | null | undefined; organizer?: { displayName?: string | undefined; email?: string | undefined; id?: string | undefined; self?: boolean | undefined; } | null | undefined; originalStartTime?: { date?: string | null | undefined; dateTime?: string | null | undefined; timeZone?: string | null | undefined; } | undefined; outOfOfficeProperties?: { autoDeclineMode?: string | null | undefined; declineMessage?: string | null | undefined; } | undefined; privateCopy?: boolean | null | undefined; recurrence?: string[] | null | undefined; recurringEventId?: string | null | undefined; reminders?: { overrides?: { method?: string | null | undefined; minutes?: number | null | undefined; }[] | undefined; useDefault?: boolean | undefined; } | null | undefined; sequence?: number | null | undefined; source?: { title?: string | undefined; url?: string | undefined; } | null | undefined; start?: { date?: string | null | undefined; dateTime?: string | null | undefined; timeZone?: string | null | undefined; } | undefined; status?: string | null | undefined; summary?: string | null | undefined; transparency?: string | null | undefined; updated?: string | null | undefined; visibility?: string | null | undefined; workingLocationProperties?: { customLocation?: { label?: string | undefined; } | null | undefined; homeOffice?: any | null; officeLocation?: { buildingId?: string | undefined; deskId?: string | undefined; floorId?: string | undefined; floorSectionId?: string | undefined; label?: string | undefined; } | null | undefined; type?: string | null | undefined; } | undefined; }[] | undefined; }; outputFormat: "json"; status: 200; }; }; } & { "/calendar/list-assignees-by-workspace/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; assignees: { collaboratorId: string; role: string; profilePicture: string | null; firstName: string | null; lastName: string | null; email: string; }[]; }; outputFormat: "json"; status: 200; }; }; }, "/integrations"> | import("hono/types").MergeSchemaPath<{ "/upload": { $post: { input: { json: { filename: string; contentType: string; contentLength: number; workspace: string; folder?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { filename: string; contentType: string; contentLength: number; workspace: string; folder?: string | undefined; }; }; output: { url: string; fields: { [x: string]: string; }; key: string; maxSize: number; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/confirm": { $post: { input: { json: { filename: string; workspace: string; folder?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { filename: string; workspace: string; folder?: string | undefined; }; }; output: { success: true; key: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; } | { input: { json: { filename: string; workspace: string; folder?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; }; }; } & { "/create-folder": { $post: { input: { json: { workspace: string; name: string; }; }; output: { success: true; message: string; key: string; }; outputFormat: "json"; status: 201; }; }; } & { "/delete-folder": { $post: { input: { json: { workspace: string; name: string; }; }; output: { success: true; message: string; }; outputFormat: "json"; status: 200; }; }; } & { "/list/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; files: { key: string | undefined; size: number | undefined; lastModified: string | undefined; pin: boolean; }[]; nextToken: string | undefined; }; outputFormat: "json"; status: 200; }; }; } & { "/usage/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; usedBytes: number; filesBytes: number; commentsBytes: number; customerBytes: number; servicesBytes: number; financeBytes: number; limitBytes: number | null; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/download/:workspace": { $get: { input: { query: { path: string; }; } & { param: { workspace: string; }; }; output: { success: true; url: string; expiresIn: number; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/pin": { $post: { input: { json: { workspace: string; path: string; pin: boolean; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; path: string; pin: boolean; }; }; output: { success: true; message: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/delete": { $post: { input: { json: { workspace: string; path: string; }; }; output: { success: false; message: string; key: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; path: string; }; }; output: { success: false; message: string; key: string; }; outputFormat: "json"; status: 500; } | { input: { json: { workspace: string; path: string; }; }; output: { success: true; message: string; key: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/move": { $post: { input: { json: { workspace: string; from: string; to: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { workspace: string; from: string; to: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 409; } | { input: { json: { workspace: string; from: string; to: string; }; }; output: { success: true; from: string; to: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/upload-to-comment": { $post: { input: { json: { filename: string; contentType: string; contentLength: number; workspace: string; taskId: string; commentId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { filename: string; contentType: string; contentLength: number; workspace: string; taskId: string; commentId: string; }; }; output: { success: true; url: string; fields: { [x: string]: string; }; key: string; maxSize: number; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/confirm-comment-file": { $post: { input: { json: { filename: string; workspace: string; taskId: string; commentId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { filename: string; workspace: string; taskId: string; commentId: string; }; }; output: { success: true; key: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; } | { input: { json: { filename: string; workspace: string; taskId: string; commentId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; }; }; } & { "/delete-comment-file": { $post: { input: { json: { filename: string; workspace: string; taskId: string; commentId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { filename: string; workspace: string; taskId: string; commentId: string; }; }; output: { success: false; message: string; key: string; }; outputFormat: "json"; status: 404; } | { input: { json: { filename: string; workspace: string; taskId: string; commentId: string; }; }; output: { success: false; message: string; key: string; }; outputFormat: "json"; status: 500; } | { input: { json: { filename: string; workspace: string; taskId: string; commentId: string; }; }; output: { success: true; message: string; key: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/download-from-task/:workspace/:taskId": { $get: { input: { param: { workspace: string; } & { taskId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; } & { taskId: string; }; }; output: { success: true; files: { key: string; filename: string; commentId: string; size: number; lastModified: string | null; downloadUrl: string; }[]; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/upload-profile-picture": { $post: { input: { json: { contentType: "image/jpeg" | "image/png" | "image/webp"; }; }; output: { url: string; fields: { [x: string]: string; }; key: string; maxSize: number; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/confirm-profile-picture": { $post: { input: {}; output: { success: true; url: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; } | { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 400; }; }; } & { "/delete-profile-picture": { $post: { input: {}; output: { success: true; message: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; } | { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 500; }; }; } & { "/upload-workspace-picture": { $post: { input: { json: { workspace: string; contentType: "image/jpeg" | "image/png" | "image/webp"; }; }; output: { url: string; fields: { [x: string]: string; }; key: string; maxSize: number; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/confirm-workspace-picture": { $post: { input: { json: { workspace: string; }; }; output: { success: true; url: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; } | { input: { json: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; }; }; } & { "/delete-workspace-picture": { $post: { input: { json: { workspace: string; }; }; output: { success: true; message: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; } | { input: { json: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 500; }; }; } & { "/upload-to-service": { $post: { input: { json: { filename: string; contentType: string; contentLength: number; workspace: string; serviceId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { filename: string; contentType: string; contentLength: number; workspace: string; serviceId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { filename: string; contentType: string; contentLength: number; workspace: string; serviceId: string; }; }; output: { success: true; url: string; fields: { [x: string]: string; }; key: string; maxSize: number; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/confirm-service-file": { $post: { input: { json: { filename: string; workspace: string; serviceId: string; }; }; output: { success: true; key: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; } | { input: { json: { filename: string; workspace: string; serviceId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; }; }; } & { "/download-from-service/:workspace/:serviceId": { $get: { input: { param: { workspace: string; } & { serviceId: string; }; }; output: { success: true; files: { key: string; filename: string; size: number; lastModified: string | null; downloadUrl: string; }[]; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/delete-service-file": { $post: { input: { json: { filename: string; workspace: string; serviceId: string; }; }; output: { success: false; message: string; key: string; }; outputFormat: "json"; status: 404; } | { input: { json: { filename: string; workspace: string; serviceId: string; }; }; output: { success: false; message: string; key: string; }; outputFormat: "json"; status: 500; } | { input: { json: { filename: string; workspace: string; serviceId: string; }; }; output: { success: true; message: string; key: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/upload-to-customer": { $post: { input: { json: { filename: string; contentType: string; contentLength: number; workspace: string; customerId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { filename: string; contentType: string; contentLength: number; workspace: string; customerId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { filename: string; contentType: string; contentLength: number; workspace: string; customerId: string; }; }; output: { success: true; url: string; fields: { [x: string]: string; }; key: string; maxSize: number; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/confirm-customer-file": { $post: { input: { json: { filename: string; workspace: string; customerId: string; }; }; output: { success: true; key: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; } | { input: { json: { filename: string; workspace: string; customerId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; }; }; } & { "/download-from-customer/:workspace/:customerId": { $get: { input: { param: { workspace: string; } & { customerId: string; }; }; output: { success: true; files: { key: string; filename: string; size: number; lastModified: string | null; downloadUrl: string; }[]; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/delete-customer-file": { $post: { input: { json: { filename: string; workspace: string; customerId: string; }; }; output: { success: false; message: string; key: string; }; outputFormat: "json"; status: 404; } | { input: { json: { filename: string; workspace: string; customerId: string; }; }; output: { success: false; message: string; key: string; }; outputFormat: "json"; status: 500; } | { input: { json: { filename: string; workspace: string; customerId: string; }; }; output: { success: true; message: string; key: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/upload-to-finance": { $post: { input: { json: { filename: string; contentType: string; contentLength: number; workspace: string; transactionId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { filename: string; contentType: string; contentLength: number; workspace: string; transactionId: string; }; }; output: { success: true; url: string; fields: { [x: string]: string; }; key: string; maxSize: number; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/confirm-finance-file": { $post: { input: { json: { filename: string; workspace: string; transactionId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { filename: string; workspace: string; transactionId: string; }; }; output: { success: true; key: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; } | { input: { json: { filename: string; workspace: string; transactionId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; }; }; } & { "/download-from-finance/:workspace/:transactionId": { $get: { input: { param: { workspace: string; } & { transactionId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; } & { transactionId: string; }; }; output: { success: true; files: { key: string; filename: string; size: number; lastModified: string | null; downloadUrl: string; }[]; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; } & { "/delete-finance-file": { $post: { input: { json: { filename: string; workspace: string; transactionId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { filename: string; workspace: string; transactionId: string; }; }; output: { success: false; message: string; key: string; }; outputFormat: "json"; status: 404; } | { input: { json: { filename: string; workspace: string; transactionId: string; }; }; output: { success: false; message: string; key: string; }; outputFormat: "json"; status: 500; } | { input: { json: { filename: string; workspace: string; transactionId: string; }; }; output: { success: true; message: string; key: string; }; outputFormat: "json"; status: import("hono/utils/http-status").ContentfulStatusCode; }; }; }, "/files"> | import("hono/types").MergeSchemaPath<{ "/start": { $post: { input: { json: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 503; } | { input: { json: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 502; } | { input: { json: { workspace: string; }; }; output: {}; outputFormat: "json"; status: 201; }; }; } & { "/collaborators/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; }; }; output: { success: true; collaborators: { id: string; username: string; firstName: string | null; lastName: string | null; email: string; role: string; profilePicture: string | null; }[]; }; outputFormat: "json"; status: 200; }; }; }, "/chat"> | import("hono/types").MergeSchemaPath<{ "/inbound": { $post: { input: { json: { messages: { eventId: string; roomId: string; sender: string; channel: string; msgtype?: string | undefined; text?: string | undefined; sentAt?: number | undefined; }[]; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 401; } | { input: { json: { messages: { eventId: string; roomId: string; sender: string; channel: string; msgtype?: string | undefined; text?: string | undefined; sentAt?: number | undefined; }[]; }; }; output: { success: true; buffered: number; }; outputFormat: "json"; status: 202; }; }; } & { "/settings/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; settings: { enabled: boolean; persona: { language: PersonaChoiceOption<"language">; tone: PersonaChoiceOption<"tone">; detail: PersonaChoiceOption<"detail">; }; business: { about: string | null; openingHours: { monday?: { open: string; close: string; } | undefined; tuesday?: { open: string; close: string; } | undefined; wednesday?: { open: string; close: string; } | undefined; thursday?: { open: string; close: string; } | undefined; friday?: { open: string; close: string; } | undefined; saturday?: { open: string; close: string; } | undefined; sunday?: { open: string; close: string; } | undefined; } | null; address: string | null; paymentMethods: PaymentMethod[] | null; }; }; availability: { available: boolean; reason: AiUnavailableReason | null; allowance: number; used: number; remaining: number; period: { start: string; end: string; kind: "trial" | "billing"; } | null; }; }; outputFormat: "json"; status: 200; }; }; } & { "/settings": { $post: { input: { json: { workspace: string; enabled?: boolean | undefined; persona?: { language?: PersonaChoiceOption<"language"> | null | undefined; tone?: PersonaChoiceOption<"tone"> | null | undefined; detail?: PersonaChoiceOption<"detail"> | null | undefined; } | undefined; business?: { about?: string | null | undefined; openingHours?: { monday?: { open: string; close: string; } | undefined; tuesday?: { open: string; close: string; } | undefined; wednesday?: { open: string; close: string; } | undefined; thursday?: { open: string; close: string; } | undefined; friday?: { open: string; close: string; } | undefined; saturday?: { open: string; close: string; } | undefined; sunday?: { open: string; close: string; } | undefined; } | null | undefined; address?: string | null | undefined; paymentMethods?: ("cash" | "card" | "installments" | "bank_transfer" | "online")[] | null | undefined; } | undefined; }; }; output: { success: true; settings: { enabled: boolean; persona: { language: PersonaChoiceOption<"language">; tone: PersonaChoiceOption<"tone">; detail: PersonaChoiceOption<"detail">; }; business: { about: string | null; openingHours: { monday?: { open: string; close: string; } | undefined; tuesday?: { open: string; close: string; } | undefined; wednesday?: { open: string; close: string; } | undefined; thursday?: { open: string; close: string; } | undefined; friday?: { open: string; close: string; } | undefined; saturday?: { open: string; close: string; } | undefined; sunday?: { open: string; close: string; } | undefined; } | null; address: string | null; paymentMethods: PaymentMethod[] | null; }; }; }; outputFormat: "json"; status: 200; }; }; } & { "/rooms/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; disabledRooms: string[]; }; outputFormat: "json"; status: 200; }; }; } & { "/rooms": { $post: { input: { json: { workspace: string; roomId: string; enabled: boolean; }; }; output: { success: true; roomId: string; enabled: boolean; }; outputFormat: "json"; status: 200; }; }; } & { "/suggest": { $post: { input: { json: { workspace: string; roomId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 409 | 403 | 502; } | { input: { json: { workspace: string; roomId: string; }; }; output: { success: true; suggestion: string; operationId: string; usage: { totalTokens: number; remaining: number; }; }; outputFormat: "json"; status: 200; }; }; }, "/ai"> | import("hono/types").MergeSchemaPath<{ "/sync": { $get: { input: { query: { cursor?: string | undefined; limit?: string | string[] | undefined; }; }; output: { success: true; notifications: { updated_at: string | null; deleted_at: string | null; verified_at: string | null; suspended_at: string | null; created_at: string; id: string; userId: string; workspaceId: string | null; key: string; data: { [x: string]: import("hono/utils/types").JSONValue; }; title: string | null; message: string | null; type: "info" | "success" | "warning" | "failure"; read: boolean; archive: boolean; }[]; cursor: string | null; hasMore: boolean; }; outputFormat: "json"; status: 200; }; }; } & { "/read": { $post: { input: { json: { notificationId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { notificationId: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/read-all": { $post: { input: {}; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/archive": { $post: { input: { json: { notificationId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { notificationId: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/archive-all": { $post: { input: {}; output: { success: true; }; outputFormat: "json"; status: 200; }; }; }, "/notifications"> | import("hono/types").MergeSchemaPath<{ "/history": { $get: { input: { query: { month?: string | undefined; }; }; output: { success: true; invoices: { createdAt: string; id: string; workspaceId: string; workspaceName: string; seats: number; planId: string; planCode: string; planName: string; interval: string; billingCycles: number; subtotalKopecks: number; discountKopecks: number; couponCode: string | null; amountKopecks: number; currency: string; status: string; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/invoice/:invoiceId/pay": { $post: { input: { param: { invoiceId: string; }; }; output: { paymentUrl: string; providerPaymentId: string; success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/invoice/:invoiceId/coupon": { $post: { input: { json: { code: string; }; } & { param: { invoiceId: string; }; }; output: { paymentUrl?: string | undefined; providerPaymentId?: string | undefined; success: true; invoice: { id: string; subtotalKopecks: number; discountKopecks: number; amountKopecks: number; couponCode: string | null; status: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/invoice/:invoiceId/coupon": { $delete: { input: { param: { invoiceId: string; }; }; output: { success: true; invoice: { id: string; subtotalKopecks: number; discountKopecks: number; amountKopecks: number; couponCode: string | null; status: string; }; }; outputFormat: "json"; status: 200; }; }; } & { "/invoice/:invoiceId/cancel": { $post: { input: { param: { invoiceId: string; }; }; output: { invoiceId: string; subscriptionStatus: "active"; success: true; } | { invoiceId: string; subscriptionStatus: "past_due"; success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/upgrade": { $post: { input: { json: { workspace: string; plan?: string | undefined; seats?: number | undefined; billingInterval?: "monthly" | "yearly" | undefined; billingCycles?: number | undefined; }; }; output: { success: true; invoiceId: any; invoice: any; }; outputFormat: "json"; status: 201; }; }; } & { "/webhook": { $post: { input: {}; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: {}; output: { success: true; ignored: true; }; outputFormat: "json"; status: 200; } | { input: {}; output: { success: true; invoiceId: string; }; outputFormat: "json"; status: 200; }; }; }, "/payments"> | import("hono/types").MergeSchemaPath<{ "/:workspace/task-phase-funnel": { $get: { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: true; workspaceId: string; category: string; period: { from: string | null; to: string | null; }; phases: { averageDurationDays: number | null; averageCurrentDurationDays: number | null; phaseId: string; phaseName: string; sortOrder: number; taskCount: number; visitCount: number; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/:workspace/total-revenue": { $get: { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: true; workspaceId: string; category: string; period: { from: string | null; to: string | null; }; previousPeriod: { from: string; to: string; } | null; totals: { currency: string; amountMinor: number; invoiceCount: number; growth: { amountMinor: { previousValue: number; growthPercentage: number | null; direction: GrowthDirection; }; invoiceCount: { previousValue: number; growthPercentage: number | null; direction: GrowthDirection; }; } | null; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/:workspace/leads-by-source": { $get: { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: true; workspaceId: string; category: string; period: { from: string | null; to: string | null; }; sources: { leadSource: string; leadCount: number; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/:workspace/conversion-rate": { $get: { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: true; workspaceId: string; category: string; period: { from: string | null; to: string | null; }; paidInvoiceCount: number; customerCount: number; conversionRate: number; }; outputFormat: "json"; status: 200; }; }; } & { "/:workspace/employee-conversion-rate": { $get: { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: true; workspaceId: string; category: string; period: { from: string | null; to: string | null; }; employees: { collaboratorId: string; userId: string; firstName: string | null; lastName: string | null; profilePicture: string | null; status: string; assignedCustomerCount: number; convertedCustomerCount: number; conversionRate: number; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/:workspace/workload-distribution": { $get: { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: true; workspaceId: string; category: string; period: { from: string | null; to: string | null; }; employees: { taskCount: number; collaboratorId: string; userId: string; firstName: string | null; lastName: string | null; profilePicture: string | null; status: string; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/:workspace/channel-performance": { $get: { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: true; workspaceId: string; category: string; period: { from: string | null; to: string | null; }; channels: { leadSource: string; currency: string; paidAmountMinor: number; paidInvoiceCount: number; pendingAmountMinor: number; pendingInvoiceCount: number; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/:workspace/forecast-revenue": { $get: { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { query: { from?: string | number | undefined; to?: string | number | undefined; }; } & { param: { workspace: string; }; }; output: { success: true; workspaceId: string; category: string; period: { from: string | null; to: string | null; }; leadCount: number; averageDailyLeads: number | null; paidInvoiceCount: number; conversionRate: number; forecasts: { currency: string; pendingRevenueMinor: number; pendingInvoiceCount: number; averageDealSizeMinor: number; projectedPipelineMinor: number; forecastRevenueMinor: number; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/:workspace/ai-usage": { $get: { input: { param: { workspace: string; }; }; output: { availability: { available: boolean; reason: AiUnavailableReason; }; allowance: number; used: number; remaining: number; period: null; byOperationType: never[]; byOperator: never[]; byRoom: never[]; success: true; workspaceId: string; } | { availability: { available: true; } | { available: false; reason: AiUnavailableReason; }; allowance: number; used: number; remaining: number; period: { start: string; end: string; kind: "trial" | "billing"; }; byOperationType: { [x: string]: import("hono/utils/types").JSONValue; }[]; byOperator: { operatorId: string; firstName: string | null; lastName: string | null; profilePicture: string | null; operations: number; drafts: number; inputTokens: number; outputTokens: number; totalTokens: number; }[]; byRoom: { [x: string]: import("hono/utils/types").JSONValue; }[]; success: true; workspaceId: string; }; outputFormat: "json"; status: 200; }; }; }, "/analytics"> | import("hono/types").MergeSchemaPath<{ "/accounts/list/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; accounts: { id: string; workspaceId: string; order: number; name: string; cardColor: string; currency: FinanceCurrency; openingBalance: number; country: string | null; companyName: string | null; companyAccountNumber: string | null; companyInn: string | null; companyKpp: string | null; companyOgrn: string | null; bankName: string | null; bankBik: string | null; bankKc: string | null; bankInn: string | null; bankKpp: string | null; vatRate: number | null; active: boolean; created_at: string; updated_at: string | null; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/accounts/get/:workspace/:accountId": { $get: { input: { param: { workspace: string; } & { accountId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; } & { accountId: string; }; }; output: { success: true; account: { id: string; workspaceId: string; order: number; name: string; cardColor: string; currency: FinanceCurrency; openingBalance: number; country: string | null; companyName: string | null; companyAccountNumber: string | null; companyInn: string | null; companyKpp: string | null; companyOgrn: string | null; bankName: string | null; bankBik: string | null; bankKc: string | null; bankInn: string | null; bankKpp: string | null; vatRate: number | null; active: boolean; created_at: string; updated_at: string | null; }; }; outputFormat: "json"; status: 200; }; }; } & { "/accounts/create": { $post: { input: { json: { active?: boolean | undefined; country?: string | undefined; companyName?: string | undefined; companyAccountNumber?: string | undefined; companyInn?: string | undefined; companyKpp?: string | undefined; companyOgrn?: string | undefined; bankName?: string | undefined; bankBik?: string | undefined; bankKc?: string | undefined; bankInn?: string | undefined; bankKpp?: string | undefined; vatRate?: number | undefined; workspace: string; name: string; cardColor: string; currency: "ruble" | "dollar" | "euro"; openingBalance: unknown; }; }; output: { success: true; account: { id: string; workspaceId: string; order: number; name: string; cardColor: string; currency: FinanceCurrency; openingBalance: number; country: string | null; companyName: string | null; companyAccountNumber: string | null; companyInn: string | null; companyKpp: string | null; companyOgrn: string | null; bankName: string | null; bankBik: string | null; bankKc: string | null; bankInn: string | null; bankKpp: string | null; vatRate: number | null; active: boolean; created_at: string; updated_at: string | null; }; }; outputFormat: "json"; status: 201; }; }; } & { "/accounts/update": { $post: { input: { json: { country?: string | undefined; companyName?: string | undefined; companyAccountNumber?: string | undefined; companyInn?: string | undefined; companyKpp?: string | undefined; companyOgrn?: string | undefined; bankName?: string | undefined; bankBik?: string | undefined; bankKc?: string | undefined; bankInn?: string | undefined; bankKpp?: string | undefined; vatRate?: number | undefined; active?: boolean | undefined; accountId: string; workspace: string; name?: string | undefined; cardColor?: string | undefined; currency?: "ruble" | "dollar" | "euro" | undefined; openingBalance?: unknown; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { country?: string | undefined; companyName?: string | undefined; companyAccountNumber?: string | undefined; companyInn?: string | undefined; companyKpp?: string | undefined; companyOgrn?: string | undefined; bankName?: string | undefined; bankBik?: string | undefined; bankKc?: string | undefined; bankInn?: string | undefined; bankKpp?: string | undefined; vatRate?: number | undefined; active?: boolean | undefined; accountId: string; workspace: string; name?: string | undefined; cardColor?: string | undefined; currency?: "ruble" | "dollar" | "euro" | undefined; openingBalance?: unknown; }; }; output: { success: true; account: { id: string; workspaceId: string; order: number; name: string; cardColor: string; currency: FinanceCurrency; openingBalance: number; country: string | null; companyName: string | null; companyAccountNumber: string | null; companyInn: string | null; companyKpp: string | null; companyOgrn: string | null; bankName: string | null; bankBik: string | null; bankKc: string | null; bankInn: string | null; bankKpp: string | null; vatRate: number | null; active: boolean; created_at: string; updated_at: string | null; }; }; outputFormat: "json"; status: 200; }; }; } & { "/accounts/reorder": { $post: { input: { json: { workspace: string; accountIds: string[]; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400; } | { input: { json: { workspace: string; accountIds: string[]; }; }; output: { success: true; accounts: { id: string; workspaceId: string; order: number; name: string; cardColor: string; currency: FinanceCurrency; openingBalance: number; country: string | null; companyName: string | null; companyAccountNumber: string | null; companyInn: string | null; companyKpp: string | null; companyOgrn: string | null; bankName: string | null; bankBik: string | null; bankKc: string | null; bankInn: string | null; bankKpp: string | null; vatRate: number | null; active: boolean; created_at: string; updated_at: string | null; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/accounts/delete": { $post: { input: { json: { accountId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { accountId: string; workspace: string; }; }; output: { success: false; error: string; code: string; }; outputFormat: "json"; status: 409; } | { input: { json: { accountId: string; workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/transactions/list/:workspace": { $get: { input: { query: { accountId?: string | undefined; type?: "" | "refund" | "income" | "expense" | "transfer" | undefined; }; } & { param: { workspace: string; }; }; output: { success: true; transactions: { id: string; workspaceId: string; type: FinanceTransactionType; customerId: string | null; serviceId: string | null; accountId: string | null; destinationAccountId: string | null; paymentMethod: string | null; amount: number; description: string | null; date: string; vat: number | null; reason: string | null; cinvoiceId: string | null; created_at: string; updated_at: string | null; }[]; }; outputFormat: "json"; status: 200; }; }; } & { "/transactions/get/:workspace/:transactionId": { $get: { input: { param: { workspace: string; } & { transactionId: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { param: { workspace: string; } & { transactionId: string; }; }; output: { success: true; transaction: { id: string; workspaceId: string; type: FinanceTransactionType; customerId: string | null; serviceId: string | null; accountId: string | null; destinationAccountId: string | null; paymentMethod: string | null; amount: number; description: string | null; date: string; vat: number | null; reason: string | null; cinvoiceId: string | null; created_at: string; updated_at: string | null; }; }; outputFormat: "json"; status: 200; }; }; } & { "/transactions/create": { $post: { input: { json: { workspace: string; type: "refund" | "income" | "expense" | "transfer"; customerId?: string | undefined; serviceId?: string | undefined; accountId?: string | undefined; destinationAccountId?: string | undefined; paymentMethod?: string | undefined; amount: unknown; description?: string | undefined; date?: string | number | undefined; vat?: number | undefined; reason?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400 | 404; } | { input: { json: { workspace: string; type: "refund" | "income" | "expense" | "transfer"; customerId?: string | undefined; serviceId?: string | undefined; accountId?: string | undefined; destinationAccountId?: string | undefined; paymentMethod?: string | undefined; amount: unknown; description?: string | undefined; date?: string | number | undefined; vat?: number | undefined; reason?: string | undefined; }; }; output: { success: true; transaction: { id: string; workspaceId: string; type: FinanceTransactionType; customerId: string | null; serviceId: string | null; accountId: string | null; destinationAccountId: string | null; paymentMethod: string | null; amount: number; description: string | null; date: string; vat: number | null; reason: string | null; cinvoiceId: string | null; created_at: string; updated_at: string | null; }; }; outputFormat: "json"; status: 201; }; }; } & { "/transactions/update": { $post: { input: { json: { transactionId: string; workspace: string; type?: "refund" | "income" | "expense" | "transfer" | undefined; customerId?: string | undefined; serviceId?: string | undefined; accountId?: string | undefined; destinationAccountId?: string | undefined; paymentMethod?: string | undefined; amount?: unknown; description?: string | undefined; date?: string | number | undefined; vat?: number | undefined; reason?: string | undefined; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 400 | 404; } | { input: { json: { transactionId: string; workspace: string; type?: "refund" | "income" | "expense" | "transfer" | undefined; customerId?: string | undefined; serviceId?: string | undefined; accountId?: string | undefined; destinationAccountId?: string | undefined; paymentMethod?: string | undefined; amount?: unknown; description?: string | undefined; date?: string | number | undefined; vat?: number | undefined; reason?: string | undefined; }; }; output: { success: true; transaction: { id: string; workspaceId: string; type: FinanceTransactionType; customerId: string | null; serviceId: string | null; accountId: string | null; destinationAccountId: string | null; paymentMethod: string | null; amount: number; description: string | null; date: string; vat: number | null; reason: string | null; cinvoiceId: string | null; created_at: string; updated_at: string | null; }; }; outputFormat: "json"; status: 200; }; }; } & { "/transactions/delete": { $post: { input: { json: { transactionId: string; workspace: string; }; }; output: { success: false; error: string; }; outputFormat: "json"; status: 404; } | { input: { json: { transactionId: string; workspace: string; }; }; output: { success: true; }; outputFormat: "json"; status: 200; }; }; } & { "/visibility/:workspace": { $get: { input: { param: { workspace: string; }; }; output: { success: true; visibility: boolean; }; outputFormat: "json"; status: 200; }; }; } & { "/visibility": { $post: { input: { json: { workspace: string; visibility: boolean; }; }; output: { success: true; visibility: boolean; }; outputFormat: "json"; status: 200; }; }; }, "/finance">, "/", "/">; type GlobalErrorResponses = { 400: { json: ApiError; }; 401: { json: ApiError; }; 403: { json: ApiError; }; 404: { json: ApiError; }; 409: { json: ApiError; }; 429: { json: ApiError; }; 500: { json: ApiError; }; 502: { json: ApiError; }; 503: { json: ApiError; }; }; /** AppType for `hc` — includes route responses plus global auth/middleware error statuses. */ export type AppType = ApplyGlobalResponse;