Skip to content

Commit

Permalink
npm run generate
Browse files Browse the repository at this point in the history
  • Loading branch information
yvvki committed Jul 20, 2023
1 parent ab49ff0 commit fb5d866
Show file tree
Hide file tree
Showing 627 changed files with 9,478 additions and 2,232 deletions.
415 changes: 293 additions & 122 deletions crates/api/.openapi-generator/FILES

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion crates/api/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.2.0
6.6.0
11 changes: 5 additions & 6 deletions crates/api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@

[package]
name = "revolt_api"
version = "0.5.5-rev.2"
authors = ["OpenAPI Generator team and contributors", "Yuuki Rika"]
version = "0.6.5"
authors = ["[email protected]", "Yuuki Rika <[email protected]>"]
description = "Open source user-first chat platform."
license = "AGPLv3"
edition = "2018"
license.workspace = true
description.workspace = true
repository.workspace = true

[dependencies]
serde = "^1.0"
serde_derive = "^1.0"
serde_with = "^2.0"
serde_json = "^1.0"
url = "^2.2"
uuid = { version = "^1.0", features = ["serde"] }

[dependencies.reqwest]
version = "^0.11"
features = ["json", "multipart"]

[dev-dependencies]
227 changes: 162 additions & 65 deletions crates/api/README.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions crates/api/docs/AccountApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ This endpoint does not need any parameter.

### Authorization

[Session Token](../README.md#Session Token), [Valid MFA Ticket](../README.md#Valid MFA Ticket)
[Valid MFA Ticket](../README.md#Valid MFA Ticket), [Session Token](../README.md#Session Token)

### HTTP request headers

Expand All @@ -182,7 +182,7 @@ This endpoint does not need any parameter.

### Authorization

[Session Token](../README.md#Session Token), [Valid MFA Ticket](../README.md#Valid MFA Ticket)
[Valid MFA Ticket](../README.md#Valid MFA Ticket), [Session Token](../README.md#Session Token)

### HTTP request headers

Expand Down Expand Up @@ -311,7 +311,7 @@ No authorization required

## verify_email_verify_email

> verify_email_verify_email(code)
> crate::models::ResponseVerify verify_email_verify_email(code)
Verify Email

Verify an email address.
Expand All @@ -325,7 +325,7 @@ Name | Type | Description | Required | Notes

### Return type

(empty response body)
[**crate::models::ResponseVerify**](ResponseVerify.md)

### Authorization

Expand Down
13 changes: 13 additions & 0 deletions crates/api/docs/AccountStrike.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# AccountStrike

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**_id** | **String** | Strike Id |
**user_id** | **String** | Id of reported user |
**reason** | **String** | Attached reason |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


67 changes: 67 additions & 0 deletions crates/api/docs/AdminApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# \AdminApi

All URIs are relative to *https://api.revolt.chat*

Method | HTTP request | Description
------------- | ------------- | -------------
[**message_query_message_query**](AdminApi.md#message_query_message_query) | **POST** /admin/messages | Globally Fetch Messages
[**stats_stats**](AdminApi.md#stats_stats) | **GET** /admin/stats | Query Stats



## message_query_message_query

> crate::models::BulkMessageResponse message_query_message_query(message_query)
Globally Fetch Messages

This is a privileged route to globally fetch messages.

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**message_query** | [**MessageQuery**](MessageQuery.md) | | [required] |

### Return type

[**crate::models::BulkMessageResponse**](BulkMessageResponse.md)

### Authorization

[Session Token](../README.md#Session Token)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## stats_stats

> crate::models::Stats stats_stats()
Query Stats

Fetch various technical statistics.

### Parameters

This endpoint does not need any parameter.

### Return type

[**crate::models::Stats**](Stats.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# ErrorOneOf36
# AuthifierError

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |
**operation** | **String** | |
**with** | **String** | |
**operation** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RAuthErrorOneOf
# AuthifierErrorOneOf

## Properties

Expand Down
11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf1

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf10

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf11.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf11

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf12.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf12

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf13.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf13

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf14.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf14

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf15.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf15

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf16.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf16

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf2

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf3

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf4

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf5

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf6

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf7

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf8

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


11 changes: 11 additions & 0 deletions crates/api/docs/AuthifierErrorOneOf9.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AuthifierErrorOneOf9

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**r#type** | **String** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


1 change: 1 addition & 0 deletions crates/api/docs/BannedUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**_id** | **String** | Id of the banned user |
**username** | **String** | Username of the banned user |
**discriminator** | **String** | Discriminator of the banned user |
**avatar** | Option<[**crate::models::BannedUserAvatar**](BannedUser_avatar.md)> | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
Loading

0 comments on commit fb5d866

Please sign in to comment.