{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gtm-api/json-schema/gtm-api-search-linkedin-account-activity-log-response-schema.json",
  "title": "SearchLinkedinAccountActivityLogResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gtm-api-linkedin-account-activity-log-api-openapi.yml#/components/schemas/SearchLinkedinAccountActivityLogResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "operation": {
      "type": "string",
      "enum": [
        "search"
      ]
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "item": {
            "type": "object",
            "properties": {
              "sid": {
                "type": "string"
              },
              "team_sid": {
                "type": "string"
              },
              "linkedin_account_sid": {
                "type": "string"
              },
              "trace_id": {
                "type": "string"
              },
              "action_type": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "success",
                  "failed",
                  "skipped"
                ]
              },
              "sync_run_sid": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "limit_type_override": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "target_ln_member_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "target_ln_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "target_sn_id": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "target_nickname": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "error_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "§6.4 OPEN taxonomy: string, not enum."
              },
              "error_message": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "duration_ms": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "created_at": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              },
              "deleted_at": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "sid",
              "team_sid",
              "linkedin_account_sid",
              "trace_id",
              "action_type",
              "status",
              "sync_run_sid",
              "limit_type_override",
              "target_ln_member_id",
              "target_ln_id",
              "target_sn_id",
              "target_nickname",
              "error_code",
              "error_message",
              "duration_ms",
              "created_at",
              "updated_at",
              "deleted_at"
            ]
          },
          "included": {
            "type": "object",
            "additionalProperties": {}
          }
        },
        "required": [
          "item",
          "included"
        ]
      }
    },
    "pagination": {
      "type": "object",
      "properties": {
        "next_cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "has_more": {
          "type": "boolean"
        },
        "total_count": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "next_cursor",
        "has_more",
        "total_count"
      ]
    },
    "applied_filters": {
      "type": "object",
      "additionalProperties": {}
    },
    "includes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "trace_id": {
          "type": "string",
          "description": "UUID v7; same 128-bit value as the X-Trace-Id header."
        },
        "span_id": {
          "type": "string",
          "pattern": "^[0-9a-f]{16}$",
          "description": "16 hex chars, root span of this request."
        },
        "timestamp": {
          "type": "string",
          "description": "ISO 8601 UTC (Y-m-dTH:i:sZ), response time."
        },
        "duration_ms": {
          "type": "integer",
          "minimum": 0,
          "description": "Server-side wall clock."
        },
        "team_sid": {
          "type": [
            "string",
            "null"
          ],
          "description": "The team this call ran in (the token team, or the team_sid override). Null when unauthenticated; absent from pre-2026-08-20 backends."
        },
        "actor_type": {
          "type": [
            "string",
            "null"
          ],
          "description": "user | agent | api_key | system. Null when unauthenticated; absent from pre-2026-08-20 backends."
        }
      },
      "required": [
        "trace_id",
        "span_id",
        "timestamp",
        "duration_ms"
      ]
    },
    "counts": {
      "type": "object",
      "properties": {
        "total_count": {
          "type": "integer"
        },
        "pending_count": {
          "type": "integer"
        },
        "success_count": {
          "type": "integer"
        },
        "failed_count": {
          "type": "integer"
        },
        "skipped_count": {
          "type": "integer"
        },
        "groups": {
          "type": "object",
          "additionalProperties": {}
        }
      },
      "required": [
        "total_count",
        "pending_count",
        "success_count",
        "failed_count",
        "skipped_count",
        "groups"
      ]
    }
  },
  "required": [
    "success",
    "operation",
    "items",
    "pagination",
    "applied_filters",
    "includes",
    "meta"
  ]
}