{
  "type": "object",
  "properties": {
    "encrypted_value": {
      "type": "string",
      "description": "The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/codespaces/organization-secrets#get-an-organization-public-key) endpoint.",
      "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$"
    },
    "key_id": {
      "type": "string",
      "description": "The ID of the key you used to encrypt the secret."
    },
    "visibility": {
      "type": "string",
      "description": "Which type of organization repositories have access to the organization secret. `selected` means only the repositories specified by `selected_repository_ids` can access the secret.",
      "enum": [
        "all",
        "private",
        "selected"
      ]
    },
    "selected_repository_ids": {
      "type": "array",
      "description": "An array of repository IDs that can access the organization secret. You can only provide a list of repository IDs when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/codespaces/organization-secrets#remove-selected-repository-from-an-organization-secret) endpoints.",
      "items": {
        "type": "integer"
      }
    }
  },
  "required": [
    "visibility"
  ],
  "$schema": "https://json-schema.org/draft/2019-09/schema"
}