FacetFlux

imports.smartImports.review

Replace the SmartImport's inferred schema with the agent's adjusted version, transitioning the import to Reviewed. The schema shape is the same one returned in imports.smartImports.get's `inferredSchema` field — typically the agent fetches it, edits names/codes/grouping in its own context, and submits the result here. Response: { smartImport: {...} }. Errors: { error: { code: 'not_found' | 'bad_input', ... } }.

Remote revuo:facetflux

Other tools also called imports.smartImports.review? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "smartImportId": {
      "description": "SmartImport id.",
      "type": "string"
    },
    "adjustedSchema": {
      "description": "Adjusted inferred schema. Must contain at least one attribute group.",
      "type": "object",
      "properties": {
        "groups": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "suggestedName": {
                "type": "string"
              },
              "suggestedCode": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attributes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "suggestedName": {
                      "type": "string"
                    },
                    "suggestedCode": {
                      "type": "string"
                    },
                    "dataType": {
                      "type": "string"
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "isRequired": {
                      "type": "boolean"
                    },
                    "sourceFields": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "mappingNote": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "role": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "llmGuidance": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "labels": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "standardMatches": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "items": {
                        "type": "object",
                        "properties": {
                          "standardCode": {
                            "type": "string"
                          },
                          "featureCode": {
                            "type": "string"
                          },
                          "featureLabel": {
                            "type": "string"
                          },
                          "featureType": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "unitCode": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "confidence": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "standardCode",
                          "featureCode",
                          "featureLabel"
                        ]
                      }
                    }
                  },
                  "required": [
                    "suggestedName",
                    "suggestedCode"
                  ]
                }
              },
              "labels": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": {
                  "type": "string"
                }
              },
              "standardClassMatches": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "standardCode": {
                      "type": "string"
                    },
                    "classCode": {
                      "type": "string"
                    },
                    "classLabel": {
                      "type": "string"
                    },
                    "classLevel": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "confidence": {
                      "type": "number"
                    },
                    "missingFeatures": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "featureCode": {
                            "type": "string"
                          },
                          "featureLabel": {
                            "type": "string"
                          },
                          "featureType": {
                            "type": "string"
                          },
                          "unitCode": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "unitLabel": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "featureCode",
                          "featureLabel",
                          "featureType"
                        ]
                      }
                    }
                  },
                  "required": [
                    "standardCode",
                    "classCode",
                    "classLabel"
                  ]
                }
              }
            },
            "required": [
              "suggestedName",
              "suggestedCode"
            ]
          }
        },
        "skipped": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "rawName": {
                "type": "string"
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "rawName"
            ]
          }
        },
        "standardClassMatches": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/properties/adjustedSchema/properties/groups/items/properties/standardClassMatches/items"
          }
        }
      }
    }
  },
  "required": [
    "smartImportId",
    "adjustedSchema"
  ]
}