/** * This file was auto-generated by openapi-typescript. * Do not make direct changes to the file. */ export interface paths { "/createAPIKey": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post: operations["create-apikey"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/updateAPIKey": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; delete?: never; options?: never; head?: never; patch: operations["update-apikey"]; trace?: never; }; "/listAPIKeys": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["list-apikeys"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/getAPIKey": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["get-apikey"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/listMemberships": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["list-memberships"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/downloadDocument": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["download-document"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/listRoles": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["list-roles"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/createProject": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post: operations["create-project"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/getSelf": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["get-self"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/addDocument": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post: operations["add-document"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/parseExistingDocument": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post: operations["parse-existing-document"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/listDocuments": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["list-documents"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/listParses": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["list-parses"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/getDocument": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["get-document"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/getParse": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["get-parse"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/listSchemas": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["list-schemas"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/deleteSchema": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; delete: operations["delete-schema"]; options?: never; head?: never; patch?: never; trace?: never; }; "/getSchema": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["get-schema"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/updateSchema": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post: operations["update-schema"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/createSchema": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post: operations["create-schema"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/deleteDocument": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; delete: operations["delete-document"]; options?: never; head?: never; patch?: never; trace?: never; }; "/getCurrentProject": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["get-current-project"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/listWebhookConfigurations": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["list-webhook-configurations"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/updateWebhookConfiguration": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post?: never; delete?: never; options?: never; head?: never; patch: operations["update-webhook-configuration"]; trace?: never; }; "/createWebhookConfiguration": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post: operations["create-webhook-configuration"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/getWebhookConfiguration": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["get-webhook-configuration"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/getMemberInfo": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["get-member-info"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/getLedgerBalances": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["get-ledger-balances"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/searchLedgerTransactions": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["search-ledger-transactions"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/createCheckoutSession": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post: operations["create-checkout-session"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/handleStripeWebhook": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get?: never; put?: never; post: operations["handle-stripe-webhook"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; "/getStripeCustomerPortal": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; get: operations["get-stripe-customer-portal"]; put?: never; post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; } export type webhooks = Record; export interface components { schemas: { User: { id: string; displayName: string; email: string; avatar?: string; }; Project: { id: string; name: string; /** Format: date-time */ createdAt: string; createdBy: string; }; BasicUserInfo: { id: string; displayName: string; avatar?: string; }; Membership: { id: string; projectId: string; userId: string; roleId: string; /** Format: date-time */ startedAt: string; /** Format: date-time */ endedAt?: string | null; endedBy?: string | null; }; MembershipWithData: { id: string; projectId: string; userId: string; roleId: string; /** Format: date-time */ startedAt: string; /** Format: date-time */ endedAt?: string | null; endedBy?: string | null; project: components["schemas"]["Project"]; user: components["schemas"]["BasicUserInfo"]; role: components["schemas"]["Role"]; }; Self: { id: string; displayName: string; email: string; avatar?: string; memberships: { id: string; projectId: string; userId: string; roleId: string; /** Format: date-time */ startedAt: string; /** Format: date-time */ endedAt?: string | null; endedBy?: string | null; project: components["schemas"]["Project"]; role: components["schemas"]["Role"]; }[]; }; LedgerTransaction: { id: string; projectId: string; currency: string; amount: number; /** Format: date-time */ timestamp: string; description?: string; metadata: { [key: string]: unknown; }; balance?: number; }; APIKey: { id: string; projectId: string; membershipId: string; roleId?: string; /** @enum {string} */ status: "active" | "inactive" | "revoked"; name: string; key: string; /** Format: date-time */ lastUsedAt: string | null; /** Format: date-time */ updatedAt: string; updatedBy: string; /** Format: date-time */ createdAt: string; createdBy: string; }; APIKeyWithData: { id: string; projectId: string; membershipId: string; roleId?: string; /** @enum {string} */ status: "active" | "inactive" | "revoked"; name: string; key: string; /** Format: date-time */ lastUsedAt: string | null; /** Format: date-time */ updatedAt: string; updatedBy: string; /** Format: date-time */ createdAt: string; createdBy: string; project: { id: string; name: string; }; membership: components["schemas"]["Membership"]; user: components["schemas"]["BasicUserInfo"]; }; WebhookConfiguration: { id: string; projectId: string; enabled: boolean; /** @enum {string} */ method: "POST" | "PUT"; /** Format: uri */ url: string; headers?: { [key: string]: string; }; rules?: string; /** Format: date-time */ updatedAt: string; updatedBy: string; /** Format: date-time */ createdAt: string; createdBy: string; }; Role: { projectId: string; id: string; name: string; permissions: components["schemas"]["Permission"][]; }; /** @enum {string} */ Permission: "billing.manage" | "documents.add" | "documents.delete" | "documents.download" | "documents.read" | "schemas.create" | "schemas.update" | "schemas.read" | "schemas.delete" | "parses.read" | "parses.create" | "memberships.manage" | "memberships.read" | "apikeys.manage" | "apikeys.read" | "webhooks.manage" | "webhooks.read" | "ledger.read"; PlainRemoteDocumentDescriptor: { /** @enum {string} */ type: "plain"; contentType: string; contents: string; }; Base64RemoteDocumentDescriptor: { /** @enum {string} */ type: "base64"; contentType: string; data: string; }; URLRemoteDocumentDescriptor: { /** @enum {string} */ type: "url"; contentType?: string; /** Format: uri */ url: string; }; RemoteDocumentDescriptor: components["schemas"]["PlainRemoteDocumentDescriptor"] | components["schemas"]["Base64RemoteDocumentDescriptor"] | components["schemas"]["URLRemoteDocumentDescriptor"]; Document: { id: string; projectId: string; name: string; description: string; preview?: string; contentType: string; /** @enum {string} */ status: "pending" | "downloaded" | "converted" | "error"; error?: string; bucket: string; prefix: string; remote: components["schemas"]["RemoteDocumentDescriptor"]; representations: components["schemas"]["Representation"][]; updatedBy: string; /** Format: date-time */ updatedAt: string; createdBy: string; /** Format: date-time */ createdAt: string; }; Representation: { id: string; /** @enum {string} */ kind: "local" | "downloaded" | "converted" | "output"; /** @enum {string} */ status: "pending" | "ready" | "error"; error?: string; contentType: string; fileName: string; sizeInBytes?: number; pageCount?: number; metadata: { [key: string]: unknown; }; updatedBy: string; /** Format: date-time */ updatedAt: string; createdBy: string; /** Format: date-time */ createdAt: string; }; ProvidedSchema: { name?: string; jsonSchema: unknown; }; SchemaRef: { id: string; version: number; }; Parse: { id: string; projectId: string; documentId: string; schemaRef: components["schemas"]["SchemaRef"]; /** @enum {string} */ status: "created" | "parsing" | "parsed" | "error"; error?: string | null; output?: unknown; updatedBy: string; /** Format: date-time */ updatedAt: string; createdBy: string; /** Format: date-time */ createdAt: string; }; ParseWithSchema: { id: string; projectId: string; documentId: string; schemaRef: components["schemas"]["SchemaRef"]; /** @enum {string} */ status: "created" | "parsing" | "parsed" | "error"; error?: string | null; output?: unknown; updatedBy: string; /** Format: date-time */ updatedAt: string; createdBy: string; /** Format: date-time */ createdAt: string; schema: components["schemas"]["Schema"]; }; ParseWithDocumentAndSchema: { id: string; projectId: string; documentId: string; schemaRef: components["schemas"]["SchemaRef"]; /** @enum {string} */ status: "created" | "parsing" | "parsed" | "error"; error?: string | null; output?: unknown; updatedBy: string; /** Format: date-time */ updatedAt: string; createdBy: string; /** Format: date-time */ createdAt: string; document: components["schemas"]["Document"]; schema: components["schemas"]["Schema"]; }; Schema: { id: string; version: number; projectId: string; name: string; hidden?: boolean; jsonSchema: unknown; /** Format: date-time */ createdAt: string; createdBy: string; }; GetSchemaResponse: { id: string; version: number; projectId: string; name: string; hidden?: boolean; jsonSchema: unknown; /** Format: date-time */ createdAt: string; createdBy: string; exampleOutput?: unknown; }; GetSchemaRequest: { actorId: string; projectId: string; schemaId: string; }; ValidatorError: { /** @enum {number} */ statusCode: 400; error: string; message: string; detail?: unknown | { instancePath: string; keyword: string; params: { [key: string]: unknown; }; schemaPath: string; message: string; }[]; }; ForbiddenError: { /** @enum {number} */ statusCode: 403; error: string; message: string; detail?: unknown | { projectId: string; userId: string; permission: string; } | { apiKeyProjectId: string; targetProjectId: string; }; }; NotFoundError: { /** @enum {number} */ statusCode: 404; error: string; message: string; detail?: unknown | { resourceType: string; resourceId: string; }; }; UnauthorizedError: { /** @enum {number} */ statusCode: 401; error: string; message: string; detail?: unknown; }; InternalServerError: { /** @enum {number} */ statusCode: 500; error: string; message: string; detail?: unknown; } & { [key: string]: unknown; }; }; responses: never; parameters: never; requestBodies: never; headers: never; pathItems: never; } export type $defs = Record; export interface operations { "create-apikey": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { projectId: string; name: string; membershipId: string; roleId?: string; /** @default true */ enable?: boolean; }; }; }; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["APIKeyWithData"]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "update-apikey": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { projectId: string; apikeyId: string; roleId?: string; /** @enum {string} */ status?: "active" | "inactive" | "revoked"; name?: string; }; }; }; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["APIKeyWithData"]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "list-apikeys": { parameters: { query?: { userId?: string; projectId?: string; statuses?: ("active" | "inactive" | "revoked")[]; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["APIKeyWithData"][]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "get-apikey": { parameters: { query: { projectId: string; apikeyId: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["APIKeyWithData"]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "list-memberships": { parameters: { query?: { projectId?: string; userId?: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["MembershipWithData"][]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "download-document": { parameters: { query: { projectId: string; documentId: string; kind: "downloaded" | "converted" | "output"; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uri */ downloadURL: string; }; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "list-roles": { parameters: { query: { projectId: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Role"][]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "create-project": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { name: string; }; }; }; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Project"]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "get-self": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["Self"]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "add-document": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { projectId: string; descriptor: components["schemas"]["RemoteDocumentDescriptor"]; parses?: { schema: { id: string; version: "latest" | number; } | components["schemas"]["ProvidedSchema"]; }[]; }; }; }; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { id: string; projectId: string; name: string; description: string; preview?: string; contentType: string; /** @enum {string} */ status: "pending" | "downloaded" | "converted" | "error"; error?: string; bucket: string; prefix: string; remote: components["schemas"]["RemoteDocumentDescriptor"]; representations: components["schemas"]["Representation"][]; updatedBy: string; /** Format: date-time */ updatedAt: string; createdBy: string; /** Format: date-time */ createdAt: string; parses: components["schemas"]["ParseWithSchema"][]; }; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "parse-existing-document": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { projectId: string; documentId: string; schema: { id: string; version: "latest" | number; } | components["schemas"]["ProvidedSchema"]; }; }; }; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ParseWithDocumentAndSchema"]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "list-documents": { parameters: { query: { projectId: string; offset?: number; limit?: number; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: components["schemas"]["Document"][]; total: number; }; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "list-parses": { parameters: { query: { projectId: string; offset?: number; limit?: number; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: components["schemas"]["ParseWithDocumentAndSchema"][]; total: number; }; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "get-document": { parameters: { query: { projectId: string; documentId: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { id: string; projectId: string; name: string; description: string; preview?: string; contentType: string; /** @enum {string} */ status: "pending" | "downloaded" | "converted" | "error"; error?: string; bucket: string; prefix: string; remote: components["schemas"]["RemoteDocumentDescriptor"]; representations: components["schemas"]["Representation"][]; updatedBy: string; /** Format: date-time */ updatedAt: string; createdBy: string; /** Format: date-time */ createdAt: string; parses: components["schemas"]["ParseWithSchema"][]; }; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "get-parse": { parameters: { query: { projectId: string; parseId: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ParseWithDocumentAndSchema"]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "list-schemas": { parameters: { query: { projectId: string; visible?: boolean; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { items: components["schemas"]["Schema"][]; total: number; }; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "delete-schema": { parameters: { query: { projectId: string; schemaId: string; version?: number; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { deleted: boolean; }; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "get-schema": { parameters: { query: { projectId: string; schemaId: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["GetSchemaResponse"]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "update-schema": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { projectId: string; schemaId: string; changeset: { jsonSchema?: unknown; name?: string; hidden?: boolean; }; }; }; }; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["GetSchemaResponse"]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "create-schema": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { jsonSchema: unknown; name: string; projectId: string; }; }; }; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["GetSchemaResponse"]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "delete-document": { parameters: { query: { projectId: string; documentId: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { deleted: boolean; }; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "get-current-project": { parameters: { query: { projectId: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { id: string; name: string; /** Format: date-time */ createdAt: string; createdBy: string; balances: { [key: string]: number; }; billing: { isActive: boolean; planName?: string | null; isInTrial: boolean; }; }; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "list-webhook-configurations": { parameters: { query: { projectId: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["WebhookConfiguration"][]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "update-webhook-configuration": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { projectId: string; webhookConfigurationId: string; changeset: { /** @enum {string} */ method?: "POST" | "PUT"; /** Format: uri */ url?: string; headers?: { [key: string]: string; }; enabled?: boolean; rules?: string; }; }; }; }; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["WebhookConfiguration"]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "create-webhook-configuration": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { projectId: string; /** @enum {string} */ method: "POST" | "PUT"; /** Format: uri */ url: string; headers?: { [key: string]: string; }; enabled: boolean; rules?: string; }; }; }; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["WebhookConfiguration"]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "get-webhook-configuration": { parameters: { query: { projectId: string; webhookConfigurationId: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["WebhookConfiguration"]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "get-member-info": { parameters: { query: { projectId: string; userId: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["BasicUserInfo"]; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "get-ledger-balances": { parameters: { query: { projectId: string; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { [key: string]: number; }; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "search-ledger-transactions": { parameters: { query: { projectId: string; from: string; to: string; ids?: string[]; currency?: string[]; limit: number; offset: number; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { total: number; transactions: components["schemas"]["LedgerTransaction"][]; }; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "create-checkout-session": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; requestBody: { content: { "application/json": { projectId: string; /** @enum {string} */ planName: "s" | "m" | "l" | "xl"; /** @enum {string} */ billingCycle: "monthly" | "yearly"; }; }; }; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uri */ checkoutUrl: string; }; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; "handle-stripe-webhook": { parameters: { query?: never; header: { "stripe-signature": string; }; path?: never; cookie?: never; }; requestBody?: { content: { "application/json": string; }; }; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": unknown; }; }; }; }; "get-stripe-customer-portal": { parameters: { query: { projectId: string; flow: "cancel" | "update"; }; header?: never; path?: never; cookie?: never; }; requestBody?: never; responses: { /** @description Default Response */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { /** Format: uri */ customerPortalUrl: string; }; }; }; /** @description Default Response */ 400: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ValidatorError"]; }; }; /** @description Default Response */ 401: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["UnauthorizedError"]; }; }; /** @description Default Response */ 403: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["ForbiddenError"]; }; }; /** @description Default Response */ 404: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["NotFoundError"]; }; }; /** @description Default Response */ 500: { headers: { [name: string]: unknown; }; content: { "application/json": components["schemas"]["InternalServerError"]; }; }; }; }; }