Skip to content

Commit e753038

Browse files
authored
Update Generator and use Templates (#42)
* Update generator to `7.20.0` * Generate default template folder * Use templates in generation * Remove transition help * Alter templates * Fix example * Fix multipart data getting json serialized when it shouldn't be * Add better multipart file uploading * Reduce manual patches further * Remove header
1 parent 7c13fc1 commit e753038

File tree

408 files changed

+3769
-2797
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

408 files changed

+3769
-2797
lines changed

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.17.0
1+
7.20.0

Cargo.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
[package]
2-
repository="https://github.com/vrchatapi/vrchatapi-rust"
32
name = "vrchatapi"
4-
version = "1.20.8-nightly.9.1"
3+
version = "1.20.8-nightly.9"
54
authors = ["vrchatapi.lpv0t@aries.fyi"]
65
description = "VRChat API Client for Rust"
76
license = "MIT"
87
edition = "2021"
8+
repository = "https://github.com/vrchatapi/vrchatapi-rust"
99

1010
[dependencies]
1111
serde = { version = "^1.0", features = ["derive"] }
1212
serde_with = { version = "^3.8", default-features = false, features = ["base64", "std", "macros"] }
1313
serde_json = "^1.0"
1414
serde_repr = "^0.1"
1515
url = "^2.5"
16-
reqwest = { version = "^0.12", default-features = false, features = ["json", "multipart"] }
17-
reqwest-middleware = { version = "^0.4", features = ["json", "multipart"] }
16+
tokio = { version = "^1.46.0", features = ["fs"] }
17+
tokio-util = { version = "^0.7", features = ["codec"] }
18+
reqwest = { version = "^0.13", default-features = false, features = ["json", "multipart", "cookies", "stream", "query", "form"] }
19+
reqwest-middleware = { version = "^0.5", features = ["json", "multipart", "query", "form"] }
1820

1921
[features]
2022
default = ["reqwest/cookies"]
2123
native-tls = ["reqwest/native-tls"]
22-
rustls-tls = ["reqwest/rustls-tls"]
24+
rustls = ["reqwest/rustls"]
2325

2426
[dev-dependencies]
2527
tokio = { version = '1', features = ['macros', 'rt-multi-thread'] }

docs/AdminAssetBundle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
1616
**tags** | **Vec<String>** | |
1717
**thumbnail_image_url** | **String** | |
1818
**unity_package_url** | Option<**String**> | |
19-
**unity_packages** | [**Vec<models::AdminUnityPackage>**](AdminUnityPackage.md) | |
19+
**unity_packages** | [**HashSet<models::AdminUnityPackage>**](AdminUnityPackage.md) | |
2020

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

docs/ApiConfig.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**location_gifting_non_sub_prio_enabled** | **bool** | Toggles whether users without a current VRC+ subscription are priority recipients for gift drops | [default to true]
1010
**voice_enable_degradation** | **bool** | Unknown, probably voice optimization testing | [default to false]
1111
**voice_enable_receiver_limiting** | **bool** | Unknown, probably voice optimization testing | [default to true]
12-
**access_logs_urls** | [**models::ApiConfigAccessLogsUrls**](APIConfig_accessLogsUrls.md) | |
12+
**access_logs_urls** | [**models::ApiConfigAccessLogsUrls**](APIConfigAccessLogsUrls.md) | |
1313
**address** | **String** | VRChat's office address |
1414
**age_verification_invite_visible** | **bool** | |
1515
**age_verification_p** | **bool** | |
@@ -18,11 +18,11 @@ Name | Type | Description | Notes
1818
**analysis_retry_interval** | **i32** | Interval between retries for avatar analysis requests |
1919
**analytics_segment_new_ui_pct_of_users** | **i32** | Unknown |
2020
**analytics_segment_new_ui_salt** | **String** | Unknown |
21-
**announcements** | [**Vec<models::ApiConfigAnnouncement>**](APIConfigAnnouncement.md) | Public Announcements |
21+
**announcements** | [**HashSet<models::ApiConfigAnnouncement>**](APIConfigAnnouncement.md) | Public Announcements |
2222
**audio_config** | Option<[**models::ApiConfigAudioConfig**](APIConfigAudioConfig.md)> | | [optional]
2323
**available_language_codes** | **Vec<String>** | List of supported Languages |
2424
**available_languages** | **Vec<String>** | List of supported Languages |
25-
**avatar_perf_limiter** | [**models::ApiConfigAvatarPerfLimiter**](APIConfig_avatarPerfLimiter.md) | |
25+
**avatar_perf_limiter** | [**models::ApiConfigAvatarPerfLimiter**](APIConfigAvatarPerfLimiter.md) | |
2626
**chatbox_log_buffer_seconds** | **i32** | Unknown | [default to 40]
2727
**client_api_key** | **String** | apiKey to be used for all other requests |
2828
**client_bps_ceiling** | **i32** | Unknown | [default to 18432]
@@ -72,7 +72,7 @@ Name | Type | Description | Notes
7272
**disable_upgrade_account** | **bool** | Toggles if account upgrading \"linking with Steam/Oculus\" should be disabled. | [default to false]
7373
**download_link_windows** | **String** | Download link for game on the Oculus Rift website. |
7474
**download_urls** | [**models::ApiConfigDownloadUrlList**](APIConfigDownloadURLList.md) | |
75-
**dynamic_world_rows** | [**Vec<models::DynamicContentRow>**](DynamicContentRow.md) | Array of DynamicWorldRow objects, used by the game to display the list of world rows |
75+
**dynamic_world_rows** | [**HashSet<models::DynamicContentRow>**](DynamicContentRow.md) | Array of DynamicWorldRow objects, used by the game to display the list of world rows |
7676
**economy_ledger_backfill** | **bool** | Unknown |
7777
**economy_ledger_migration_stop** | **String** | Unknown |
7878
**economy_ledger_mode** | **String** | Unknown |
@@ -89,23 +89,23 @@ Name | Type | Description | Notes
8989
**hub_world_id** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. |
9090
**image_host_url_list** | **Vec<String>** | A list of explicitly allowed origins that worlds can request images from via the Udon's [VRCImageDownloader#DownloadImage](https://creators.vrchat.com/worlds/udon/image-loading/#downloadimage). |
9191
**ios_app_version** | **Vec<String>** | Current app version for iOS |
92-
**ios_version** | [**models::ApiConfigIosVersion**](APIConfig_iosVersion.md) | |
92+
**ios_version** | [**models::ApiConfigIosVersion**](APIConfigIosVersion.md) | |
9393
**jobs_email** | **String** | VRChat's job application email |
9494
**max_user_emoji** | **i32** | The maximum number of custom emoji each user may have at a given time. | [default to 18]
9595
**max_user_stickers** | **i32** | The maximum number of custom stickers each user may have at a given time. | [default to 18]
96-
**min_supported_client_build_number** | [**models::ApiConfigMinSupportedClientBuildNumber**](APIConfig_minSupportedClientBuildNumber.md) | |
96+
**min_supported_client_build_number** | [**models::ApiConfigMinSupportedClientBuildNumber**](APIConfigMinSupportedClientBuildNumber.md) | |
9797
**minimum_unity_version_for_uploads** | **String** | Minimum Unity version required for uploading assets | [default to 2019.0.0f1]
9898
**moderation_email** | **String** | VRChat's moderation related email |
9999
**not_allowed_to_select_avatar_in_private_world_message** | **String** | Used in-game to notify a user they aren't allowed to select avatars in private worlds |
100-
**offline_analysis** | [**models::ApiConfigOfflineAnalysis**](APIConfig_offlineAnalysis.md) | |
100+
**offline_analysis** | [**models::ApiConfigOfflineAnalysis**](APIConfigOfflineAnalysis.md) | |
101101
**photon_nameserver_overrides** | **Vec<String>** | Unknown |
102102
**photon_public_keys** | **Vec<String>** | Unknown |
103103
**player_url_resolver_sha1** | **String** | Currently used youtube-dl.exe hash in SHA1-delimited format |
104104
**player_url_resolver_version** | **String** | Currently used youtube-dl.exe version |
105105
**public_key** | **String** | Public key, hex encoded |
106106
**report_categories** | [**std::collections::HashMap<String, models::ReportCategory>**](ReportCategory.md) | Categories available for reporting objectionable content |
107107
**report_form_url** | **String** | URL to the report form | [default to https://help.vrchat.com/hc/en-us/requests/new?ticket_form_id=1500000182242&tf_360056455174=user_report&tf_360057451993={userId}&tf_1500001445142={reportedId}&tf_subject={reason} {category} By {contentType} {reportedName}&tf_description={description}]
108-
**report_options** | [**std::collections::HashMap<String, std::collections::HashMap<String, Vec<String>>>**](std::collections::HashMap.md) | Options for reporting content. Select a key+value from this mapping as the `type` of the report. Select one key+value from the object at reportOptions[type] as the `category` of the report. reportCategories[category] contains user-facing text to display for all possible categories. Select one value from the array at reportOptions[type][category] as the `reason` of the report. reportReasons[reason] contains user-facing text to display for all possible categories. |
108+
**report_options** | **std::collections::HashMap<String, std::collections::HashMap<String, Vec<String>>>** | Options for reporting content. Select a key+value from this mapping as the `type` of the report. Select one key+value from the object at reportOptions[type] as the `category` of the report. reportCategories[category] contains user-facing text to display for all possible categories. Select one value from the array at reportOptions[type][category] as the `reason` of the report. reportReasons[reason] contains user-facing text to display for all possible categories. |
109109
**report_reasons** | [**std::collections::HashMap<String, models::ReportReason>**](ReportReason.md) | Reasons available for submitting a report |
110110
**require_age_verification_beta_tag** | **bool** | |
111111
**sdk_developer_faq_url** | **String** | Link to the developer FAQ |

docs/ApiConfigConstants.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**groups** | [**models::ApiConfigConstantsGroups**](APIConfigConstants_GROUPS.md) | |
8-
**instance** | [**models::ApiConfigConstantsInstance**](APIConfigConstants_INSTANCE.md) | |
9-
**language** | [**models::ApiConfigConstantsLanguage**](APIConfigConstants_LANGUAGE.md) | |
7+
**groups** | [**models::ApiConfigConstantsGroups**](APIConfigConstantsGROUPS.md) | |
8+
**instance** | [**models::ApiConfigConstantsInstance**](APIConfigConstantsINSTANCE.md) | |
9+
**language** | [**models::ApiConfigConstantsLanguage**](APIConfigConstantsLANGUAGE.md) | |
1010

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

docs/ApiConfigConstantsInstance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**population_brackets** | Option<[**models::ApiConfigConstantsInstancePopulationBrackets**](APIConfigConstants_INSTANCE_POPULATION_BRACKETS.md)> | | [optional]
7+
**population_brackets** | Option<[**models::ApiConfigConstantsInstancePopulationBrackets**](APIConfigConstantsINSTANCEPOPULATIONBRACKETS.md)> | | [optional]
88

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

docs/ApiConfigConstantsInstancePopulationBrackets.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**crowded** | Option<[**models::ApiConfigConstantsInstancePopulationBracketsCrowded**](APIConfigConstants_INSTANCE_POPULATION_BRACKETS_CROWDED.md)> | | [optional]
8-
**few** | Option<[**models::ApiConfigConstantsInstancePopulationBracketsFew**](APIConfigConstants_INSTANCE_POPULATION_BRACKETS_FEW.md)> | | [optional]
9-
**many** | Option<[**models::ApiConfigConstantsInstancePopulationBracketsMany**](APIConfigConstants_INSTANCE_POPULATION_BRACKETS_MANY.md)> | | [optional]
7+
**crowded** | Option<[**models::ApiConfigConstantsInstancePopulationBracketsCrowded**](APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED.md)> | | [optional]
8+
**few** | Option<[**models::ApiConfigConstantsInstancePopulationBracketsFew**](APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.md)> | | [optional]
9+
**many** | Option<[**models::ApiConfigConstantsInstancePopulationBracketsMany**](APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.md)> | | [optional]
1010

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

docs/AuthenticationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Globally unmoderates an avatar.
164164
Name | Type | Description | Required | Notes
165165
------------- | ------------- | ------------- | ------------- | -------------
166166
**target_avatar_id** | **String** | Must be a valid avatar ID. | [required] |
167-
**avatar_moderation_type** | [**AvatarModerationType**](.md) | The avatar moderation type associated with the avatar. | [required] |
167+
**avatar_moderation_type** | [**AvatarModerationType**](AvatarModerationType.md) | The avatar moderation type associated with the avatar. | [required] |
168168

169169
### Return type
170170

docs/Avatar.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**acknowledgements** | Option<**String**> | | [optional]
88
**active_asset_review_id** | Option<**String**> | Only present for the avatar author on avatars under active review. | [optional]
99
**asset_url** | Option<**String**> | Not present from general search `/avatars`, only on specific requests `/avatars/{avatarId}`. | [optional]
10-
**asset_url_object** | Option<[**serde_json::Value**](.md)> | Not present from general search `/avatars`, only on specific requests `/avatars/{avatarId}`. **Deprecation:** `Object` has unknown usage/fields, and is always empty. Use normal `Url` field instead. | [optional]
10+
**asset_url_object** | Option<**serde_json::Value**> | Not present from general search `/avatars`, only on specific requests `/avatars/{avatarId}`. **Deprecation:** `Object` has unknown usage/fields, and is always empty. Use normal `Url` field instead. | [optional]
1111
**author_id** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. |
1212
**author_name** | **String** | |
1313
**created_at** | **String** | |
@@ -21,17 +21,17 @@ Name | Type | Description | Notes
2121
**lowest_price** | Option<**i32**> | | [optional]
2222
**name** | **String** | |
2323
**pending_upload** | Option<**bool**> | | [optional][default to false]
24-
**performance** | [**models::AvatarPerformance**](Avatar_performance.md) | |
24+
**performance** | [**models::AvatarPerformance**](AvatarPerformance.md) | |
2525
**product_id** | Option<**String**> | | [optional]
26-
**published_listings** | Option<[**Vec<models::AvatarPublishedListingsInner>**](Avatar_publishedListings_inner.md)> | | [optional]
26+
**published_listings** | Option<[**Vec<models::AvatarPublishedListingsInner>**](AvatarPublishedListingsInner.md)> | | [optional]
2727
**release_status** | [**models::ReleaseStatus**](ReleaseStatus.md) | |
2828
**searchable** | Option<**bool**> | | [optional][default to false]
29-
**styles** | [**models::AvatarStyles**](Avatar_styles.md) | |
29+
**styles** | [**models::AvatarStyles**](AvatarStyles.md) | |
3030
**tags** | **Vec<String>** | |
3131
**thumbnail_image_url** | **String** | |
3232
**unity_package_url** | **String** | |
33-
**unity_package_url_object** | [**models::AvatarUnityPackageUrlObject**](Avatar_unityPackageUrlObject.md) | |
34-
**unity_packages** | [**Vec<models::UnityPackage>**](UnityPackage.md) | |
33+
**unity_package_url_object** | [**models::AvatarUnityPackageUrlObject**](AvatarUnityPackageUrlObject.md) | |
34+
**unity_packages** | [**HashSet<models::UnityPackage>**](UnityPackage.md) | |
3535
**updated_at** | **String** | |
3636
**version** | **i32** | | [default to 0]
3737

docs/AvatarsApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,14 @@ Search and list favorited avatars by query filters.
211211
Name | Type | Description | Required | Notes
212212
------------- | ------------- | ------------- | ------------- | -------------
213213
**featured** | Option<**bool**> | Filters on featured results. | |
214-
**sort** | Option<[**SortOption**](.md)> | The sort order of the results. | |
214+
**sort** | Option<[**SortOption**](SortOption.md)> | The sort order of the results. | |
215215
**n** | Option<**i32**> | The number of objects to return. | |[default to 60]
216-
**order** | Option<[**OrderOption**](.md)> | Result ordering | |
216+
**order** | Option<[**OrderOption**](OrderOption.md)> | Result ordering | |
217217
**offset** | Option<**i32**> | A zero-based offset from the default object sorting from where search results start. | |
218218
**search** | Option<**String**> | Filters by world name. | |
219219
**tag** | Option<**String**> | Tags to include (comma-separated). Any of the tags needs to be present. | |
220220
**notag** | Option<**String**> | Tags to exclude (comma-separated). | |
221-
**release_status** | Option<[**ReleaseStatus**](.md)> | Filter by ReleaseStatus. | |
221+
**release_status** | Option<[**ReleaseStatus**](ReleaseStatus.md)> | Filter by ReleaseStatus. | |
222222
**max_unity_version** | Option<**String**> | The maximum Unity version supported by the asset. | |
223223
**min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | |
224224
**platform** | Option<**String**> | The platform the asset supports. | |
@@ -341,15 +341,15 @@ Search and list avatars by query filters. You can only search your own or featur
341341
Name | Type | Description | Required | Notes
342342
------------- | ------------- | ------------- | ------------- | -------------
343343
**featured** | Option<**bool**> | Filters on featured results. | |
344-
**sort** | Option<[**SortOption**](.md)> | The sort order of the results. | |
344+
**sort** | Option<[**SortOption**](SortOption.md)> | The sort order of the results. | |
345345
**user** | Option<**String**> | Set to `me` for searching own avatars. | |
346346
**user_id** | Option<**String**> | Filter by UserID. | |
347347
**n** | Option<**i32**> | The number of objects to return. | |[default to 60]
348-
**order** | Option<[**OrderOption**](.md)> | Result ordering | |
348+
**order** | Option<[**OrderOption**](OrderOption.md)> | Result ordering | |
349349
**offset** | Option<**i32**> | A zero-based offset from the default object sorting from where search results start. | |
350350
**tag** | Option<**String**> | Tags to include (comma-separated). Any of the tags needs to be present. | |
351351
**notag** | Option<**String**> | Tags to exclude (comma-separated). | |
352-
**release_status** | Option<[**ReleaseStatus**](.md)> | Filter by ReleaseStatus. | |
352+
**release_status** | Option<[**ReleaseStatus**](ReleaseStatus.md)> | Filter by ReleaseStatus. | |
353353
**max_unity_version** | Option<**String**> | The maximum Unity version supported by the asset. | |
354354
**min_unity_version** | Option<**String**> | The minimum Unity version supported by the asset. | |
355355
**platform** | Option<**String**> | The platform the asset supports. | |

0 commit comments

Comments
 (0)