{
  "generated_at": "2026-04-10T10:31:25.502Z",
  "system": {
    "id": "socialize",
    "name": "Socialize",
    "slug": "socialize",
    "kind": "application",
    "summary": "Social publishing and campaign tooling with brand-scoped API key bindings.",
    "aliases": [],
    "lifecycle": "active",
    "last_verified": "2026-04-07",
    "owners": [
      "socialize"
    ],
    "repo_paths": [
      "PlatformApplications/TopoloSocialize"
    ],
    "service_ids": [
      "srv_1R2xJCdwS7Aq"
    ],
    "visibility": "public",
    "openapi": {
      "path": "PlatformApplications/TopoloSocialize/packages/worker/openapi.yaml",
      "format": "yaml"
    },
    "primary_hosts": [
      "https://socialize.topolo.app"
    ],
    "doc_paths": [
      "applications/socialize",
      "internal/apps/socialize"
    ],
    "dependencies": [
      "topolo-auth",
      "topolo-nexus",
      "topolo-one"
    ],
    "public_hub_url": "/systems/socialize",
    "internal_hub_url": null,
    "application_api_url": "/reference/apps/socialize",
    "generated_openapi_url": "/reference/generated/socialize",
    "machine_urls": {
      "system": "/machine/systems/socialize.json",
      "application": "/machine/applications/socialize.json"
    }
  },
  "docs": {
    "public": [
      {
        "id": "applications/socialize.mdx",
        "title": "Socialize",
        "summary": "Public overview of the social publishing platform, brand-scoped resource bindings, and content operations.",
        "audience": "public",
        "tags": [
          "social",
          "publishing",
          "brands"
        ],
        "url": "/applications/socialize.mdx",
        "last_verified": "2026-04-07"
      }
    ],
    "internal": [],
    "runbooks": []
  },
  "authority": {
    "owners": [
      "socialize"
    ],
    "repo_paths": [
      "PlatformApplications/TopoloSocialize"
    ],
    "service_ids": [
      "srv_1R2xJCdwS7Aq"
    ],
    "dependencies": [
      "topolo-auth",
      "topolo-nexus",
      "topolo-one"
    ],
    "aliases": []
  },
  "interfaces": {
    "contract_type": "openapi",
    "contract_source": "PlatformApplications/TopoloSocialize/packages/worker/openapi.yaml",
    "contract_source_exists": true,
    "openapi": {
      "title": "Socialize API",
      "version": "1.0.0",
      "description": "API for the Socialize social media management platform.\n\n## Authentication\nAll API endpoints (except health checks and public routes) require authentication via Bearer token.\n\n## Rate Limiting\nRate limits are applied per endpoint category:\n- AI Generation: 60 requests/minute\n- Media Upload: 30 requests/minute\n- Write Operations: 60 requests/minute\n- Read Operations: 300 requests/minute\n- Auth Endpoints: 20 requests/15 minutes\n\nRate limit headers are included in responses:\n- `X-RateLimit-Limit`: Maximum requests allowed\n- `X-RateLimit-Remaining`: Requests remaining in window\n- `X-RateLimit-Reset`: Unix timestamp when limit resets\n",
      "servers": [
        {
          "url": "https://socialize-prod-api.topolo.workers.dev",
          "description": "Production API"
        },
        {
          "url": "http://localhost:8787",
          "description": "Local development"
        }
      ],
      "tags": [
        {
          "name": "Health",
          "description": "Health check endpoints"
        },
        {
          "name": "Posts",
          "description": "Social media post management"
        },
        {
          "name": "Content Ops",
          "description": "Machine-readable content operations surface for queue review, safe actions, and daily rollups"
        },
        {
          "name": "Media",
          "description": "Media library management"
        },
        {
          "name": "AI",
          "description": "AI content generation"
        },
        {
          "name": "Content Strategy"
        },
        {
          "name": "Brands",
          "description": "Brand management"
        },
        {
          "name": "Integrations",
          "description": "Social platform integrations"
        }
      ],
      "securitySchemes": [
        {
          "name": "BearerAuth",
          "type": "http"
        },
        {
          "name": "ApiKeyAuth",
          "type": "apiKey"
        }
      ],
      "defaultSecurity": [],
      "operations": [
        {
          "method": "GET",
          "path": "/health",
          "summary": "Comprehensive health check",
          "description": "Returns detailed health status including dependency checks",
          "tags": [
            "Health"
          ],
          "security": [],
          "requestContentTypes": [],
          "responseCodes": [
            "200",
            "503"
          ]
        },
        {
          "method": "GET",
          "path": "/healthz",
          "summary": "Liveness probe",
          "description": "Simple liveness check for container orchestration",
          "tags": [
            "Health"
          ],
          "security": [],
          "requestContentTypes": [],
          "responseCodes": [
            "200"
          ]
        },
        {
          "method": "GET",
          "path": "/readyz",
          "summary": "Readiness probe",
          "description": "Check if service is ready to accept traffic",
          "tags": [
            "Health"
          ],
          "security": [],
          "requestContentTypes": [],
          "responseCodes": [
            "200",
            "503"
          ]
        },
        {
          "method": "GET",
          "path": "/api/posts",
          "summary": "List posts",
          "tags": [
            "Posts"
          ],
          "security": [
            "BearerAuth (http)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200",
            "401"
          ]
        },
        {
          "method": "POST",
          "path": "/api/posts",
          "summary": "Create a post",
          "tags": [
            "Posts"
          ],
          "security": [
            "BearerAuth (http)"
          ],
          "requestContentTypes": [
            "application/json"
          ],
          "responseCodes": [
            "201",
            "400",
            "401"
          ]
        },
        {
          "method": "GET",
          "path": "/api/posts/{postId}",
          "summary": "Get a post",
          "tags": [
            "Posts"
          ],
          "security": [
            "BearerAuth (http)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200",
            "404"
          ]
        },
        {
          "method": "PUT",
          "path": "/api/posts/{postId}",
          "summary": "Update a post",
          "tags": [
            "Posts"
          ],
          "security": [
            "BearerAuth (http)"
          ],
          "requestContentTypes": [
            "application/json"
          ],
          "responseCodes": [
            "200",
            "404"
          ]
        },
        {
          "method": "DELETE",
          "path": "/api/posts/{postId}",
          "summary": "Delete a post",
          "tags": [
            "Posts"
          ],
          "security": [
            "BearerAuth (http)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "204",
            "404"
          ]
        },
        {
          "method": "GET",
          "path": "/api/content-ops/queue",
          "summary": "List machine-readable content queue items",
          "description": "Returns actionable content queue items for a brand, including approval state,\npublish status, timestamps, failure details, and supported safe actions.\nOpenClaw service requests may authenticate with `X-Api-Key` and should send `X-Brand-ID`.\n",
          "tags": [
            "Content Ops"
          ],
          "security": [
            "BearerAuth (http)",
            "ApiKeyAuth (apiKey)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200",
            "401"
          ]
        },
        {
          "method": "GET",
          "path": "/api/content-ops/daily",
          "summary": "Get deterministic daily content rollups",
          "description": "Returns a per-day rollup of content creation, approvals, scheduling, publishing,\nand failures. Buckets are derived from content timestamps rather than only the\ncurrent status, so a publish later in the day does not erase earlier schedule activity.\n",
          "tags": [
            "Content Ops"
          ],
          "security": [
            "BearerAuth (http)",
            "ApiKeyAuth (apiKey)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200",
            "401"
          ]
        },
        {
          "method": "GET",
          "path": "/api/content-ops/events",
          "summary": "List content operations audit events",
          "tags": [
            "Content Ops"
          ],
          "security": [
            "BearerAuth (http)",
            "ApiKeyAuth (apiKey)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200",
            "401"
          ]
        },
        {
          "method": "GET",
          "path": "/api/content-ops/deck",
          "summary": "List the freshness-ranked approval deck",
          "tags": [
            "Content Ops"
          ],
          "security": [
            "BearerAuth (http)",
            "ApiKeyAuth (apiKey)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200",
            "401"
          ]
        },
        {
          "method": "GET",
          "path": "/api/content-ops/items/{contentId}",
          "summary": "Get a content item with full machine-readable detail",
          "tags": [
            "Content Ops"
          ],
          "security": [
            "BearerAuth (http)",
            "ApiKeyAuth (apiKey)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200",
            "404"
          ]
        },
        {
          "method": "PATCH",
          "path": "/api/content-ops/items/{contentId}",
          "summary": "Edit draft content safely",
          "tags": [
            "Content Ops"
          ],
          "security": [
            "BearerAuth (http)",
            "ApiKeyAuth (apiKey)"
          ],
          "requestContentTypes": [
            "application/json"
          ],
          "responseCodes": [
            "200"
          ]
        },
        {
          "method": "POST",
          "path": "/api/content-ops/items/{contentId}/approve",
          "summary": "Approve a suggestion draft",
          "tags": [
            "Content Ops"
          ],
          "security": [
            "BearerAuth (http)",
            "ApiKeyAuth (apiKey)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200"
          ]
        },
        {
          "method": "POST",
          "path": "/api/content-ops/items/{contentId}/reject",
          "summary": "Reject a suggestion draft",
          "tags": [
            "Content Ops"
          ],
          "security": [
            "BearerAuth (http)",
            "ApiKeyAuth (apiKey)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200"
          ]
        },
        {
          "method": "POST",
          "path": "/api/content-ops/items/{contentId}/reschedule",
          "summary": "Reschedule a queued or failed post",
          "tags": [
            "Content Ops"
          ],
          "security": [
            "BearerAuth (http)",
            "ApiKeyAuth (apiKey)"
          ],
          "requestContentTypes": [
            "application/json"
          ],
          "responseCodes": [
            "200"
          ]
        },
        {
          "method": "POST",
          "path": "/api/content-ops/items/{contentId}/retry",
          "summary": "Retry a failed publish",
          "tags": [
            "Content Ops"
          ],
          "security": [
            "BearerAuth (http)",
            "ApiKeyAuth (apiKey)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200"
          ]
        },
        {
          "method": "GET",
          "path": "/api/media",
          "summary": "List media files",
          "tags": [
            "Media"
          ],
          "security": [
            "BearerAuth (http)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200"
          ]
        },
        {
          "method": "POST",
          "path": "/api/media/upload",
          "summary": "Get upload URL",
          "description": "Generate a presigned URL for direct upload to R2",
          "tags": [
            "Media"
          ],
          "security": [
            "BearerAuth (http)"
          ],
          "requestContentTypes": [
            "application/json"
          ],
          "responseCodes": [
            "200"
          ]
        },
        {
          "method": "POST",
          "path": "/api/ai/generate-image",
          "summary": "Generate AI image",
          "tags": [
            "AI"
          ],
          "security": [
            "BearerAuth (http)"
          ],
          "requestContentTypes": [
            "application/json"
          ],
          "responseCodes": [
            "200",
            "429"
          ]
        },
        {
          "method": "GET",
          "path": "/api/trends",
          "summary": "List normalized trend or shared-seed items for a brand",
          "tags": [
            "AI",
            "Content Strategy"
          ],
          "security": [
            "BearerAuth (http)",
            "ApiKeyAuth (apiKey)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200"
          ]
        },
        {
          "method": "GET",
          "path": "/api/seeds",
          "summary": "List shared seeds for a brand",
          "tags": [
            "Content Strategy"
          ],
          "security": [
            "BearerAuth (http)",
            "ApiKeyAuth (apiKey)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200"
          ]
        },
        {
          "method": "POST",
          "path": "/api/seeds/share",
          "summary": "Save a shared source item as a reusable seed",
          "tags": [
            "Content Strategy"
          ],
          "security": [
            "BearerAuth (http)",
            "ApiKeyAuth (apiKey)"
          ],
          "requestContentTypes": [
            "application/json"
          ],
          "responseCodes": [
            "201"
          ]
        },
        {
          "method": "POST",
          "path": "/api/content-strategy/suggestions/generate-from-trends",
          "summary": "Generate platform-specific suggestions from supplied trend or seed items",
          "tags": [
            "Content Strategy"
          ],
          "security": [
            "BearerAuth (http)",
            "ApiKeyAuth (apiKey)"
          ],
          "requestContentTypes": [
            "application/json"
          ],
          "responseCodes": [
            "201"
          ]
        },
        {
          "method": "GET",
          "path": "/api/brands/{brandId}/publishing-readiness",
          "summary": "Report machine-readable publishing readiness by platform",
          "tags": [
            "Brands"
          ],
          "security": [
            "BearerAuth (http)",
            "ApiKeyAuth (apiKey)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200"
          ]
        },
        {
          "method": "GET",
          "path": "/api/brands",
          "summary": "List user's brands",
          "tags": [
            "Brands"
          ],
          "security": [
            "BearerAuth (http)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200"
          ]
        },
        {
          "method": "POST",
          "path": "/api/brands",
          "summary": "Create a brand",
          "tags": [
            "Brands"
          ],
          "security": [
            "BearerAuth (http)"
          ],
          "requestContentTypes": [
            "application/json"
          ],
          "responseCodes": [
            "201"
          ]
        },
        {
          "method": "GET",
          "path": "/api/integrations/{platform}/connect",
          "summary": "Start OAuth flow",
          "tags": [
            "Integrations"
          ],
          "security": [
            "BearerAuth (http)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "302"
          ]
        },
        {
          "method": "GET",
          "path": "/api/integrations",
          "summary": "List connected integrations",
          "tags": [
            "Integrations"
          ],
          "security": [
            "BearerAuth (http)"
          ],
          "requestContentTypes": [],
          "responseCodes": [
            "200"
          ]
        }
      ]
    },
    "readme": {
      "path": "PlatformApplications/TopoloSocialize/README.md",
      "intro": [
        "Canonical documentation for Socialize lives in `PlatformApplications/TopoloDocs`.",
        "Use this repository for implementation only. Architecture, operational workflows, auth, billing behavior, and integration boundaries are canonical in the docs application rather than in repo-local markdown."
      ],
      "headings": [
        "Topolo Socialize"
      ],
      "routeHighlights": [],
      "commandHighlights": []
    }
  },
  "auth": {
    "depends_on_topolo_auth": true,
    "api_key_scopes": [
      {
        "name": "brands.read",
        "description": "View brands available for publishing",
        "resourcePattern": "brand:*",
        "kind": "api_key_scope"
      },
      {
        "name": "posts.read",
        "description": "View scheduled and published posts",
        "resourcePattern": null,
        "kind": "api_key_scope"
      },
      {
        "name": "posts.write",
        "description": "Create and schedule social posts",
        "resourcePattern": null,
        "kind": "api_key_scope"
      },
      {
        "name": "campaigns.read",
        "description": "View social campaigns",
        "resourcePattern": null,
        "kind": "api_key_scope"
      },
      {
        "name": "campaigns.write",
        "description": "Manage social campaigns",
        "resourcePattern": null,
        "kind": "api_key_scope"
      },
      {
        "name": "analytics.read",
        "description": "View social analytics",
        "resourcePattern": null,
        "kind": "api_key_scope"
      },
      {
        "name": "media.read",
        "description": "View social media assets",
        "resourcePattern": null,
        "kind": "api_key_scope"
      },
      {
        "name": "media.write",
        "description": "Manage social media assets",
        "resourcePattern": null,
        "kind": "api_key_scope"
      },
      {
        "name": "suggestions.read",
        "description": "View content suggestions",
        "resourcePattern": null,
        "kind": "api_key_scope"
      },
      {
        "name": "suggestions.write",
        "description": "Manage content suggestions",
        "resourcePattern": null,
        "kind": "api_key_scope"
      },
      {
        "name": "settings.read",
        "description": "View Socialize settings",
        "resourcePattern": null,
        "kind": "api_key_scope"
      },
      {
        "name": "settings.write",
        "description": "Manage Socialize settings",
        "resourcePattern": null,
        "kind": "api_key_scope"
      },
      {
        "name": "integrations.read",
        "description": "View connected integrations",
        "resourcePattern": null,
        "kind": "api_key_scope"
      },
      {
        "name": "integrations.write",
        "description": "Manage connected integrations",
        "resourcePattern": null,
        "kind": "api_key_scope"
      }
    ],
    "service_permissions": [
      {
        "name": "dashboard:read",
        "description": "View social media dashboard",
        "resourcePattern": null,
        "kind": "permission"
      },
      {
        "name": "posts:read",
        "description": "View scheduled and published posts",
        "resourcePattern": null,
        "kind": "permission"
      },
      {
        "name": "posts:write",
        "description": "Create and schedule social posts",
        "resourcePattern": null,
        "kind": "permission"
      },
      {
        "name": "accounts:read",
        "description": "View connected social accounts",
        "resourcePattern": null,
        "kind": "permission"
      },
      {
        "name": "accounts:write",
        "description": "Connect and manage social accounts",
        "resourcePattern": null,
        "kind": "permission"
      },
      {
        "name": "analytics:read",
        "description": "View social media analytics",
        "resourcePattern": null,
        "kind": "permission"
      },
      {
        "name": "calendar:read",
        "description": "View content calendar",
        "resourcePattern": null,
        "kind": "permission"
      },
      {
        "name": "calendar:write",
        "description": "Manage content calendar",
        "resourcePattern": null,
        "kind": "permission"
      }
    ]
  },
  "runtime": {
    "primary_hosts": [
      "https://socialize.topolo.app"
    ],
    "repo_entries": [
      "PlatformApplications/TopoloSocialize/LICENSE",
      "PlatformApplications/TopoloSocialize/README.md",
      "PlatformApplications/TopoloSocialize/analytics-test.log",
      "PlatformApplications/TopoloSocialize/api-auth.log",
      "PlatformApplications/TopoloSocialize/apps/",
      "PlatformApplications/TopoloSocialize/backend.log",
      "PlatformApplications/TopoloSocialize/backups/",
      "PlatformApplications/TopoloSocialize/billing-test.log",
      "PlatformApplications/TopoloSocialize/docs/",
      "PlatformApplications/TopoloSocialize/eslint.config.js",
      "PlatformApplications/TopoloSocialize/media-test.log",
      "PlatformApplications/TopoloSocialize/package.json",
      "PlatformApplications/TopoloSocialize/packages/",
      "PlatformApplications/TopoloSocialize/pause-test.log",
      "PlatformApplications/TopoloSocialize/pnpm-lock.yaml",
      "PlatformApplications/TopoloSocialize/pnpm-workspace.yaml",
      "PlatformApplications/TopoloSocialize/scripts/",
      "PlatformApplications/TopoloSocialize/topolo.cloudcontrol.json",
      "PlatformApplications/TopoloSocialize/tsconfig.base.json",
      "PlatformApplications/TopoloSocialize/wrangler.log"
    ],
    "wrangler_surfaces": [
      {
        "path": "PlatformApplications/TopoloSocialize/apps/web/wrangler.toml",
        "observabilityEnabled": false,
        "environments": [],
        "routes": [],
        "vars": [],
        "bindings": [],
        "cronTriggers": [],
        "workerName": "socialize",
        "compatibilityDate": "2026-03-31"
      },
      {
        "path": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
        "observabilityEnabled": false,
        "environments": [
          "dev",
          "stage",
          "prod"
        ],
        "routes": [],
        "vars": [
          "API_URL",
          "ENVIRONMENT"
        ],
        "bindings": [
          {
            "kind": "kv",
            "binding": "SESSIONS_KV",
            "environment": "dev",
            "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
            "target": "socialize-dev-kv-sessions"
          },
          {
            "kind": "kv",
            "binding": "CACHE_KV",
            "environment": "dev",
            "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
            "target": "socialize-dev-kv-cache"
          },
          {
            "kind": "d1",
            "binding": "PRIMARY_DB",
            "environment": "dev",
            "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
            "target": "d5c08b56-fbb7-4f7a-839a-09720719b8aa"
          },
          {
            "kind": "r2",
            "binding": "MEDIA_BUCKET",
            "environment": "dev",
            "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
            "target": "socialize-dev-r2-media"
          },
          {
            "kind": "kv",
            "binding": "SESSIONS_KV",
            "environment": "stage",
            "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
            "target": "socialize-stage-kv-sessions"
          },
          {
            "kind": "kv",
            "binding": "CACHE_KV",
            "environment": "stage",
            "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
            "target": "socialize-stage-kv-cache"
          },
          {
            "kind": "d1",
            "binding": "PRIMARY_DB",
            "environment": "stage",
            "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
            "target": "YOUR_STAGE_DB_ID"
          },
          {
            "kind": "r2",
            "binding": "MEDIA_BUCKET",
            "environment": "stage",
            "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
            "target": "socialize-stage-r2-media"
          },
          {
            "kind": "kv",
            "binding": "SESSIONS_KV",
            "environment": "prod",
            "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
            "target": "836aaf550e7a4a61b248391c4bd4b644"
          },
          {
            "kind": "kv",
            "binding": "CACHE_KV",
            "environment": "prod",
            "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
            "target": "de9ca9a9622e440b8d64fe94a8eb38f2"
          },
          {
            "kind": "d1",
            "binding": "PRIMARY_DB",
            "environment": "prod",
            "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
            "target": "5a6254f2-630c-40b3-9d54-c4261e5a4ab0"
          },
          {
            "kind": "r2",
            "binding": "MEDIA_BUCKET",
            "environment": "prod",
            "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
            "target": "socialize-prod-r2-media"
          }
        ],
        "cronTriggers": [],
        "workerName": "socialize-scheduler",
        "main": "dist/index.js",
        "compatibilityDate": "2024-01-01"
      },
      {
        "path": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "observabilityEnabled": false,
        "environments": [
          "dev",
          "stage",
          "prod"
        ],
        "routes": [],
        "vars": [
          "API_URL",
          "APP_URL",
          "ENVIRONMENT",
          "ORG_SLUG",
          "SERVICE_ID",
          "SKIP_AUTH",
          "TIKTOK_USE_SANDBOX",
          "TOPOLO_AUTH_DOMAIN"
        ],
        "bindings": [
          {
            "kind": "kv",
            "binding": "SESSIONS_KV",
            "environment": "dev",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-dev-kv-sessions"
          },
          {
            "kind": "kv",
            "binding": "CACHE_KV",
            "environment": "dev",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-dev-kv-cache"
          },
          {
            "kind": "kv",
            "binding": "FEATURE_FLAGS_KV",
            "environment": "dev",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-dev-kv-flags"
          },
          {
            "kind": "d1",
            "binding": "PRIMARY_DB",
            "environment": "dev",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "d5c08b56-fbb7-4f7a-839a-09720719b8aa"
          },
          {
            "kind": "r2",
            "binding": "MEDIA_BUCKET",
            "environment": "dev",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-dev-media"
          },
          {
            "kind": "r2",
            "binding": "BACKUP_BUCKET",
            "environment": "dev",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-backups"
          },
          {
            "kind": "queue",
            "binding": "NOTIFICATION_QUEUE",
            "environment": "dev",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-dev-queue-notifications"
          },
          {
            "kind": "queue",
            "binding": "POST_SCHEDULER_QUEUE",
            "environment": "dev",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-dev-queue-posts"
          },
          {
            "kind": "kv",
            "binding": "SESSIONS_KV",
            "environment": "stage",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-stage-kv-sessions"
          },
          {
            "kind": "kv",
            "binding": "CACHE_KV",
            "environment": "stage",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-stage-kv-cache"
          },
          {
            "kind": "d1",
            "binding": "PRIMARY_DB",
            "environment": "stage",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-stage-db-primary"
          },
          {
            "kind": "r2",
            "binding": "MEDIA_BUCKET",
            "environment": "stage",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-stage-r2-media"
          },
          {
            "kind": "r2",
            "binding": "BACKUP_BUCKET",
            "environment": "stage",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-backups"
          },
          {
            "kind": "queue",
            "binding": "NOTIFICATION_QUEUE",
            "environment": "stage",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-stage-queue-notifications"
          },
          {
            "kind": "kv",
            "binding": "SESSIONS_KV",
            "environment": "prod",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "836aaf550e7a4a61b248391c4bd4b644"
          },
          {
            "kind": "kv",
            "binding": "CACHE_KV",
            "environment": "prod",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "de9ca9a9622e440b8d64fe94a8eb38f2"
          },
          {
            "kind": "d1",
            "binding": "PRIMARY_DB",
            "environment": "prod",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "5a6254f2-630c-40b3-9d54-c4261e5a4ab0"
          },
          {
            "kind": "r2",
            "binding": "MEDIA_BUCKET",
            "environment": "prod",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-prod-r2-media"
          },
          {
            "kind": "r2",
            "binding": "BACKUP_BUCKET",
            "environment": "prod",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-backups"
          },
          {
            "kind": "queue",
            "binding": "NOTIFICATION_QUEUE",
            "environment": "prod",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-prod-queue-notifications"
          },
          {
            "kind": "queue",
            "binding": "POST_SCHEDULER_QUEUE",
            "environment": "prod",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "socialize-prod-queue-posts"
          },
          {
            "kind": "vectorize",
            "binding": "VOICE_CONTEXT_INDEX",
            "environment": "prod",
            "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
            "target": "brand-voice-context"
          }
        ],
        "cronTriggers": [
          "0 * * * *",
          "* * * * *"
        ],
        "workerName": "socialize-prod-api",
        "main": "packages/worker/dist/index.js",
        "compatibilityDate": "2024-01-01"
      }
    ],
    "packages": [
      {
        "path": "PlatformApplications/TopoloSocialize/apps/web/package.json",
        "name": "@socialize/web",
        "description": "Socialize frontend dashboard built with React and TypeScript",
        "scripts": [
          "dev",
          "build",
          "deploy:pages:prod",
          "lint",
          "lint:fix",
          "type-check",
          "preview",
          "e2e",
          "test",
          "test:headed",
          "test:debug",
          "test:ui",
          "test:accessibility",
          "test:visual",
          "test:visual:update",
          "test:mobile"
        ],
        "scriptCommands": [
          {
            "name": "dev",
            "command": "vite"
          },
          {
            "name": "build",
            "command": "tsc -b && vite build"
          },
          {
            "name": "deploy:pages:prod",
            "command": "pnpm build && pnpm exec wrangler pages deploy dist --project-name socialize --branch main"
          },
          {
            "name": "lint",
            "command": "eslint src --ext .ts,.tsx"
          },
          {
            "name": "lint:fix",
            "command": "eslint src --ext .ts,.tsx --fix"
          },
          {
            "name": "type-check",
            "command": "tsc --noEmit"
          },
          {
            "name": "preview",
            "command": "vite preview"
          },
          {
            "name": "e2e",
            "command": "playwright test"
          },
          {
            "name": "test",
            "command": "playwright test"
          },
          {
            "name": "test:headed",
            "command": "playwright test --headed"
          },
          {
            "name": "test:debug",
            "command": "playwright test --debug"
          },
          {
            "name": "test:ui",
            "command": "playwright test --ui"
          },
          {
            "name": "test:accessibility",
            "command": "playwright test --grep=\"accessibility|a11y\""
          },
          {
            "name": "test:visual",
            "command": "playwright test visual-regression"
          },
          {
            "name": "test:visual:update",
            "command": "playwright test visual-regression --update-snapshots"
          },
          {
            "name": "test:mobile",
            "command": "playwright test --project=\"Mobile Chrome\" --project=\"Mobile Safari\""
          }
        ]
      },
      {
        "path": "PlatformApplications/TopoloSocialize/package.json",
        "name": "socialize",
        "description": "Social platform built with Clean Architecture",
        "scripts": [
          "build",
          "build:worker",
          "build:scheduler",
          "lint",
          "lint:fix",
          "format",
          "format:check",
          "type-check",
          "test",
          "dev",
          "dev:web",
          "dev:all",
          "seed:demo-brand",
          "deploy:dev",
          "deploy:stage",
          "deploy:prod"
        ],
        "scriptCommands": [
          {
            "name": "build",
            "command": "pnpm -r run build"
          },
          {
            "name": "build:worker",
            "command": "pnpm --filter=@socialize/worker build"
          },
          {
            "name": "build:scheduler",
            "command": "pnpm --filter=@socialize/scheduler build"
          },
          {
            "name": "lint",
            "command": "eslint . --ext .ts,.tsx,.js,.jsx"
          },
          {
            "name": "lint:fix",
            "command": "eslint . --ext .ts,.tsx,.js,.jsx --fix"
          },
          {
            "name": "format",
            "command": "prettier --write ."
          },
          {
            "name": "format:check",
            "command": "prettier --check ."
          },
          {
            "name": "type-check",
            "command": "pnpm -r run type-check"
          },
          {
            "name": "test",
            "command": "pnpm -r run test"
          },
          {
            "name": "dev",
            "command": "pnpm --filter=@socialize/worker dev"
          },
          {
            "name": "dev:web",
            "command": "pnpm --filter=@socialize/web dev"
          },
          {
            "name": "dev:all",
            "command": "pnpm --filter=@socialize/worker --filter=@socialize/web --parallel dev"
          },
          {
            "name": "seed:demo-brand",
            "command": "node scripts/seed-demo-brand.mjs"
          },
          {
            "name": "deploy:dev",
            "command": "pnpm build:worker && wrangler deploy --env dev"
          },
          {
            "name": "deploy:stage",
            "command": "pnpm build:worker && wrangler deploy --env stage"
          },
          {
            "name": "deploy:prod",
            "command": "pnpm build:worker && wrangler deploy --env prod"
          }
        ]
      },
      {
        "path": "PlatformApplications/TopoloSocialize/packages/app/package.json",
        "name": "@socialize/app",
        "description": "Application services layer orchestrating domain and infrastructure",
        "scripts": [
          "build",
          "test",
          "test:watch",
          "test:coverage",
          "type-check",
          "lint"
        ],
        "scriptCommands": [
          {
            "name": "build",
            "command": "tsc"
          },
          {
            "name": "test",
            "command": "jest"
          },
          {
            "name": "test:watch",
            "command": "jest --watch"
          },
          {
            "name": "test:coverage",
            "command": "jest --coverage"
          },
          {
            "name": "type-check",
            "command": "tsc --noEmit"
          },
          {
            "name": "lint",
            "command": "eslint src --ext .ts"
          }
        ]
      },
      {
        "path": "PlatformApplications/TopoloSocialize/packages/billing-webhook/package.json",
        "name": "@socialize/billing-webhook",
        "description": "Stripe webhook handler for billing events",
        "scripts": [
          "build",
          "build:watch",
          "type-check",
          "lint",
          "dev"
        ],
        "scriptCommands": [
          {
            "name": "build",
            "command": "esbuild src/index.ts --bundle --outfile=dist/index.js --format=esm --platform=neutral --target=es2022 --external:@cloudflare/workers-types --main-fields=main --resolve-extensions=.ts,.js"
          },
          {
            "name": "build:watch",
            "command": "pnpm build --watch"
          },
          {
            "name": "type-check",
            "command": "tsc --noEmit"
          },
          {
            "name": "lint",
            "command": "eslint src --ext .ts"
          },
          {
            "name": "dev",
            "command": "wrangler dev --env dev --local"
          }
        ]
      },
      {
        "path": "PlatformApplications/TopoloSocialize/packages/cli/package.json",
        "name": "@socialize/cli",
        "description": "Socialize CLI tool for power users",
        "scripts": [
          "build",
          "lint",
          "postpack",
          "prepack",
          "test",
          "version"
        ],
        "scriptCommands": [
          {
            "name": "build",
            "command": "shx rm -rf dist && tsc -b"
          },
          {
            "name": "lint",
            "command": "eslint . --ext .ts --config .eslintrc"
          },
          {
            "name": "postpack",
            "command": "shx rm -f oclif.manifest.json"
          },
          {
            "name": "prepack",
            "command": "npm run build && oclif manifest && oclif readme"
          },
          {
            "name": "test",
            "command": "mocha --forbid-only \"test/**/*.test.ts\""
          },
          {
            "name": "version",
            "command": "oclif readme && git add README.md"
          }
        ]
      }
    ]
  },
  "data": {
    "env_vars": [
      "API_URL",
      "APP_URL",
      "ENVIRONMENT",
      "ORG_SLUG",
      "SERVICE_ID",
      "SKIP_AUTH",
      "TIKTOK_USE_SANDBOX",
      "TOPOLO_AUTH_DOMAIN"
    ],
    "bindings": [
      {
        "kind": "kv",
        "binding": "SESSIONS_KV",
        "environment": "dev",
        "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
        "target": "socialize-dev-kv-sessions"
      },
      {
        "kind": "kv",
        "binding": "CACHE_KV",
        "environment": "dev",
        "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
        "target": "socialize-dev-kv-cache"
      },
      {
        "kind": "d1",
        "binding": "PRIMARY_DB",
        "environment": "dev",
        "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
        "target": "d5c08b56-fbb7-4f7a-839a-09720719b8aa"
      },
      {
        "kind": "r2",
        "binding": "MEDIA_BUCKET",
        "environment": "dev",
        "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
        "target": "socialize-dev-r2-media"
      },
      {
        "kind": "kv",
        "binding": "SESSIONS_KV",
        "environment": "stage",
        "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
        "target": "socialize-stage-kv-sessions"
      },
      {
        "kind": "kv",
        "binding": "CACHE_KV",
        "environment": "stage",
        "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
        "target": "socialize-stage-kv-cache"
      },
      {
        "kind": "d1",
        "binding": "PRIMARY_DB",
        "environment": "stage",
        "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
        "target": "YOUR_STAGE_DB_ID"
      },
      {
        "kind": "r2",
        "binding": "MEDIA_BUCKET",
        "environment": "stage",
        "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
        "target": "socialize-stage-r2-media"
      },
      {
        "kind": "kv",
        "binding": "SESSIONS_KV",
        "environment": "prod",
        "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
        "target": "836aaf550e7a4a61b248391c4bd4b644"
      },
      {
        "kind": "kv",
        "binding": "CACHE_KV",
        "environment": "prod",
        "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
        "target": "de9ca9a9622e440b8d64fe94a8eb38f2"
      },
      {
        "kind": "d1",
        "binding": "PRIMARY_DB",
        "environment": "prod",
        "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
        "target": "5a6254f2-630c-40b3-9d54-c4261e5a4ab0"
      },
      {
        "kind": "r2",
        "binding": "MEDIA_BUCKET",
        "environment": "prod",
        "sourcePath": "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
        "target": "socialize-prod-r2-media"
      },
      {
        "kind": "kv",
        "binding": "SESSIONS_KV",
        "environment": "dev",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-dev-kv-sessions"
      },
      {
        "kind": "kv",
        "binding": "CACHE_KV",
        "environment": "dev",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-dev-kv-cache"
      },
      {
        "kind": "kv",
        "binding": "FEATURE_FLAGS_KV",
        "environment": "dev",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-dev-kv-flags"
      },
      {
        "kind": "d1",
        "binding": "PRIMARY_DB",
        "environment": "dev",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "d5c08b56-fbb7-4f7a-839a-09720719b8aa"
      },
      {
        "kind": "r2",
        "binding": "MEDIA_BUCKET",
        "environment": "dev",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-dev-media"
      },
      {
        "kind": "r2",
        "binding": "BACKUP_BUCKET",
        "environment": "dev",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-backups"
      },
      {
        "kind": "kv",
        "binding": "SESSIONS_KV",
        "environment": "stage",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-stage-kv-sessions"
      },
      {
        "kind": "kv",
        "binding": "CACHE_KV",
        "environment": "stage",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-stage-kv-cache"
      },
      {
        "kind": "d1",
        "binding": "PRIMARY_DB",
        "environment": "stage",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-stage-db-primary"
      },
      {
        "kind": "r2",
        "binding": "MEDIA_BUCKET",
        "environment": "stage",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-stage-r2-media"
      },
      {
        "kind": "r2",
        "binding": "BACKUP_BUCKET",
        "environment": "stage",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-backups"
      },
      {
        "kind": "kv",
        "binding": "SESSIONS_KV",
        "environment": "prod",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "836aaf550e7a4a61b248391c4bd4b644"
      },
      {
        "kind": "kv",
        "binding": "CACHE_KV",
        "environment": "prod",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "de9ca9a9622e440b8d64fe94a8eb38f2"
      },
      {
        "kind": "d1",
        "binding": "PRIMARY_DB",
        "environment": "prod",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "5a6254f2-630c-40b3-9d54-c4261e5a4ab0"
      },
      {
        "kind": "r2",
        "binding": "MEDIA_BUCKET",
        "environment": "prod",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-prod-r2-media"
      },
      {
        "kind": "r2",
        "binding": "BACKUP_BUCKET",
        "environment": "prod",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-backups"
      },
      {
        "kind": "vectorize",
        "binding": "VOICE_CONTEXT_INDEX",
        "environment": "prod",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "brand-voice-context"
      }
    ],
    "queue_bindings": [
      {
        "kind": "queue",
        "binding": "NOTIFICATION_QUEUE",
        "environment": "dev",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-dev-queue-notifications"
      },
      {
        "kind": "queue",
        "binding": "POST_SCHEDULER_QUEUE",
        "environment": "dev",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-dev-queue-posts"
      },
      {
        "kind": "queue",
        "binding": "NOTIFICATION_QUEUE",
        "environment": "stage",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-stage-queue-notifications"
      },
      {
        "kind": "queue",
        "binding": "NOTIFICATION_QUEUE",
        "environment": "prod",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-prod-queue-notifications"
      },
      {
        "kind": "queue",
        "binding": "POST_SCHEDULER_QUEUE",
        "environment": "prod",
        "sourcePath": "PlatformApplications/TopoloSocialize/wrangler.toml",
        "target": "socialize-prod-queue-posts"
      }
    ],
    "storage_kinds": [
      "kv",
      "d1",
      "r2",
      "vectorize"
    ],
    "workflow_signals": [
      "NOTIFICATION_QUEUE -> socialize-dev-queue-notifications",
      "POST_SCHEDULER_QUEUE -> socialize-dev-queue-posts",
      "NOTIFICATION_QUEUE -> socialize-stage-queue-notifications",
      "NOTIFICATION_QUEUE -> socialize-prod-queue-notifications",
      "POST_SCHEDULER_QUEUE -> socialize-prod-queue-posts",
      "cron 0 * * * *",
      "cron * * * * *",
      "PlatformApplications/TopoloSocialize/package.json :: build:scheduler"
    ]
  },
  "deployment": {
    "commands": [
      {
        "name": "build",
        "command": "PlatformApplications/TopoloSocialize/apps/web/package.json :: tsc -b && vite build"
      },
      {
        "name": "deploy:pages:prod",
        "command": "PlatformApplications/TopoloSocialize/apps/web/package.json :: pnpm build && pnpm exec wrangler pages deploy dist --project-name socialize --branch main"
      },
      {
        "name": "preview",
        "command": "PlatformApplications/TopoloSocialize/apps/web/package.json :: vite preview"
      },
      {
        "name": "build",
        "command": "PlatformApplications/TopoloSocialize/package.json :: pnpm -r run build"
      },
      {
        "name": "build:worker",
        "command": "PlatformApplications/TopoloSocialize/package.json :: pnpm --filter=@socialize/worker build"
      },
      {
        "name": "build:scheduler",
        "command": "PlatformApplications/TopoloSocialize/package.json :: pnpm --filter=@socialize/scheduler build"
      },
      {
        "name": "deploy:dev",
        "command": "PlatformApplications/TopoloSocialize/package.json :: pnpm build:worker && wrangler deploy --env dev"
      },
      {
        "name": "deploy:stage",
        "command": "PlatformApplications/TopoloSocialize/package.json :: pnpm build:worker && wrangler deploy --env stage"
      },
      {
        "name": "deploy:prod",
        "command": "PlatformApplications/TopoloSocialize/package.json :: pnpm build:worker && wrangler deploy --env prod"
      },
      {
        "name": "build",
        "command": "PlatformApplications/TopoloSocialize/packages/app/package.json :: tsc"
      },
      {
        "name": "build",
        "command": "PlatformApplications/TopoloSocialize/packages/billing-webhook/package.json :: esbuild src/index.ts --bundle --outfile=dist/index.js --format=esm --platform=neutral --target=es2022 --external:@cloudflare/workers-types --main-fields=main --resolve-extensions=.ts,.js"
      },
      {
        "name": "build:watch",
        "command": "PlatformApplications/TopoloSocialize/packages/billing-webhook/package.json :: pnpm build --watch"
      },
      {
        "name": "build",
        "command": "PlatformApplications/TopoloSocialize/packages/cli/package.json :: shx rm -rf dist && tsc -b"
      }
    ],
    "routes": [],
    "environments": [
      "dev",
      "stage",
      "prod"
    ],
    "assets_directories": [],
    "observability_enabled": false
  },
  "debugging": {
    "failure_modes": [],
    "entrypoints": [
      "PlatformApplications/TopoloSocialize/apps/web/wrangler.toml",
      "PlatformApplications/TopoloSocialize/packages/scheduler/wrangler.toml",
      "PlatformApplications/TopoloSocialize/wrangler.toml",
      "PlatformApplications/TopoloSocialize/packages/worker/openapi.yaml",
      "PlatformApplications/TopoloSocialize/README.md",
      "PlatformApplications/TopoloSocialize/apps/web/package.json",
      "PlatformApplications/TopoloSocialize/package.json",
      "PlatformApplications/TopoloSocialize/packages/app/package.json",
      "PlatformApplications/TopoloSocialize/packages/billing-webhook/package.json",
      "PlatformApplications/TopoloSocialize/packages/cli/package.json"
    ]
  }
}