{ "openapi": "3.1.0", "info": { "title": "API Documentation", "version": "1.0.0", "description": "This is the OpenAPI specification for your project." }, "servers": [ { "url": "http://localhost:3000/api", "description": "Local development server" } ], "components": { "securitySchemes": { "BearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "JWT" }, "ApiKeyAuth": { "type": "apiKey", "in": "header", "name": "X-API-Key" }, "PartnerToken": { "type": "apiKey", "in": "header", "name": "X-Partner-Token" } }, "schemas": { "AdminReport": { "type": "object", "properties": { "id": { "type": "string" }, "kind": { "type": "string", "enum": [ "financial", "usage", "audit" ] }, "title": { "type": "string" }, "format": { "type": "string", "enum": [ "csv", "json", "parquet" ] }, "requestedBy": { "type": "string" }, "requestedAt": { "type": "string" } }, "required": [ "id", "kind", "title", "format", "requestedBy", "requestedAt" ] }, "AdminReportsResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "kind": { "type": "string", "enum": [ "financial", "usage", "audit" ] }, "title": { "type": "string" }, "format": { "type": "string", "enum": [ "csv", "json", "parquet" ] }, "requestedBy": { "type": "string" }, "requestedAt": { "type": "string" } }, "required": [ "id", "kind", "title", "format", "requestedBy", "requestedAt" ] } }, "manifest": { "type": "object" } }, "required": [ "data", "manifest" ] }, "ApiKeyEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "status": { "type": "string", "enum": [ "draft", "active", "archived" ] } }, "required": [ "id", "name", "active", "status" ] }, "ApiKeyIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "ApiKeyListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "ApiKeyListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "status": { "type": "string", "enum": [ "draft", "active", "archived" ] } }, "required": [ "id", "name", "active", "status" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "ApiResponse": { "oneOf": [ { "type": "object", "properties": { "status": { "type": "string", "enum": [ "success" ] }, "data": { "type": "object", "properties": { "id": { "type": "string", "description": "Unique identifier" }, "message": { "type": "string", "description": "Success message" } }, "required": [ "id", "message" ] } }, "required": [ "status", "data" ] }, { "type": "object", "properties": { "status": { "type": "string", "enum": [ "error" ] }, "error": { "type": "string", "description": "Error message" }, "code": { "type": "number", "description": "Error code" } }, "required": [ "status", "error", "code" ] } ] }, "Attachment": { "type": "object", "properties": { "id": { "type": "string", "description": "Attachment ID" }, "fileName": { "type": "string", "description": "Original file name" }, "fileSize": { "type": "number", "description": "Size in bytes" }, "fileType": { "type": "string", "description": "MIME type" }, "url": { "type": "string", "description": "Download URL" }, "thumbnailUrl": { "type": "string", "description": "Thumbnail URL for images" }, "uploadedAt": { "type": "string", "format": "date-time", "description": "When the file was uploaded" } }, "required": [ "id", "fileName", "fileSize", "fileType", "url", "uploadedAt" ] }, "AttachmentEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "status": { "type": "string", "enum": [ "draft", "active", "archived" ] }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "status", "createdAt", "updatedAt" ] }, "AttachmentIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "AttachmentListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "AttachmentListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "status": { "type": "string", "enum": [ "draft", "active", "archived" ] }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "status", "createdAt", "updatedAt" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "AuditLogEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] }, "AuditLogIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "AuditLogListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "AuditLogListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "BillingCookies": { "type": "object", "properties": { "session": { "type": "string", "description": "Session token" } }, "required": [ "session" ] }, "BillingRequestHeaders": { "type": "object", "properties": {} }, "CatalogItemEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "createdAt", "updatedAt" ] }, "CatalogItemIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "CatalogItemListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "CatalogItemListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "createdAt", "updatedAt" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "Comment": { "type": "object", "properties": { "id": { "type": "string", "description": "Comment ID" }, "content": { "type": "string", "description": "Comment content" }, "author": { "type": "object", "properties": { "id": { "type": "string", "description": "User ID" }, "name": { "type": "string", "description": "User's full name" }, "avatar": { "type": "string", "description": "URL to user's avatar" }, "role": { "type": "string", "enum": [ "admin", "member", "guest" ], "description": "User's role in the organization" } }, "required": [ "id", "name", "avatar", "role" ], "description": "User who created the comment" }, "attachments": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Attachment ID" }, "fileName": { "type": "string", "description": "Original file name" }, "fileSize": { "type": "number", "description": "Size in bytes" }, "fileType": { "type": "string", "description": "MIME type" }, "url": { "type": "string", "description": "Download URL" }, "thumbnailUrl": { "type": "string", "description": "Thumbnail URL for images" }, "uploadedAt": { "type": "string", "format": "date-time", "description": "When the file was uploaded" } }, "required": [ "id", "fileName", "fileSize", "fileType", "url", "uploadedAt" ] }, "description": "Attached files" }, "mentions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "User ID" }, "name": { "type": "string", "description": "User's full name" }, "avatar": { "type": "string", "description": "URL to user's avatar" }, "role": { "type": "string", "enum": [ "admin", "member", "guest" ], "description": "User's role in the organization" } }, "required": [ "id", "name", "avatar", "role" ] }, "description": "Users mentioned in the comment" }, "likes": { "type": "number", "description": "Number of likes" }, "likedBy": { "type": "array", "items": { "type": "string" }, "description": "User IDs who liked the comment" }, "replyTo": { "type": "string", "description": "Parent comment ID if this is a reply" }, "replies": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Comment ID" }, "content": { "type": "string", "description": "Comment content" }, "author": { "type": "object", "properties": { "id": { "type": "string", "description": "User ID" }, "name": { "type": "string", "description": "User's full name" }, "avatar": { "type": "string", "description": "URL to user's avatar" }, "role": { "type": "string", "enum": [ "admin", "member", "guest" ], "description": "User's role in the organization" } }, "required": [ "id", "name", "avatar", "role" ], "description": "User who created the comment" }, "attachments": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Attachment ID" }, "fileName": { "type": "string", "description": "Original file name" }, "fileSize": { "type": "number", "description": "Size in bytes" }, "fileType": { "type": "string", "description": "MIME type" }, "url": { "type": "string", "description": "Download URL" }, "thumbnailUrl": { "type": "string", "description": "Thumbnail URL for images" }, "uploadedAt": { "type": "string", "format": "date-time", "description": "When the file was uploaded" } }, "required": [ "id", "fileName", "fileSize", "fileType", "url", "uploadedAt" ] }, "description": "Attached files" }, "mentions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "User ID" }, "name": { "type": "string", "description": "User's full name" }, "avatar": { "type": "string", "description": "URL to user's avatar" }, "role": { "type": "string", "enum": [ "admin", "member", "guest" ], "description": "User's role in the organization" } }, "required": [ "id", "name", "avatar", "role" ] }, "description": "Users mentioned in the comment" }, "likes": { "type": "number", "description": "Number of likes" }, "likedBy": { "type": "array", "items": { "type": "string" }, "description": "User IDs who liked the comment" }, "replyTo": { "type": "string", "description": "Parent comment ID if this is a reply" }, "replies": { "type": "array", "items": { "$ref": "#/components/schemas/Comment" }, "description": "Child comments (if includeReplies=true)" }, "createdAt": { "type": "string", "format": "date-time", "description": "Creation timestamp" }, "updatedAt": { "type": "string", "format": "date-time", "description": "Last update timestamp" }, "deletedAt": { "type": "string", "format": "date-time", "description": "Soft deletion timestamp" } }, "required": [ "id", "content", "author", "attachments", "mentions", "likes", "likedBy", "createdAt" ] }, "description": "Child comments (if includeReplies=true)" }, "createdAt": { "type": "string", "format": "date-time", "description": "Creation timestamp" }, "updatedAt": { "type": "string", "format": "date-time", "description": "Last update timestamp" }, "deletedAt": { "type": "string", "format": "date-time", "description": "Soft deletion timestamp" } }, "required": [ "id", "content", "author", "attachments", "mentions", "likes", "likedBy", "createdAt" ] }, "CommentEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] }, "CommentIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "CommentListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "CommentListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "CommentPathParams": { "type": "object", "properties": { "orgId": { "type": "string", "description": "Organization ID" }, "projectId": { "type": "string", "description": "Project ID within the organization" }, "taskId": { "type": "string", "description": "Task ID within the project" } }, "required": [ "orgId", "projectId", "taskId" ] }, "CommentsQueryParams": { "type": "object", "properties": { "page": { "type": "number", "description": "Page number for pagination" }, "limit": { "type": "number", "description": "Number of comments per page" }, "sort": { "type": "string", "enum": [ "newest", "oldest", "likes" ], "description": "Sort order" }, "includeDeleted": { "type": "boolean", "description": "Whether to include soft-deleted comments" }, "includeReplies": { "type": "boolean", "description": "Whether to include replies" }, "user": { "type": "string", "description": "Filter by user ID" } } }, "CommentsResponse": { "type": "object", "properties": { "task": { "type": "object", "properties": { "id": { "type": "string", "description": "Task ID" }, "title": { "type": "string", "description": "Task title" } }, "required": [ "id", "title" ] }, "project": { "type": "object", "properties": { "id": { "type": "string", "description": "Project ID" }, "name": { "type": "string", "description": "Project name" } }, "required": [ "id", "name" ] }, "organization": { "type": "object", "properties": { "id": { "type": "string", "description": "Organization ID" }, "name": { "type": "string", "description": "Organization name" } }, "required": [ "id", "name" ] }, "comments": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Comment ID" }, "content": { "type": "string", "description": "Comment content" }, "author": { "type": "object", "properties": { "id": { "type": "string", "description": "User ID" }, "name": { "type": "string", "description": "User's full name" }, "avatar": { "type": "string", "description": "URL to user's avatar" }, "role": { "type": "string", "enum": [ "admin", "member", "guest" ], "description": "User's role in the organization" } }, "required": [ "id", "name", "avatar", "role" ], "description": "User who created the comment" }, "attachments": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Attachment ID" }, "fileName": { "type": "string", "description": "Original file name" }, "fileSize": { "type": "number", "description": "Size in bytes" }, "fileType": { "type": "string", "description": "MIME type" }, "url": { "type": "string", "description": "Download URL" }, "thumbnailUrl": { "type": "string", "description": "Thumbnail URL for images" }, "uploadedAt": { "type": "string", "format": "date-time", "description": "When the file was uploaded" } }, "required": [ "id", "fileName", "fileSize", "fileType", "url", "uploadedAt" ] }, "description": "Attached files" }, "mentions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "User ID" }, "name": { "type": "string", "description": "User's full name" }, "avatar": { "type": "string", "description": "URL to user's avatar" }, "role": { "type": "string", "enum": [ "admin", "member", "guest" ], "description": "User's role in the organization" } }, "required": [ "id", "name", "avatar", "role" ] }, "description": "Users mentioned in the comment" }, "likes": { "type": "number", "description": "Number of likes" }, "likedBy": { "type": "array", "items": { "type": "string" }, "description": "User IDs who liked the comment" }, "replyTo": { "type": "string", "description": "Parent comment ID if this is a reply" }, "replies": { "type": "array", "items": { "$ref": "#/components/schemas/Comment" }, "description": "Child comments (if includeReplies=true)" }, "createdAt": { "type": "string", "format": "date-time", "description": "Creation timestamp" }, "updatedAt": { "type": "string", "format": "date-time", "description": "Last update timestamp" }, "deletedAt": { "type": "string", "format": "date-time", "description": "Soft deletion timestamp" } }, "required": [ "id", "content", "author", "attachments", "mentions", "likes", "likedBy", "createdAt" ] }, "description": "List of comments" }, "pagination": { "type": "object", "properties": { "total": { "type": "number", "description": "Total number of comments" }, "page": { "type": "number", "description": "Current page" }, "limit": { "type": "number", "description": "Items per page" }, "pages": { "type": "number", "description": "Total number of pages" } }, "required": [ "total", "page", "limit", "pages" ], "description": "List of comments" }, "permissions": { "type": "object", "properties": { "canCreate": { "type": "boolean", "description": "Whether user can create comments" }, "canEdit": { "type": "boolean", "description": "Whether user can edit comments" }, "canDelete": { "type": "boolean", "description": "Whether user can delete comments" }, "canModerate": { "type": "boolean", "description": "Whether user can moderate comments" } }, "required": [ "canCreate", "canEdit", "canDelete", "canModerate" ] } }, "required": [ "task", "project", "organization", "comments", "pagination", "permissions" ] }, "CreateAdminReportBody": { "type": "object", "properties": { "kind": { "type": "string", "enum": [ "financial", "usage", "audit" ], "nullable": false }, "format": { "type": "string", "enum": [ "csv", "json", "parquet" ], "description": "-override { \"format\": \"email\", \"maxLength\": 320 }", "nullable": false }, "notify": { "type": "string", "description": "-override { \"format\": \"email\", \"maxLength\": 320 }", "nullable": false, "format": "email", "maxLength": 320 } }, "required": [ "kind", "format", "notify" ] }, "CreateApiKeyInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateAttachmentInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateAuditLogInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateCatalogItemInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateCommentBody": { "type": "object", "properties": { "content": { "type": "string", "description": "Comment content", "nullable": false }, "attachmentIds": { "type": [ "array", "null" ], "items": { "type": "string" }, "description": "IDs of previously uploaded attachments" }, "mentions": { "type": [ "array", "null" ], "items": { "type": "string" }, "description": "User IDs mentioned in the comment" }, "replyTo": { "type": [ "string", "null" ], "description": "Parent comment ID if this is a reply" } }, "required": [ "content" ] }, "CreateCommentInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateCommentResponse": { "type": "object", "properties": { "comment": { "type": "object", "properties": { "id": { "type": "string", "description": "Comment ID" }, "content": { "type": "string", "description": "Comment content" }, "author": { "type": "object", "properties": { "id": { "type": "string", "description": "User ID" }, "name": { "type": "string", "description": "User's full name" }, "avatar": { "type": "string", "description": "URL to user's avatar" }, "role": { "type": "string", "enum": [ "admin", "member", "guest" ], "description": "User's role in the organization" } }, "required": [ "id", "name", "avatar", "role" ], "description": "User who created the comment" }, "attachments": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Attachment ID" }, "fileName": { "type": "string", "description": "Original file name" }, "fileSize": { "type": "number", "description": "Size in bytes" }, "fileType": { "type": "string", "description": "MIME type" }, "url": { "type": "string", "description": "Download URL" }, "thumbnailUrl": { "type": "string", "description": "Thumbnail URL for images" }, "uploadedAt": { "type": "string", "format": "date-time", "description": "When the file was uploaded" } }, "required": [ "id", "fileName", "fileSize", "fileType", "url", "uploadedAt" ] }, "description": "Attached files" }, "mentions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "User ID" }, "name": { "type": "string", "description": "User's full name" }, "avatar": { "type": "string", "description": "URL to user's avatar" }, "role": { "type": "string", "enum": [ "admin", "member", "guest" ], "description": "User's role in the organization" } }, "required": [ "id", "name", "avatar", "role" ] }, "description": "Users mentioned in the comment" }, "likes": { "type": "number", "description": "Number of likes" }, "likedBy": { "type": "array", "items": { "type": "string" }, "description": "User IDs who liked the comment" }, "replyTo": { "type": "string", "description": "Parent comment ID if this is a reply" }, "replies": { "type": "array", "items": { "$ref": "#/components/schemas/Comment" }, "description": "Child comments (if includeReplies=true)" }, "createdAt": { "type": "string", "format": "date-time", "description": "Creation timestamp" }, "updatedAt": { "type": "string", "format": "date-time", "description": "Last update timestamp" }, "deletedAt": { "type": "string", "format": "date-time", "description": "Soft deletion timestamp" } }, "required": [ "id", "content", "author", "attachments", "mentions", "likes", "likedBy", "createdAt" ], "description": "Created comment" }, "success": { "type": "boolean", "description": "Whether creation was successful" }, "message": { "type": "string", "description": "Success or error message" } }, "required": [ "comment", "success" ] }, "CreateCustomerInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateDepartmentInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateDocumentInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateExportInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateInvoiceBody": { "type": "object", "properties": {} }, "CreateInvoiceInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateMemberInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateNotificationInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateOrderInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateOrganizationInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreatePaymentInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateProductApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "type": "object", "properties": { "success": { "type": "boolean" }, "productId": { "type": "string" } }, "required": [ "success", "productId" ] }, "timestamp": { "type": "string" } }, "required": [ "success", "data", "timestamp" ] }, "CreateProductData": { "type": "object", "properties": { "name": { "type": "string" }, "price": { "type": "number" } }, "required": [ "name", "price" ] }, "CreateProductInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateProductOptions": { "type": "object", "properties": { "notify": { "type": "boolean" } }, "required": [ "notify" ] }, "CreateProductRequest": { "type": "object", "properties": { "product": { "type": "object", "properties": { "name": { "type": "string" }, "price": { "type": "number" } }, "required": [ "name", "price" ], "nullable": false }, "options": { "type": [ "object", "null" ], "properties": { "notify": { "type": "boolean" } }, "required": [ "notify" ] } }, "required": [ "product" ] }, "CreateProductResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "productId": { "type": "string" } }, "required": [ "success", "productId" ] }, "CreateProjectInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateRefundInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateReportBody": { "type": "object", "properties": { "title": { "type": "string", "nullable": false }, "from": { "type": "string", "description": "start date (ISO 8601)", "nullable": false }, "to": { "type": "string", "description": "end date (ISO 8601)", "nullable": false } }, "required": [ "title", "from", "to" ] }, "CreateReportInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateSessionInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateSubscriptionInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateTaskInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateTeamInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateWebhookInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CreateWorkspaceInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": false }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } }, "required": [ "name" ] }, "CsvExportBody": { "type": "string" }, "CustomerEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "status": { "type": "string", "enum": [ "draft", "active", "archived" ] }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "status", "createdAt", "updatedAt" ] }, "CustomerIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "CustomerListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "CustomerListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "status": { "type": "string", "enum": [ "draft", "active", "archived" ] }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "status", "createdAt", "updatedAt" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "DeleteCommentResponse": { "type": "object", "properties": { "success": { "type": "boolean", "description": "Whether deletion was successful" }, "message": { "type": "string", "description": "Success or error message" } }, "required": [ "success" ] }, "DepartmentEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "createdAt", "updatedAt" ] }, "DepartmentIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "DepartmentListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "DepartmentListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "createdAt", "updatedAt" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "DocumentEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] }, "DocumentIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "DocumentListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "DocumentListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "EmailNotification": { "type": "object", "properties": { "type": { "type": "string", "enum": [ "email" ], "nullable": false }, "to": { "type": "string", "description": "Recipient email address", "nullable": false }, "subject": { "type": "string", "description": "Email subject", "nullable": false }, "body": { "type": "string", "description": "Email body content", "nullable": false } }, "required": [ "type", "to", "subject", "body" ] }, "Envelope": { "type": "object", "properties": { "data": {}, "meta": {} }, "required": [ "data", "meta" ] }, "ErrorResponse": { "type": "object", "properties": { "status": { "type": "string", "enum": [ "error" ] }, "error": { "type": "string", "description": "Error message" }, "code": { "type": "number", "description": "Error code" } }, "required": [ "status", "error", "code" ] }, "ExportDownloadQuery": { "type": "object", "properties": { "format": { "type": "string", "enum": [ "csv", "ndjson" ] } } }, "ExportEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] }, "ExportIdParam": { "type": "object", "properties": { "exportId": { "type": "string" } }, "required": [ "exportId" ] }, "ExportIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "ExportListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "ExportListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "ImmutableInvoice": { "type": "object", "properties": { "id": { "type": "string", "description": "-override { \"format\": \"email\", \"maxLength\": 320 }" }, "customerEmail": { "type": "string", "description": "-override { \"format\": \"email\", \"maxLength\": 320 }", "format": "email", "maxLength": 320 }, "amountMinor": { "type": "integer", "format": "int64", "description": "Monetary amount in the smallest currency unit — emitted as `integer` with `format: int64` via `bigint`." }, "status": { "type": "string", "enum": [ "draft", "open", "paid", "uncollectible" ] }, "createdAt": { "type": "string" } }, "readOnly": true }, "InvoiceEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] }, "InvoiceIdParams": { "type": "object", "properties": { "id": { "type": "string", "description": "Invoice identifier" } }, "required": [ "id" ] }, "InvoiceListItem": { "type": "object", "properties": { "id": { "type": "string", "description": "-override { \"format\": \"email\", \"maxLength\": 320 }" }, "customerEmail": { "type": "string", "description": "-override { \"format\": \"email\", \"maxLength\": 320 }", "format": "email", "maxLength": 320 }, "amountMinor": { "type": "integer", "format": "int64", "description": "Monetary amount in the smallest currency unit — emitted as `integer` with `format: int64` via `bigint`." }, "status": { "type": "string", "enum": [ "draft", "open", "paid", "uncollectible" ] }, "createdAt": { "type": "string" } } }, "InvoiceListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "InvoiceListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "InvoiceQuery": { "type": "object", "properties": { "status": { "type": "string", "enum": [ "draft", "open", "paid", "uncollectible" ] }, "from": { "type": "string" }, "to": { "type": "string" }, "cursor": { "type": "string" } } }, "InvoicesResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "-override { \"format\": \"email\", \"maxLength\": 320 }" }, "customerEmail": { "type": "string", "description": "-override { \"format\": \"email\", \"maxLength\": 320 }", "format": "email", "maxLength": 320 }, "amountMinor": { "type": "integer", "format": "int64", "description": "Monetary amount in the smallest currency unit — emitted as `integer` with `format: int64` via `bigint`." }, "status": { "type": "string", "enum": [ "draft", "open", "paid", "uncollectible" ] }, "createdAt": { "type": "string" } } } }, "total": { "type": "number" }, "nextCursor": { "type": [ "string", "null" ] } }, "required": [ "data", "total", "nextCursor" ] }, "LLMSResponse": { "type": "object", "properties": { "llms": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "provider": { "type": "string" }, "isDefault": { "type": "boolean" } }, "required": [ "id", "name", "provider", "isDefault" ] } } }, "required": [ "llms" ] }, "LoginBody": { "type": "object", "properties": { "email": { "type": "string", "description": "user email", "nullable": false }, "password": { "type": "string", "description": "user password", "nullable": false } }, "required": [ "email", "password" ] }, "LoginResponse": { "type": "object", "properties": { "token": { "type": "string", "description": "auth token" }, "refresh_token": { "type": "string", "description": "refresh token" } }, "required": [ "token", "refresh_token" ] }, "MemberEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] }, "MemberIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "MemberListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "MemberListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "Mutable": { "type": "object", "properties": {} }, "MyApiSuccessResponseBody": { "type": "object", "properties": { "success": { "type": "boolean", "enum": [ true ] }, "httpCode": { "type": "string" } }, "required": [ "success", "httpCode" ] }, "MyApiSuccessResponseBody": { "type": "object", "properties": { "llms": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "provider": { "type": "string" }, "isDefault": { "type": "boolean" } }, "required": [ "id", "name", "provider", "isDefault" ] } }, "success": { "type": "boolean", "enum": [ true ] }, "httpCode": { "type": "string" } }, "required": [ "llms", "success", "httpCode" ] }, "Notification": { "oneOf": [ { "type": "object", "properties": { "type": { "type": "string", "enum": [ "email" ], "nullable": false }, "to": { "type": "string", "description": "Recipient email address", "nullable": false }, "subject": { "type": "string", "description": "Email subject", "nullable": false }, "body": { "type": "string", "description": "Email body content", "nullable": false } }, "required": [ "type", "to", "subject", "body" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "sms" ], "nullable": false }, "phoneNumber": { "type": "string", "description": "Phone number with country code (e.g., +1234567890)", "nullable": false }, "message": { "type": "string", "description": "SMS message (max 160 characters)", "nullable": false } }, "required": [ "type", "phoneNumber", "message" ] }, { "type": "object", "properties": { "type": { "type": "string", "enum": [ "push" ], "nullable": false }, "deviceId": { "type": "string", "description": "Device identifier for push notification", "nullable": false }, "title": { "type": "string", "description": "Notification title", "nullable": false }, "body": { "type": "string", "description": "Notification body", "nullable": false } }, "required": [ "type", "deviceId", "title", "body" ] } ] }, "NotificationEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "status": { "type": "string", "enum": [ "draft", "active", "archived" ] }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "status", "createdAt", "updatedAt" ] }, "NotificationIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "NotificationListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "NotificationListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "status": { "type": "string", "enum": [ "draft", "active", "archived" ] }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "status", "createdAt", "updatedAt" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "OrderEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "createdAt", "updatedAt" ] }, "OrderIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "OrderListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "OrderListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "createdAt", "updatedAt" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "OrganizationEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "status": { "type": "string", "enum": [ "draft", "active", "archived" ] } }, "required": [ "id", "name", "active", "status" ] }, "OrganizationIdParams": { "type": "object", "properties": { "organizationId": { "type": "string" } }, "required": [ "organizationId" ] }, "OrganizationListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "OrganizationListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "status": { "type": "string", "enum": [ "draft", "active", "archived" ] } }, "required": [ "id", "name", "active", "status" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "PaginatedResponse": { "type": "object", "properties": { "data": { "type": "array", "items": {} }, "total": { "type": "number" }, "nextCursor": { "type": [ "string", "null" ] } }, "required": [ "data", "total", "nextCursor" ] }, "PaymentEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] }, "PaymentIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "PaymentListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "PaymentListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "Product": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "price": { "type": "number" }, "description": { "type": "string" }, "inStock": { "type": "boolean" } }, "required": [ "id", "name", "price", "inStock" ] }, "ProductByIdResponse": { "type": "object", "properties": { "product": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "price": { "type": "number" }, "description": { "type": "string" }, "inStock": { "type": "boolean" } }, "required": [ "id", "name", "price", "inStock" ] }, "fetchedAt": { "type": "string" } }, "required": [ "product", "fetchedAt" ] }, "ProductEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "status": { "type": "string", "enum": [ "draft", "active", "archived" ] } }, "required": [ "id", "name", "active", "status" ] }, "ProductIdParam": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "ProductIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "ProductListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "ProductListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "status": { "type": "string", "enum": [ "draft", "active", "archived" ] } }, "required": [ "id", "name", "active", "status" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "ProductSummaryResponse": { "type": "object", "properties": { "name": { "type": "string" }, "price": { "type": "number" } }, "required": [ "name", "price" ] }, "ProjectCollectionPathParams": { "type": "object", "properties": { "organizationId": { "type": "string" } }, "required": [ "organizationId" ] }, "ProjectEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] }, "ProjectIdParams": { "type": "object", "properties": { "organizationId": { "type": "string" }, "projectId": { "type": "string" } }, "required": [ "organizationId", "projectId" ] }, "ProjectListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "ProjectListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "PushNotification": { "type": "object", "properties": { "type": { "type": "string", "enum": [ "push" ], "nullable": false }, "deviceId": { "type": "string", "description": "Device identifier for push notification", "nullable": false }, "title": { "type": "string", "description": "Notification title", "nullable": false }, "body": { "type": "string", "description": "Notification body", "nullable": false } }, "required": [ "type", "deviceId", "title", "body" ] }, "RefundEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] }, "RefundIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "RefundListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "RefundListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "Report": { "type": "object", "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "generatedAt": { "type": "string" } }, "required": [ "id", "title", "generatedAt" ] }, "ReportEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] }, "ReportFormat": { "type": "string", "enum": [ "csv", "json", "parquet" ] }, "ReportIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "ReportKind": { "type": "string", "enum": [ "financial", "usage", "audit" ] }, "ReportListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "ReportListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "ReportManifest": { "type": "object" }, "ReportQuery": { "type": "object", "properties": { "from": { "type": "string", "description": "start date (ISO 8601)" }, "to": { "type": "string", "description": "end date (ISO 8601)" } } }, "ReportsResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "generatedAt": { "type": "string" } }, "required": [ "id", "title", "generatedAt" ] } }, "total": { "type": "number" } }, "required": [ "data", "total" ] }, "SessionActionInput": { "type": "object", "properties": { "extendMinutes": { "type": [ "number", "null" ] }, "revokeReason": { "type": [ "string", "null" ] } } }, "SessionEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "createdAt", "updatedAt" ] }, "SessionEnvelope": { "type": "object", "properties": { "data": { "type": "object", "properties": { "id": { "type": "string" }, "userId": { "type": "string" }, "authChannel": { "type": "string", "enum": [ "bearer", "header", "cookie" ] }, "device": { "type": "string" }, "ipAddress": { "type": "string" }, "lastSeenAt": { "type": "string" }, "status": { "type": "string", "enum": [ "active", "revoked" ] } }, "required": [ "id", "userId", "authChannel", "device", "ipAddress", "lastSeenAt", "status" ] }, "meta": {} }, "required": [ "data", "meta" ] }, "SessionIdParam": { "type": "object", "properties": { "sessionId": { "type": "string" } }, "required": [ "sessionId" ] }, "SessionIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "SessionListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "SessionListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "createdAt", "updatedAt" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "SessionResource": { "type": "object", "properties": { "id": { "type": "string" }, "userId": { "type": "string" }, "authChannel": { "type": "string", "enum": [ "bearer", "header", "cookie" ] }, "device": { "type": "string" }, "ipAddress": { "type": "string" }, "lastSeenAt": { "type": "string" }, "status": { "type": "string", "enum": [ "active", "revoked" ] } }, "required": [ "id", "userId", "authChannel", "device", "ipAddress", "lastSeenAt", "status" ] }, "SmsNotification": { "type": "object", "properties": { "type": { "type": "string", "enum": [ "sms" ], "nullable": false }, "phoneNumber": { "type": "string", "description": "Phone number with country code (e.g., +1234567890)", "nullable": false }, "message": { "type": "string", "description": "SMS message (max 160 characters)", "nullable": false } }, "required": [ "type", "phoneNumber", "message" ] }, "SubscriptionEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "status": { "type": "string", "enum": [ "draft", "active", "archived" ] } }, "required": [ "id", "name", "active", "status" ] }, "SubscriptionIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "SubscriptionListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "SubscriptionListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "status": { "type": "string", "enum": [ "draft", "active", "archived" ] } }, "required": [ "id", "name", "active", "status" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "SuccessResponse": { "type": "object", "properties": { "status": { "type": "string", "enum": [ "success" ] }, "data": { "type": "object", "properties": { "id": { "type": "string", "description": "Unique identifier" }, "message": { "type": "string", "description": "Success message" } }, "required": [ "id", "message" ] } }, "required": [ "status", "data" ] }, "TaskCollectionPathParams": { "type": "object", "properties": { "projectId": { "type": "string" } }, "required": [ "projectId" ] }, "TaskEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "createdAt", "updatedAt" ] }, "TaskIdParams": { "type": "object", "properties": { "projectId": { "type": "string" }, "id": { "type": "string" } }, "required": [ "projectId", "id" ] }, "TaskListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "TaskListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "createdAt", "updatedAt" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "TeamEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "createdAt", "updatedAt" ] }, "TeamIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "TeamListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "TeamListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": [ "id", "name", "active", "createdAt", "updatedAt" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "UpdateApiKeyInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateAttachmentInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateAuditLogInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateCatalogItemInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateCommentBody": { "type": "object", "properties": { "content": { "type": [ "string", "null" ], "description": "Updated comment content" }, "addAttachmentIds": { "type": [ "array", "null" ], "items": { "type": "string" }, "description": "IDs of attachments to add" }, "removeAttachmentIds": { "type": [ "array", "null" ], "items": { "type": "string" }, "description": "IDs of attachments to remove" }, "addMentions": { "type": [ "array", "null" ], "items": { "type": "string" }, "description": "User IDs to add to mentions" }, "removeMentions": { "type": [ "array", "null" ], "items": { "type": "string" }, "description": "User IDs to remove from mentions" } } }, "UpdateCommentInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateCommentResponse": { "type": "object", "properties": { "comment": { "type": "object", "properties": { "id": { "type": "string", "description": "Comment ID" }, "content": { "type": "string", "description": "Comment content" }, "author": { "type": "object", "properties": { "id": { "type": "string", "description": "User ID" }, "name": { "type": "string", "description": "User's full name" }, "avatar": { "type": "string", "description": "URL to user's avatar" }, "role": { "type": "string", "enum": [ "admin", "member", "guest" ], "description": "User's role in the organization" } }, "required": [ "id", "name", "avatar", "role" ], "description": "User who created the comment" }, "attachments": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "Attachment ID" }, "fileName": { "type": "string", "description": "Original file name" }, "fileSize": { "type": "number", "description": "Size in bytes" }, "fileType": { "type": "string", "description": "MIME type" }, "url": { "type": "string", "description": "Download URL" }, "thumbnailUrl": { "type": "string", "description": "Thumbnail URL for images" }, "uploadedAt": { "type": "string", "format": "date-time", "description": "When the file was uploaded" } }, "required": [ "id", "fileName", "fileSize", "fileType", "url", "uploadedAt" ] }, "description": "Attached files" }, "mentions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "description": "User ID" }, "name": { "type": "string", "description": "User's full name" }, "avatar": { "type": "string", "description": "URL to user's avatar" }, "role": { "type": "string", "enum": [ "admin", "member", "guest" ], "description": "User's role in the organization" } }, "required": [ "id", "name", "avatar", "role" ] }, "description": "Users mentioned in the comment" }, "likes": { "type": "number", "description": "Number of likes" }, "likedBy": { "type": "array", "items": { "type": "string" }, "description": "User IDs who liked the comment" }, "replyTo": { "type": "string", "description": "Parent comment ID if this is a reply" }, "replies": { "type": "array", "items": { "$ref": "#/components/schemas/Comment" }, "description": "Child comments (if includeReplies=true)" }, "createdAt": { "type": "string", "format": "date-time", "description": "Creation timestamp" }, "updatedAt": { "type": "string", "format": "date-time", "description": "Last update timestamp" }, "deletedAt": { "type": "string", "format": "date-time", "description": "Soft deletion timestamp" } }, "required": [ "id", "content", "author", "attachments", "mentions", "likes", "likedBy", "createdAt" ], "description": "Updated comment" }, "success": { "type": "boolean", "description": "Whether update was successful" }, "message": { "type": "string", "description": "Success or error message" } }, "required": [ "comment", "success" ] }, "UpdateCustomerInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateDepartmentInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateDocumentInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateExportInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateInvoiceInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateMemberInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateNotificationInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateOrderInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateOrganizationInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdatePaymentInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateProductInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateProjectInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateRefundInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateReportInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateSessionInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateStockApiResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "type": "object", "properties": { "updated": { "type": "boolean" }, "productId": { "type": "string" }, "timestamp": { "type": "string" } }, "required": [ "updated", "productId", "timestamp" ] }, "timestamp": { "type": "string" } }, "required": [ "success", "data", "timestamp" ] }, "UpdateStockRequest": { "type": "object", "properties": { "inStock": { "type": "boolean", "nullable": false } }, "required": [ "inStock" ] }, "UpdateStockResponse": { "type": "object", "properties": { "updated": { "type": "boolean" }, "productId": { "type": "string" }, "timestamp": { "type": "string" } }, "required": [ "updated", "productId", "timestamp" ] }, "UpdateSubscriptionInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateTaskInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateTeamInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateWebhookInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UpdateWorkspaceInput": { "type": "object", "properties": { "name": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] }, "active": { "type": [ "boolean", "null" ] } } }, "UploadFormData": { "type": "object", "properties": { "file": { "type": "string", "contentMediaType": "application/octet-stream", "description": "Image file (PNG/JPG, max 5MB)", "nullable": false }, "description": { "type": [ "string", "null" ], "description": "Image file (PNG/JPG, max 5MB)" }, "category": { "type": "string", "nullable": false } }, "required": [ "file", "category" ] }, "UploadResponse": { "type": "object", "properties": { "id": { "type": "string" }, "filename": { "type": "string" }, "size": { "type": "number" }, "type": { "type": "string", "description": "MIME type" }, "url": { "type": "string", "description": "File access URL" }, "category": { "type": "string", "description": "File category" }, "description": { "type": "string", "description": "File category" }, "uploadedAt": { "type": "string" } }, "required": [ "id", "filename", "size", "type", "url", "category", "uploadedAt" ] }, "User": { "type": "object", "properties": { "id": { "type": "string", "description": "User ID" }, "name": { "type": "string", "description": "User's full name" }, "avatar": { "type": "string", "description": "URL to user's avatar" }, "role": { "type": "string", "enum": [ "admin", "member", "guest" ], "description": "User's role in the organization" } }, "required": [ "id", "name", "avatar", "role" ] }, "UserIdParam": { "type": "object", "properties": { "id": { "type": "string", "description": "User's unique identifier" } }, "required": [ "id" ] }, "UserResponse": { "type": "object", "properties": { "id": { "type": "string", "description": "User ID" }, "name": { "type": "string", "description": "User's full name" }, "avatar": { "type": "string", "description": "URL to user's avatar" }, "role": { "type": "string", "enum": [ "admin", "member", "guest" ], "description": "User's role in the organization" } } }, "WebhookEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] }, "WebhookIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "WebhookListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "WebhookListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] }, "WorkspaceEntity": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] }, "WorkspaceIdParams": { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] }, "WorkspaceListQuery": { "type": "object", "properties": { "page": { "type": "string" }, "limit": { "type": "string" }, "search": { "type": "string" }, "active": { "type": "string", "enum": [ "true", "false" ] } } }, "WorkspaceListResponse": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "active": { "type": "boolean" } }, "required": [ "id", "name", "active" ] } }, "total": { "type": "number" }, "page": { "type": "number" }, "limit": { "type": "number" } }, "required": [ "items", "total", "page", "limit" ] } }, "responses": { "400": { "description": "Bad request", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean", "examples": [ false ] }, "error": { "type": "string", "examples": [ "Validation error" ] } } } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean", "examples": [ false ] }, "error": { "type": "string", "examples": [ "Unathorized" ] } } } } } }, "500": { "description": "Internal server error", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean", "examples": [ false ] }, "error": { "type": "string", "examples": [ "Something went wrong" ] } } } } } } } }, "paths": { "/admin/reports": { "get": { "operationId": "tsListAdminReports", "summary": "List reports", "description": "Lists every admin-visible report. Demonstrates multi-scheme OR security and `@servers`.", "tags": [ "Admin", "Reports" ], "parameters": [], "security": [ { "BearerAuth, ApiKeyAuth": [ "read" ] } ], "servers": [ { "url": "https://admin.example.com/v1,", "description": "https://admin-eu.example.com/v1" } ], "externalDocs": { "url": "https://docs.example.com/admin/reports", "description": "Admin report runbook" }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminReportsResponse" } } }, "headers": { "X-Request-Id": { "description": "Request identifier for tracing", "schema": { "type": "string" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" }, "4XX": { "description": "Any client error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "5XX": { "description": "Any server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "post": { "operationId": "tsCreateAdminReport", "summary": "Create report", "description": "Schedules a new admin report generation.", "tags": [ "Admin" ], "parameters": [], "security": [ { "BearerAuth, ApiKeyAuth": [ "write" ] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAdminReportBody" } } } }, "responses": { "202": { "description": "Report generation queued", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdminReport" } } }, "headers": { "Location": { "description": "URL where the generated report will be available", "schema": { "type": "string" } } }, "links": { "listReports": { "operationId": "tsListAdminReports" } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } } }, "/generated/api-keys": { "get": { "operationId": "scaleAppListApiKey", "summary": "List api-keys", "description": "Returns a paginated list of api-keys", "tags": [ "ApiKeys" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiKeyListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateApiKey", "summary": "Create apikey", "description": "Creates a new apikey", "tags": [ "ApiKeys" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateApiKeyInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiKeyEntity" } } } } } } }, "/generated/api-keys/{id}": { "get": { "operationId": "scaleAppGetApiKey", "summary": "Get apikey by ID", "description": "Returns a single apikey by identifier", "tags": [ "ApiKeys" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiKeyEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateApiKey", "summary": "Update apikey", "description": "Updates an existing apikey", "tags": [ "ApiKeys" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateApiKeyInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiKeyEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteApiKey", "summary": "Delete apikey", "description": "Deletes a apikey by identifier", "tags": [ "ApiKeys" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/generated/attachments": { "get": { "operationId": "scaleAppListAttachment", "summary": "List attachments", "description": "Returns a paginated list of attachments", "tags": [ "Attachments" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AttachmentListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateAttachment", "summary": "Create attachment", "description": "Creates a new attachment", "tags": [ "Attachments" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAttachmentInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AttachmentEntity" } } } } } } }, "/generated/attachments/{id}": { "get": { "operationId": "scaleAppGetAttachment", "summary": "Get attachment by ID", "description": "Returns a single attachment by identifier", "tags": [ "Attachments" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AttachmentEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateAttachment", "summary": "Update attachment", "description": "Updates an existing attachment", "tags": [ "Attachments" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAttachmentInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AttachmentEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteAttachment", "summary": "Delete attachment", "description": "Deletes a attachment by identifier", "tags": [ "Attachments" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/generated/audit-logs": { "get": { "operationId": "scaleAppListAuditLog", "summary": "List audit-logs", "description": "Returns a paginated list of audit-logs", "tags": [ "AuditLogs" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuditLogListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateAuditLog", "summary": "Create auditlog", "description": "Creates a new auditlog", "tags": [ "AuditLogs" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAuditLogInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuditLogEntity" } } } } } } }, "/generated/audit-logs/{id}": { "get": { "operationId": "scaleAppGetAuditLog", "summary": "Get auditlog by ID", "description": "Returns a single auditlog by identifier", "tags": [ "AuditLogs" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuditLogEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateAuditLog", "summary": "Update auditlog", "description": "Updates an existing auditlog", "tags": [ "AuditLogs" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAuditLogInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuditLogEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteAuditLog", "summary": "Delete auditlog", "description": "Deletes a auditlog by identifier", "tags": [ "AuditLogs" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/auth/login": { "post": { "operationId": "post-auth-login", "summary": "Authenticate as a user.", "description": "Login a user", "tags": [ "Auth" ], "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginBody" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginResponse" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } } }, "/billing/invoices": { "get": { "operationId": "tsListInvoices", "summary": "List invoices", "description": "Returns a paginated list of invoices. Exercises wildcard responses and `@link`.", "tags": [ "Billing", "Finance" ], "parameters": [ { "in": "query", "name": "status", "required": false, "schema": { "type": "string", "enum": [ "draft", "open", "paid", "uncollectible" ] }, "example": "draft" }, { "in": "query", "name": "from", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "to", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "cursor", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "cookie", "name": "session", "required": true, "schema": { "type": "string", "description": "Session token" }, "description": "Session token", "example": "example" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvoicesResponse" } } }, "headers": { "Link": { "description": "RFC 5988 pagination links", "schema": { "type": "string" } }, "X-Total-Count": { "description": "Total invoices matching the query", "schema": { "type": "integer" } } }, "links": { "getInvoice": { "operationId": "tsGetInvoice" } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" }, "4XX": { "description": "Any client error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Fallback error envelope", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "post": { "operationId": "tsCreateInvoice", "summary": "Create invoice", "description": "Creates a new draft invoice.", "tags": [ "Billing" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateInvoiceBody" } } } }, "responses": { "201": { "description": "Draft invoice created", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Invoice" } } }, "headers": { "Location": { "description": "URL of the created invoice", "schema": { "type": "string" } } }, "links": { "getInvoice": { "operationId": "tsGetInvoice" } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } } }, "/billing/invoices/{id}": { "get": { "operationId": "tsGetInvoice", "summary": "Get invoice", "description": "Fetches a single invoice by identifier. Response properties are all `readonly` to emit `readOnly: true`.", "tags": [ "Billing", "Finance" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string", "description": "Invoice identifier" }, "description": "Invoice identifier", "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ImmutableInvoice" } } }, "headers": { "ETag": { "description": "Strong ETag for optimistic concurrency", "schema": { "type": "string" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" }, "4XX": { "description": "Any client error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/generated/catalog-items": { "get": { "operationId": "scaleAppListCatalogItem", "summary": "List catalog-items", "description": "Returns a paginated list of catalog-items", "tags": [ "Catalog" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CatalogItemListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateCatalogItem", "summary": "Create catalogitem", "description": "Creates a new catalogitem", "tags": [ "Catalog" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCatalogItemInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CatalogItemEntity" } } } } } } }, "/generated/catalog-items/{id}": { "get": { "operationId": "scaleAppGetCatalogItem", "summary": "Get catalogitem by ID", "description": "Returns a single catalogitem by identifier", "tags": [ "Catalog" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CatalogItemEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateCatalogItem", "summary": "Update catalogitem", "description": "Updates an existing catalogitem", "tags": [ "Catalog" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateCatalogItemInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CatalogItemEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteCatalogItem", "summary": "Delete catalogitem", "description": "Deletes a catalogitem by identifier", "tags": [ "Catalog" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/generated/comments": { "get": { "operationId": "scaleAppListComment", "summary": "List comments", "description": "Returns a paginated list of comments", "tags": [ "Comments" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommentListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateComment", "summary": "Create comment", "description": "Creates a new comment", "tags": [ "Comments" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCommentInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommentEntity" } } } } } } }, "/generated/comments/{id}": { "get": { "operationId": "scaleAppGetComment", "summary": "Get comment by ID", "description": "Returns a single comment by identifier", "tags": [ "Comments" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommentEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateComment", "summary": "Update comment", "description": "Updates an existing comment", "tags": [ "Comments" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateCommentInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommentEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteComment", "summary": "Delete comment", "description": "Deletes a comment by identifier", "tags": [ "Comments" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/generated/customers": { "get": { "operationId": "scaleAppListCustomer", "summary": "List customers", "description": "Returns a paginated list of customers", "tags": [ "Customers" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomerListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateCustomer", "summary": "Create customer", "description": "Creates a new customer", "tags": [ "Customers" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCustomerInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomerEntity" } } } } } } }, "/generated/customers/{id}": { "get": { "operationId": "scaleAppGetCustomer", "summary": "Get customer by ID", "description": "Returns a single customer by identifier", "tags": [ "Customers" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomerEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateCustomer", "summary": "Update customer", "description": "Updates an existing customer", "tags": [ "Customers" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateCustomerInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CustomerEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteCustomer", "summary": "Delete customer", "description": "Deletes a customer by identifier", "tags": [ "Customers" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/generated/departments": { "get": { "operationId": "scaleAppListDepartment", "summary": "List departments", "description": "Returns a paginated list of departments", "tags": [ "Departments" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DepartmentListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateDepartment", "summary": "Create department", "description": "Creates a new department", "tags": [ "Departments" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateDepartmentInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DepartmentEntity" } } } } } } }, "/generated/departments/{id}": { "get": { "operationId": "scaleAppGetDepartment", "summary": "Get department by ID", "description": "Returns a single department by identifier", "tags": [ "Departments" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DepartmentEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateDepartment", "summary": "Update department", "description": "Updates an existing department", "tags": [ "Departments" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateDepartmentInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DepartmentEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteDepartment", "summary": "Delete department", "description": "Deletes a department by identifier", "tags": [ "Departments" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/generated/documents": { "get": { "operationId": "scaleAppListDocument", "summary": "List documents", "description": "Returns a paginated list of documents", "tags": [ "Documents" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateDocument", "summary": "Create document", "description": "Creates a new document", "tags": [ "Documents" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateDocumentInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentEntity" } } } } } } }, "/generated/documents/{id}": { "get": { "operationId": "scaleAppGetDocument", "summary": "Get document by ID", "description": "Returns a single document by identifier", "tags": [ "Documents" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateDocument", "summary": "Update document", "description": "Updates an existing document", "tags": [ "Documents" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateDocumentInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteDocument", "summary": "Delete document", "description": "Deletes a document by identifier", "tags": [ "Documents" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/exports/{exportId}": { "get": { "operationId": "typescriptDownloadExport", "summary": "Download an export payload.", "description": "Returns a CSV export body using an explicit non-JSON media type.", "tags": [ "Exports" ], "parameters": [ { "in": "query", "name": "format", "required": false, "schema": { "type": "string", "enum": [ "csv", "ndjson" ] }, "example": "csv" }, { "in": "path", "name": "exportId", "required": true, "schema": { "type": "string" }, "example": "123" } ], "responses": { "200": { "description": "Successful response", "content": { "text/csv": { "schema": { "$ref": "#/components/schemas/CsvExportBody" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } } }, "/generated/exports": { "get": { "operationId": "scaleAppListExport", "summary": "List exports", "description": "Returns a paginated list of exports", "tags": [ "Exports" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExportListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateExport", "summary": "Create export", "description": "Creates a new export", "tags": [ "Exports" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateExportInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExportEntity" } } } } } } }, "/exports/{exportId}/latest": { "get": { "operationId": "typescriptRedirectLatestExport", "summary": "Redirect to the latest export artifact.", "description": "Demonstrates redirect-style transport routes from typed route modules.", "tags": [ "Exports" ], "parameters": [ { "in": "path", "name": "exportId", "required": true, "schema": { "type": "string" }, "example": "123" } ], "responses": { "307": { "description": "Successful response", "headers": { "Location": { "description": "Redirect target URL", "schema": { "type": "string", "format": "uri" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } } }, "/generated/exports/{id}": { "get": { "operationId": "scaleAppGetExport", "summary": "Get export by ID", "description": "Returns a single export by identifier", "tags": [ "Exports" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExportEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateExport", "summary": "Update export", "description": "Updates an existing export", "tags": [ "Exports" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateExportInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExportEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteExport", "summary": "Delete export", "description": "Deletes a export by identifier", "tags": [ "Exports" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/generated/invoices": { "get": { "operationId": "scaleAppListInvoice", "summary": "List invoices", "description": "Returns a paginated list of invoices", "tags": [ "Invoices" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvoiceListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateInvoice", "summary": "Create invoice", "description": "Creates a new invoice", "tags": [ "Invoices" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateInvoiceInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvoiceEntity" } } } } } } }, "/generated/invoices/{id}": { "get": { "operationId": "scaleAppGetInvoice", "summary": "Get invoice by ID", "description": "Returns a single invoice by identifier", "tags": [ "Invoices" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string", "description": "Invoice identifier" }, "description": "Invoice identifier", "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvoiceEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateInvoice", "summary": "Update invoice", "description": "Updates an existing invoice", "tags": [ "Invoices" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string", "description": "Invoice identifier" }, "description": "Invoice identifier", "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateInvoiceInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InvoiceEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteInvoice", "summary": "Delete invoice", "description": "Deletes a invoice by identifier", "tags": [ "Invoices" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string", "description": "Invoice identifier" }, "description": "Invoice identifier", "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/llms": { "get": { "operationId": "get-llms", "summary": "GET /api/llms", "description": "Get list of available LLMs", "tags": [ "Llms" ], "parameters": [], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MyApiSuccessResponseBody" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } } }, "/generated/members": { "get": { "operationId": "scaleAppListMember", "summary": "List members", "description": "Returns a paginated list of members", "tags": [ "Members" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemberListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateMember", "summary": "Create member", "description": "Creates a new member", "tags": [ "Members" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateMemberInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemberEntity" } } } } } } }, "/generated/members/{id}": { "get": { "operationId": "scaleAppGetMember", "summary": "Get member by ID", "description": "Returns a single member by identifier", "tags": [ "Members" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemberEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateMember", "summary": "Update member", "description": "Updates an existing member", "tags": [ "Members" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateMemberInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MemberEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteMember", "summary": "Delete member", "description": "Deletes a member by identifier", "tags": [ "Members" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/notifications": { "get": { "operationId": "get-notifications", "summary": "Get notification status", "description": "Returns success or error response (demonstrates discriminated union types)", "tags": [ "Notifications" ], "parameters": [], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "post": { "operationId": "post-notifications", "summary": "Send notification", "description": "Send notification via email, SMS, or push (demonstrates discriminated unions)", "tags": [ "Notifications", "Messaging" ], "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Notification" } } } }, "responses": { "201": { "description": "Notification sent successfully", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "400": { "description": "Invalid notification data", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "429": { "description": "Rate limit exceeded", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "500": { "$ref": "#/components/responses/500" } } } }, "/generated/notifications": { "get": { "operationId": "scaleAppListNotification", "summary": "List notifications", "description": "Returns a paginated list of notifications", "tags": [ "Notifications" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateNotification", "summary": "Create notification", "description": "Creates a new notification", "tags": [ "Notifications" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateNotificationInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationEntity" } } } } } } }, "/generated/notifications/{id}": { "get": { "operationId": "scaleAppGetNotification", "summary": "Get notification by ID", "description": "Returns a single notification by identifier", "tags": [ "Notifications" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateNotification", "summary": "Update notification", "description": "Updates an existing notification", "tags": [ "Notifications" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateNotificationInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NotificationEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteNotification", "summary": "Delete notification", "description": "Deletes a notification by identifier", "tags": [ "Notifications" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/generated/orders": { "get": { "operationId": "scaleAppListOrder", "summary": "List orders", "description": "Returns a paginated list of orders", "tags": [ "Orders" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateOrder", "summary": "Create order", "description": "Creates a new order", "tags": [ "Orders" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateOrderInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderEntity" } } } } } } }, "/generated/orders/{id}": { "get": { "operationId": "scaleAppGetOrder", "summary": "Get order by ID", "description": "Returns a single order by identifier", "tags": [ "Orders" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateOrder", "summary": "Update order", "description": "Updates an existing order", "tags": [ "Orders" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateOrderInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrderEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteOrder", "summary": "Delete order", "description": "Deletes a order by identifier", "tags": [ "Orders" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/generated/organizations": { "get": { "operationId": "scaleAppListOrganization", "summary": "List organizations", "description": "Returns a paginated list of organizations", "tags": [ "Organizations" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrganizationListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateOrganization", "summary": "Create organization", "description": "Creates a new organization", "tags": [ "Organizations" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateOrganizationInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrganizationEntity" } } } } } } }, "/generated/organizations/{organizationId}": { "get": { "operationId": "scaleAppGetOrganization", "summary": "Get organization by ID", "description": "Returns a single organization by identifier", "tags": [ "Organizations" ], "parameters": [ { "in": "path", "name": "organizationId", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrganizationEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateOrganization", "summary": "Update organization", "description": "Updates an existing organization", "tags": [ "Organizations" ], "parameters": [ { "in": "path", "name": "organizationId", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateOrganizationInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OrganizationEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteOrganization", "summary": "Delete organization", "description": "Deletes a organization by identifier", "tags": [ "Organizations" ], "parameters": [ { "in": "path", "name": "organizationId", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/organizations/{orgId}/projects/{projectId}/tasks/{taskId}/comments": { "get": { "operationId": "get-organizations-{orgId}-projects-{projectId}-tasks-{taskId}-comments", "summary": "Get Task Comments", "description": "Retrieve comments for a specific task within a project and organization", "tags": [ "Organizations" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "number", "description": "Page number for pagination" }, "description": "Page number for pagination", "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "number", "description": "Number of comments per page" }, "description": "Number of comments per page", "example": 1 }, { "in": "query", "name": "sort", "required": false, "schema": { "type": "string", "enum": [ "newest", "oldest", "likes" ], "description": "Sort order" }, "description": "Sort order", "example": "newest" }, { "in": "query", "name": "includeDeleted", "required": false, "schema": { "type": "boolean", "description": "Whether to include soft-deleted comments" }, "description": "Whether to include soft-deleted comments", "example": true }, { "in": "query", "name": "includeReplies", "required": false, "schema": { "type": "boolean", "description": "Whether to include replies" }, "description": "Whether to include replies", "example": true }, { "in": "query", "name": "user", "required": false, "schema": { "type": "string", "description": "Filter by user ID" }, "description": "Filter by user ID", "example": "example" }, { "in": "path", "name": "orgId", "required": true, "schema": { "type": "string", "description": "Organization ID" }, "description": "Organization ID", "example": "123" }, { "in": "path", "name": "projectId", "required": true, "schema": { "type": "string", "description": "Project ID within the organization" }, "description": "Project ID within the organization", "example": "123" }, { "in": "path", "name": "taskId", "required": true, "schema": { "type": "string", "description": "Task ID within the project" }, "description": "Task ID within the project", "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommentsResponse" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "post": { "operationId": "post-organizations-{orgId}-projects-{projectId}-tasks-{taskId}-comments", "summary": "Create Task Comment", "description": "Add a new comment to a specific task", "tags": [ "Organizations" ], "parameters": [ { "in": "path", "name": "orgId", "required": true, "schema": { "type": "string", "description": "Organization ID" }, "description": "Organization ID", "example": "123" }, { "in": "path", "name": "projectId", "required": true, "schema": { "type": "string", "description": "Project ID within the organization" }, "description": "Project ID within the organization", "example": "123" }, { "in": "path", "name": "taskId", "required": true, "schema": { "type": "string", "description": "Task ID within the project" }, "description": "Task ID within the project", "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCommentBody" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCommentResponse" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "patch-organizations-{orgId}-projects-{projectId}-tasks-{taskId}-comments", "summary": "Update Task Comment", "description": "Modify an existing comment on a task", "tags": [ "Organizations" ], "parameters": [ { "in": "query", "name": "commentId", "required": false, "schema": { "type": "string" }, "example": "123" }, { "in": "path", "name": "orgId", "required": true, "schema": { "type": "string", "description": "Organization ID" }, "description": "Organization ID", "example": "123" }, { "in": "path", "name": "projectId", "required": true, "schema": { "type": "string", "description": "Project ID within the organization" }, "description": "Project ID within the organization", "example": "123" }, { "in": "path", "name": "taskId", "required": true, "schema": { "type": "string", "description": "Task ID within the project" }, "description": "Task ID within the project", "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateCommentBody" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateCommentResponse" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "delete": { "operationId": "delete-organizations-{orgId}-projects-{projectId}-tasks-{taskId}-comments", "summary": "Delete Task Comment", "description": "Remove a comment from a task (soft delete)", "tags": [ "Organizations" ], "parameters": [ { "in": "query", "name": "commentId", "required": false, "schema": { "type": "string" }, "example": "123" }, { "in": "path", "name": "orgId", "required": true, "schema": { "type": "string", "description": "Organization ID" }, "description": "Organization ID", "example": "123" }, { "in": "path", "name": "projectId", "required": true, "schema": { "type": "string", "description": "Project ID within the organization" }, "description": "Project ID within the organization", "example": "123" }, { "in": "path", "name": "taskId", "required": true, "schema": { "type": "string", "description": "Task ID within the project" }, "description": "Task ID within the project", "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeleteCommentResponse" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } } }, "/generated/payments": { "get": { "operationId": "scaleAppListPayment", "summary": "List payments", "description": "Returns a paginated list of payments", "tags": [ "Payments" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentListResponse" } } } } } }, "post": { "operationId": "scaleAppCreatePayment", "summary": "Create payment", "description": "Creates a new payment", "tags": [ "Payments" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePaymentInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentEntity" } } } } } } }, "/generated/payments/{id}": { "get": { "operationId": "scaleAppGetPayment", "summary": "Get payment by ID", "description": "Returns a single payment by identifier", "tags": [ "Payments" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdatePayment", "summary": "Update payment", "description": "Updates an existing payment", "tags": [ "Payments" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdatePaymentInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PaymentEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeletePayment", "summary": "Delete payment", "description": "Deletes a payment by identifier", "tags": [ "Payments" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/products": { "post": { "operationId": "post-products", "summary": "Create product", "description": "Demonstrates ReturnType and Parameters utility types\nRequest body type is inferred from createProduct function parameters.\nResponse type is inferred from createProduct return type.", "tags": [ "Products", "Commerce" ], "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateProductRequest" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateProductApiResponse" } } }, "headers": { "X-Request-Id": { "description": "Trace identifier", "schema": { "type": "string" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" }, "4XX": { "description": "Any client error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "5XX": { "description": "Any server error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Fallback error envelope", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/generated/products": { "get": { "operationId": "scaleAppListProduct", "summary": "List products", "description": "Returns a paginated list of products", "tags": [ "Products" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateProduct", "summary": "Create product", "description": "Creates a new product", "tags": [ "Products" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateProductInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductEntity" } } } } } } }, "/products/{id}": { "get": { "operationId": "get-products-{id}", "summary": "Get Product by ID", "description": "Demonstrates Awaited> utility type support\nThis endpoint showcases the main bug fix from issue #53.\nThe response type is automatically inferred from the getProductById function.", "tags": [ "Products" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductByIdResponse" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "patch-products-{id}", "summary": "Update Product Stock", "description": "Demonstrates Awaited> with async functions\nUpdates the stock status of a product.\nResponse type is automatically inferred from updateStock function and wrapped in ApiResponse.", "tags": [ "Products" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateStockRequest" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateStockApiResponse" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } } }, "/generated/products/{id}": { "get": { "operationId": "scaleAppGetProduct", "summary": "Get product by ID", "description": "Returns a single product by identifier", "tags": [ "Products" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateProduct", "summary": "Update product", "description": "Updates an existing product", "tags": [ "Products" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateProductInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteProduct", "summary": "Delete product", "description": "Deletes a product by identifier", "tags": [ "Products" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/products/{id}/summary": { "get": { "operationId": "get-products-{id}-summary", "summary": "Get Product Summary", "description": "Demonstrates simple Awaited> pattern\nReturns only name and price of the product.\nType is automatically inferred from getProductSummary function.", "tags": [ "Products" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProductSummaryResponse" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } } }, "/generated/organizations/{organizationId}/projects": { "get": { "operationId": "scaleAppListProject", "summary": "List projects", "description": "Returns a paginated list of projects", "tags": [ "Projects" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" }, { "in": "path", "name": "organizationId", "required": true, "schema": { "type": "string" }, "example": "123" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateProject", "summary": "Create project", "description": "Creates a new project", "tags": [ "Projects" ], "parameters": [ { "in": "path", "name": "organizationId", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateProjectInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectEntity" } } } } } } }, "/generated/organizations/{organizationId}/projects/{projectId}": { "get": { "operationId": "scaleAppGetProject", "summary": "Get project by ID", "description": "Returns a single project by identifier", "tags": [ "Projects" ], "parameters": [ { "in": "path", "name": "organizationId", "required": true, "schema": { "type": "string" }, "example": "123" }, { "in": "path", "name": "projectId", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateProject", "summary": "Update project", "description": "Updates an existing project", "tags": [ "Projects" ], "parameters": [ { "in": "path", "name": "organizationId", "required": true, "schema": { "type": "string" }, "example": "123" }, { "in": "path", "name": "projectId", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateProjectInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteProject", "summary": "Delete project", "description": "Deletes a project by identifier", "tags": [ "Projects" ], "parameters": [ { "in": "path", "name": "organizationId", "required": true, "schema": { "type": "string" }, "example": "123" }, { "in": "path", "name": "projectId", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/generated/refunds": { "get": { "operationId": "scaleAppListRefund", "summary": "List refunds", "description": "Returns a paginated list of refunds", "tags": [ "Refunds" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefundListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateRefund", "summary": "Create refund", "description": "Creates a new refund", "tags": [ "Refunds" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateRefundInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefundEntity" } } } } } } }, "/generated/refunds/{id}": { "get": { "operationId": "scaleAppGetRefund", "summary": "Get refund by ID", "description": "Returns a single refund by identifier", "tags": [ "Refunds" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefundEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateRefund", "summary": "Update refund", "description": "Updates an existing refund", "tags": [ "Refunds" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateRefundInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefundEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteRefund", "summary": "Delete refund", "description": "Deletes a refund by identifier", "tags": [ "Refunds" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/reports": { "get": { "operationId": "get-reports", "summary": "List reports", "description": "Returns a paginated list of reports. Requires both Bearer token and API key.", "tags": [ "Reports" ], "parameters": [ { "in": "query", "name": "from", "required": false, "schema": { "type": "string", "description": "start date (ISO 8601)" }, "description": "start date (ISO 8601)", "example": "example" }, { "in": "query", "name": "to", "required": false, "schema": { "type": "string", "description": "end date (ISO 8601)" }, "description": "end date (ISO 8601)", "example": "example" } ], "security": [ { "BearerAuth": [] }, { "ApiKeyAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportsResponse" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "post": { "operationId": "post-reports", "summary": "Create report", "description": "Creates a new report. Requires Bearer token and a partner-specific token.", "tags": [ "Reports" ], "parameters": [], "security": [ { "BearerAuth": [] }, { "PartnerToken": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateReportBody" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Report" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } } }, "/generated/reports": { "get": { "operationId": "scaleAppListReport", "summary": "List reports", "description": "Returns a paginated list of reports", "tags": [ "Reports" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateReport", "summary": "Create report", "description": "Creates a new report", "tags": [ "Reports" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateReportInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportEntity" } } } } } } }, "/generated/reports/{id}": { "get": { "operationId": "scaleAppGetReport", "summary": "Get report by ID", "description": "Returns a single report by identifier", "tags": [ "Reports" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateReport", "summary": "Update report", "description": "Updates an existing report", "tags": [ "Reports" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateReportInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteReport", "summary": "Delete report", "description": "Deletes a report by identifier", "tags": [ "Reports" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/generated/sessions": { "get": { "operationId": "scaleAppListSession", "summary": "List sessions", "description": "Returns a paginated list of sessions", "tags": [ "Sessions" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateSession", "summary": "Create session", "description": "Creates a new session", "tags": [ "Sessions" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateSessionInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionEntity" } } } } } } }, "/sessions/{sessionId}": { "get": { "operationId": "typescriptGetSession", "summary": "Get a session.", "description": "Demonstrates generic wrapper responses for session resources that can be authenticated by bearer, API key, or a session cookie.", "tags": [ "Sessions" ], "parameters": [ { "in": "path", "name": "sessionId", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] }, { "ApiKeyAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionEnvelope" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "typescriptUpdateSession", "summary": "Update a session.", "description": "Extends or revokes a session while preserving the generic response envelope.", "tags": [ "Sessions" ], "parameters": [ { "in": "path", "name": "sessionId", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] }, { "PartnerToken": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionActionInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionEnvelope" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "delete": { "operationId": "typescriptDeleteSession", "summary": "Delete a session.", "description": "Demonstrates 204 responses from typed route modules.", "tags": [ "Sessions" ], "parameters": [ { "in": "path", "name": "sessionId", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "No Content" }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } } }, "/generated/sessions/{id}": { "get": { "operationId": "scaleAppGetSession", "summary": "Get session by ID", "description": "Returns a single session by identifier", "tags": [ "Sessions" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateSession", "summary": "Update session", "description": "Updates an existing session", "tags": [ "Sessions" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateSessionInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteSession", "summary": "Delete session", "description": "Deletes a session by identifier", "tags": [ "Sessions" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/generated/subscriptions": { "get": { "operationId": "scaleAppListSubscription", "summary": "List subscriptions", "description": "Returns a paginated list of subscriptions", "tags": [ "Subscriptions" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubscriptionListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateSubscription", "summary": "Create subscription", "description": "Creates a new subscription", "tags": [ "Subscriptions" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateSubscriptionInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubscriptionEntity" } } } } } } }, "/generated/subscriptions/{id}": { "get": { "operationId": "scaleAppGetSubscription", "summary": "Get subscription by ID", "description": "Returns a single subscription by identifier", "tags": [ "Subscriptions" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubscriptionEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateSubscription", "summary": "Update subscription", "description": "Updates an existing subscription", "tags": [ "Subscriptions" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateSubscriptionInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubscriptionEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteSubscription", "summary": "Delete subscription", "description": "Deletes a subscription by identifier", "tags": [ "Subscriptions" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/generated/projects/{projectId}/tasks": { "get": { "operationId": "scaleAppListTask", "summary": "List tasks", "description": "Returns a paginated list of tasks", "tags": [ "Tasks" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" }, { "in": "path", "name": "projectId", "required": true, "schema": { "type": "string" }, "example": "123" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateTask", "summary": "Create task", "description": "Creates a new task", "tags": [ "Tasks" ], "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateTaskInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskEntity" } } } } } } }, "/generated/projects/{projectId}/tasks/{id}": { "get": { "operationId": "scaleAppGetTask", "summary": "Get task by ID", "description": "Returns a single task by identifier", "tags": [ "Tasks" ], "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "type": "string" }, "example": "123" }, { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateTask", "summary": "Update task", "description": "Updates an existing task", "tags": [ "Tasks" ], "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "type": "string" }, "example": "123" }, { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateTaskInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteTask", "summary": "Delete task", "description": "Deletes a task by identifier", "tags": [ "Tasks" ], "parameters": [ { "in": "path", "name": "projectId", "required": true, "schema": { "type": "string" }, "example": "123" }, { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/generated/teams": { "get": { "operationId": "scaleAppListTeam", "summary": "List teams", "description": "Returns a paginated list of teams", "tags": [ "Teams" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateTeam", "summary": "Create team", "description": "Creates a new team", "tags": [ "Teams" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateTeamInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamEntity" } } } } } } }, "/generated/teams/{id}": { "get": { "operationId": "scaleAppGetTeam", "summary": "Get team by ID", "description": "Returns a single team by identifier", "tags": [ "Teams" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateTeam", "summary": "Update team", "description": "Updates an existing team", "tags": [ "Teams" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateTeamInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteTeam", "summary": "Delete team", "description": "Deletes a team by identifier", "tags": [ "Teams" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/upload": { "post": { "operationId": "post-upload", "summary": "Upload image file", "description": "Uploads PNG or JPG image files with validation and metadata", "tags": [ "Uploads" ], "parameters": [], "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/UploadFormData" }, "encoding": { "file": { "contentType": "application/octet-stream" } } } }, "description": "Multipart form data containing image file (PNG/JPG, max 5MB), optional description and category" }, "responses": { "200": { "description": "Returns upload confirmation with file metadata and access URL", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UploadResponse" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } } }, "/users/{id}": { "get": { "operationId": "get-users-{id}", "summary": "Get User by ID", "description": "Retrieves a user's profile information", "tags": [ "Users" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string", "description": "User's unique identifier" }, "description": "User's unique identifier", "example": "123" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserResponse" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } } }, "/generated/webhooks": { "get": { "operationId": "scaleAppListWebhook", "summary": "List webhooks", "description": "Returns a paginated list of webhooks", "tags": [ "Webhooks" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WebhookListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateWebhook", "summary": "Create webhook", "description": "Creates a new webhook", "tags": [ "Webhooks" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateWebhookInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WebhookEntity" } } } } } } }, "/generated/webhooks/{id}": { "get": { "operationId": "scaleAppGetWebhook", "summary": "Get webhook by ID", "description": "Returns a single webhook by identifier", "tags": [ "Webhooks" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WebhookEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateWebhook", "summary": "Update webhook", "description": "Updates an existing webhook", "tags": [ "Webhooks" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateWebhookInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WebhookEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteWebhook", "summary": "Delete webhook", "description": "Deletes a webhook by identifier", "tags": [ "Webhooks" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } }, "/generated/workspaces": { "get": { "operationId": "scaleAppListWorkspace", "summary": "List workspaces", "description": "Returns a paginated list of workspaces", "tags": [ "Workspaces" ], "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "type": "string" }, "example": 1 }, { "in": "query", "name": "limit", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "search", "required": false, "schema": { "type": "string" }, "example": "example" }, { "in": "query", "name": "active", "required": false, "schema": { "type": "string", "enum": [ "true", "false" ] }, "example": "true" } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkspaceListResponse" } } } } } }, "post": { "operationId": "scaleAppCreateWorkspace", "summary": "Create workspace", "description": "Creates a new workspace", "tags": [ "Workspaces" ], "parameters": [], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateWorkspaceInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkspaceEntity" } } } } } } }, "/generated/workspaces/{id}": { "get": { "operationId": "scaleAppGetWorkspace", "summary": "Get workspace by ID", "description": "Returns a single workspace by identifier", "tags": [ "Workspaces" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkspaceEntity" } } } }, "400": { "$ref": "#/components/responses/400" }, "500": { "$ref": "#/components/responses/500" } } }, "patch": { "operationId": "scaleAppUpdateWorkspace", "summary": "Update workspace", "description": "Updates an existing workspace", "tags": [ "Workspaces" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateWorkspaceInput" } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WorkspaceEntity" } } } }, "401": { "$ref": "#/components/responses/401" } } }, "delete": { "operationId": "scaleAppDeleteWorkspace", "summary": "Delete workspace", "description": "Deletes a workspace by identifier", "tags": [ "Workspaces" ], "parameters": [ { "in": "path", "name": "id", "required": true, "schema": { "type": "string" }, "example": "123" } ], "security": [ { "BearerAuth": [] } ], "responses": { "204": { "description": "Resource deleted successfully" }, "401": { "$ref": "#/components/responses/401" } } } } }, "tags": [ { "name": "Admin" }, { "name": "ApiKeys" }, { "name": "Attachments" }, { "name": "AuditLogs" }, { "name": "Auth" }, { "name": "Billing" }, { "name": "Catalog" }, { "name": "Comments" }, { "name": "Customers" }, { "name": "Departments" }, { "name": "Documents" }, { "name": "Exports" }, { "name": "Invoices" }, { "name": "Llms" }, { "name": "Members" }, { "name": "Notifications" }, { "name": "Orders" }, { "name": "Organizations" }, { "name": "Payments" }, { "name": "Products" }, { "name": "Projects" }, { "name": "Refunds" }, { "name": "Reports" }, { "name": "Sessions" }, { "name": "Subscriptions" }, { "name": "Tasks" }, { "name": "Teams" }, { "name": "Uploads" }, { "name": "Users" }, { "name": "Webhooks" }, { "name": "Workspaces" } ] }