1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/strimertul-website synced 2024-11-23 21:32:20 +00:00
strimertul-website/data/api/v40/api.json

1395 lines
36 KiB
JSON
Raw Normal View History

2023-11-06 13:39:19 +00:00
{
2024-04-20 23:20:54 +00:00
"http/config": {
"description": "General server configuration",
"schema": {
"name": "ServerConfig",
"kind": "object",
"keys": [
{
"name": "bind",
"kind": "string"
},
{
"name": "enable_static_server",
"kind": "boolean"
},
{
"name": "path",
"kind": "string"
},
{
"name": "kv_password",
"kind": "string"
}
]
}
},
2023-11-06 13:39:19 +00:00
"loyalty/@create-redeem": {
"description": "Create a new pending redeem",
"schema": {
"name": "Redeem",
"kind": "object",
"keys": [
{
"name": "username",
"description": "Username of who redeemed the reward",
"kind": "string"
},
{
"name": "display_name",
"description": "Display name of who redeemed the reward",
"kind": "string"
},
{
"name": "reward",
"description": "Reward that was redeemed",
"kind": "object",
"keys": [
{
"name": "enabled",
"description": "Is the reward enabled (redeemable)?",
"kind": "boolean"
},
{
"name": "id",
"description": "Reward ID",
"kind": "string"
},
{
"name": "name",
"description": "Name of the reward",
"kind": "string"
},
{
"name": "description",
"description": "Description of the reward",
"kind": "string"
},
{
"name": "image",
"description": "Reward icon URL",
"kind": "string"
},
{
"name": "price",
"description": "How much does is cost",
"kind": "int"
},
{
"name": "required_info",
"description": "If present, reward requires user input and this field is the help text",
"kind": "string"
},
{
"name": "cooldown",
"description": "Time in seconds to wait before this reward can be redeemed again",
"kind": "int"
}
]
},
{
"name": "when",
"description": "Time of the redeem",
"kind": "datetime"
},
{
"name": "request_text",
"description": "If the reward required user input it will be here",
"kind": "string"
}
]
},
"tags": [
"rpc"
]
},
2024-04-20 23:20:54 +00:00
"loyalty/@remove-redeem": {
"description": "Remove a redeem from the queue",
2023-11-06 13:39:19 +00:00
"schema": {
2024-04-20 23:20:54 +00:00
"name": "Redeem",
2023-11-06 13:39:19 +00:00
"kind": "object",
"keys": [
{
2024-04-20 23:20:54 +00:00
"name": "username",
"description": "Username of who redeemed the reward",
"kind": "string"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "display_name",
"description": "Display name of who redeemed the reward",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "reward",
"description": "Reward that was redeemed",
"kind": "object",
"keys": [
{
"name": "enabled",
"description": "Is the reward enabled (redeemable)?",
"kind": "boolean"
},
{
"name": "id",
"description": "Reward ID",
"kind": "string"
},
{
"name": "name",
"description": "Name of the reward",
"kind": "string"
},
{
"name": "description",
"description": "Description of the reward",
"kind": "string"
},
{
"name": "image",
"description": "Reward icon URL",
"kind": "string"
},
{
"name": "price",
"description": "How much does is cost",
"kind": "int"
},
{
"name": "required_info",
"description": "If present, reward requires user input and this field is the help text",
"kind": "string"
},
{
"name": "cooldown",
"description": "Time in seconds to wait before this reward can be redeemed again",
"kind": "int"
}
]
},
2023-11-06 13:39:19 +00:00
{
2024-04-20 23:20:54 +00:00
"name": "when",
"description": "Time of the redeem",
"kind": "datetime"
},
{
"name": "request_text",
"description": "If the reward required user input it will be here",
"kind": "string"
2023-11-06 13:39:19 +00:00
}
]
},
"tags": [
"rpc"
]
},
2024-04-20 23:20:54 +00:00
"loyalty/config": {
"description": "General configuration for the loyalty system",
2023-11-06 13:39:19 +00:00
"schema": {
2024-04-20 23:20:54 +00:00
"name": "Config",
2023-11-06 13:39:19 +00:00
"kind": "object",
"keys": [
{
2024-04-20 23:20:54 +00:00
"name": "enabled",
"description": "Enable the loyalty system",
"kind": "boolean"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "currency",
"description": "Name of the currency",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "points",
"description": "Settings for distributing currency to online viewers",
"kind": "object",
"keys": [
{
"name": "interval",
"description": "How often to distribute points, in seconds",
"kind": "int"
},
{
"name": "amount",
"description": "How many points to award every interval",
"kind": "int"
},
{
"name": "activity_bonus",
"description": "Extra points for active chatters",
"kind": "int"
}
]
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "banlist",
"description": "Usernames to exclude from currency distribution",
2023-11-06 13:39:19 +00:00
"kind": "array",
"element": {
"name": "string",
"kind": "string"
}
}
]
}
},
2024-04-20 23:20:54 +00:00
"loyalty/ev/new-redeem": {
"description": "On reward redeemed",
2023-11-06 13:39:19 +00:00
"schema": {
2024-04-20 23:20:54 +00:00
"name": "Redeem",
2023-11-06 13:39:19 +00:00
"kind": "object",
"keys": [
{
2024-04-20 23:20:54 +00:00
"name": "username",
"description": "Username of who redeemed the reward",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "display_name",
"description": "Display name of who redeemed the reward",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "reward",
"description": "Reward that was redeemed",
"kind": "object",
"keys": [
{
"name": "enabled",
"description": "Is the reward enabled (redeemable)?",
"kind": "boolean"
},
{
"name": "id",
"description": "Reward ID",
"kind": "string"
},
{
"name": "name",
"description": "Name of the reward",
"kind": "string"
},
{
"name": "description",
"description": "Description of the reward",
"kind": "string"
},
{
"name": "image",
"description": "Reward icon URL",
"kind": "string"
},
{
"name": "price",
"description": "How much does is cost",
"kind": "int"
},
{
"name": "required_info",
"description": "If present, reward requires user input and this field is the help text",
"kind": "string"
},
{
"name": "cooldown",
"description": "Time in seconds to wait before this reward can be redeemed again",
"kind": "int"
}
]
},
{
"name": "when",
"description": "Time of the redeem",
"kind": "datetime"
},
{
"name": "request_text",
"description": "If the reward required user input it will be here",
"kind": "string"
}
]
},
"tags": [
"event"
]
},
"loyalty/goals": {
"description": "List of all goals",
"schema": {
"name": "",
"kind": "array",
"element": {
"name": "Goal",
"kind": "object",
"keys": [
{
"name": "enabled",
"description": "Is the goal enabled?",
"kind": "boolean"
},
{
"name": "id",
"description": "Community goal ID",
"kind": "string"
},
{
"name": "name",
2023-11-06 13:39:19 +00:00
"description": "Name of the community goal",
"kind": "string"
},
{
"name": "description",
"description": "Description of the goal",
"kind": "string"
},
{
"name": "image",
"description": "Goal icon URL",
"kind": "string"
},
{
"name": "total",
"description": "How many points does the goal need to be met in total",
"kind": "int"
},
{
"name": "contributed",
"description": "How many points have been contributed so far",
"kind": "int"
},
{
"name": "contributors",
"description": "Dictionary of how much every viewer has contributed",
"kind": "dictionary",
"key": {
"name": "string",
"kind": "string"
},
"element": {
"name": "int64",
"kind": "int"
}
}
]
}
}
},
2024-04-20 23:20:54 +00:00
"loyalty/points/\u003cuser\u003e": {
"description": "Point entry for a given user",
2023-11-06 13:39:19 +00:00
"schema": {
2024-04-20 23:20:54 +00:00
"name": "PointsEntry",
2023-11-06 13:39:19 +00:00
"kind": "object",
"keys": [
{
2024-04-20 23:20:54 +00:00
"name": "points",
"description": "Currency balance",
"kind": "int"
2023-11-06 13:39:19 +00:00
}
]
}
},
2024-04-20 23:20:54 +00:00
"loyalty/redeem-queue": {
"description": "All pending redeems",
2023-11-06 13:39:19 +00:00
"schema": {
"name": "",
"kind": "array",
"element": {
2024-04-20 23:20:54 +00:00
"name": "Redeem",
2023-11-06 13:39:19 +00:00
"kind": "object",
"keys": [
{
2024-04-20 23:20:54 +00:00
"name": "username",
"description": "Username of who redeemed the reward",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "display_name",
"description": "Display name of who redeemed the reward",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "reward",
"description": "Reward that was redeemed",
"kind": "object",
"keys": [
{
"name": "enabled",
"description": "Is the reward enabled (redeemable)?",
"kind": "boolean"
},
{
"name": "id",
"description": "Reward ID",
"kind": "string"
},
{
"name": "name",
"description": "Name of the reward",
"kind": "string"
},
{
"name": "description",
"description": "Description of the reward",
"kind": "string"
},
{
"name": "image",
"description": "Reward icon URL",
"kind": "string"
},
{
"name": "price",
"description": "How much does is cost",
"kind": "int"
},
{
"name": "required_info",
"description": "If present, reward requires user input and this field is the help text",
"kind": "string"
},
{
"name": "cooldown",
"description": "Time in seconds to wait before this reward can be redeemed again",
"kind": "int"
}
]
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "when",
"description": "Time of the redeem",
"kind": "datetime"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "request_text",
"description": "If the reward required user input it will be here",
2023-11-06 13:39:19 +00:00
"kind": "string"
2024-04-20 23:20:54 +00:00
}
]
}
}
},
"loyalty/rewards": {
"description": "List of available rewards",
"schema": {
"name": "",
"kind": "array",
"element": {
"name": "Reward",
"kind": "object",
"keys": [
2023-11-06 13:39:19 +00:00
{
2024-04-20 23:20:54 +00:00
"name": "enabled",
"description": "Is the reward enabled (redeemable)?",
"kind": "boolean"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "id",
"description": "Reward ID",
"kind": "string"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "name",
"description": "Name of the reward",
"kind": "string"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "description",
"description": "Description of the reward",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "image",
"description": "Reward icon URL",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "price",
"description": "How much does is cost",
2023-11-06 13:39:19 +00:00
"kind": "int"
},
{
2024-04-20 23:20:54 +00:00
"name": "required_info",
"description": "If present, reward requires user input and this field is the help text",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "cooldown",
"description": "Time in seconds to wait before this reward can be redeemed again",
"kind": "int"
2023-11-06 13:39:19 +00:00
}
]
}
}
},
2024-04-20 23:20:54 +00:00
"strimertul/@log": {
"description": "Add a log entry",
2023-11-06 13:39:19 +00:00
"schema": {
2024-04-20 23:20:54 +00:00
"name": "ExternalLog",
2023-11-06 13:39:19 +00:00
"kind": "object",
"keys": [
{
2024-04-20 23:20:54 +00:00
"name": "level",
"kind": "enum",
"enumValues": [
"debug",
"info",
"warn",
"error"
2023-11-06 13:39:19 +00:00
]
},
{
2024-04-20 23:20:54 +00:00
"name": "message",
"kind": "string"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "data",
"kind": "dictionary",
"key": {
"name": "string",
"kind": "string"
},
"element": {
"name": "",
"kind": "unknown"
}
2023-11-06 13:39:19 +00:00
}
]
},
"tags": [
2024-04-20 23:20:54 +00:00
"rpc"
2023-11-06 13:39:19 +00:00
]
},
2024-04-20 23:20:54 +00:00
"strimertul/version": {
"description": "Strimertul version (semantic version, e.g. v3.4.0-alpha.1)",
2023-11-06 13:39:19 +00:00
"schema": {
2024-04-20 23:20:54 +00:00
"name": "string",
"kind": "string"
}
},
"twitch/alerts/config": {
"description": "Configuration of chat alerts",
"schema": {
"name": "Config",
2023-11-06 13:39:19 +00:00
"kind": "object",
"keys": [
{
2024-04-20 23:20:54 +00:00
"name": "follow",
2023-11-06 13:39:19 +00:00
"kind": "object",
"keys": [
{
"name": "enabled",
2024-04-20 23:20:54 +00:00
"description": "Enable chat message alert on follow",
2023-11-06 13:39:19 +00:00
"kind": "boolean"
},
{
2024-04-20 23:20:54 +00:00
"name": "messages",
"description": "List of message to write on follow, one at random will be picked",
"kind": "array",
"element": {
"name": "string",
"kind": "string"
}
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "announce",
"description": "If true, send as announcement",
"kind": "boolean"
}
]
},
{
"name": "subscription",
"kind": "object",
"keys": [
2023-11-06 13:39:19 +00:00
{
2024-04-20 23:20:54 +00:00
"name": "enabled",
"description": "Enable chat message alert on subscription",
"kind": "boolean"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "messages",
"description": "List of message to write on subscription, one at random will be picked",
"kind": "array",
"element": {
"name": "string",
"kind": "string"
}
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "announce",
"description": "If true, send as announcement",
"kind": "boolean"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "variations",
"kind": "array",
"element": {
"name": "subscriptionVariation",
"kind": "object",
"keys": [
{
"name": "min_streak",
"description": "Minimum streak to get this message",
"kind": "int",
"isPointer": true
},
{
"name": "is_gifted",
"description": "If true, only gifted subscriptions will get these messages",
"kind": "boolean",
"isPointer": true
},
{
"name": "messages",
"description": "List of message to write on subscription, one at random will be picked",
"kind": "array",
"element": {
"name": "string",
"kind": "string"
}
}
]
}
2023-11-06 13:39:19 +00:00
}
]
},
{
2024-04-20 23:20:54 +00:00
"name": "gift_sub",
2023-11-06 13:39:19 +00:00
"kind": "object",
"keys": [
{
2024-04-20 23:20:54 +00:00
"name": "enabled",
"description": "Enable chat message alert on gifted subscription",
"kind": "boolean"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "messages",
"description": "List of message to write on gifted subscription, one at random will be picked",
"kind": "array",
"element": {
"name": "string",
"kind": "string"
}
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "announce",
"description": "If true, send as announcement",
"kind": "boolean"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "variations",
"kind": "array",
2023-11-06 13:39:19 +00:00
"element": {
"name": "giftSubVariation",
"kind": "object",
"keys": [
{
"name": "min_cumulative",
"description": "Minimum cumulative amount to get this message",
"kind": "int",
"isPointer": true
},
{
"name": "is_anonymous",
"description": "If true, only anonymous gifts will get these messages",
"kind": "boolean",
"isPointer": true
},
{
"name": "messages",
"description": "List of message to write on gifted subscription, one at random will be picked",
"kind": "array",
"element": {
"name": "string",
"kind": "string"
}
}
]
}
}
]
},
{
"name": "raid",
"kind": "object",
"keys": [
{
"name": "enabled",
"description": "Enable chat message alert on raid",
"kind": "boolean"
},
{
"name": "messages",
"description": "List of message to write on raid, one at random will be picked",
"kind": "array",
"element": {
"name": "string",
"kind": "string"
}
},
2024-04-20 23:20:54 +00:00
{
"name": "announce",
"description": "If true, send as announcement",
"kind": "boolean"
},
2023-11-06 13:39:19 +00:00
{
"name": "variations",
"kind": "array",
"element": {
"name": "raidVariation",
"kind": "object",
"keys": [
{
"name": "min_viewers",
"description": "Minimum number of viewers to get this message",
"kind": "int",
"isPointer": true
},
{
"name": "messages",
"description": "List of message to write on raid, one at random will be picked",
"kind": "array",
"element": {
"name": "string",
"kind": "string"
}
}
]
}
}
]
},
{
"name": "cheer",
"kind": "object",
"keys": [
{
"name": "enabled",
"description": "Enable chat message alert on cheer",
"kind": "boolean"
},
{
"name": "messages",
"description": "List of message to write on cheer, one at random will be picked",
"kind": "array",
"element": {
"name": "string",
"kind": "string"
}
},
2024-04-20 23:20:54 +00:00
{
"name": "announce",
"description": "If true, send as announcement",
"kind": "boolean"
},
2023-11-06 13:39:19 +00:00
{
"name": "variations",
"kind": "array",
"element": {
"name": "cheerVariation",
"kind": "object",
"keys": [
{
"name": "min_amount",
"description": "Minimum amount to get this message",
"kind": "int",
"isPointer": true
},
{
"name": "messages",
"description": "List of message to write on cheer, one at random will be picked",
"kind": "array",
"element": {
"name": "string",
"kind": "string"
}
}
]
}
}
]
}
]
}
},
2024-04-20 23:20:54 +00:00
"twitch/auth-keys": {
"description": "User access token for the twitch subsystem",
2023-11-06 13:39:19 +00:00
"schema": {
2024-04-20 23:20:54 +00:00
"name": "AuthResponse",
2023-11-06 13:39:19 +00:00
"kind": "object",
"keys": [
{
2024-04-20 23:20:54 +00:00
"name": "access_token",
"kind": "string"
},
{
"name": "refresh_token",
"kind": "string"
},
{
"name": "expires_in",
"kind": "int"
},
{
"name": "scope",
"kind": "array",
"element": {
"name": "string",
"kind": "string"
}
},
{
"name": "Time",
"kind": "datetime"
}
]
}
},
"twitch/chat/@send-message": {
"description": "Send chat message with extra options (as reply, whisper, etc)",
"schema": {
"name": "WriteMessageRequest",
"kind": "object",
"keys": [
{
"name": "message",
"description": "Chat message to send",
"kind": "string"
},
{
"name": "reply_to",
"description": "If specified, send as reply to a message ID",
"kind": "string"
},
{
"name": "whisper_to",
"description": "If specified, send as whisper to user ID",
"kind": "string"
},
{
"name": "announce",
"description": "If true, send as announcement",
"kind": "boolean"
}
]
},
"tags": [
"rpc"
]
},
"twitch/chat/activity": {
"description": "Number of chat messages in the last minute",
"schema": {
"name": "int",
"kind": "int"
}
},
"twitch/chat/chatter-account": {
"description": "User access token for the chat account (if not using the main one)",
"schema": {
"name": "AuthResponse",
"kind": "object",
"keys": [
{
"name": "access_token",
"kind": "string"
},
{
"name": "refresh_token",
"kind": "string"
},
{
"name": "expires_in",
"kind": "int"
},
{
"name": "scope",
"kind": "array",
"element": {
"name": "string",
"kind": "string"
}
},
{
"name": "Time",
"kind": "datetime"
}
]
}
},
"twitch/chat/config": {
"description": "Configuration for chat-related features",
"schema": {
"name": "Config",
"kind": "object",
"keys": [
{
"name": "command_cooldown",
"description": "Global command cooldown in seconds",
"kind": "int"
}
]
}
},
"twitch/chat/custom-commands": {
"description": "Chat custom commands",
"schema": {
"name": "",
"kind": "dictionary",
"key": {
"name": "string",
"kind": "string"
},
"element": {
"name": "CustomCommand",
"kind": "object",
"keys": [
{
"name": "description",
"description": "Command description",
"kind": "string"
},
{
"name": "access_level",
"description": "Minimum access level needed to use the command",
"kind": "enum",
"enumValues": [
"everyone",
"subscriber",
"vip",
"moderators",
"streamer"
]
},
{
"name": "response",
"description": "Response template (in Go templating format)",
"kind": "string"
},
{
"name": "enabled",
"description": "Is the command enabled?",
"kind": "boolean"
},
{
"name": "response_type",
"description": "How to respond to the user",
"kind": "enum",
"enumValues": [
"chat",
"reply",
"whisper",
"announce"
]
}
]
}
}
},
"twitch/config": {
"description": "General configuration for the Twitch subsystem",
"schema": {
"name": "Config",
"kind": "object",
"keys": [
{
"name": "enabled",
"description": "Enable subsystem",
"kind": "boolean"
},
{
"name": "api_client_id",
"description": "Twitch API App Client ID",
"kind": "string"
},
{
"name": "api_client_secret",
"description": "Twitch API App Client Secret",
"kind": "string"
}
]
}
},
"twitch/ev/eventsub-event/[event-name]": {
"description": "On Eventsub event [event-name] received",
"schema": {
"name": "NotificationMessagePayload",
"kind": "object",
"keys": [
{
"name": "subscription",
"kind": "object",
"keys": [
{
"name": "id",
"kind": "string"
},
{
2023-11-06 13:39:19 +00:00
"name": "type",
"kind": "string"
},
{
"name": "version",
"kind": "string"
},
{
"name": "status",
"kind": "string"
},
{
"name": "condition",
"kind": "object",
"keys": [
{
"name": "broadcaster_user_id",
"kind": "string"
},
{
"name": "from_broadcaster_user_id",
"kind": "string"
},
{
"name": "moderator_user_id",
"kind": "string"
},
{
"name": "to_broadcaster_user_id",
"kind": "string"
},
{
"name": "reward_id",
"kind": "string"
},
{
"name": "client_id",
"kind": "string"
},
{
"name": "extension_client_id",
"kind": "string"
},
{
"name": "user_id",
"kind": "string"
}
]
},
{
"name": "transport",
"kind": "object",
"keys": [
{
"name": "method",
"kind": "string"
},
{
"name": "callback",
"kind": "string"
},
{
"name": "secret",
"kind": "string"
},
{
"name": "session_id",
"kind": "string"
}
]
},
{
"name": "created_at",
"kind": "object",
"keys": [
{
"name": "Time",
"kind": "datetime"
}
]
},
{
"name": "cost",
"kind": "int"
}
]
},
{
"name": "event",
"kind": "array",
"element": {
"name": "uint8",
"kind": "int"
}
},
{
"name": "date",
"kind": "datetime"
}
]
2024-04-20 23:20:54 +00:00
},
"tags": [
"event"
]
2023-11-06 13:39:19 +00:00
},
2024-04-20 23:20:54 +00:00
"twitch/eventsub-history/[event-name]": {
"description": "Last eventsub notifications received for [event-name]",
2023-11-06 13:39:19 +00:00
"schema": {
"name": "",
"kind": "array",
"element": {
2024-04-20 23:20:54 +00:00
"name": "NotificationMessagePayload",
2023-11-06 13:39:19 +00:00
"kind": "object",
"keys": [
{
2024-04-20 23:20:54 +00:00
"name": "subscription",
2023-11-06 13:39:19 +00:00
"kind": "object",
"keys": [
{
2024-04-20 23:20:54 +00:00
"name": "id",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "type",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "version",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "status",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "condition",
"kind": "object",
"keys": [
{
"name": "broadcaster_user_id",
"kind": "string"
},
{
"name": "from_broadcaster_user_id",
"kind": "string"
},
{
"name": "moderator_user_id",
"kind": "string"
},
{
"name": "to_broadcaster_user_id",
"kind": "string"
},
{
"name": "reward_id",
"kind": "string"
},
{
"name": "client_id",
"kind": "string"
},
{
"name": "extension_client_id",
"kind": "string"
},
{
"name": "user_id",
"kind": "string"
}
]
},
{
"name": "transport",
"kind": "object",
"keys": [
{
"name": "method",
"kind": "string"
},
{
"name": "callback",
"kind": "string"
},
{
"name": "secret",
"kind": "string"
},
{
"name": "session_id",
"kind": "string"
}
]
},
{
"name": "created_at",
"kind": "object",
"keys": [
{
"name": "Time",
"kind": "datetime"
}
]
},
{
"name": "cost",
"kind": "int"
2023-11-06 13:39:19 +00:00
}
]
},
{
2024-04-20 23:20:54 +00:00
"name": "event",
"kind": "array",
"element": {
"name": "uint8",
"kind": "int"
}
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "date",
"kind": "datetime"
}
]
}
},
"tags": [
"history"
]
},
"twitch/stream-info": {
"description": "List of active twitch streams (1 element if live, 0 otherwise)",
"schema": {
"name": "",
"kind": "array",
"element": {
"name": "Stream",
"kind": "object",
"keys": [
2023-11-06 13:39:19 +00:00
{
2024-04-20 23:20:54 +00:00
"name": "id",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "user_id",
"kind": "string"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "user_login",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "user_name",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "game_id",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "game_name",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "tag_ids",
"kind": "array",
"element": {
"name": "string",
"kind": "string"
}
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "tags",
2023-11-06 13:39:19 +00:00
"kind": "array",
"element": {
2024-04-20 23:20:54 +00:00
"name": "string",
"kind": "string"
2023-11-06 13:39:19 +00:00
}
},
{
2024-04-20 23:20:54 +00:00
"name": "is_mature",
"kind": "boolean"
},
{
"name": "type",
"kind": "string"
},
{
"name": "title",
"kind": "string"
},
{
"name": "viewer_count",
2023-11-06 13:39:19 +00:00
"kind": "int"
},
{
2024-04-20 23:20:54 +00:00
"name": "started_at",
"kind": "datetime"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "language",
"kind": "string"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "thumbnail_url",
"kind": "string"
}
]
}
}
},
"twitch/timers/config": {
"description": "Configuration of chat timers",
"schema": {
"name": "Config",
"kind": "object",
"keys": [
{
"name": "timers",
"description": "List of timers as a dictionary",
"kind": "dictionary",
"key": {
"name": "string",
"kind": "string"
},
"element": {
"name": "ChatTimer",
2023-11-06 13:39:19 +00:00
"kind": "object",
"keys": [
{
2024-04-20 23:20:54 +00:00
"name": "enabled",
"description": "Enable the timer",
"kind": "boolean"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "name",
"description": "Timer name (must be unique)",
2023-11-06 13:39:19 +00:00
"kind": "string"
},
{
2024-04-20 23:20:54 +00:00
"name": "minimum_chat_activity",
"description": "Minimum chat messages in the last 5 minutes for timer to trigger",
"kind": "int"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "minimum_delay",
"description": "Minimum amount of time (in seconds) that needs to pass before it triggers again",
"kind": "int"
2023-11-06 13:39:19 +00:00
},
{
2024-04-20 23:20:54 +00:00
"name": "messages",
"description": "Messages to write (randomly chosen)",
"kind": "array",
"element": {
"name": "string",
"kind": "string"
}
},
{
"name": "announce",
"description": "If true, send as announcement",
"kind": "boolean"
2023-11-06 13:39:19 +00:00
}
2024-04-20 23:20:54 +00:00
]
2023-11-06 13:39:19 +00:00
}
}
]
2024-04-20 23:20:54 +00:00
}
2023-11-06 13:39:19 +00:00
}
}