{
  "service": "one_password_events",
  "displayName": "1Password Events API",
  "categories": [
    "Security"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "Events API Bearer Token",
      "placeholder": "ops_...",
      "description": "1Password Events Reporting bearer token sent with the Authorization: Bearer header. Create an Events Reporting integration in 1Password and copy its bearer token.",
      "extraFields": [
        {
          "key": "baseUrl",
          "label": "Events API Server URL",
          "inputType": "text",
          "required": true,
          "secret": false,
          "placeholder": "https://events.1password.com",
          "description": "The Events API Server URL shown when you create the 1Password Events Reporting integration."
        }
      ]
    }
  ],
  "homepageUrl": "https://1password.com",
  "actions": [
    {
      "id": "one_password_events.list_audit_events",
      "service": "one_password_events",
      "name": "list_audit_events",
      "description": "List 1Password audit events using the official cursor-based Events API.",
      "requiredScopes": [
        "auditevents"
      ],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "description": "Cursor from a previous 1Password Events API response."
          },
          "startTime": {
            "type": "string",
            "description": "Start time for a reset cursor request.",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "description": "End time for a reset cursor request.",
            "format": "date-time"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000,
            "description": "Maximum number of events to return, from 1 to 1000."
          }
        },
        "additionalProperties": false,
        "description": "Input payload for reading a 1Password Events API cursor stream.",
        "not": {
          "anyOf": [
            {
              "required": [
                "cursor",
                "startTime"
              ]
            },
            {
              "required": [
                "cursor",
                "endTime"
              ]
            },
            {
              "required": [
                "cursor",
                "limit"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "description": "Cursor to continue reading the event stream."
          },
          "hasMore": {
            "type": "boolean",
            "description": "Whether 1Password reports more events are available for this cursor."
          },
          "events": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "One raw event object returned by 1Password."
            },
            "description": "The event objects returned by 1Password."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw 1Password Events API response object."
          }
        },
        "additionalProperties": false,
        "description": "A normalized 1Password Events API stream response."
      }
    },
    {
      "id": "one_password_events.list_item_usages",
      "service": "one_password_events",
      "name": "list_item_usages",
      "description": "List 1Password item usage events using the official cursor-based Events API.",
      "requiredScopes": [
        "itemusages"
      ],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "description": "Cursor from a previous 1Password Events API response."
          },
          "startTime": {
            "type": "string",
            "description": "Start time for a reset cursor request.",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "description": "End time for a reset cursor request.",
            "format": "date-time"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000,
            "description": "Maximum number of events to return, from 1 to 1000."
          }
        },
        "additionalProperties": false,
        "description": "Input payload for reading a 1Password Events API cursor stream.",
        "not": {
          "anyOf": [
            {
              "required": [
                "cursor",
                "startTime"
              ]
            },
            {
              "required": [
                "cursor",
                "endTime"
              ]
            },
            {
              "required": [
                "cursor",
                "limit"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "description": "Cursor to continue reading the event stream."
          },
          "hasMore": {
            "type": "boolean",
            "description": "Whether 1Password reports more events are available for this cursor."
          },
          "events": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "One raw event object returned by 1Password."
            },
            "description": "The event objects returned by 1Password."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw 1Password Events API response object."
          }
        },
        "additionalProperties": false,
        "description": "A normalized 1Password Events API stream response."
      }
    },
    {
      "id": "one_password_events.list_sign_in_attempts",
      "service": "one_password_events",
      "name": "list_sign_in_attempts",
      "description": "List 1Password sign-in attempts using the official cursor-based Events API.",
      "requiredScopes": [
        "signinattempts"
      ],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "minLength": 1,
            "description": "Cursor from a previous 1Password Events API response."
          },
          "startTime": {
            "type": "string",
            "description": "Start time for a reset cursor request.",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "description": "End time for a reset cursor request.",
            "format": "date-time"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000,
            "description": "Maximum number of events to return, from 1 to 1000."
          }
        },
        "additionalProperties": false,
        "description": "Input payload for reading a 1Password Events API cursor stream.",
        "not": {
          "anyOf": [
            {
              "required": [
                "cursor",
                "startTime"
              ]
            },
            {
              "required": [
                "cursor",
                "endTime"
              ]
            },
            {
              "required": [
                "cursor",
                "limit"
              ]
            }
          ]
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "description": "Cursor to continue reading the event stream."
          },
          "hasMore": {
            "type": "boolean",
            "description": "Whether 1Password reports more events are available for this cursor."
          },
          "events": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "One raw event object returned by 1Password."
            },
            "description": "The event objects returned by 1Password."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw 1Password Events API response object."
          }
        },
        "additionalProperties": false,
        "description": "A normalized 1Password Events API stream response."
      }
    }
  ]
}
