Implement signed cdn urls

This commit is contained in:
Puyodead1
2025-05-03 12:30:22 +02:00
committed by Rory&
parent 1d8e081fd8
commit 080b2c7d38
14 changed files with 13067 additions and 3009 deletions
+220 -69
View File
@@ -212,6 +212,48 @@
}
}
},
"GuildSubscriptionSchema": {
"type": "object",
"properties": {
"channels": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer"
}
}
}
},
"activities": {
"type": "boolean"
},
"threads": {
"type": "boolean"
},
"typing": {
"enum": [
true
],
"type": "boolean"
},
"members": {
"type": "array",
"items": {
"type": "string"
}
},
"member_updates": {
"type": "boolean"
},
"thread_member_lists": {
"type": "array",
"items": {}
}
}
},
"ActivitySchema": {
"type": "object",
"properties": {
@@ -3972,6 +4014,21 @@
"widget_enabled"
]
},
"RefreshedUrl": {
"type": "object",
"properties": {
"original": {
"type": "string"
},
"refreshed": {
"type": "string"
}
},
"required": [
"original",
"refreshed"
]
},
"TenorGifResponse": {
"type": "object",
"properties": {
@@ -4137,6 +4194,12 @@
"$ref": "#/components/schemas/Channel"
}
},
"members": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Member"
}
},
"region": {
"type": "string"
},
@@ -4215,12 +4278,6 @@
"presence_count": {
"type": "integer"
},
"members": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Member"
}
},
"template_id": {
"type": "string"
},
@@ -4620,9 +4677,7 @@
"channel": {
"$ref": "#/components/schemas/RateLimitOptions"
},
"auth": {
"$ref": "#/components/schemas/AuthRateLimit"
}
"auth": {}
},
"required": [
"auth",
@@ -4631,21 +4686,6 @@
"webhook"
]
},
"AuthRateLimit": {
"type": "object",
"properties": {
"login": {
"$ref": "#/components/schemas/RateLimitOptions"
},
"register": {
"$ref": "#/components/schemas/RateLimitOptions"
}
},
"required": [
"login",
"register"
]
},
"GlobalRateLimits": {
"type": "object",
"properties": {
@@ -5390,6 +5430,68 @@
}
}
},
"LazyRequestSchema": {
"type": "object",
"properties": {
"guild_id": {
"type": "string"
},
"channels": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer"
}
}
}
},
"activities": {
"type": "boolean"
},
"threads": {
"type": "boolean"
},
"typing": {
"enum": [
true
],
"type": "boolean"
},
"members": {
"type": "array",
"items": {
"type": "string"
}
},
"member_updates": {
"type": "boolean"
},
"thread_member_lists": {
"type": "array",
"items": {}
}
},
"required": [
"guild_id"
]
},
"GuildSubscriptionsBulkSchema": {
"type": "object",
"properties": {
"subscriptions": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/GuildSubscriptionSchema"
}
}
},
"required": [
"subscriptions"
]
},
"GuildTemplateCreateSchema": {
"type": "object",
"properties": {
@@ -5740,51 +5842,6 @@
}
}
},
"LazyRequestSchema": {
"type": "object",
"properties": {
"guild_id": {
"type": "string"
},
"channels": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer"
}
}
}
},
"activities": {
"type": "boolean"
},
"threads": {
"type": "boolean"
},
"typing": {
"enum": [
true
],
"type": "boolean"
},
"members": {
"type": "array",
"items": {
"type": "string"
}
},
"thread_member_lists": {
"type": "array",
"items": {}
}
},
"required": [
"guild_id"
]
},
"LoginSchema": {
"type": "object",
"properties": {
@@ -6249,6 +6306,20 @@
"before"
]
},
"RefreshUrlsRequestSchema": {
"type": "object",
"properties": {
"attachment_urls": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"attachment_urls"
]
},
"RegisterSchema": {
"type": "object",
"properties": {
@@ -7090,6 +7161,20 @@
"location"
]
},
"RefreshUrlsResponse": {
"type": "object",
"properties": {
"refreshed_urls": {
"type": "array",
"items": {
"$ref": "#/components/schemas/RefreshedUrl"
}
}
},
"required": [
"refreshed_urls"
]
},
"TeamListResponse": {
"type": "object",
"patternProperties": {
@@ -9055,6 +9140,9 @@
{
"name": "applications"
},
{
"name": "attachments"
},
{
"name": "auth"
},
@@ -11652,6 +11740,25 @@
]
}
},
"/policies/instance/config/": {
"get": {
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Object"
}
}
}
}
},
"tags": [
"policies"
]
}
},
"/ping/": {
"get": {
"responses": {
@@ -18302,6 +18409,50 @@
]
}
},
"/attachments/refresh-urls/": {
"post": {
"security": [
{
"bearer": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RefreshUrlsRequestSchema"
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RefreshUrlsResponse"
}
}
}
},
"400": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/APIErrorResponse"
}
}
}
}
},
"tags": [
"attachments"
]
}
},
"/applications/": {
"get": {
"security": [
+12567 -2927
View File
File diff suppressed because it is too large Load Diff