{"record":{"id":"400a384759fdf1c2","repo":"paperclipai/paperclip","slug":"operationtype-must-be-ingest-query-lint-file-as","errorCode":null,"errorMessage":"operationType must be ingest, query, lint, file-as-page, index, distill, or backfill","messagePattern":"operationType must be ingest, query, lint, file-as-page, index, distill, or backfill","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/plugins/plugin-llm-wiki/src/worker.ts","lineNumber":290,"sourceCode":"      return archiveSpace(ctx, {\n        companyId: readCompanyIdFromParams(params),\n        wikiId: stringField(params.wikiId),\n        spaceSlug: stringField(params.spaceSlug),\n      });\n    });\n\n    ctx.actions.register(\"create-operation\", async (params) => {\n      const operationType = stringField(params.operationType);\n      if (\n        operationType !== \"ingest\" &&\n        operationType !== \"query\" &&\n        operationType !== \"lint\" &&\n        operationType !== \"file-as-page\" &&\n        operationType !== \"index\" &&\n        operationType !== \"distill\" &&\n        operationType !== \"backfill\"\n      ) {\n        throw new Error(\"operationType must be ingest, query, lint, file-as-page, index, distill, or backfill\");\n      }\n      return createOperationIssue(ctx, {\n        companyId: readCompanyIdFromParams(params),\n        wikiId: stringField(params.wikiId),\n        spaceSlug: stringField(params.spaceSlug),\n        operationType,\n        title: stringField(params.title),\n        prompt: stringField(params.prompt),\n      });\n    });\n\n    ctx.actions.register(\"capture-source\", async (params) => {\n      return captureWikiSource(ctx, {\n        companyId: readCompanyIdFromParams(params),\n        wikiId: stringField(params.wikiId),\n        spaceSlug: stringField(params.spaceSlug),\n        sourceType: stringField(params.sourceType),\n        title: stringField(params.title),","sourceCodeStart":272,"sourceCodeEnd":308,"githubUrl":"https://github.com/paperclipai/paperclip/blob/5716fe907e596ce73501408fc6efdb19fb61edf2/packages/plugins/plugin-llm-wiki/src/worker.ts#L272-L308","documentation":"Error \"operationType must be ingest, query, lint, file-as-page, index, distill, or backfill\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/plugins/plugin-llm-wiki/src/worker.ts:290 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set operationType to one of: ingest, query, lint, file-as-page, index, distill, backfill."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5716fe907e596ce73501408fc6efdb19fb61edf2","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}