<commit_before>{
  "group": "chat",
  "name": "chat.unfurl",
  "desc": "Provide custom unfurl behavior for user-posted URLs",
  "args": {
    "channel": {
      "required": true,
      "example": "C1234567890",
      "desc": "Channel ID of the message.",
      "type": "channel"
    },
    "ts": {
      "required": true,
      "example": "",
      "desc": "Timestamp of the message to add unfurl behavior to.",
      "type": "timestamp"
    },
    "unfurls": {
      "required": true,
      "example": "",
      "desc": "URL-encoded JSON map with keys set to URLs featured in the the message, pointing to their unfurl blocks or message attachments."
    },
    "user_auth_message": {
      "required": false,
      "example": "",
      "desc": "Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior."
    },
    "user_auth_required": {
      "required": false,
      "example": "true",
      "desc": "Set to true or 1 to indicate the user must install your Slack app to trigger unfurls for this domain."
    },
    "user_auth_url": {
      "required": false,
      "example": "https://example.com/onboarding?user_id=xxx",
      "desc": "Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling. Value should be properly URL-encoded."
    }
  },
  "response": {
    "examples": [
      "{\n    \"ok\": true\n}",
      "{\n    \"ok\": false,\n    \"error\": \"cannot_unfurl_url\"\n}"
    ]
  },
  "errors": {
    "missing_channel": "The request is missing the channel parameter.",
    "missing_ts": "The request is missing the ts parameter.",
    "cannot_find_channel": "The specified channel could not be located for this token.",
    "cannot_find_service": "A record of your app being allowed to unfurl for this workspace could not be found.",
    "cannot_parse_attachment": "The provided unfurls argument could not be parsed or understood.",
    "missing_unfurls": "The request is missing the unfurls parameter.",
    "invalid_unfurls_format": "The unfurls parameter cannot be JSON-decoded into a map of URLs to attachments.",
    "cannot_unfurl_url": "The URL cannot be unfurled. This error may be returned if you haven't acknowledged a link_shared event tied to the same URL. It is also returned when the domain appears in a workspace's administrative blacklists.",
    "cannot_prompt": "The current user has already interacted with and dismissed a prompt for this application.",
    "cannot_find_message": "The ts value in the request does not match a message.",<commit_msg>Updated from Slack docs, 2021/02/12.<commit_after>{
  "group": "chat",
  "name": "chat.unfurl",
  "desc": "Provide custom unfurl behavior for user-posted URLs",
  "args": {
    "channel": {
      "required": true,
      "example": "C1234567890",
      "desc": "Channel ID of the message.",
      "type": "channel"
    },
    "ts": {
      "required": true,
      "example": "",
      "desc": "Timestamp of the message to add unfurl behavior to.",
      "type": "timestamp"
    },
    "unfurls": {
      "required": true,
      "example": "",
      "desc": "URL-encoded JSON map with keys set to URLs featured in the the message, pointing to their unfurl blocks or message attachments."
    },
    "user_auth_blocks": {
      "required": false,
      "example": "",
      "desc": "Provide a JSON based array of structured blocks presented as URL-encoded string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior."
    },
    "user_auth_message": {
      "required": false,
      "example": "",
      "desc": "Provide a simply-formatted string to send as an ephemeral message to the user as invitation to authenticate further and enable full unfurling behavior. Provides two buttons, Not now or Never ask me again."
    },
    "user_auth_required": {
      "required": false,
      "example": "true",
      "desc": "Set to true or 1 to indicate the user must install your Slack app to trigger unfurls for this domain."
    },
    "user_auth_url": {
      "required": false,
      "example": "https://example.com/onboarding?user_id=xxx",
      "desc": "Send users to this custom URL where they will complete authentication in your app to fully trigger unfurling. Value should be properly URL-encoded."
    }
  },
  "response": {
    "examples": [
      "{\n    \"ok\": true\n}",
      "{\n    \"ok\": false,\n    \"error\": \"cannot_unfurl_url\"\n}"
    ]
  },
  "errors": {
    "missing_channel": "The request is missing the channel parameter.",
    "missing_ts": "The request is missing the ts parameter.",
    "cannot_find_channel": "The specified channel could not be located for this token.",
    "cannot_find_service": "A record of your app being allowed to unfurl for this workspace could not be found.",
    "cannot_parse_attachment": "The provided unfurls argument could not be parsed or understood.",
    "missing_unfurls": "The request is missing the unfurls parameter.",
    "invalid_unfurls_format": "The unfurls parameter cannot be JSON-decoded into a map of URLs to attachments.",
    "cannot_unfurl_url": "The URL cannot be unfurled. This error may be returned if you haven't acknowledged a link_shared event tied to the same URL. It is also returned when the domain appears in a workspace's administrative blacklists.",
    "cannot_prompt": "The current user has already interacted with and dismissed a prompt for this application.",
    "cannot_find_message": "The ts value in the request does not match a message.",
{'fraction_non_alphanumeric': 0.11502222222222222, 'fraction_numerical': 0.005333333333333333, 'mean_word_length': 3.2492447129909365, 'pattern_counts': {'":': 96, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '640544', 'n_tokens_mistral': 1607, 'n_tokens_neox': 1549, 'n_words': 659}