From 5b508716a3c26098077a32fa682b8bc6f492ce0d Mon Sep 17 00:00:00 2001 From: Piotr Date: Mon, 18 Aug 2025 00:25:28 +0000 Subject: [PATCH] syncing sdk from openapi --- .openapi-generator/FILES | 14 +++ README.md | 10 ++ docs/BeamoOtelApi.md | 68 ++++++++++ docs/ClientManifestJsonResponse.md | 6 +- docs/ClientManifestResponse.md | 2 + docs/ContentBasicManifest.md | 2 + docs/DefaultApi.md | 41 +++++- docs/GetManifestDiffsRequest.md | 17 +++ docs/GetManifestDiffsResponse.md | 14 +++ docs/LobbyApi.md | 33 +++++ docs/ManifestDiffSummary.md | 13 ++ docs/OtelAuthConfig.md | 14 +++ docs/SaveManifestResponse.md | 15 +++ docs/SetLobbyResponse.md | 11 ++ src/apis/beamo_otel_api.rs | 130 ++++++++++++++++++++ src/apis/default_api.rs | 98 ++++++++++++++- src/apis/lobby_api.rs | 59 +++++++++ src/apis/mod.rs | 1 + src/models/client_manifest_json_response.rs | 18 ++- src/models/client_manifest_response.rs | 6 + src/models/content_basic_manifest.rs | 6 + src/models/get_manifest_diffs_request.rs | 45 +++++++ src/models/get_manifest_diffs_response.rs | 36 ++++++ src/models/manifest_diff_summary.rs | 33 +++++ src/models/mod.rs | 12 ++ src/models/otel_auth_config.rs | 36 ++++++ src/models/save_manifest_response.rs | 39 ++++++ src/models/set_lobby_response.rs | 27 ++++ 28 files changed, 793 insertions(+), 13 deletions(-) create mode 100644 docs/BeamoOtelApi.md create mode 100644 docs/GetManifestDiffsRequest.md create mode 100644 docs/GetManifestDiffsResponse.md create mode 100644 docs/ManifestDiffSummary.md create mode 100644 docs/OtelAuthConfig.md create mode 100644 docs/SaveManifestResponse.md create mode 100644 docs/SetLobbyResponse.md create mode 100644 src/apis/beamo_otel_api.rs create mode 100644 src/models/get_manifest_diffs_request.rs create mode 100644 src/models/get_manifest_diffs_response.rs create mode 100644 src/models/manifest_diff_summary.rs create mode 100644 src/models/otel_auth_config.rs create mode 100644 src/models/save_manifest_response.rs create mode 100644 src/models/set_lobby_response.rs diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 98af008..1d42be7 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -56,6 +56,7 @@ docs/BeamoBasicManifestChecksums.md docs/BeamoBasicReference.md docs/BeamoBasicUrlResponse.md docs/BeamoLimits.md +docs/BeamoOtelApi.md docs/BeamoV2ConnectionStringResponse.md docs/BeamoV2DataPoint.md docs/BeamoV2DatabaseMeasurement.md @@ -271,6 +272,8 @@ docs/GetLogsInsightUrlRequest.md docs/GetLogsUrlHeader.md docs/GetLogsUrlRequest.md docs/GetMailDetailsRequest.md +docs/GetManifestDiffsRequest.md +docs/GetManifestDiffsResponse.md docs/GetManifestHistoryRequest.md docs/GetManifestHistoryResponse.md docs/GetManifestRequestJson.md @@ -430,6 +433,7 @@ docs/MailTemplate.md docs/MailboxApi.md docs/MakeDonationRequest.md docs/MakeFriendshipRequest.md +docs/ManifestDiffSummary.md docs/ManifestSummary.md docs/ManifestView.md docs/Match.md @@ -470,6 +474,7 @@ docs/OnlineStatusResponses.md docs/OptionalJsonNodeWrapper.md docs/OrderRule.md docs/OrderRules.md +docs/OtelAuthConfig.md docs/PaNamespace.md docs/PaSlowQuery.md docs/PaSuggestedIndex.md @@ -570,6 +575,7 @@ docs/SaveContentRequest.md docs/SaveContentResponse.md docs/SaveGameDataResponse.md docs/SaveManifestRequest.md +docs/SaveManifestResponse.md docs/SaveSkusRequest.md docs/SaveTextRequest.md docs/SaveTextResponse.md @@ -615,6 +621,7 @@ docs/SessionHistoryResponse.md docs/SessionLanguageContext.md docs/SessionUser.md docs/SetContentRequest.md +docs/SetLobbyResponse.md docs/SetPresenceStatusRequest.md docs/Sku.md docs/SkuDefinitions.md @@ -700,6 +707,7 @@ docs/WebhookServiceType.md git_push.sh src/apis/auth_api.rs src/apis/beamo_api.rs +src/apis/beamo_otel_api.rs src/apis/configuration.rs src/apis/default_api.rs src/apis/lobby_api.rs @@ -982,6 +990,8 @@ src/models/get_logs_insight_url_request.rs src/models/get_logs_url_header.rs src/models/get_logs_url_request.rs src/models/get_mail_details_request.rs +src/models/get_manifest_diffs_request.rs +src/models/get_manifest_diffs_response.rs src/models/get_manifest_history_request.rs src/models/get_manifest_history_response.rs src/models/get_manifest_request_json.rs @@ -1139,6 +1149,7 @@ src/models/mail_success_response.rs src/models/mail_template.rs src/models/make_donation_request.rs src/models/make_friendship_request.rs +src/models/manifest_diff_summary.rs src/models/manifest_summary.rs src/models/manifest_view.rs src/models/match_making_matches_pvp_response.rs @@ -1179,6 +1190,7 @@ src/models/online_status_responses.rs src/models/optional_json_node_wrapper.rs src/models/order_rule.rs src/models/order_rules.rs +src/models/otel_auth_config.rs src/models/pa_namespace.rs src/models/pa_slow_query.rs src/models/pa_suggested_index.rs @@ -1273,6 +1285,7 @@ src/models/save_content_request.rs src/models/save_content_response.rs src/models/save_game_data_response.rs src/models/save_manifest_request.rs +src/models/save_manifest_response.rs src/models/save_skus_request.rs src/models/save_text_request.rs src/models/save_text_response.rs @@ -1317,6 +1330,7 @@ src/models/session_history_response.rs src/models/session_language_context.rs src/models/session_user.rs src/models/set_content_request.rs +src/models/set_lobby_response.rs src/models/set_presence_status_request.rs src/models/sku.rs src/models/sku_definitions.rs diff --git a/README.md b/README.md index ce8a595..1840504 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,8 @@ Class | Method | HTTP request | Description *BeamoApi* | [**api_beamo_storage_connection_get**](docs/BeamoApi.md#api_beamo_storage_connection_get) | **GET** /api/beamo/storage/connection | *BeamoApi* | [**api_beamo_storage_storage_object_name_performance_get**](docs/BeamoApi.md#api_beamo_storage_storage_object_name_performance_get) | **GET** /api/beamo/storage/{storageObjectName}/performance | *BeamoApi* | [**api_beamo_templates_get**](docs/BeamoApi.md#api_beamo_templates_get) | **GET** /api/beamo/templates | +*BeamoOtelApi* | [**api_beamo_otel_auth_reader_config_get**](docs/BeamoOtelApi.md#api_beamo_otel_auth_reader_config_get) | **GET** /api/beamo/otel/auth/reader/config | +*BeamoOtelApi* | [**api_beamo_otel_auth_writer_config_get**](docs/BeamoOtelApi.md#api_beamo_otel_auth_writer_config_get) | **GET** /api/beamo/otel/auth/writer/config | *DefaultApi* | [**basic_accounts_admin_admin_user_post**](docs/DefaultApi.md#basic_accounts_admin_admin_user_post) | **POST** /basic/accounts/admin/admin-user | *DefaultApi* | [**basic_accounts_admin_admin_users_get**](docs/DefaultApi.md#basic_accounts_admin_admin_users_get) | **GET** /basic/accounts/admin/admin-users | *DefaultApi* | [**basic_accounts_admin_me_get**](docs/DefaultApi.md#basic_accounts_admin_me_get) | **GET** /basic/accounts/admin/me | @@ -129,6 +131,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**basic_content_localizations_put**](docs/DefaultApi.md#basic_content_localizations_put) | **PUT** /basic/content/localizations | *DefaultApi* | [**basic_content_manifest_checksum_get**](docs/DefaultApi.md#basic_content_manifest_checksum_get) | **GET** /basic/content/manifest/checksum | *DefaultApi* | [**basic_content_manifest_checksums_get**](docs/DefaultApi.md#basic_content_manifest_checksums_get) | **GET** /basic/content/manifest/checksums | +*DefaultApi* | [**basic_content_manifest_diffs_get**](docs/DefaultApi.md#basic_content_manifest_diffs_get) | **GET** /basic/content/manifest/diffs | *DefaultApi* | [**basic_content_manifest_exact_get**](docs/DefaultApi.md#basic_content_manifest_exact_get) | **GET** /basic/content/manifest/exact | *DefaultApi* | [**basic_content_manifest_get**](docs/DefaultApi.md#basic_content_manifest_get) | **GET** /basic/content/manifest | *DefaultApi* | [**basic_content_manifest_history_get**](docs/DefaultApi.md#basic_content_manifest_history_get) | **GET** /basic/content/manifest/history | @@ -414,6 +417,7 @@ Class | Method | HTTP request | Description *LobbyApi* | [**api_lobbies_id_tags_put**](docs/LobbyApi.md#api_lobbies_id_tags_put) | **PUT** /api/lobbies/{id}/tags | *LobbyApi* | [**api_lobbies_passcode_put**](docs/LobbyApi.md#api_lobbies_passcode_put) | **PUT** /api/lobbies/passcode | *LobbyApi* | [**api_lobbies_post**](docs/LobbyApi.md#api_lobbies_post) | **POST** /api/lobbies | +*LobbyApi* | [**api_lobbies_put**](docs/LobbyApi.md#api_lobbies_put) | **PUT** /api/lobbies | *MailboxApi* | [**api_mailbox_publish_post**](docs/MailboxApi.md#api_mailbox_publish_post) | **POST** /api/mailbox/publish | *MatchApi* | [**api_matchmaking_matches_id_get**](docs/MatchApi.md#api_matchmaking_matches_id_get) | **GET** /api/matchmaking/matches/{id} | *PartyApi* | [**api_parties_id_get**](docs/PartyApi.md#api_parties_id_get) | **GET** /api/parties/{id} | @@ -723,6 +727,8 @@ Class | Method | HTTP request | Description - [GetLogsUrlHeader](docs/GetLogsUrlHeader.md) - [GetLogsUrlRequest](docs/GetLogsUrlRequest.md) - [GetMailDetailsRequest](docs/GetMailDetailsRequest.md) + - [GetManifestDiffsRequest](docs/GetManifestDiffsRequest.md) + - [GetManifestDiffsResponse](docs/GetManifestDiffsResponse.md) - [GetManifestHistoryRequest](docs/GetManifestHistoryRequest.md) - [GetManifestHistoryResponse](docs/GetManifestHistoryResponse.md) - [GetManifestRequestJson](docs/GetManifestRequestJson.md) @@ -880,6 +886,7 @@ Class | Method | HTTP request | Description - [MailTemplate](docs/MailTemplate.md) - [MakeDonationRequest](docs/MakeDonationRequest.md) - [MakeFriendshipRequest](docs/MakeFriendshipRequest.md) + - [ManifestDiffSummary](docs/ManifestDiffSummary.md) - [ManifestSummary](docs/ManifestSummary.md) - [ManifestView](docs/ManifestView.md) - [Match](docs/Match.md) @@ -919,6 +926,7 @@ Class | Method | HTTP request | Description - [OptionalJsonNodeWrapper](docs/OptionalJsonNodeWrapper.md) - [OrderRule](docs/OrderRule.md) - [OrderRules](docs/OrderRules.md) + - [OtelAuthConfig](docs/OtelAuthConfig.md) - [PaNamespace](docs/PaNamespace.md) - [PaSlowQuery](docs/PaSlowQuery.md) - [PaSuggestedIndex](docs/PaSuggestedIndex.md) @@ -1013,6 +1021,7 @@ Class | Method | HTTP request | Description - [SaveContentResponse](docs/SaveContentResponse.md) - [SaveGameDataResponse](docs/SaveGameDataResponse.md) - [SaveManifestRequest](docs/SaveManifestRequest.md) + - [SaveManifestResponse](docs/SaveManifestResponse.md) - [SaveSkusRequest](docs/SaveSkusRequest.md) - [SaveTextRequest](docs/SaveTextRequest.md) - [SaveTextResponse](docs/SaveTextResponse.md) @@ -1057,6 +1066,7 @@ Class | Method | HTTP request | Description - [SessionLanguageContext](docs/SessionLanguageContext.md) - [SessionUser](docs/SessionUser.md) - [SetContentRequest](docs/SetContentRequest.md) + - [SetLobbyResponse](docs/SetLobbyResponse.md) - [SetPresenceStatusRequest](docs/SetPresenceStatusRequest.md) - [Sku](docs/Sku.md) - [SkuDefinitions](docs/SkuDefinitions.md) diff --git a/docs/BeamoOtelApi.md b/docs/BeamoOtelApi.md new file mode 100644 index 0000000..4b414a4 --- /dev/null +++ b/docs/BeamoOtelApi.md @@ -0,0 +1,68 @@ +# \BeamoOtelApi + +All URIs are relative to *https://api.beamable.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**api_beamo_otel_auth_reader_config_get**](BeamoOtelApi.md#api_beamo_otel_auth_reader_config_get) | **GET** /api/beamo/otel/auth/reader/config | +[**api_beamo_otel_auth_writer_config_get**](BeamoOtelApi.md#api_beamo_otel_auth_writer_config_get) | **GET** /api/beamo/otel/auth/writer/config | + + + +## api_beamo_otel_auth_reader_config_get + +> models::OtelAuthConfig api_beamo_otel_auth_reader_config_get(x_beam_scope, x_beam_gamertag) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**x_beam_scope** | Option<**String**> | Customer and project scope. This should be in the form of '{customerId}.{projectId}'. This is only necessary when not using a JWT bearer token | | +**x_beam_gamertag** | Option<**String**> | Override the playerId of the requester. This is only necessary when not using a JWT bearer token. | | + +### Return type + +[**models::OtelAuthConfig**](OtelAuthConfig.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/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) + + +## api_beamo_otel_auth_writer_config_get + +> models::OtelAuthConfig api_beamo_otel_auth_writer_config_get(x_beam_scope, x_beam_gamertag) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**x_beam_scope** | Option<**String**> | Customer and project scope. This should be in the form of '{customerId}.{projectId}'. This is only necessary when not using a JWT bearer token | | +**x_beam_gamertag** | Option<**String**> | Override the playerId of the requester. This is only necessary when not using a JWT bearer token. | | + +### Return type + +[**models::OtelAuthConfig**](OtelAuthConfig.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain, application/json, text/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) + diff --git a/docs/ClientManifestJsonResponse.md b/docs/ClientManifestJsonResponse.md index f4a41ca..be0483f 100644 --- a/docs/ClientManifestJsonResponse.md +++ b/docs/ClientManifestJsonResponse.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**uid** | Option<**String**> | | [optional] -**entries** | [**Vec**](ClientContentInfoJson.md) | | +**latest_update** | Option<**i64**> | | [optional] **publisher_account_id** | Option<**i64**> | | [optional] +**entries** | [**Vec**](ClientContentInfoJson.md) | | +**created_at** | Option<**i64**> | | [optional] +**uid** | Option<**String**> | | [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) diff --git a/docs/ClientManifestResponse.md b/docs/ClientManifestResponse.md index 821ec25..b84dfa4 100644 --- a/docs/ClientManifestResponse.md +++ b/docs/ClientManifestResponse.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **items** | [**Vec**](ClientContentInfo.md) | | +**created_at** | Option<**i64**> | | [optional] +**latest_update** | Option<**i64**> | | [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) diff --git a/docs/ContentBasicManifest.md b/docs/ContentBasicManifest.md index c38c2fe..3fdf1f5 100644 --- a/docs/ContentBasicManifest.md +++ b/docs/ContentBasicManifest.md @@ -5,10 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **archived** | Option<**bool**> | | [optional] +**diff_object_key** | Option<**String**> | | [optional] **references** | [**Vec**](ContentBasicManifest_references_inner.md) | | **publisher_account_id** | Option<**i64**> | | [optional] **id** | **String** | | **checksum** | **String** | | +**last_changed** | Option<**i64**> | | [optional] **uid** | Option<**String**> | | [optional] **created** | **i64** | | diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 42b30e2..f510199 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -81,6 +81,7 @@ Method | HTTP request | Description [**basic_content_localizations_put**](DefaultApi.md#basic_content_localizations_put) | **PUT** /basic/content/localizations | [**basic_content_manifest_checksum_get**](DefaultApi.md#basic_content_manifest_checksum_get) | **GET** /basic/content/manifest/checksum | [**basic_content_manifest_checksums_get**](DefaultApi.md#basic_content_manifest_checksums_get) | **GET** /basic/content/manifest/checksums | +[**basic_content_manifest_diffs_get**](DefaultApi.md#basic_content_manifest_diffs_get) | **GET** /basic/content/manifest/diffs | [**basic_content_manifest_exact_get**](DefaultApi.md#basic_content_manifest_exact_get) | **GET** /basic/content/manifest/exact | [**basic_content_manifest_get**](DefaultApi.md#basic_content_manifest_get) | **GET** /basic/content/manifest | [**basic_content_manifest_history_get**](DefaultApi.md#basic_content_manifest_history_get) | **GET** /basic/content/manifest/history | @@ -2672,6 +2673,42 @@ Name | Type | Description | Required | Notes [[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) +## basic_content_manifest_diffs_get + +> models::GetManifestDiffsResponse basic_content_manifest_diffs_get(x_beam_scope, manifest_id, x_beam_gamertag, from_uid, to_uid, offset, from_date, to_date, limit) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**x_beam_scope** | **String** | Customer and project scope. This should be in the form of '.'. | [required] | +**manifest_id** | **String** | | [required] | +**x_beam_gamertag** | Option<**String**> | Override the Gamer Tag of the player. This is generally inferred by the auth token. | | +**from_uid** | Option<**String**> | | | +**to_uid** | Option<**String**> | | | +**offset** | Option<**i32**> | | | +**from_date** | Option<**i64**> | | | +**to_date** | Option<**i64**> | | | +**limit** | Option<**i32**> | | | + +### Return type + +[**models::GetManifestDiffsResponse**](GetManifestDiffsResponse.md) + +### Authorization + +[server](../README.md#server), [user](../README.md#user) + +### 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) + + ## basic_content_manifest_exact_get > models::ContentBasicManifest basic_content_manifest_exact_get(x_beam_scope, uid, x_beam_gamertag) @@ -2766,7 +2803,7 @@ Name | Type | Description | Required | Notes ## basic_content_manifest_post -> models::ContentBasicManifest basic_content_manifest_post(x_beam_scope, x_beam_gamertag, save_manifest_request) +> models::SaveManifestResponse basic_content_manifest_post(x_beam_scope, x_beam_gamertag, save_manifest_request) ### Parameters @@ -2780,7 +2817,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::ContentBasicManifest**](ContentBasicManifest.md) +[**models::SaveManifestResponse**](SaveManifestResponse.md) ### Authorization diff --git a/docs/GetManifestDiffsRequest.md b/docs/GetManifestDiffsRequest.md new file mode 100644 index 0000000..f85972e --- /dev/null +++ b/docs/GetManifestDiffsRequest.md @@ -0,0 +1,17 @@ +# GetManifestDiffsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**manifest_id** | **String** | | +**from_uid** | Option<**String**> | | [optional] +**to_uid** | Option<**String**> | | [optional] +**offset** | Option<**i32**> | | [optional] +**from_date** | Option<**i64**> | | [optional] +**to_date** | Option<**i64**> | | [optional] +**limit** | Option<**i32**> | | [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) + + diff --git a/docs/GetManifestDiffsResponse.md b/docs/GetManifestDiffsResponse.md new file mode 100644 index 0000000..f69cb14 --- /dev/null +++ b/docs/GetManifestDiffsResponse.md @@ -0,0 +1,14 @@ +# GetManifestDiffsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**manifest_id** | **String** | | +**diffs** | [**Vec**](ManifestDiffSummary.md) | | +**has_more** | **bool** | | +**total_count** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LobbyApi.md b/docs/LobbyApi.md index 6402f89..0a61f62 100644 --- a/docs/LobbyApi.md +++ b/docs/LobbyApi.md @@ -14,6 +14,7 @@ Method | HTTP request | Description [**api_lobbies_id_tags_put**](LobbyApi.md#api_lobbies_id_tags_put) | **PUT** /api/lobbies/{id}/tags | [**api_lobbies_passcode_put**](LobbyApi.md#api_lobbies_passcode_put) | **PUT** /api/lobbies/passcode | [**api_lobbies_post**](LobbyApi.md#api_lobbies_post) | **POST** /api/lobbies | +[**api_lobbies_put**](LobbyApi.md#api_lobbies_put) | **PUT** /api/lobbies | @@ -344,3 +345,35 @@ No authorization required [[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) + +## api_lobbies_put + +> models::SetLobbyResponse api_lobbies_put(x_beam_scope, x_beam_gamertag, lobby) + + +Exposes the internal \"SetLobby\" behavior as an Admin only endpoint + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**x_beam_scope** | Option<**String**> | Customer and project scope. This should be in the form of '{customerId}.{projectId}'. This is only necessary when not using a JWT bearer token | | +**x_beam_gamertag** | Option<**String**> | Override the playerId of the requester. This is only necessary when not using a JWT bearer token. | | +**lobby** | Option<[**Lobby**](Lobby.md)> | | | + +### Return type + +[**models::SetLobbyResponse**](SetLobbyResponse.md) + +### Authorization + +No authorization required + +### 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) + diff --git a/docs/ManifestDiffSummary.md b/docs/ManifestDiffSummary.md new file mode 100644 index 0000000..90281d6 --- /dev/null +++ b/docs/ManifestDiffSummary.md @@ -0,0 +1,13 @@ +# ManifestDiffSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**manifest_uid** | **String** | | +**diff_url** | **String** | | +**created_date** | **i64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OtelAuthConfig.md b/docs/OtelAuthConfig.md new file mode 100644 index 0000000..62c6306 --- /dev/null +++ b/docs/OtelAuthConfig.md @@ -0,0 +1,14 @@ +# OtelAuthConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**endpoint** | **String** | | +**username** | **String** | | +**password** | **String** | | +**expires_at** | Option<**String**> | | [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) + + diff --git a/docs/SaveManifestResponse.md b/docs/SaveManifestResponse.md new file mode 100644 index 0000000..e0fcbe3 --- /dev/null +++ b/docs/SaveManifestResponse.md @@ -0,0 +1,15 @@ +# SaveManifestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**diff_url** | Option<**String**> | | [optional] +**id** | **String** | | +**checksum** | **String** | | +**uid** | **String** | | +**created** | **i64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SetLobbyResponse.md b/docs/SetLobbyResponse.md new file mode 100644 index 0000000..fd77f25 --- /dev/null +++ b/docs/SetLobbyResponse.md @@ -0,0 +1,11 @@ +# SetLobbyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lobby_id** | Option<**String**> | | [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) + + diff --git a/src/apis/beamo_otel_api.rs b/src/apis/beamo_otel_api.rs new file mode 100644 index 0000000..334246b --- /dev/null +++ b/src/apis/beamo_otel_api.rs @@ -0,0 +1,130 @@ +/* + * Beamable API + * + * Autogenerated Beamable API + * + * The version of the OpenAPI document: 1.0 + * Contact: support@beamable.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + +/// struct for passing parameters to the method [`api_beamo_otel_auth_reader_config_get`] +#[derive(Clone, Debug)] +pub struct ApiBeamoOtelAuthReaderConfigGetParams { + /// Customer and project scope. This should be in the form of '{customerId}.{projectId}'. This is only necessary when not using a JWT bearer token + pub x_beam_scope: Option, + /// Override the playerId of the requester. This is only necessary when not using a JWT bearer token. + pub x_beam_gamertag: Option +} + +/// struct for passing parameters to the method [`api_beamo_otel_auth_writer_config_get`] +#[derive(Clone, Debug)] +pub struct ApiBeamoOtelAuthWriterConfigGetParams { + /// Customer and project scope. This should be in the form of '{customerId}.{projectId}'. This is only necessary when not using a JWT bearer token + pub x_beam_scope: Option, + /// Override the playerId of the requester. This is only necessary when not using a JWT bearer token. + pub x_beam_gamertag: Option +} + + +/// struct for typed errors of method [`api_beamo_otel_auth_reader_config_get`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ApiBeamoOtelAuthReaderConfigGetError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`api_beamo_otel_auth_writer_config_get`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ApiBeamoOtelAuthWriterConfigGetError { + UnknownValue(serde_json::Value), +} + + +pub async fn api_beamo_otel_auth_reader_config_get(configuration: &configuration::Configuration, params: ApiBeamoOtelAuthReaderConfigGetParams) -> Result> { + + let uri_str = format!("{}/api/beamo/otel/auth/reader/config", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(param_value) = params.x_beam_scope { + req_builder = req_builder.header("X-BEAM-SCOPE", param_value.to_string()); + } + if let Some(param_value) = params.x_beam_gamertag { + req_builder = req_builder.header("X-BEAM-GAMERTAG", param_value.to_string()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::OtelAuthConfig`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::OtelAuthConfig`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn api_beamo_otel_auth_writer_config_get(configuration: &configuration::Configuration, params: ApiBeamoOtelAuthWriterConfigGetParams) -> Result> { + + let uri_str = format!("{}/api/beamo/otel/auth/writer/config", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(param_value) = params.x_beam_scope { + req_builder = req_builder.header("X-BEAM-SCOPE", param_value.to_string()); + } + if let Some(param_value) = params.x_beam_gamertag { + req_builder = req_builder.header("X-BEAM-GAMERTAG", param_value.to_string()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::OtelAuthConfig`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::OtelAuthConfig`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/src/apis/default_api.rs b/src/apis/default_api.rs index fc8bfb8..d8488d3 100644 --- a/src/apis/default_api.rs +++ b/src/apis/default_api.rs @@ -789,6 +789,22 @@ pub struct BasicContentManifestChecksumsGetParams { pub x_beam_gamertag: Option } +/// struct for passing parameters to the method [`basic_content_manifest_diffs_get`] +#[derive(Clone, Debug)] +pub struct BasicContentManifestDiffsGetParams { + /// Customer and project scope. This should be in the form of '.'. + pub x_beam_scope: String, + pub manifest_id: String, + /// Override the Gamer Tag of the player. This is generally inferred by the auth token. + pub x_beam_gamertag: Option, + pub from_uid: Option, + pub to_uid: Option, + pub offset: Option, + pub from_date: Option, + pub to_date: Option, + pub limit: Option +} + /// struct for passing parameters to the method [`basic_content_manifest_exact_get`] #[derive(Clone, Debug)] pub struct BasicContentManifestExactGetParams { @@ -4415,6 +4431,14 @@ pub enum BasicContentManifestChecksumsGetError { UnknownValue(serde_json::Value), } +/// struct for typed errors of method [`basic_content_manifest_diffs_get`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum BasicContentManifestDiffsGetError { + Status400(), + UnknownValue(serde_json::Value), +} + /// struct for typed errors of method [`basic_content_manifest_exact_get`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] @@ -10373,6 +10397,74 @@ pub async fn basic_content_manifest_checksums_get(configuration: &configuration: } } +pub async fn basic_content_manifest_diffs_get(configuration: &configuration::Configuration, params: BasicContentManifestDiffsGetParams) -> Result> { + + let uri_str = format!("{}/basic/content/manifest/diffs", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("manifestId", ¶ms.manifest_id.to_string())]); + if let Some(ref param_value) = params.from_uid { + req_builder = req_builder.query(&[("fromUid", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.to_uid { + req_builder = req_builder.query(&[("toUid", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.offset { + req_builder = req_builder.query(&[("offset", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.from_date { + req_builder = req_builder.query(&[("fromDate", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.to_date { + req_builder = req_builder.query(&[("toDate", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.limit { + req_builder = req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + req_builder = req_builder.header("X-BEAM-SCOPE", params.x_beam_scope.to_string()); + if let Some(param_value) = params.x_beam_gamertag { + req_builder = req_builder.header("X-BEAM-GAMERTAG", param_value.to_string()); + } + if let Some(ref apikey) = configuration.api_key { + let key = apikey.key.clone(); + let value = match apikey.prefix { + Some(ref prefix) => format!("{} {}", prefix, key), + None => key, + }; + req_builder = req_builder.header("X-DE-SIGNATURE", value); + }; + if let Some(ref token) = configuration.bearer_access_token { + req_builder = req_builder.bearer_auth(token.to_owned()); + }; + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetManifestDiffsResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetManifestDiffsResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + pub async fn basic_content_manifest_exact_get(configuration: &configuration::Configuration, params: BasicContentManifestExactGetParams) -> Result> { let uri_str = format!("{}/basic/content/manifest/exact", configuration.base_path); @@ -10533,7 +10625,7 @@ pub async fn basic_content_manifest_history_get(configuration: &configuration::C } } -pub async fn basic_content_manifest_post(configuration: &configuration::Configuration, params: BasicContentManifestPostParams) -> Result> { +pub async fn basic_content_manifest_post(configuration: &configuration::Configuration, params: BasicContentManifestPostParams) -> Result> { let uri_str = format!("{}/basic/content/manifest", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -10573,8 +10665,8 @@ pub async fn basic_content_manifest_post(configuration: &configuration::Configur let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ContentBasicManifest`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ContentBasicManifest`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::SaveManifestResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::SaveManifestResponse`")))), } } else { let content = resp.text().await?; diff --git a/src/apis/lobby_api.rs b/src/apis/lobby_api.rs index 8044ef4..47aeb11 100644 --- a/src/apis/lobby_api.rs +++ b/src/apis/lobby_api.rs @@ -137,6 +137,16 @@ pub struct ApiLobbiesPostParams { pub create_lobby: Option } +/// struct for passing parameters to the method [`api_lobbies_put`] +#[derive(Clone, Debug)] +pub struct ApiLobbiesPutParams { + /// Customer and project scope. This should be in the form of '{customerId}.{projectId}'. This is only necessary when not using a JWT bearer token + pub x_beam_scope: Option, + /// Override the playerId of the requester. This is only necessary when not using a JWT bearer token. + pub x_beam_gamertag: Option, + pub lobby: Option +} + /// struct for typed errors of method [`api_lobbies_get`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -208,6 +218,13 @@ pub enum ApiLobbiesPostError { UnknownValue(serde_json::Value), } +/// struct for typed errors of method [`api_lobbies_put`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ApiLobbiesPutError { + UnknownValue(serde_json::Value), +} + /// Query for active lobbies pub async fn api_lobbies_get(configuration: &configuration::Configuration, params: ApiLobbiesGetParams) -> Result> { @@ -636,3 +653,45 @@ pub async fn api_lobbies_post(configuration: &configuration::Configuration, para } } +/// Exposes the internal \"SetLobby\" behavior as an Admin only endpoint +pub async fn api_lobbies_put(configuration: &configuration::Configuration, params: ApiLobbiesPutParams) -> Result> { + + let uri_str = format!("{}/api/lobbies", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + if let Some(param_value) = params.x_beam_scope { + req_builder = req_builder.header("X-BEAM-SCOPE", param_value.to_string()); + } + if let Some(param_value) = params.x_beam_gamertag { + req_builder = req_builder.header("X-BEAM-GAMERTAG", param_value.to_string()); + } + req_builder = req_builder.json(¶ms.lobby); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + let content = resp.text().await?; + match content_type { + ContentType::Json => serde_json::from_str(&content).map_err(Error::from), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::SetLobbyResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::SetLobbyResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/src/apis/mod.rs b/src/apis/mod.rs index 3238a79..b939e5f 100644 --- a/src/apis/mod.rs +++ b/src/apis/mod.rs @@ -113,6 +113,7 @@ impl From<&str> for ContentType { pub mod auth_api; pub mod beamo_api; +pub mod beamo_otel_api; pub mod default_api; pub mod lobby_api; pub mod mailbox_api; diff --git a/src/models/client_manifest_json_response.rs b/src/models/client_manifest_json_response.rs index 87e7596..ab02193 100644 --- a/src/models/client_manifest_json_response.rs +++ b/src/models/client_manifest_json_response.rs @@ -13,20 +13,26 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ClientManifestJsonResponse { - #[serde(rename = "uid", skip_serializing_if = "Option::is_none")] - pub uid: Option, - #[serde(rename = "entries")] - pub entries: Vec, + #[serde(rename = "latestUpdate", skip_serializing_if = "Option::is_none")] + pub latest_update: Option, #[serde(rename = "publisherAccountId", skip_serializing_if = "Option::is_none")] pub publisher_account_id: Option, + #[serde(rename = "entries")] + pub entries: Vec, + #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")] + pub created_at: Option, + #[serde(rename = "uid", skip_serializing_if = "Option::is_none")] + pub uid: Option, } impl ClientManifestJsonResponse { pub fn new(entries: Vec) -> ClientManifestJsonResponse { ClientManifestJsonResponse { - uid: None, - entries, + latest_update: None, publisher_account_id: None, + entries, + created_at: None, + uid: None, } } } diff --git a/src/models/client_manifest_response.rs b/src/models/client_manifest_response.rs index 08f3ee8..653b663 100644 --- a/src/models/client_manifest_response.rs +++ b/src/models/client_manifest_response.rs @@ -15,12 +15,18 @@ use serde::{Deserialize, Serialize}; pub struct ClientManifestResponse { #[serde(rename = "items")] pub items: Vec, + #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")] + pub created_at: Option, + #[serde(rename = "latestUpdate", skip_serializing_if = "Option::is_none")] + pub latest_update: Option, } impl ClientManifestResponse { pub fn new(items: Vec) -> ClientManifestResponse { ClientManifestResponse { items, + created_at: None, + latest_update: None, } } } diff --git a/src/models/content_basic_manifest.rs b/src/models/content_basic_manifest.rs index 9cd5389..8c3d0b0 100644 --- a/src/models/content_basic_manifest.rs +++ b/src/models/content_basic_manifest.rs @@ -15,6 +15,8 @@ use serde::{Deserialize, Serialize}; pub struct ContentBasicManifest { #[serde(rename = "archived", skip_serializing_if = "Option::is_none")] pub archived: Option, + #[serde(rename = "diffObjectKey", skip_serializing_if = "Option::is_none")] + pub diff_object_key: Option, #[serde(rename = "references")] pub references: Vec, #[serde(rename = "publisherAccountId", skip_serializing_if = "Option::is_none")] @@ -23,6 +25,8 @@ pub struct ContentBasicManifest { pub id: String, #[serde(rename = "checksum")] pub checksum: String, + #[serde(rename = "lastChanged", skip_serializing_if = "Option::is_none")] + pub last_changed: Option, #[serde(rename = "uid", skip_serializing_if = "Option::is_none")] pub uid: Option, #[serde(rename = "created")] @@ -33,10 +37,12 @@ impl ContentBasicManifest { pub fn new(references: Vec, id: String, checksum: String, created: i64) -> ContentBasicManifest { ContentBasicManifest { archived: None, + diff_object_key: None, references, publisher_account_id: None, id, checksum, + last_changed: None, uid: None, created, } diff --git a/src/models/get_manifest_diffs_request.rs b/src/models/get_manifest_diffs_request.rs new file mode 100644 index 0000000..08a2b86 --- /dev/null +++ b/src/models/get_manifest_diffs_request.rs @@ -0,0 +1,45 @@ +/* + * Beamable API + * + * Autogenerated Beamable API + * + * The version of the OpenAPI document: 1.0 + * Contact: support@beamable.com + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetManifestDiffsRequest { + #[serde(rename = "manifestId")] + pub manifest_id: String, + #[serde(rename = "fromUid", skip_serializing_if = "Option::is_none")] + pub from_uid: Option, + #[serde(rename = "toUid", skip_serializing_if = "Option::is_none")] + pub to_uid: Option, + #[serde(rename = "offset", skip_serializing_if = "Option::is_none")] + pub offset: Option, + #[serde(rename = "fromDate", skip_serializing_if = "Option::is_none")] + pub from_date: Option, + #[serde(rename = "toDate", skip_serializing_if = "Option::is_none")] + pub to_date: Option, + #[serde(rename = "limit", skip_serializing_if = "Option::is_none")] + pub limit: Option, +} + +impl GetManifestDiffsRequest { + pub fn new(manifest_id: String) -> GetManifestDiffsRequest { + GetManifestDiffsRequest { + manifest_id, + from_uid: None, + to_uid: None, + offset: None, + from_date: None, + to_date: None, + limit: None, + } + } +} + diff --git a/src/models/get_manifest_diffs_response.rs b/src/models/get_manifest_diffs_response.rs new file mode 100644 index 0000000..8e093c3 --- /dev/null +++ b/src/models/get_manifest_diffs_response.rs @@ -0,0 +1,36 @@ +/* + * Beamable API + * + * Autogenerated Beamable API + * + * The version of the OpenAPI document: 1.0 + * Contact: support@beamable.com + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetManifestDiffsResponse { + #[serde(rename = "manifestId")] + pub manifest_id: String, + #[serde(rename = "diffs")] + pub diffs: Vec, + #[serde(rename = "hasMore")] + pub has_more: bool, + #[serde(rename = "totalCount")] + pub total_count: i32, +} + +impl GetManifestDiffsResponse { + pub fn new(manifest_id: String, diffs: Vec, has_more: bool, total_count: i32) -> GetManifestDiffsResponse { + GetManifestDiffsResponse { + manifest_id, + diffs, + has_more, + total_count, + } + } +} + diff --git a/src/models/manifest_diff_summary.rs b/src/models/manifest_diff_summary.rs new file mode 100644 index 0000000..be96d4a --- /dev/null +++ b/src/models/manifest_diff_summary.rs @@ -0,0 +1,33 @@ +/* + * Beamable API + * + * Autogenerated Beamable API + * + * The version of the OpenAPI document: 1.0 + * Contact: support@beamable.com + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ManifestDiffSummary { + #[serde(rename = "manifestUid")] + pub manifest_uid: String, + #[serde(rename = "diffUrl")] + pub diff_url: String, + #[serde(rename = "createdDate")] + pub created_date: i64, +} + +impl ManifestDiffSummary { + pub fn new(manifest_uid: String, diff_url: String, created_date: i64) -> ManifestDiffSummary { + ManifestDiffSummary { + manifest_uid, + diff_url, + created_date, + } + } +} + diff --git a/src/models/mod.rs b/src/models/mod.rs index d970323..85cfb1c 100644 --- a/src/models/mod.rs +++ b/src/models/mod.rs @@ -532,6 +532,10 @@ pub mod get_logs_url_request; pub use self::get_logs_url_request::GetLogsUrlRequest; pub mod get_mail_details_request; pub use self::get_mail_details_request::GetMailDetailsRequest; +pub mod get_manifest_diffs_request; +pub use self::get_manifest_diffs_request::GetManifestDiffsRequest; +pub mod get_manifest_diffs_response; +pub use self::get_manifest_diffs_response::GetManifestDiffsResponse; pub mod get_manifest_history_request; pub use self::get_manifest_history_request::GetManifestHistoryRequest; pub mod get_manifest_history_response; @@ -846,6 +850,8 @@ pub mod make_donation_request; pub use self::make_donation_request::MakeDonationRequest; pub mod make_friendship_request; pub use self::make_friendship_request::MakeFriendshipRequest; +pub mod manifest_diff_summary; +pub use self::manifest_diff_summary::ManifestDiffSummary; pub mod manifest_summary; pub use self::manifest_summary::ManifestSummary; pub mod manifest_view; @@ -924,6 +930,8 @@ pub mod order_rule; pub use self::order_rule::OrderRule; pub mod order_rules; pub use self::order_rules::OrderRules; +pub mod otel_auth_config; +pub use self::otel_auth_config::OtelAuthConfig; pub mod pa_namespace; pub use self::pa_namespace::PaNamespace; pub mod pa_slow_query; @@ -1112,6 +1120,8 @@ pub mod save_game_data_response; pub use self::save_game_data_response::SaveGameDataResponse; pub mod save_manifest_request; pub use self::save_manifest_request::SaveManifestRequest; +pub mod save_manifest_response; +pub use self::save_manifest_response::SaveManifestResponse; pub mod save_skus_request; pub use self::save_skus_request::SaveSkusRequest; pub mod save_text_request; @@ -1200,6 +1210,8 @@ pub mod session_user; pub use self::session_user::SessionUser; pub mod set_content_request; pub use self::set_content_request::SetContentRequest; +pub mod set_lobby_response; +pub use self::set_lobby_response::SetLobbyResponse; pub mod set_presence_status_request; pub use self::set_presence_status_request::SetPresenceStatusRequest; pub mod sku; diff --git a/src/models/otel_auth_config.rs b/src/models/otel_auth_config.rs new file mode 100644 index 0000000..4c3cf30 --- /dev/null +++ b/src/models/otel_auth_config.rs @@ -0,0 +1,36 @@ +/* + * Beamable API + * + * Autogenerated Beamable API + * + * The version of the OpenAPI document: 1.0 + * Contact: support@beamable.com + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct OtelAuthConfig { + #[serde(rename = "endpoint")] + pub endpoint: String, + #[serde(rename = "username")] + pub username: String, + #[serde(rename = "password")] + pub password: String, + #[serde(rename = "expiresAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub expires_at: Option>, +} + +impl OtelAuthConfig { + pub fn new(endpoint: String, username: String, password: String) -> OtelAuthConfig { + OtelAuthConfig { + endpoint, + username, + password, + expires_at: None, + } + } +} + diff --git a/src/models/save_manifest_response.rs b/src/models/save_manifest_response.rs new file mode 100644 index 0000000..6fc8ad4 --- /dev/null +++ b/src/models/save_manifest_response.rs @@ -0,0 +1,39 @@ +/* + * Beamable API + * + * Autogenerated Beamable API + * + * The version of the OpenAPI document: 1.0 + * Contact: support@beamable.com + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SaveManifestResponse { + #[serde(rename = "diffUrl", skip_serializing_if = "Option::is_none")] + pub diff_url: Option, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "checksum")] + pub checksum: String, + #[serde(rename = "uid")] + pub uid: String, + #[serde(rename = "created")] + pub created: i64, +} + +impl SaveManifestResponse { + pub fn new(id: String, checksum: String, uid: String, created: i64) -> SaveManifestResponse { + SaveManifestResponse { + diff_url: None, + id, + checksum, + uid, + created, + } + } +} + diff --git a/src/models/set_lobby_response.rs b/src/models/set_lobby_response.rs new file mode 100644 index 0000000..acdd94b --- /dev/null +++ b/src/models/set_lobby_response.rs @@ -0,0 +1,27 @@ +/* + * Beamable API + * + * Autogenerated Beamable API + * + * The version of the OpenAPI document: 1.0 + * Contact: support@beamable.com + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SetLobbyResponse { + #[serde(rename = "lobbyId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lobby_id: Option>, +} + +impl SetLobbyResponse { + pub fn new() -> SetLobbyResponse { + SetLobbyResponse { + lobby_id: None, + } + } +} +