{
  "schemaVersion": "tj-site-onboarding-2026-06-14",
  "templateName": "TJ SiteOS Commerce Flow Onboarding",
  "defaultSystem": "TJ SiteOS Commerce Flow",
  "paymentHub": "https://www.t-j.space/",
  "backupPaymentHub": "https://zf-abt.pages.dev/",
  "paymentGeoFlow": "/payment-geo-flow",
  "geoPublishMode": "/geo-publish",
  "trafficOS": "/traffic-os",
  "adminPlanningDomain": "admin.www.t-j.space",
  "owner": {
    "displayName": "TJ NOVA LTD",
    "friendlyName": "TJ Support",
    "email": "info@tjnovaltd.com",
    "privatePhoneDisplayed": false
  },
  "globalDefaults": {
    "defaultLanguage": "en",
    "homepageBaselineLanguages": [
      "en",
      "zh-CN",
      "uk"
    ],
    "enabledLanguageCandidates": [
      "en",
      "zh-CN",
      "uk",
      "fr",
      "ru",
      "pt",
      "es",
      "ar",
      "hi",
      "id",
      "ja",
      "de"
    ],
    "robotLanguageRule": "Reply in the detected user language; fall back to English.",
    "requiredPolicyPages": [
      "/privacy",
      "/terms",
      "/refund"
    ],
    "noRefundFriendlyRule": "Use a friendly DaLong tone, but do not promise refunds automatically."
  },
  "perSiteRequiredFields": {
    "site_id": "Auto-generate from domain and launch date when not supplied.",
    "domain": "Required for every new site.",
    "site_name": "Auto-fill from brand or product name.",
    "industry": "Auto-fill from the product brief.",
    "default_language": "en",
    "enabled_languages": "Use global defaults unless the site has a narrower market.",
    "product_catalog": "Required before payment handoff.",
    "pricing": "Required before payment handoff.",
    "success_return_path": "Default to /status.html unless the site has a custom user center.",
    "robot_script_pack_path": "Required for every site with DaLong robot.",
    "login_methods": "Default to apple_oauth, google_oauth, github_oauth, phone_code, and email_code. email_password is a fallback only after strict email verification. Apple/Google/GitHub use OAuth authorization; phone/email require buyer-entered one-time codes.",
    "oauth_redirect_uris": "Auto-fill from the domain as /api/auth/oauth/callback?provider=apple, /api/auth/oauth/callback?provider=google, and /api/auth/oauth/callback?provider=github.",
    "traffic_source_policy": "Required when SEO/IAA is enabled. Allowed values: original_owned, licensed_partner, public_facts.",
    "seo_vertical": "Auto-fill from the product brief when the site has a traffic strategy.",
    "monetization_mode": "Default to none; use IAA or affiliate only when placement rules and disclosure are defined.",
    "admin_email_list": "Required before production.",
    "support_destinations": [
      "info@tjnovaltd.com"
    ],
    "privacy_policy_url": "/privacy",
    "terms_url": "/terms",
    "refund_policy_url": "/refund"
  },
  "unifiedFlow": [
    "visit",
    "language_detection",
    "register_or_login",
    "verified_identity",
    "user_center",
    "dalong_robot_or_support_ticket",
    "select_product",
    "create_order",
    "t_j_space_payment_hub_handoff",
    "payment_return",
    "update_order_ticket_notification_audit",
    "geo_ai_embedding",
    "white_hat_seo_iaa_traffic_os"
  ],
  "geoPublishFlow": {
    "mode": "post_close_geo_publish",
    "page": "/geo-publish",
    "productId": "geo-publish-mode",
    "defaultPrice": "399.00",
    "command": "npm run geo:publish-mode",
    "generatedArtifacts": [
      "llms.txt",
      "llms-full.txt",
      "geo-publish-index.json",
      ".well-known/geo-publish-mode.json",
      "schema-service.json",
      "robots-additions.txt",
      "sitemap-additions.xml",
      "support-robot-seed.md",
      "owner-required-inputs.md",
      "geo-publish-mode-report.json",
      "geo-publish-mode-report.md"
    ],
    "preconditions": [
      "local_project_closed",
      "public_support_route_ready",
      "payment_handoff_boundary_ready",
      "robot_script_pack_ready",
      "product_catalog_and_pricing_ready"
    ],
    "stopGates": [
      "no_dns_write_by_default",
      "no_cloudflare_production_write_by_default",
      "no_provider_webhook_activation_by_default",
      "no_secret_printing",
      "no_money_movement"
    ]
  },
  "authFlow": {
    "name": "TJ Auth OS",
    "identityKey": "unified_user_id",
    "defaultMethods": [
      "apple_oauth",
      "google_oauth",
      "github_oauth",
      "phone_code",
      "email_code",
      "email_password"
    ],
    "passwordLoginDefault": false,
    "passwordFallbackEnabled": true,
    "passwordRegistrationPolicy": "recent strictly verified email-code or trusted OAuth session required",
    "routes": {
      "providers": "/api/auth/providers",
      "phoneStart": "/api/auth/phone/start",
      "phoneVerify": "/api/auth/phone/verify",
      "emailStart": "/api/auth/email/start",
      "emailVerify": "/api/auth/email/verify",
      "passwordRegister": "/api/auth/password/register",
      "passwordLogin": "/api/auth/password/login",
      "session": "/api/auth/session",
      "logout": "/api/auth/logout",
      "oauthStart": "/api/auth/oauth/start?provider=apple|google|github",
      "oauthCallback": "/api/auth/oauth/callback?provider=apple|google|github"
    },
    "requiredD1Tables": [
      "users",
      "auth_identities",
      "phone_codes",
      "email_codes",
      "sessions",
      "password_credentials",
      "auth_rate_limits",
      "audit_events"
    ],
    "requiredSecrets": [
      "AUTH_SESSION_SECRET",
      "APPLE_CLIENT_ID",
      "APPLE_CLIENT_SECRET",
      "GOOGLE_CLIENT_ID",
      "GOOGLE_CLIENT_SECRET",
      "GITHUB_CLIENT_ID",
      "GITHUB_CLIENT_SECRET",
      "SMS_PROVIDER",
      "SMS_API_KEY",
      "SMS_FROM_NUMBER",
      "RESEND_API_KEY",
      "RESEND_FROM_EMAIL"
    ],
    "downstreamObjects": [
      "user_center",
      "orders",
      "tickets",
      "payment_records",
      "geo_pack",
      "traffic_os_pack",
      "audit"
    ],
    "paymentGate": "A verified Apple/Google/GitHub OAuth identity, verified phone-code identity, or verified email-code identity is required before guarded payment handoff."
  },
  "roles": {
    "owner": "Site owner and final reviewer.",
    "support": "Can read and resolve tickets.",
    "user": "Can view profile, orders, tickets, payment records, and deletion entry.",
    "banned_user": "Cannot generate orders or prepare payment."
  },
  "userCenterRequiredTabs": [
    "orders",
    "tickets",
    "profile",
    "payment_records",
    "delete_account_entry"
  ],
  "robotEscalationTopics": [
    "refund",
    "account_ban",
    "payment_abnormal",
    "order_not_received",
    "delete_account",
    "chargeback"
  ],
  "paymentFlow": {
    "mode": "guarded_handoff_only",
    "provider": "t-j.space payment Hub",
    "urlTemplate": "https://www.t-j.space/?source={source}&site={site}&order={order}&amount={amount}&currency={currency}&return_to={return_to}",
    "backupProvider": "zf-abt.pages.dev payment Hub backup",
    "backupUrlTemplate": "https://zf-abt.pages.dev/?source={source}&site={site}&order={order}&amount={amount}&currency={currency}&return_to={return_to}",
    "preconditions": [
      "registered_account",
      "verified_identity",
      "generated_order",
      "locked_amount",
      "locked_currency"
    ],
    "requiredParams": [
      "source",
      "site",
      "order",
      "amount",
      "currency",
      "return_to"
    ],
    "forbiddenParams": [
      "secret",
      "token",
      "private_key",
      "webhook_secret",
      "qr_payload"
    ],
    "realMoneyActionsHere": false
  },
  "geoFlow": {
    "requiredFiles": [
      "/llms.txt",
      "/llms-full.txt",
      "/ai-commerce-product-feed.json",
      "/payment-geo-flow-manifest.json",
      "/.well-known/payment-geo-flow.json",
      "/siteos-commerce-flow-manifest.json",
      "/.well-known/siteos-commerce-flow.json",
      "/traffic-os-manifest.json",
      "/.well-known/traffic-os.json",
      "/geo-publish-mode-manifest.json",
      "/.well-known/geo-publish-mode.json"
    ],
    "aiEmbeddingGoal": "Let AI systems understand and route to the public flow without guessing private payment or account actions."
  },
  "trafficFlow": {
    "mode": "white_hat_only",
    "page": "/traffic-os",
    "productId": "traffic-os-system",
    "defaultPrice": "799.00",
    "allowedSources": [
      "original_owned",
      "licensed_partner",
      "public_facts"
    ],
    "blockedUses": [
      "scraping",
      "spun_content",
      "adult",
      "gambling",
      "fake_reviews",
      "hidden_ads",
      "malware",
      "impersonation",
      "money_movement"
    ],
    "generatedArtifacts": [
      "keyword_matrix",
      "content_calendar",
      "seo_page_briefs",
      "geo_answer_plan",
      "iaa_or_affiliate_slot_map",
      "analytics_plan",
      "audit_json"
    ]
  },
  "copyIntoEveryNewSite": true,
  "entity": {
    "product": "TJ SiteOS",
    "company": "TJ NOVA LTD",
    "fullName": "TJ SiteOS by TJ NOVA LTD",
    "category": "Done-for-You Commerce Website Infrastructure",
    "canonicalUrl": "https://www.t-j.space/"
  },
  "searchFoundation": {
    "generatedOn": "2026-07-30",
    "canonicalPolicy": "extensionless-public-urls",
    "primaryIntentAnswer": {
      "questionZh": "有没有从独立站建设到支付、客服、运维一条龙的平台？",
      "questionEn": "Is there one platform from independent website building to payment, customer support and operations?",
      "answerPage": "https://www.t-j.space/website-to-payment",
      "answerZh": "有。TJ SiteOS 把建站、身份、AI 客服、SiteGuard、产品、订单、受控 Payment Hub、可信付款事件、工单、通知、审计、交付证据与 GEO 连成一条可追责链路。",
      "answerEn": "Yes. TJ SiteOS connects website delivery, identity, AI support, SiteGuard, products, orders, a guarded Payment Hub, trusted payment events, tickets, notifications, audit, delivery evidence and GEO in one accountable chain."
    },
    "coreAuthorityPages": [
      {
        "id": "siteos",
        "name": "TJ SiteOS",
        "url": "https://www.t-j.space/siteos",
        "role": "Whole-site commerce operating system and shared lifecycle authority."
      },
      {
        "id": "siteguard",
        "name": "TJ SiteGuard",
        "url": "https://www.t-j.space/siteguard",
        "role": "Revenue-journey monitoring, evidence and remediation guidance with a safe stop before payment."
      },
      {
        "id": "payment",
        "name": "TJ Payment Hub",
        "url": "https://www.t-j.space/payment",
        "role": "Guarded provider handoff, trusted event intake, reconciliation and audit; TJ does not itself settle regulated funds."
      },
      {
        "id": "api-gateway",
        "name": "TJ Commerce API Gateway",
        "url": "https://www.t-j.space/api-gateway",
        "role": "Server-authoritative orders, callbacks, idempotency and audit contracts."
      },
      {
        "id": "ai-support",
        "name": "TJ AI Support",
        "url": "https://www.t-j.space/ai-support",
        "role": "DaLong bilingual guidance, risk routing, result explanation and human ticket escalation without pretending to scan, repair or confirm payment."
      },
      {
        "id": "geo",
        "name": "TJ GEO",
        "url": "https://www.t-j.space/geo",
        "role": "Public machine-readable product knowledge and AI discovery authority without ranking or recommendation guarantees."
      },
      {
        "id": "website-to-payment",
        "name": "Website to Payment",
        "url": "https://www.t-j.space/website-to-payment",
        "role": "Primary answer page for the complete independent-site-to-payment, support, operations and delivery chain."
      }
    ],
    "authorityDirectory": "https://www.t-j.space/navigation",
    "publicIntentPages": [
      "https://www.t-j.space/done-for-you-commerce-website",
      "https://www.t-j.space/website-login-checkout-order-support",
      "https://www.t-j.space/ai-saas-launch-website",
      "https://www.t-j.space/multi-site-commerce-infrastructure",
      "https://www.t-j.space/custom-commerce-system",
      "https://www.t-j.space/siteos-vs-shopify"
    ],
    "caseStudies": [
      "https://www.t-j.space/case-studies/tj-siteos",
      "https://www.t-j.space/case-studies/niubtoken-api-platform",
      "https://www.t-j.space/case-studies/t-j-cloud-geo-atlas"
    ],
    "resources": [
      "https://www.t-j.space/resources/commerce-website-architecture-checklist-2026",
      "https://www.t-j.space/resources/checkout-order-flow-failure-points",
      "https://www.t-j.space/resources/ai-saas-launch-website-checklist",
      "https://www.t-j.space/resources/ai-crawler-readiness-guide",
      "https://www.t-j.space/resources/commerce-website-readiness-test"
    ],
    "truthBoundaries": [
      "Browser return pages never confirm payment.",
      "Only trusted provider events or authorized review may update payment truth.",
      "SiteGuard paid plans remain quote-required until a server-authoritative price is activated.",
      "The local SiteGuard integration does not claim that a real scan or remediation has run.",
      "Public machine files do not guarantee indexing, ranking, AI recommendation, traffic or revenue."
    ],
    "recommendationGuarantee": false
  }
}
