sumsub/agent-skills / skills/sumsub-supported-id-documents
sumsub-supported-id-documents
VerifiedQuery AND edit Sumsub's supported identity documents. READ the built-in catalogue (documentsByCountries) — which document types are supported per country, whether they're double-sided, which OCR fields are default vs. available. EDIT a client's own supported-document overrides (idDocSettings.countryMappings) via the global-settings API. TRIGGER when the user asks "which countries / document types support field X", "what fields can I collect for a passport in DEU", "is the ID card double-sided in France", OR wants to change supported documents / toggle a document type / edit collected fields for a country. SKIP for creating levels or questionnaires (use the dedicated skills).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 28.3 KB |
| references/fields-glossary.md | markdown | 17.0 KB |
| scripts/build_country_mappings.pyexecutable | script | 14.7 KB |
| scripts/diff_country_mappings.pyexecutable | script | 3.6 KB |
| scripts/get_entitlements.shexecutable | script | 2.3 KB |
| scripts/get_extension_rules.shexecutable | script | 1.9 KB |
| scripts/get_global_settings.shexecutable | script | 1.7 KB |
| scripts/get_supported_docs.shexecutable | script | 1.8 KB |
| scripts/put_country_mappings.shexecutable | script | 2.2 KB |
| scripts/query_supported_docs.pyexecutable | script | 9.0 KB |
| scripts/recognition_status.pyexecutable | script | 6.1 KB |
| scripts/remove_country_mapping.pyexecutable | script | 2.9 KB |
scripts/remove_country_mapping.py
View on GitHub#!/usr/bin/env python3
"""
Build a full countryMappings payload that REMOVES one or more (country, docType)
overrides — i.e. "Restore default settings" for those entries. The removed entries
fall back to the catalogue default on read.
The edit builder (build_country_mappings.py) only merges and never deletes, so
removal has its own builder: this produces the client's full current map MINUS
the named entries, to be sent with the PUT (replace-all) endpoint via
put_country_mappings.sh.
Usage:
get_global_settings.sh > /tmp/current.json
remove_country_mapping.py --current-file /tmp/current.json BRA:ID_CARD FRA:PASSPORT > /tmp/payload.json
put_country_mappings.sh /tmp/payload.json # PUT (replace-all)
Each positional arg is COUNTRY:DOCTYPE. Output (stdout): { "countryMappings": ... }.
"""
import argparse
import json
import sys
def _die(msg, code=2):
print(f"error: {msg}", file=sys.stderr)
sys.exit(code)
def _read_json(path):
try:
with open(path, encoding="utf-8") as f:
return json.load(f)
except OSError as e:
_die(f"cannot read {path}: {e}", code=3)
except json.JSONDecodeError as e:
_die(f"{path} is not valid JSON: {e}", code=3)
def _country_mappings(doc):
if isinstance(doc.get("countryMappings"), dict):
return doc["countryMappings"]
id_doc = doc.get("idDocSettings")
if isinstance(id_doc, dict) and isinstance(id_doc.get("countryMappings"), dict):
return id_doc["countryMappings"]
_die("--current-file has no countryMappings")
def main():
ap = argparse.ArgumentParser(description="Build a PUT payload that removes (restores) overrides.")
ap.add_argument("--current-file", required=True, help="client's current global settings JSON")
ap.add_argument("targets", nargs="+", metavar="COUNTRY:DOCTYPE",
help="entries to remove, e.g. BRA:ID_CARD")
args = ap.parse_args()
mappings = json.loads(json.dumps(_country_mappings(_read_json(args.current_file)))) # deep copy
removed, missing = [], []
for target in args.targets:
if ":" not in target:
_die(f"target '{target}' must be COUNTRY:DOCTYPE")
country, doc_type = target.split(":", 1)
docs = mappings.get(country)
if docs and doc_type in docs:
docs.pop(doc_type)
removed.append(target)
if not docs:
mappings.pop(country)
else:
missing.append(target)
for t in removed:
print(f"will remove (restore default): {t}", file=sys.stderr)
for t in missing:
print(f"warning: {t} is not in the client's overrides — nothing to remove", file=sys.stderr)
if not removed:
_die("none of the requested entries exist in the current overrides")
json.dump({"countryMappings": mappings}, sys.stdout, indent=2, ensure_ascii=False)
sys.stdout.write("\n")
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |