diff --git a/fern/definition/cloud/common.yml b/fern/definition/cloud/common.yml index 2d029927d6..ac8bf88dcc 100644 --- a/fern/definition/cloud/common.yml +++ b/fern/definition/cloud/common.yml @@ -34,12 +34,8 @@ types: label: docs: The label given to this performance span. type: string - start_ts: - docs: RFC3339 timestamp. - type: datetime - finish_ts: - docs: RFC3339 timestamp. - type: optional + start_ts: commons.Timestamp + finish_ts: optional req_id: type: optional @@ -49,9 +45,7 @@ types: label: docs: The label given to this performance mark. type: string - ts: - docs: RFC3339 timestamp. - type: datetime + ts: commons.Timestamp ray_id: type: optional req_id: @@ -75,9 +69,7 @@ types: type: string region_id: type: uuid - create_ts: - docs: RFC3339 timestamp. - type: datetime + create_ts: commons.Timestamp is_ready: docs: Whether or not this lobby is ready. type: boolean @@ -124,15 +116,9 @@ types: type: string region_id: type: uuid - create_ts: - docs: RFC3339 timestamp. - type: datetime - start_ts: - docs: RFC3339 timestamp. - type: optional - ready_ts: - docs: RFC3339 timestamp. - type: optional + create_ts: commons.Timestamp + start_ts: optional + ready_ts: optional status: LogsLobbyStatus LogsLobbyStatus: @@ -144,7 +130,7 @@ types: LogsLobbyStatusStopped: docs: The status of a stopped lobby. properties: - stop_ts: datetime + stop_ts: commons.Timestamp failed: type: boolean docs: Whether or not the lobby failed or stopped successfully. @@ -189,12 +175,8 @@ types: properties: upload_id: type: uuid - display_name: - docs: Represent a resource's readable display name. - type: string - create_ts: - docs: RFC3339 timestamp. - type: datetime + display_name: commons.DisplayName + create_ts: commons.Timestamp url: docs: >- The URL of this custom avatar image. Only present if upload is @@ -214,12 +196,8 @@ types: type: uuid upload_id: type: uuid - display_name: - docs: Represent a resource's readable display name. - type: string - create_ts: - docs: RFC3339 timestamp. - type: datetime + display_name: commons.DisplayName + create_ts: commons.Timestamp content_length: docs: Unsigned 64 bit integer. type: long @@ -234,12 +212,8 @@ types: type: uuid upload_id: type: uuid - display_name: - docs: Represent a resource's readable display name. - type: string - create_ts: - docs: RFC3339 timestamp. - type: datetime + display_name: commons.DisplayName + create_ts: commons.Timestamp content_length: docs: Unsigned 64 bit integer. type: long @@ -252,9 +226,7 @@ types: properties: game_id: type: uuid - create_ts: - docs: RFC3339 timestamp. - type: datetime + create_ts: commons.Timestamp name_id: docs: >- A human readable short identifier used to references resources. @@ -264,9 +236,7 @@ types: include special characters and be short. type: string - display_name: - docs: Represent a resource's readable display name. - type: string + display_name: commons.DisplayName developer_group_id: type: uuid total_player_count: @@ -293,12 +263,8 @@ types: properties: namespace_id: type: uuid - create_ts: - docs: RFC3339 timestamp. - type: datetime - display_name: - docs: Represent a resource's readable display name. - type: string + create_ts: commons.Timestamp + display_name: commons.DisplayName version_id: type: uuid name_id: @@ -331,12 +297,8 @@ types: universal_region: docs: A universal region label given to this region. type: UniversalRegion - provider_display_name: - docs: Represent a resource's readable display name. - type: string - region_display_name: - docs: Represent a resource's readable display name. - type: string + provider_display_name: commons.DisplayName + region_display_name: commons.DisplayName GameLobbyExpenses: docs: Game lobby expenses. @@ -470,12 +432,8 @@ types: properties: namespace_id: type: uuid - create_ts: - docs: RFC3339 timestamp. - type: datetime - display_name: - docs: Represent a resource's readable display name. - type: string + create_ts: commons.Timestamp + display_name: commons.DisplayName version_id: type: uuid name_id: @@ -557,9 +515,7 @@ types: domain: docs: A valid domain name (no protocol). type: string - create_ts: - docs: RFC3339 timestamp. - type: datetime + create_ts: commons.Timestamp verification_status: CdnNamespaceDomainVerificationStatus verification_method: CdnNamespaceDomainVerificationMethod verification_errors: list @@ -604,6 +560,4 @@ types: version_id: docs: A universally unique identifier. type: string - deploy_ts: - docs: RFC3339 timestamp. - type: datetime + deploy_ts: commons.Timestamp diff --git a/fern/definition/cloud/games/builds.yml b/fern/definition/cloud/games/builds.yml index 50ef5c0ec5..1b1a5abc21 100644 --- a/fern/definition/cloud/games/builds.yml +++ b/fern/definition/cloud/games/builds.yml @@ -1,6 +1,7 @@ # yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json imports: + commons: ../../common.yml uploadCommons: ../../upload/common.yml cloudCommons: ../../cloud/common.yml @@ -34,9 +35,7 @@ types: CreateGameBuildRequest: properties: - display_name: - docs: Represent a resource's readable display name. - type: string + display_name: commons.DisplayName image_tag: docs: A tag given to the game build. type: string diff --git a/fern/definition/cloud/games/cdn.yml b/fern/definition/cloud/games/cdn.yml index 05e97d3de0..8f7c0acf94 100644 --- a/fern/definition/cloud/games/cdn.yml +++ b/fern/definition/cloud/games/cdn.yml @@ -1,6 +1,7 @@ # yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json imports: + commons: ../../common.yml uploadCommons: ../../upload/common.yml cloudCommons: ../../cloud/common.yml @@ -33,9 +34,7 @@ types: CreateGameCdnSiteRequest: properties: - display_name: - docs: Represent a resource's readable display name. - type: string + display_name: commons.DisplayName files: docs: A list of files preparing to upload. type: list diff --git a/fern/definition/cloud/games/games.yml b/fern/definition/cloud/games/games.yml index 1f47c90437..a2c08f6e7f 100644 --- a/fern/definition/cloud/games/games.yml +++ b/fern/definition/cloud/games/games.yml @@ -116,17 +116,8 @@ types: name_id: docs: >- **Deprecated** - - A human readable short identifier used to references resources. - Different than a `rivet.common#Uuid` because this is intended to be - human readable. - Different than `rivet.common#DisplayName` because this should not - include special - characters and be short. - type: optional - display_name: - docs: Represent a resource's readable display name. - type: string + type: optional + display_name: commons.DisplayName developer_group_id: type: uuid @@ -137,9 +128,7 @@ types: ValidateGameRequest: properties: - display_name: - docs: Represent a resource's readable display name. - type: string + display_name: commons.DisplayName name_id: docs: >- **Deprecated** diff --git a/fern/definition/cloud/games/namespaces/__package__.yml b/fern/definition/cloud/games/namespaces/__package__.yml index 95bb7c1417..ed6d0e1471 100644 --- a/fern/definition/cloud/games/namespaces/__package__.yml +++ b/fern/definition/cloud/games/namespaces/__package__.yml @@ -226,9 +226,7 @@ types: CreateGameNamespaceRequest: properties: - display_name: - docs: Represent a resource's readable display name. - type: string + display_name: commons.DisplayName version_id: type: uuid name_id: @@ -248,9 +246,7 @@ types: ValidateGameNamespaceRequest: properties: - display_name: - docs: Represent a resource's readable display name. - type: string + display_name: commons.DisplayName name_id: docs: >- A human readable short identifier used to references resources. diff --git a/fern/definition/cloud/games/namespaces/logs.yml b/fern/definition/cloud/games/namespaces/logs.yml index 23762737de..bb353708f3 100644 --- a/fern/definition/cloud/games/namespaces/logs.yml +++ b/fern/definition/cloud/games/namespaces/logs.yml @@ -1,6 +1,7 @@ # yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json imports: + commons: ../../../common.yml localCommons: ../../common.yml service: @@ -22,7 +23,7 @@ service: query-parameters: before_create_ts: docs: Returns lobbies created before this timestamp. - type: optional + type: optional response: ListNamespaceLobbiesResponse getNamespaceLobby: diff --git a/fern/definition/cloud/games/versions.yml b/fern/definition/cloud/games/versions.yml index 943e6a92ef..5fb0dc8eb6 100644 --- a/fern/definition/cloud/games/versions.yml +++ b/fern/definition/cloud/games/versions.yml @@ -46,9 +46,7 @@ service: types: CreateGameVersionRequest: properties: - display_name: - docs: Represent a resource's readable display name. - type: string + display_name: commons.DisplayName config: version.Config CreateGameVersionResponse: @@ -58,13 +56,11 @@ types: ReserveVersionNameResponse: properties: - version_display_name: string + version_display_name: commons.DisplayName ValidateGameVersionRequest: properties: - display_name: - docs: Represent a resource's readable display name. - type: string + display_name: commons.DisplayName config: version.Config ValidateGameVersionResponse: diff --git a/fern/definition/cloud/groups.yml b/fern/definition/cloud/groups.yml index e2cc008493..32f5c8139d 100644 --- a/fern/definition/cloud/groups.yml +++ b/fern/definition/cloud/groups.yml @@ -19,9 +19,7 @@ service: types: ValidateGroupRequest: properties: - display_name: - docs: Represent a resource's readable display name. - type: string + display_name: commons.DisplayName ValidateGroupResponse: properties: diff --git a/fern/definition/cloud/version/__package__.yml b/fern/definition/cloud/version/__package__.yml index b1310c0ed3..5b0056eee2 100644 --- a/fern/definition/cloud/version/__package__.yml +++ b/fern/definition/cloud/version/__package__.yml @@ -1,7 +1,8 @@ # yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json imports: - commons: ../common.yml + commons: ../../common.yml + cloudCommons: ../common.yml engine: engine/__package__.yml cdn: cdn/__package__.yml matchmaker: matchmaker/__package__.yml @@ -24,12 +25,8 @@ types: properties: version_id: type: uuid - create_ts: - docs: RFC3339 timestamp. - type: datetime - display_name: - docs: Represent a resource's readable display name. - type: string + create_ts: commons.Timestamp + display_name: commons.DisplayName config: Config Summary: @@ -37,9 +34,5 @@ types: properties: version_id: type: uuid - create_ts: - docs: RFC3339 timestamp. - type: datetime - display_name: - docs: Represent a resource's readable display name. - type: string + create_ts: commons.Timestamp + display_name: commons.DisplayName diff --git a/fern/definition/cloud/version/identity/__package__.yml b/fern/definition/cloud/version/identity/__package__.yml index 68b0ceb734..0d12de2909 100644 --- a/fern/definition/cloud/version/identity/__package__.yml +++ b/fern/definition/cloud/version/identity/__package__.yml @@ -1,7 +1,8 @@ # yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json imports: - commons: ../../common.yml + commons: ../../../common.yml + cloudCommons: ../../common.yml types: Config: @@ -30,7 +31,7 @@ types: CustomDisplayName: properties: - display_name: string + display_name: commons.DisplayName CustomAvatar: properties: diff --git a/fern/definition/common.yml b/fern/definition/common.yml index 90b3f2dc93..9eb715763a 100644 --- a/fern/definition/common.yml +++ b/fern/definition/common.yml @@ -70,7 +70,9 @@ types: Index indicating the version of the data responded. Pass this to `WatchQuery` to block and wait for the next response. - DisplayName: string + DisplayName: + docs: Represent a resource's readable display name. + type: string AccountNumber: integer diff --git a/fern/definition/game/common.yml b/fern/definition/game/common.yml index bd32f9787b..6a700a6692 100644 --- a/fern/definition/game/common.yml +++ b/fern/definition/game/common.yml @@ -48,9 +48,7 @@ types: include special characters and be short. type: string - display_name: - docs: Represent a resource's readable display name. - type: string + display_name: commons.DisplayName logo_url: docs: The URL of this game's logo image. type: optional @@ -83,9 +81,7 @@ types: PlatformLink: docs: A platform link denoting a supported platform. properties: - display_name: - docs: Represent a resource's readable display name. - type: string + display_name: commons.DisplayName url: docs: The URL to the given game's method of distribution on this platform. type: string @@ -93,9 +89,7 @@ types: LeaderboardCategory: docs: A game leaderboard category. properties: - display_name: - docs: Represent a resource's readable display name. - type: string + display_name: commons.DisplayName StatSummary: docs: A game statistic summary. diff --git a/fern/definition/group/__package__.yml b/fern/definition/group/__package__.yml index cfa8fce9b5..25fcaeb5cf 100644 --- a/fern/definition/group/__package__.yml +++ b/fern/definition/group/__package__.yml @@ -245,9 +245,7 @@ types: CreateRequest: properties: - display_name: - docs: Represent a resource's readable display name. - type: string + display_name: commons.DisplayName CreateResponse: properties: @@ -274,12 +272,8 @@ types: ValidateProfileRequest: properties: - display_name: - docs: Represent a resource's readable display name. - type: optional - bio: - docs: Detailed information about a profile. - type: optional + display_name: optional + bio: optional publicity: optional ValidateProfileResponse: @@ -332,9 +326,7 @@ types: UpdateProfileRequest: properties: - display_name: - docs: Represent a resource's readable display name. - type: optional + display_name: optional bio: docs: Detailed information about a profile. type: optional diff --git a/fern/definition/group/common.yml b/fern/definition/group/common.yml index c6e86ad231..d95ee1dd42 100644 --- a/fern/definition/group/common.yml +++ b/fern/definition/group/common.yml @@ -72,9 +72,7 @@ types: properties: group_id: type: uuid - display_name: - docs: Represent a resource's readable display name. - type: string + display_name: commons.DisplayName avatar_url: docs: The URL of this group's avatar image. type: optional @@ -110,6 +108,4 @@ types: docs: A banned identity. properties: identity: identityCommons.Handle - ban_ts: - docs: RFC3339 timestamp. - type: datetime + ban_ts: commons.Timestamp diff --git a/fern/definition/identity/__package__.yml b/fern/definition/identity/__package__.yml index 727f3bd4c9..b5ba477129 100644 --- a/fern/definition/identity/__package__.yml +++ b/fern/definition/identity/__package__.yml @@ -307,7 +307,6 @@ types: SetupResponse: properties: identity_token: - type: commons.JWT docs: | Token used to authenticate the identity. Should be stored somewhere permanent. @@ -317,14 +316,12 @@ types: If this happens, the user can recover their account through the linking process (see `rivet.api.identity#PrepareGameLink`). This token should be stored locally and never sent to a server or another device. If this token is compromised, anyone with access to this token has control of the identity. - identity_token_expire_ts: - type: datetime - docs: | - If this token is compromised, anyone with access to this token has control of the identity. + type: commons.JWT + identity_token_expire_ts: commons.Timestamp identity: - type: identityCommons.Profile docs: | Information about the identity that was just authenticated. + type: identityCommons.Profile game_id: uuid GetProfileResponse: diff --git a/fern/definition/identity/common.yml b/fern/definition/identity/common.yml index a557a2fddb..49eb072b06 100644 --- a/fern/definition/identity/common.yml +++ b/fern/definition/identity/common.yml @@ -145,7 +145,7 @@ types: requestee's identity. type: boolean is_mutual_following: boolean - join_ts: datetime + join_ts: commons.Timestamp bio: commons.Bio linked_accounts: list groups: list @@ -169,7 +169,7 @@ types: Presence: docs: Information about the identity's current status, party, and active game. properties: - update_ts: datetime + update_ts: commons.Timestamp status: Status game_activity: optional diff --git a/fern/definition/identity/links.yml b/fern/definition/identity/links.yml index 060fea4e17..9d5329f84a 100644 --- a/fern/definition/identity/links.yml +++ b/fern/definition/identity/links.yml @@ -64,8 +64,7 @@ types: minutes. identity_link_url: type: string - expire_ts: - type: datetime + expire_ts: commons.Timestamp GetGameLinkResponse: properties: @@ -78,7 +77,7 @@ types: GetGameLinkNewIdentity: properties: identity_token: commons.JWT - identity_token_expire_ts: datetime + identity_token_expire_ts: commons.Timestamp identity: identityCommons.Profile CompleteGameLinkRequest: diff --git a/fern/definition/matchmaker/common.yml b/fern/definition/matchmaker/common.yml index 2a32505a48..df44b90bd6 100644 --- a/fern/definition/matchmaker/common.yml +++ b/fern/definition/matchmaker/common.yml @@ -26,8 +26,8 @@ types: docs: A region that the player can connect to. properties: region_id: commons.Identifier - provider_display_name: string - region_display_name: string + provider_display_name: commons.DisplayName + region_display_name: commons.DisplayName datacenter_coord: geoCommons.Coord datacenter_distance_from_client: geoCommons.Distance diff --git a/lib/bolt/core/src/context/service.rs b/lib/bolt/core/src/context/service.rs index 8432b4aa66..b398eb9b7e 100644 --- a/lib/bolt/core/src/context/service.rs +++ b/lib/bolt/core/src/context/service.rs @@ -814,18 +814,6 @@ impl ServiceContextData { env.push(("RIVET_ORIGIN_API".into(), project_ctx.origin_api())); env.push(("RIVET_ORIGIN_HUB".into(), project_ctx.origin_hub())); - // DNS - if let Some(dns) = &project_ctx.ns().dns { - if let Some(provider) = &dns.provider { - env.push(( - "RIVET_DNS_PROVIDER".into(), - match provider { - config::ns::DnsProvider::Cloudflare { .. } => "cloudflare".into(), - }, - )); - } - } - // Pools if !project_ctx.ns().pools.is_empty() { env.push(("RIVET_HAS_POOLS".into(), "1".into())); @@ -852,19 +840,28 @@ impl ServiceContextData { )); } - if project_ctx.ns().dns.is_some() { - let dns = terraform::output::read_dns(&project_ctx).await; + // DNS + if let Some(dns) = &project_ctx.ns().dns { + match &dns.provider { + Some(config::ns::DnsProvider::Cloudflare { account_id, .. }) => { + env.push(("RIVET_DNS_PROVIDER".into(), "cloudflare".into())); + env.push(("CLOUDFLARE_ACCOUNT_ID".into(), account_id.clone())); + } + None => {} + } + + let dns_output = terraform::output::read_dns(&project_ctx).await; env.push(( - "CLOUDFLARE_ZONE_ID_BASE".into(), - (*dns.cloudflare_zone_ids).main.clone(), + "CLOUDFLARE_ZONE_ID_MAIN".into(), + (*dns_output.cloudflare_zone_ids).main.clone(), )); env.push(( "CLOUDFLARE_ZONE_ID_GAME".into(), - (*dns.cloudflare_zone_ids).cdn.clone(), + (*dns_output.cloudflare_zone_ids).cdn.clone(), )); env.push(( "CLOUDFLARE_ZONE_ID_JOB".into(), - (*dns.cloudflare_zone_ids).job.clone(), + (*dns_output.cloudflare_zone_ids).job.clone(), )); } @@ -1204,13 +1201,20 @@ impl ServiceContextData { } } - if project_ctx.ns().dns.is_some() && self.depends_on_cloudflare() { - env.push(( - "CLOUDFLARE_AUTH_TOKEN".into(), - project_ctx - .read_secret(&["cloudflare", "terraform", "auth_token"]) - .await?, - )); + if let Some(dns) = &project_ctx.ns().dns { + match &dns.provider { + Some(config::ns::DnsProvider::Cloudflare { .. }) => { + if self.depends_on_cloudflare() { + env.push(( + "CLOUDFLARE_AUTH_TOKEN".into(), + project_ctx + .read_secret(&["cloudflare", "terraform", "auth_token"]) + .await?, + )); + } + } + None => {} + } } Ok(env) diff --git a/lib/bolt/core/src/dep/terraform/cli.rs b/lib/bolt/core/src/dep/terraform/cli.rs index a4dce8c15f..ecbf7bc262 100644 --- a/lib/bolt/core/src/dep/terraform/cli.rs +++ b/lib/bolt/core/src/dep/terraform/cli.rs @@ -59,10 +59,7 @@ pub async fn init_if_needed_quiet(ctx: &ProjectContext, plan_id: &str, quiet: bo .read_secret(&["terraform", "pg_backend", "conn_str"]) .await .unwrap(); - vec![ - format!("-backend-config=conn_str={tf_conn_str}"), - "-reconfigure".to_string(), - ] + vec![format!("-backend-config=conn_str={tf_conn_str}")] } }; diff --git a/lib/bolt/core/src/dep/terraform/gen.rs b/lib/bolt/core/src/dep/terraform/gen.rs index ca47754386..2aca692a3d 100644 --- a/lib/bolt/core/src/dep/terraform/gen.rs +++ b/lib/bolt/core/src/dep/terraform/gen.rs @@ -41,20 +41,13 @@ pub async fn project(ctx: &ProjectContext) { pub async fn gen_bolt_tf(ctx: &ProjectContext, plan_id: &str) -> Result<()> { // Configure the backend let backend = match ctx.ns().terraform.backend { - ns::TerraformBackend::Local {} => indoc!( - r#" - terraform { - backend "local" {} - } - "# - ) - .to_string(), + ns::TerraformBackend::Local {} => String::new(), ns::TerraformBackend::Postgres {} => indoc!( - r#" + " terraform { - backend "pg" {} + backend \"pg\" {} } - "# + " ) .to_string(), }; @@ -336,6 +329,12 @@ async fn vars(ctx: &ProjectContext) { "name": domain_main_api, })); + // OGS + extra_dns.push(json!({ + "zone_name": "main", + "name": format!("*.ogs.{domain_main}"), + })); + // Add services for svc_ctx in all_svc { if let Some(router) = svc_ctx.config().kind.router() { diff --git a/lib/claims/src/lib.rs b/lib/claims/src/lib.rs index 5e2bc2feb1..2a6614cc1f 100644 --- a/lib/claims/src/lib.rs +++ b/lib/claims/src/lib.rs @@ -703,7 +703,10 @@ fn decode_proto( let mut iter = message.rsplit('.'); let (claims, header) = match (iter.next(), iter.next(), iter.next()) { (Some(claims), Some(header), None) => (claims, { - let decoded = base64::decode_config(header, base64::URL_SAFE_NO_PAD)?; + let decoded = match base64::decode_config(header, base64::URL_SAFE_NO_PAD) { + Ok(decoded) => decoded, + Err(err) => bail_with!(TOKEN_INVALID, reason = err), + }; let s = String::from_utf8(decoded)?; serde_json::from_str::(&s)? }), @@ -718,7 +721,10 @@ fn decode_proto( bail_with!(TOKEN_INVALID, reason = "invalid signature"); } - let claims_buf = base64::decode_config(&claims, base64::URL_SAFE_NO_PAD)?; + let claims_buf = match base64::decode_config(&claims, base64::URL_SAFE_NO_PAD) { + Ok(claims_buf) => claims_buf, + Err(err) => bail_with!(TOKEN_INVALID, reason = err), + }; let claims = schema::Claims::decode(claims_buf.as_slice())?; Ok(validate(&claims).map(|_| claims)) diff --git a/lib/convert/src/impls/cloud/mod.rs b/lib/convert/src/impls/cloud/mod.rs index fde4bf5dfe..3e4b87fc91 100644 --- a/lib/convert/src/impls/cloud/mod.rs +++ b/lib/convert/src/impls/cloud/mod.rs @@ -171,46 +171,6 @@ impl ApiTryFrom for backend::upload::PrepareFile { } } -impl ApiFrom for models::ValidationError { - fn api_from(value: team::validate::response::Error) -> models::ValidationError { - models::ValidationError { path: value.path } - } -} - -impl ApiFrom for models::ValidationError { - fn api_from(value: game::validate::response::Error) -> models::ValidationError { - models::ValidationError { path: value.path } - } -} - -impl ApiFrom for models::ValidationError { - fn api_from(value: game::namespace_validate::response::Error) -> models::ValidationError { - models::ValidationError { path: value.path } - } -} - -impl ApiFrom for models::ValidationError { - fn api_from(value: game::version_validate::response::Error) -> models::ValidationError { - models::ValidationError { path: value.path } - } -} - -impl ApiFrom for models::ValidationError { - fn api_from( - value: game::token_development_validate::response::Error, - ) -> models::ValidationError { - models::ValidationError { path: value.path } - } -} - -impl ApiFrom for models::ValidationError { - fn api_from( - value: mm_config::namespace_config_validate::response::Error, - ) -> models::ValidationError { - models::ValidationError { path: value.path } - } -} - impl ApiTryFrom for models::CloudRegionTier { type Error = GlobalError; diff --git a/lib/convert/src/impls/group.rs b/lib/convert/src/impls/group.rs index e7003a3a30..d34ee99238 100644 --- a/lib/convert/src/impls/group.rs +++ b/lib/convert/src/impls/group.rs @@ -24,12 +24,6 @@ impl ApiFrom for backend::team::Publicity { } } -impl ApiFrom for models::ValidationError { - fn api_from(value: team::profile_validate::response::Error) -> models::ValidationError { - models::ValidationError { path: value.path } - } -} - impl ApiFrom for new_models::GroupPublicity { fn api_from(value: backend::team::Publicity) -> new_models::GroupPublicity { match value { diff --git a/lib/convert/src/impls/identity.rs b/lib/convert/src/impls/identity.rs index ac2284c2fa..12a2ae2892 100644 --- a/lib/convert/src/impls/identity.rs +++ b/lib/convert/src/impls/identity.rs @@ -31,12 +31,6 @@ impl ApiTryFrom for models::IdentityLinkedAcco } } -impl ApiFrom for models::ValidationError { - fn api_from(value: user::profile_validate::response::Error) -> models::ValidationError { - models::ValidationError { path: value.path } - } -} - impl ApiFrom for models::IdentityGameLinkStatus { fn api_from(value: game_user::link_get::response::GameUserLinkStatus) -> Self { match value { diff --git a/lib/convert/src/impls/mod.rs b/lib/convert/src/impls/mod.rs index 5faad8a20c..9bb4404c0a 100644 --- a/lib/convert/src/impls/mod.rs +++ b/lib/convert/src/impls/mod.rs @@ -1,3 +1,10 @@ +use proto::common; +use rivet_api::models as new_models; +use rivet_group_server::models; +use rivet_operation::prelude::*; + +use crate::ApiFrom; + pub mod api; pub mod cloud; pub mod group; @@ -6,6 +13,18 @@ pub mod kv; pub mod portal; pub mod user; +impl ApiFrom for new_models::ValidationError { + fn api_from(value: common::ValidationError) -> new_models::ValidationError { + new_models::ValidationError { path: value.path } + } +} + +impl ApiFrom for models::ValidationError { + fn api_from(value: common::ValidationError) -> models::ValidationError { + models::ValidationError { path: value.path } + } +} + // Reimplement conversions for ease of use in this module mod num { use crate::ApiTryFrom; diff --git a/lib/global-error/src/error.rs b/lib/global-error/src/error.rs index 4059f2b115..4badd225e2 100644 --- a/lib/global-error/src/error.rs +++ b/lib/global-error/src/error.rs @@ -84,7 +84,7 @@ impl GlobalError { } pub fn bad_request_builder(code: &'static str) -> BadRequestBuilder { - BadRequestBuilder::new().code(code) + BadRequestBuilder::new(code) } /// Matches this error against a `formatted_error::code` variant. @@ -186,24 +186,19 @@ impl From for chirp::response::Err { #[derive(Default)] pub struct BadRequestBuilder { - code: Option<&'static str>, + code: &'static str, context: Option>, metadata: Option, } impl BadRequestBuilder { - pub fn new() -> BadRequestBuilder { + pub fn new(code: &'static str) -> BadRequestBuilder { BadRequestBuilder { + code, ..Default::default() } } - pub fn code(mut self, code: &'static str) -> BadRequestBuilder { - self.code = Some(code); - - self - } - pub fn context(mut self, context: HashMap) -> BadRequestBuilder { self.context = Some(context); @@ -217,18 +212,11 @@ impl BadRequestBuilder { } pub fn build(self) -> GlobalError { - match self.build_inner() { - Ok(err) => err, - Err(err) => err, - } - } - - fn build_inner(self) -> GlobalResult { - Ok(GlobalError::BadRequest { - code: self.code.ok_or(BadRequestBuilderError)?.to_string(), + GlobalError::BadRequest { + code: self.code.to_string(), context: self.context.unwrap_or_else(HashMap::new), metadata: self.metadata.map(|m| m.to_string()), - }) + } } } diff --git a/lib/util/env/src/lib.rs b/lib/util/env/src/lib.rs index 7200ff1021..034014e633 100644 --- a/lib/util/env/src/lib.rs +++ b/lib/util/env/src/lib.rs @@ -182,6 +182,7 @@ pub mod cloudflare { lazy_static::lazy_static! { static ref CLOUDFLARE_AUTH_TOKEN: Option = std::env::var("CLOUDFLARE_AUTH_TOKEN").ok(); + static ref CLOUDFLARE_ACCOUNT_ID: Option = std::env::var("CLOUDFLARE_ACCOUNT_ID").ok(); } pub fn auth_token() -> &'static str { @@ -194,10 +195,20 @@ pub mod cloudflare { } } + pub fn account_id() -> &'static str { + match &*CLOUDFLARE_ACCOUNT_ID { + Some(x) => x.as_str(), + None => panic!( + "{}", + EnvVarError::Missing("CLOUDFLARE_ACCOUNT_ID".to_string()) + ), + } + } + pub mod zone { - pub mod base { + pub mod main { lazy_static::lazy_static! { - static ref ID: Option = std::env::var("CLOUDFLARE_ZONE_ID_BASE").ok(); + static ref ID: Option = std::env::var("CLOUDFLARE_ZONE_ID_MAIN").ok(); } pub fn id() -> Option<&'static str> { diff --git a/proto/common.proto b/proto/common.proto index a86f6a5a49..c086678c08 100644 --- a/proto/common.proto +++ b/proto/common.proto @@ -19,3 +19,7 @@ message Glob { repeated Token tokens = 1; } + +message ValidationError { + repeated string path = 1; +} diff --git a/sdks/full/go/client/client.go b/sdks/full/go/client/client.go index 93143d6fe0..b06d8e9b78 100644 --- a/sdks/full/go/client/client.go +++ b/sdks/full/go/client/client.go @@ -13,7 +13,6 @@ import ( jobclient "sdk/job/client" kvclient "sdk/kv/client" matchmakerclient "sdk/matchmaker/client" - moduleclient "sdk/module/client" portalclient "sdk/portal/client" ) @@ -27,7 +26,6 @@ type Client struct { Group *groupclient.Client Identity *identityclient.Client Kv *kvclient.Client - Module *moduleclient.Client Auth *authclient.Client Job *jobclient.Client Matchmaker *matchmakerclient.Client @@ -48,7 +46,6 @@ func NewClient(opts ...core.ClientOption) *Client { Group: groupclient.NewClient(opts...), Identity: identityclient.NewClient(opts...), Kv: kvclient.NewClient(opts...), - Module: moduleclient.NewClient(opts...), Auth: authclient.NewClient(opts...), Job: jobclient.NewClient(opts...), Matchmaker: matchmakerclient.NewClient(opts...), diff --git a/sdks/full/go/cloud/games/builds.go b/sdks/full/go/cloud/games/builds.go index aad35359aa..5fe49326cb 100644 --- a/sdks/full/go/cloud/games/builds.go +++ b/sdks/full/go/cloud/games/builds.go @@ -6,14 +6,14 @@ import ( json "encoding/json" fmt "fmt" uuid "github.com/google/uuid" + sdk "sdk" cloud "sdk/cloud" core "sdk/core" upload "sdk/upload" ) type CreateGameBuildRequest struct { - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` + DisplayName sdk.DisplayName `json:"display_name"` // A tag given to the game build. ImageTag string `json:"image_tag"` ImageFile *upload.PrepareFile `json:"image_file,omitempty"` diff --git a/sdks/full/go/cloud/games/cdn.go b/sdks/full/go/cloud/games/cdn.go index c5eaf3a7f9..b7c2bcbe6b 100644 --- a/sdks/full/go/cloud/games/cdn.go +++ b/sdks/full/go/cloud/games/cdn.go @@ -6,14 +6,14 @@ import ( json "encoding/json" fmt "fmt" uuid "github.com/google/uuid" + sdk "sdk" cloud "sdk/cloud" core "sdk/core" upload "sdk/upload" ) type CreateGameCdnSiteRequest struct { - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` + DisplayName sdk.DisplayName `json:"display_name"` // A list of files preparing to upload. Files []*upload.PrepareFile `json:"files,omitempty"` diff --git a/sdks/full/go/cloud/games/games.go b/sdks/full/go/cloud/games/games.go index 2c0f7f69c9..69f9229068 100644 --- a/sdks/full/go/cloud/games/games.go +++ b/sdks/full/go/cloud/games/games.go @@ -26,11 +26,9 @@ type GetGamesRequest struct { type CreateGameRequest struct { // **Deprecated** - // A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. - NameId *string `json:"name_id,omitempty"` - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` - DeveloperGroupId uuid.UUID `json:"developer_group_id"` + NameId *sdk.Identifier `json:"name_id,omitempty"` + DisplayName sdk.DisplayName `json:"display_name"` + DeveloperGroupId uuid.UUID `json:"developer_group_id"` _rawJSON json.RawMessage } @@ -279,8 +277,7 @@ func (g *GetGamesResponse) String() string { } type ValidateGameRequest struct { - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` + DisplayName sdk.DisplayName `json:"display_name"` // **Deprecated** // A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. NameId *string `json:"name_id,omitempty"` diff --git a/sdks/full/go/cloud/games/namespaces/logs.go b/sdks/full/go/cloud/games/namespaces/logs.go index 301afaefd3..6e30530a72 100644 --- a/sdks/full/go/cloud/games/namespaces/logs.go +++ b/sdks/full/go/cloud/games/namespaces/logs.go @@ -5,14 +5,14 @@ package namespaces import ( json "encoding/json" fmt "fmt" + sdk "sdk" cloud "sdk/cloud" core "sdk/core" - time "time" ) type ListNamespaceLobbiesRequest struct { // Returns lobbies created before this timestamp. - BeforeCreateTs *time.Time `json:"-"` + BeforeCreateTs *sdk.Timestamp `json:"-"` } type GetNamespaceLobbyResponse struct { diff --git a/sdks/full/go/cloud/games/namespaces/logs/client.go b/sdks/full/go/cloud/games/namespaces/logs/client.go index 4fd6489008..9bf34ceb8d 100644 --- a/sdks/full/go/cloud/games/namespaces/logs/client.go +++ b/sdks/full/go/cloud/games/namespaces/logs/client.go @@ -15,7 +15,6 @@ import ( sdk "sdk" namespaces "sdk/cloud/games/namespaces" core "sdk/core" - time "time" ) type Client struct { @@ -46,7 +45,7 @@ func (c *Client) ListNamespaceLobbies(ctx context.Context, gameId uuid.UUID, nam queryParams := make(url.Values) if request.BeforeCreateTs != nil { - queryParams.Add("before_create_ts", fmt.Sprintf("%v", request.BeforeCreateTs.Format(time.RFC3339))) + queryParams.Add("before_create_ts", fmt.Sprintf("%v", *request.BeforeCreateTs)) } if len(queryParams) > 0 { endpointURL += "?" + queryParams.Encode() diff --git a/sdks/full/go/cloud/games/namespaces/namespaces.go b/sdks/full/go/cloud/games/namespaces/namespaces.go index 19d7fe3ae2..5461d7a207 100644 --- a/sdks/full/go/cloud/games/namespaces/namespaces.go +++ b/sdks/full/go/cloud/games/namespaces/namespaces.go @@ -43,9 +43,8 @@ func (a *AddNamespaceDomainRequest) String() string { } type CreateGameNamespaceRequest struct { - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` - VersionId uuid.UUID `json:"version_id"` + DisplayName sdk.DisplayName `json:"display_name"` + VersionId uuid.UUID `json:"version_id"` // A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. NameId string `json:"name_id"` @@ -476,8 +475,7 @@ func (v *ValidateGameNamespaceMatchmakerConfigResponse) String() string { } type ValidateGameNamespaceRequest struct { - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` + DisplayName sdk.DisplayName `json:"display_name"` // A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. NameId string `json:"name_id"` diff --git a/sdks/full/go/cloud/games/versions.go b/sdks/full/go/cloud/games/versions.go index b61f4e949d..a7b3fde48a 100644 --- a/sdks/full/go/cloud/games/versions.go +++ b/sdks/full/go/cloud/games/versions.go @@ -12,8 +12,7 @@ import ( ) type CreateGameVersionRequest struct { - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` + DisplayName sdk.DisplayName `json:"display_name"` Config *version.Config `json:"config,omitempty"` _rawJSON json.RawMessage @@ -101,7 +100,7 @@ func (g *GetGameVersionByIdResponse) String() string { } type ReserveVersionNameResponse struct { - VersionDisplayName string `json:"version_display_name"` + VersionDisplayName sdk.DisplayName `json:"version_display_name"` _rawJSON json.RawMessage } @@ -130,8 +129,7 @@ func (r *ReserveVersionNameResponse) String() string { } type ValidateGameVersionRequest struct { - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` + DisplayName sdk.DisplayName `json:"display_name"` Config *version.Config `json:"config,omitempty"` _rawJSON json.RawMessage diff --git a/sdks/full/go/cloud/groups.go b/sdks/full/go/cloud/groups.go index 7e51542296..4d04db5a06 100644 --- a/sdks/full/go/cloud/groups.go +++ b/sdks/full/go/cloud/groups.go @@ -10,8 +10,7 @@ import ( ) type ValidateGroupRequest struct { - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` + DisplayName sdk.DisplayName `json:"display_name"` _rawJSON json.RawMessage } diff --git a/sdks/full/go/cloud/types.go b/sdks/full/go/cloud/types.go index 754d1f4bdf..cd0a741466 100644 --- a/sdks/full/go/cloud/types.go +++ b/sdks/full/go/cloud/types.go @@ -107,12 +107,10 @@ func (a *AuthAgentIdentity) String() string { // A build summary. type BuildSummary struct { - BuildId uuid.UUID `json:"build_id"` - UploadId uuid.UUID `json:"upload_id"` - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` - // RFC3339 timestamp. - CreateTs time.Time `json:"create_ts"` + BuildId uuid.UUID `json:"build_id"` + UploadId uuid.UUID `json:"upload_id"` + DisplayName sdk.DisplayName `json:"display_name"` + CreateTs sdk.Timestamp `json:"create_ts"` // Unsigned 64 bit integer. ContentLength int64 `json:"content_length"` // Whether or not this build has completely been uploaded. @@ -237,9 +235,8 @@ func (c *CdnNamespaceConfig) String() string { // A CDN domain for a given namespace. type CdnNamespaceDomain struct { // A valid domain name (no protocol). - Domain string `json:"domain"` - // RFC3339 timestamp. - CreateTs time.Time `json:"create_ts"` + Domain string `json:"domain"` + CreateTs sdk.Timestamp `json:"create_ts"` VerificationStatus CdnNamespaceDomainVerificationStatus `json:"verification_status,omitempty"` VerificationMethod *CdnNamespaceDomainVerificationMethod `json:"verification_method,omitempty"` VerificationErrors []string `json:"verification_errors,omitempty"` @@ -358,12 +355,10 @@ func (c CdnNamespaceDomainVerificationStatus) Ptr() *CdnNamespaceDomainVerificat // A CDN site summary. type CdnSiteSummary struct { - SiteId uuid.UUID `json:"site_id"` - UploadId uuid.UUID `json:"upload_id"` - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` - // RFC3339 timestamp. - CreateTs time.Time `json:"create_ts"` + SiteId uuid.UUID `json:"site_id"` + UploadId uuid.UUID `json:"upload_id"` + DisplayName sdk.DisplayName `json:"display_name"` + CreateTs sdk.Timestamp `json:"create_ts"` // Unsigned 64 bit integer. ContentLength int64 `json:"content_length"` // Whether or not this site has completely been uploaded. @@ -397,11 +392,9 @@ func (c *CdnSiteSummary) String() string { // A custom avatar summary. type CustomAvatarSummary struct { - UploadId uuid.UUID `json:"upload_id"` - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` - // RFC3339 timestamp. - CreateTs time.Time `json:"create_ts"` + UploadId uuid.UUID `json:"upload_id"` + DisplayName sdk.DisplayName `json:"display_name"` + CreateTs sdk.Timestamp `json:"create_ts"` // The URL of this custom avatar image. Only present if upload is complete. Url *string `json:"url,omitempty"` // Unsigned 64 bit integer. @@ -437,14 +430,12 @@ func (c *CustomAvatarSummary) String() string { // A full game. type GameFull struct { - GameId uuid.UUID `json:"game_id"` - // RFC3339 timestamp. - CreateTs time.Time `json:"create_ts"` + GameId uuid.UUID `json:"game_id"` + CreateTs sdk.Timestamp `json:"create_ts"` // A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. - NameId string `json:"name_id"` - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` - DeveloperGroupId uuid.UUID `json:"developer_group_id"` + NameId string `json:"name_id"` + DisplayName sdk.DisplayName `json:"display_name"` + DeveloperGroupId uuid.UUID `json:"developer_group_id"` // Unsigned 32 bit integer. TotalPlayerCount int `json:"total_player_count"` // The URL of this game's logo image. @@ -611,10 +602,9 @@ type LobbySummaryAnalytics struct { LobbyId uuid.UUID `json:"lobby_id"` LobbyGroupId uuid.UUID `json:"lobby_group_id"` // A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. - LobbyGroupNameId string `json:"lobby_group_name_id"` - RegionId uuid.UUID `json:"region_id"` - // RFC3339 timestamp. - CreateTs time.Time `json:"create_ts"` + LobbyGroupNameId string `json:"lobby_group_name_id"` + RegionId uuid.UUID `json:"region_id"` + CreateTs sdk.Timestamp `json:"create_ts"` // Whether or not this lobby is ready. IsReady bool `json:"is_ready"` // Whether or not this lobby is idle. @@ -693,7 +683,7 @@ func (l *LogsLobbyStatus) String() string { // The status of a stopped lobby. type LogsLobbyStatusStopped struct { - StopTs time.Time `json:"stop_ts"` + StopTs sdk.Timestamp `json:"stop_ts"` // Whether or not the lobby failed or stopped successfully. Failed bool `json:"failed"` // The exit code returned by the lobby's main process when stopped. @@ -730,15 +720,12 @@ type LogsLobbySummary struct { LobbyId uuid.UUID `json:"lobby_id"` NamespaceId uuid.UUID `json:"namespace_id"` // A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. - LobbyGroupNameId string `json:"lobby_group_name_id"` - RegionId uuid.UUID `json:"region_id"` - // RFC3339 timestamp. - CreateTs time.Time `json:"create_ts"` - // RFC3339 timestamp. - StartTs *time.Time `json:"start_ts,omitempty"` - // RFC3339 timestamp. - ReadyTs *time.Time `json:"ready_ts,omitempty"` - Status *LogsLobbyStatus `json:"status,omitempty"` + LobbyGroupNameId string `json:"lobby_group_name_id"` + RegionId uuid.UUID `json:"region_id"` + CreateTs sdk.Timestamp `json:"create_ts"` + StartTs *sdk.Timestamp `json:"start_ts,omitempty"` + ReadyTs *sdk.Timestamp `json:"ready_ts,omitempty"` + Status *LogsLobbyStatus `json:"status,omitempty"` _rawJSON json.RawMessage } @@ -769,11 +756,10 @@ func (l *LogsLobbySummary) String() string { // A performance mark. type LogsPerfMark struct { // The label given to this performance mark. - Label string `json:"label"` - // RFC3339 timestamp. - Ts time.Time `json:"ts"` - RayId *uuid.UUID `json:"ray_id,omitempty"` - ReqId *uuid.UUID `json:"req_id,omitempty"` + Label string `json:"label"` + Ts sdk.Timestamp `json:"ts"` + RayId *uuid.UUID `json:"ray_id,omitempty"` + ReqId *uuid.UUID `json:"req_id,omitempty"` _rawJSON json.RawMessage } @@ -804,12 +790,10 @@ func (l *LogsPerfMark) String() string { // A performance span. type LogsPerfSpan struct { // The label given to this performance span. - Label string `json:"label"` - // RFC3339 timestamp. - StartTs time.Time `json:"start_ts"` - // RFC3339 timestamp. - FinishTs *time.Time `json:"finish_ts,omitempty"` - ReqId *uuid.UUID `json:"req_id,omitempty"` + Label string `json:"label"` + StartTs sdk.Timestamp `json:"start_ts"` + FinishTs *sdk.Timestamp `json:"finish_ts,omitempty"` + ReqId *uuid.UUID `json:"req_id,omitempty"` _rawJSON json.RawMessage } @@ -945,12 +929,10 @@ func (n *NamespaceConfig) String() string { // A full namespace. type NamespaceFull struct { - NamespaceId uuid.UUID `json:"namespace_id"` - // RFC3339 timestamp. - CreateTs time.Time `json:"create_ts"` - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` - VersionId uuid.UUID `json:"version_id"` + NamespaceId uuid.UUID `json:"namespace_id"` + CreateTs sdk.Timestamp `json:"create_ts"` + DisplayName sdk.DisplayName `json:"display_name"` + VersionId uuid.UUID `json:"version_id"` // A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. NameId string `json:"name_id"` Config *NamespaceConfig `json:"config,omitempty"` @@ -983,12 +965,10 @@ func (n *NamespaceFull) String() string { // A namespace summary. type NamespaceSummary struct { - NamespaceId uuid.UUID `json:"namespace_id"` - // RFC3339 timestamp. - CreateTs time.Time `json:"create_ts"` - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` - VersionId uuid.UUID `json:"version_id"` + NamespaceId uuid.UUID `json:"namespace_id"` + CreateTs sdk.Timestamp `json:"create_ts"` + DisplayName sdk.DisplayName `json:"display_name"` + VersionId uuid.UUID `json:"version_id"` // A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. NameId string `json:"name_id"` @@ -1023,9 +1003,8 @@ type NamespaceVersion struct { // A universally unique identifier. NamespaceId string `json:"namespace_id"` // A universally unique identifier. - VersionId string `json:"version_id"` - // RFC3339 timestamp. - DeployTs time.Time `json:"deploy_ts"` + VersionId string `json:"version_id"` + DeployTs sdk.Timestamp `json:"deploy_ts"` _rawJSON json.RawMessage } @@ -1061,11 +1040,9 @@ type RegionSummary struct { // The server provider of this region. Provider string `json:"provider"` // A universal region label given to this region. - UniversalRegion UniversalRegion `json:"universal_region,omitempty"` - // Represent a resource's readable display name. - ProviderDisplayName string `json:"provider_display_name"` - // Represent a resource's readable display name. - RegionDisplayName string `json:"region_display_name"` + UniversalRegion UniversalRegion `json:"universal_region,omitempty"` + ProviderDisplayName sdk.DisplayName `json:"provider_display_name"` + RegionDisplayName sdk.DisplayName `json:"region_display_name"` _rawJSON json.RawMessage } diff --git a/sdks/full/go/cloud/version/identity/types.go b/sdks/full/go/cloud/version/identity/types.go index c712818572..72d5e207b8 100644 --- a/sdks/full/go/cloud/version/identity/types.go +++ b/sdks/full/go/cloud/version/identity/types.go @@ -6,6 +6,7 @@ import ( json "encoding/json" fmt "fmt" uuid "github.com/google/uuid" + sdk "sdk" core "sdk/core" ) @@ -77,7 +78,7 @@ func (c *CustomAvatar) String() string { } type CustomDisplayName struct { - DisplayName string `json:"display_name"` + DisplayName sdk.DisplayName `json:"display_name"` _rawJSON json.RawMessage } diff --git a/sdks/full/go/cloud/version/types.go b/sdks/full/go/cloud/version/types.go index d8411f4a31..e1fe6c43af 100644 --- a/sdks/full/go/cloud/version/types.go +++ b/sdks/full/go/cloud/version/types.go @@ -6,13 +6,13 @@ import ( json "encoding/json" fmt "fmt" uuid "github.com/google/uuid" + sdk "sdk" cdn "sdk/cloud/version/cdn" engine "sdk/cloud/version/engine" identity "sdk/cloud/version/identity" kv "sdk/cloud/version/kv" matchmaker "sdk/cloud/version/matchmaker" core "sdk/core" - time "time" ) // Cloud configuration for a given version. @@ -52,12 +52,10 @@ func (c *Config) String() string { // A full version. type Full struct { - VersionId uuid.UUID `json:"version_id"` - // RFC3339 timestamp. - CreateTs time.Time `json:"create_ts"` - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` - Config *Config `json:"config,omitempty"` + VersionId uuid.UUID `json:"version_id"` + CreateTs sdk.Timestamp `json:"create_ts"` + DisplayName sdk.DisplayName `json:"display_name"` + Config *Config `json:"config,omitempty"` _rawJSON json.RawMessage } @@ -87,11 +85,9 @@ func (f *Full) String() string { // A version summary. type Summary struct { - VersionId uuid.UUID `json:"version_id"` - // RFC3339 timestamp. - CreateTs time.Time `json:"create_ts"` - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` + VersionId uuid.UUID `json:"version_id"` + CreateTs sdk.Timestamp `json:"create_ts"` + DisplayName sdk.DisplayName `json:"display_name"` _rawJSON json.RawMessage } diff --git a/sdks/full/go/common/identity/types.go b/sdks/full/go/common/identity/types.go index 2bd7b2d8da..563a53ab73 100644 --- a/sdks/full/go/common/identity/types.go +++ b/sdks/full/go/common/identity/types.go @@ -9,7 +9,6 @@ import ( sdk "sdk" game "sdk/common/game" core "sdk/core" - time "time" ) // External links for an identity. @@ -121,7 +120,7 @@ func (h *Handle) String() string { // Information about the identity's current status, party, and active game. type Presence struct { - UpdateTs time.Time `json:"update_ts"` + UpdateTs sdk.Timestamp `json:"update_ts"` Status Status `json:"status,omitempty"` GameActivity *GameActivity `json:"game_activity,omitempty"` diff --git a/sdks/full/go/game/types.go b/sdks/full/go/game/types.go index 8ebfbf516b..c3d7aeb162 100644 --- a/sdks/full/go/game/types.go +++ b/sdks/full/go/game/types.go @@ -6,14 +6,14 @@ import ( json "encoding/json" fmt "fmt" uuid "github.com/google/uuid" + sdk "sdk" group "sdk/common/group" core "sdk/core" ) // A game leaderboard category. type LeaderboardCategory struct { - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` + DisplayName sdk.DisplayName `json:"display_name"` _rawJSON json.RawMessage } @@ -43,8 +43,7 @@ func (l *LeaderboardCategory) String() string { // A platform link denoting a supported platform. type PlatformLink struct { - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` + DisplayName sdk.DisplayName `json:"display_name"` // The URL to the given game's method of distribution on this platform. Url string `json:"url"` @@ -78,9 +77,8 @@ func (p *PlatformLink) String() string { type Profile struct { GameId uuid.UUID `json:"game_id"` // A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. - NameId string `json:"name_id"` - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` + NameId string `json:"name_id"` + DisplayName sdk.DisplayName `json:"display_name"` // The URL of this game's logo image. LogoUrl *string `json:"logo_url,omitempty"` // The URL of this game's banner image. diff --git a/sdks/full/go/group/group.go b/sdks/full/go/group/group.go index 78bcb5fc94..d2e3cfbb2e 100644 --- a/sdks/full/go/group/group.go +++ b/sdks/full/go/group/group.go @@ -13,8 +13,7 @@ import ( ) type CreateRequest struct { - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` + DisplayName sdk.DisplayName `json:"display_name"` _rawJSON json.RawMessage } @@ -387,8 +386,7 @@ func (t *TransferOwnershipRequest) String() string { } type UpdateProfileRequest struct { - // Represent a resource's readable display name. - DisplayName *string `json:"display_name,omitempty"` + DisplayName *sdk.DisplayName `json:"display_name,omitempty"` // Detailed information about a profile. Bio *string `json:"bio,omitempty"` Publicity *group.Publicity `json:"publicity,omitempty"` @@ -420,11 +418,9 @@ func (u *UpdateProfileRequest) String() string { } type ValidateProfileRequest struct { - // Represent a resource's readable display name. - DisplayName *string `json:"display_name,omitempty"` - // Detailed information about a profile. - Bio *string `json:"bio,omitempty"` - Publicity *group.Publicity `json:"publicity,omitempty"` + DisplayName *sdk.DisplayName `json:"display_name,omitempty"` + Bio *sdk.DisplayName `json:"bio,omitempty"` + Publicity *group.Publicity `json:"publicity,omitempty"` _rawJSON json.RawMessage } diff --git a/sdks/full/go/group/types.go b/sdks/full/go/group/types.go index d9591e4bb7..623356db96 100644 --- a/sdks/full/go/group/types.go +++ b/sdks/full/go/group/types.go @@ -6,6 +6,7 @@ import ( json "encoding/json" fmt "fmt" uuid "github.com/google/uuid" + sdk "sdk" group "sdk/common/group" identity "sdk/common/identity" core "sdk/core" @@ -60,8 +61,7 @@ type SearchRequest struct { // A banned identity. type BannedIdentity struct { Identity *identity.Handle `json:"identity,omitempty"` - // RFC3339 timestamp. - BanTs time.Time `json:"ban_ts"` + BanTs sdk.Timestamp `json:"ban_ts"` _rawJSON json.RawMessage } @@ -153,9 +153,8 @@ func (m *Member) String() string { // A list of group profiles. type Profile struct { - GroupId uuid.UUID `json:"group_id"` - // Represent a resource's readable display name. - DisplayName string `json:"display_name"` + GroupId uuid.UUID `json:"group_id"` + DisplayName sdk.DisplayName `json:"display_name"` // The URL of this group's avatar image. AvatarUrl *string `json:"avatar_url,omitempty"` External *group.ExternalLinks `json:"external,omitempty"` diff --git a/sdks/full/go/identity/identity.go b/sdks/full/go/identity/identity.go index e080e37cfd..6cb9dba053 100644 --- a/sdks/full/go/identity/identity.go +++ b/sdks/full/go/identity/identity.go @@ -10,7 +10,6 @@ import ( identity "sdk/common/identity" core "sdk/core" upload "sdk/upload" - time "time" ) type GetHandlesResponse struct { @@ -327,9 +326,8 @@ type SetupResponse struct { // If this happens, the user can recover their account through the linking process (see `rivet.api.identity#PrepareGameLink`). // This token should be stored locally and never sent to a server or another device. // If this token is compromised, anyone with access to this token has control of the identity. - IdentityToken sdk.Jwt `json:"identity_token"` - // If this token is compromised, anyone with access to this token has control of the identity. - IdentityTokenExpireTs time.Time `json:"identity_token_expire_ts"` + IdentityToken sdk.Jwt `json:"identity_token"` + IdentityTokenExpireTs sdk.Timestamp `json:"identity_token_expire_ts"` // Information about the identity that was just authenticated. Identity *Profile `json:"identity,omitempty"` GameId uuid.UUID `json:"game_id"` diff --git a/sdks/full/go/identity/links.go b/sdks/full/go/identity/links.go index 2ac9f0a22a..51578a8e16 100644 --- a/sdks/full/go/identity/links.go +++ b/sdks/full/go/identity/links.go @@ -9,7 +9,6 @@ import ( game "sdk/common/game" identity "sdk/common/identity" core "sdk/core" - time "time" ) type GetGameLinkRequest struct { @@ -110,9 +109,9 @@ func (g *GetGameLinkResponse) String() string { type PrepareGameLinkResponse struct { // Pass this to `GetGameLink` to get the linking status. Valid for 15 minutes. - IdentityLinkToken string `json:"identity_link_token"` - IdentityLinkUrl string `json:"identity_link_url"` - ExpireTs time.Time `json:"expire_ts"` + IdentityLinkToken string `json:"identity_link_token"` + IdentityLinkUrl string `json:"identity_link_url"` + ExpireTs sdk.Timestamp `json:"expire_ts"` _rawJSON json.RawMessage } diff --git a/sdks/full/go/identity/types.go b/sdks/full/go/identity/types.go index 85dbaab515..26d3730341 100644 --- a/sdks/full/go/identity/types.go +++ b/sdks/full/go/identity/types.go @@ -469,7 +469,7 @@ type Profile struct { // Whether or not this identity is both following and is followed by the requestee's identity. IsFollowingMe bool `json:"is_following_me"` IsMutualFollowing bool `json:"is_mutual_following"` - JoinTs time.Time `json:"join_ts"` + JoinTs sdk.Timestamp `json:"join_ts"` Bio sdk.Bio `json:"bio"` LinkedAccounts []*LinkedAccount `json:"linked_accounts,omitempty"` Groups []*Group `json:"groups,omitempty"` @@ -583,9 +583,9 @@ func (u *UpdateGameActivity) String() string { } type GetGameLinkNewIdentity struct { - IdentityToken sdk.Jwt `json:"identity_token"` - IdentityTokenExpireTs time.Time `json:"identity_token_expire_ts"` - Identity *Profile `json:"identity,omitempty"` + IdentityToken sdk.Jwt `json:"identity_token"` + IdentityTokenExpireTs sdk.Timestamp `json:"identity_token_expire_ts"` + Identity *Profile `json:"identity,omitempty"` _rawJSON json.RawMessage } diff --git a/sdks/full/go/matchmaker/types.go b/sdks/full/go/matchmaker/types.go index b172126aeb..bcaed2d7df 100644 --- a/sdks/full/go/matchmaker/types.go +++ b/sdks/full/go/matchmaker/types.go @@ -246,11 +246,11 @@ func (l *LobbyInfo) String() string { // A region that the player can connect to. type RegionInfo struct { - RegionId sdk.Identifier `json:"region_id"` - ProviderDisplayName string `json:"provider_display_name"` - RegionDisplayName string `json:"region_display_name"` - DatacenterCoord *geo.Coord `json:"datacenter_coord,omitempty"` - DatacenterDistanceFromClient *geo.Distance `json:"datacenter_distance_from_client,omitempty"` + RegionId sdk.Identifier `json:"region_id"` + ProviderDisplayName sdk.DisplayName `json:"provider_display_name"` + RegionDisplayName sdk.DisplayName `json:"region_display_name"` + DatacenterCoord *geo.Coord `json:"datacenter_coord,omitempty"` + DatacenterDistanceFromClient *geo.Distance `json:"datacenter_distance_from_client,omitempty"` _rawJSON json.RawMessage } diff --git a/sdks/full/go/module/client/client.go b/sdks/full/go/module/client/client.go deleted file mode 100644 index 02eb8a0181..0000000000 --- a/sdks/full/go/module/client/client.go +++ /dev/null @@ -1,118 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package client - -import ( - bytes "bytes" - context "context" - json "encoding/json" - errors "errors" - fmt "fmt" - io "io" - http "net/http" - sdk "sdk" - core "sdk/core" - sdkmodule "sdk/module" -) - -type Client struct { - baseURL string - caller *core.Caller - header http.Header -} - -func NewClient(opts ...core.ClientOption) *Client { - options := core.NewClientOptions() - for _, opt := range opts { - opt(options) - } - return &Client{ - baseURL: options.BaseURL, - caller: core.NewCaller(options.HTTPClient), - header: options.ToHeader(), - } -} - -// Makes a request to a module's script. -func (c *Client) Call(ctx context.Context, module string, script string, request *sdkmodule.FindLobbyRequest) (*sdkmodule.CallResponse, error) { - baseURL := "https://api.rivet.gg" - if c.baseURL != "" { - baseURL = c.baseURL - } - endpointURL := fmt.Sprintf(baseURL+"/"+"module/modules/%v/scripts/%v/call", module, script) - - headers := c.header.Clone() - if request.Origin != nil { - headers.Add("origin", fmt.Sprintf("%v", *request.Origin)) - } - - errorDecoder := func(statusCode int, body io.Reader) error { - raw, err := io.ReadAll(body) - if err != nil { - return err - } - apiError := core.NewAPIError(statusCode, errors.New(string(raw))) - decoder := json.NewDecoder(bytes.NewReader(raw)) - switch statusCode { - case 500: - value := new(sdk.InternalError) - value.APIError = apiError - if err := decoder.Decode(value); err != nil { - return apiError - } - return value - case 429: - value := new(sdk.RateLimitError) - value.APIError = apiError - if err := decoder.Decode(value); err != nil { - return apiError - } - return value - case 403: - value := new(sdk.ForbiddenError) - value.APIError = apiError - if err := decoder.Decode(value); err != nil { - return apiError - } - return value - case 408: - value := new(sdk.UnauthorizedError) - value.APIError = apiError - if err := decoder.Decode(value); err != nil { - return apiError - } - return value - case 404: - value := new(sdk.NotFoundError) - value.APIError = apiError - if err := decoder.Decode(value); err != nil { - return apiError - } - return value - case 400: - value := new(sdk.BadRequestError) - value.APIError = apiError - if err := decoder.Decode(value); err != nil { - return apiError - } - return value - } - return apiError - } - - var response *sdkmodule.CallResponse - if err := c.caller.Call( - ctx, - &core.CallParams{ - URL: endpointURL, - Method: http.MethodPost, - Headers: headers, - Request: request, - Response: &response, - ErrorDecoder: errorDecoder, - }, - ); err != nil { - return nil, err - } - return response, nil -} diff --git a/sdks/full/go/module/module.go b/sdks/full/go/module/module.go deleted file mode 100644 index a3665bb223..0000000000 --- a/sdks/full/go/module/module.go +++ /dev/null @@ -1,38 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package module - -import ( - json "encoding/json" - fmt "fmt" - core "sdk/core" -) - -type CallResponse struct { - Data interface{} `json:"data,omitempty"` - - _rawJSON json.RawMessage -} - -func (c *CallResponse) UnmarshalJSON(data []byte) error { - type unmarshaler CallResponse - var value unmarshaler - if err := json.Unmarshal(data, &value); err != nil { - return err - } - *c = CallResponse(value) - c._rawJSON = json.RawMessage(data) - return nil -} - -func (c *CallResponse) String() string { - if len(c._rawJSON) > 0 { - if value, err := core.StringifyJSON(c._rawJSON); err == nil { - return value - } - } - if value, err := core.StringifyJSON(c); err == nil { - return value - } - return fmt.Sprintf("%#v", c) -} diff --git a/sdks/full/go/module/types.go b/sdks/full/go/module/types.go deleted file mode 100644 index 1a8874f858..0000000000 --- a/sdks/full/go/module/types.go +++ /dev/null @@ -1,13 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package module - -import ( - uuid "github.com/google/uuid" -) - -type FindLobbyRequest struct { - Origin *string `json:"-"` - NamespaceId *uuid.UUID `json:"namespace_id,omitempty"` - Data interface{} `json:"data,omitempty"` -} diff --git a/sdks/full/go/types.go b/sdks/full/go/types.go index dc9e682958..688fdd0e33 100644 --- a/sdks/full/go/types.go +++ b/sdks/full/go/types.go @@ -13,6 +13,7 @@ type AccountNumber = int // Follows regex ^(?:[^\n\r]+\n?|\n){1,5}$ type Bio = string +// Represent a resource's readable display name. type DisplayName = string // A valid email address diff --git a/sdks/full/openapi/openapi.yml b/sdks/full/openapi/openapi.yml index 64c4a4c0ec..6aa07ade9f 100644 --- a/sdks/full/openapi/openapi.yml +++ b/sdks/full/openapi/openapi.yml @@ -4173,85 +4173,6 @@ paths: schema: $ref: '#/components/schemas/ErrorBody' security: *ref_0 - /module/modules/{module}/scripts/{script}/call: - post: - description: Makes a request to a module's script. - operationId: module_call - tags: - - Module - parameters: - - name: module - in: path - required: true - schema: - type: string - - name: script - in: path - required: true - schema: - type: string - - name: origin - in: header - required: false - schema: - type: string - responses: - '200': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ModuleCallResponse' - '400': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorBody' - '403': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorBody' - '404': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorBody' - '408': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorBody' - '429': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorBody' - '500': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorBody' - security: *ref_0 - requestBody: - required: true - content: - application/json: - schema: - type: object - properties: - namespace_id: - type: string - format: uuid - data: {} - required: - - data /auth/identity/access-token/complete-verification: post: description: Completes the access token verification process. @@ -5953,8 +5874,7 @@ paths: description: Returns lobbies created before this timestamp. required: false schema: - type: string - format: date-time + $ref: '#/components/schemas/Timestamp' responses: '200': description: '' @@ -8516,8 +8436,7 @@ components: type: object properties: display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' version_id: type: string format: uuid @@ -8544,8 +8463,7 @@ components: type: object properties: display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' name_id: type: string description: >- @@ -8760,12 +8678,9 @@ components: type: string format: uuid create_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' config: $ref: '#/components/schemas/CloudVersionConfig' required: @@ -8781,12 +8696,9 @@ components: type: string format: uuid create_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' required: - version_id - create_ts @@ -8906,7 +8818,7 @@ components: type: object properties: display_name: - type: string + $ref: '#/components/schemas/DisplayName' required: - display_name CloudVersionIdentityCustomAvatar: @@ -8975,8 +8887,7 @@ components: type: object properties: display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' required: - display_name GroupCreateResponse: @@ -9018,11 +8929,9 @@ components: type: object properties: display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' bio: - type: string - description: Detailed information about a profile. + $ref: '#/components/schemas/DisplayName' publicity: $ref: '#/components/schemas/GroupPublicity' GroupValidateProfileResponse: @@ -9109,8 +9018,7 @@ components: type: object properties: display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' bio: type: string description: Detailed information about a profile. @@ -9160,11 +9068,7 @@ components: If this token is compromised, anyone with access to this token has control of the identity. identity_token_expire_ts: - type: string - format: date-time - description: >- - If this token is compromised, anyone with access to this token has - control of the identity. + $ref: '#/components/schemas/Timestamp' identity: $ref: '#/components/schemas/IdentityProfile' description: Information about the identity that was just authenticated. @@ -9370,12 +9274,6 @@ components: $ref: '#/components/schemas/KvPutEntry' required: - entries - ModuleCallResponse: - type: object - properties: - data: {} - required: - - data AuthCompleteStatus: type: string enum: @@ -9535,13 +9433,9 @@ components: type: string description: The label given to this performance span. start_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' finish_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' req_id: type: string format: uuid @@ -9556,9 +9450,7 @@ components: type: string description: The label given to this performance mark. ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' ray_id: type: string format: uuid @@ -9589,9 +9481,7 @@ components: type: string format: uuid create_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' is_ready: type: boolean description: Whether or not this lobby is ready. @@ -9655,17 +9545,11 @@ components: type: string format: uuid create_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' start_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' ready_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' status: $ref: '#/components/schemas/CloudLogsLobbyStatus' required: @@ -9690,8 +9574,7 @@ components: description: The status of a stopped lobby. properties: stop_ts: - type: string - format: date-time + $ref: '#/components/schemas/Timestamp' failed: type: boolean description: Whether or not the lobby failed or stopped successfully. @@ -9763,12 +9646,9 @@ components: type: string format: uuid display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' create_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' url: type: string description: >- @@ -9798,12 +9678,9 @@ components: type: string format: uuid display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' create_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' content_length: type: integer format: int64 @@ -9829,12 +9706,9 @@ components: type: string format: uuid display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' create_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' content_length: type: integer format: int64 @@ -9857,9 +9731,7 @@ components: type: string format: uuid create_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' name_id: type: string description: >- @@ -9868,8 +9740,7 @@ components: human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' developer_group_id: type: string format: uuid @@ -9915,12 +9786,9 @@ components: type: string format: uuid create_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' version_id: type: string format: uuid @@ -9958,11 +9826,9 @@ components: $ref: '#/components/schemas/CloudUniversalRegion' description: A universal region label given to this region. provider_display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' region_display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' required: - region_id - region_name_id @@ -10131,12 +9997,9 @@ components: type: string format: uuid create_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' version_id: type: string format: uuid @@ -10252,9 +10115,7 @@ components: type: string description: A valid domain name (no protocol). create_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' verification_status: $ref: '#/components/schemas/CloudCdnNamespaceDomainVerificationStatus' verification_method: @@ -10323,9 +10184,7 @@ components: type: string description: A universally unique identifier. deploy_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' required: - namespace_id - version_id @@ -10415,8 +10274,7 @@ components: type: object properties: display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' image_tag: type: string description: A tag given to the game build. @@ -10474,8 +10332,7 @@ components: type: object properties: display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' files: type: array items: @@ -10524,17 +10381,10 @@ components: type: object properties: name_id: - type: string - description: >- - **Deprecated** - - A human readable short identifier used to references resources. - Different than a `rivet.common#Uuid` because this is intended to be - human readable. Different than `rivet.common#DisplayName` because - this should not include special characters and be short. + $ref: '#/components/schemas/Identifier' + description: '**Deprecated**' display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' developer_group_id: type: string format: uuid @@ -10553,8 +10403,7 @@ components: type: object properties: display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' name_id: type: string description: >- @@ -10780,8 +10629,7 @@ components: type: object properties: display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' config: $ref: '#/components/schemas/CloudVersionConfig' required: @@ -10799,15 +10647,14 @@ components: type: object properties: version_display_name: - type: string + $ref: '#/components/schemas/DisplayName' required: - version_display_name CloudGamesValidateGameVersionRequest: type: object properties: display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' config: $ref: '#/components/schemas/CloudVersionConfig' required: @@ -10834,8 +10681,7 @@ components: type: object properties: display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' required: - display_name CloudValidateGroupResponse: @@ -11401,6 +11247,7 @@ components: - index DisplayName: type: string + description: Represent a resource's readable display name. AccountNumber: type: integer Timestamp: @@ -11517,8 +11364,7 @@ components: human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' logo_url: type: string description: The URL of this game's logo image. @@ -11575,8 +11421,7 @@ components: description: A platform link denoting a supported platform. properties: display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' url: type: string description: The URL to the given game's method of distribution on this platform. @@ -11588,8 +11433,7 @@ components: description: A game leaderboard category. properties: display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' required: - display_name GameStatSummary: @@ -11822,8 +11666,7 @@ components: type: string format: uuid display_name: - type: string - description: Represent a resource's readable display name. + $ref: '#/components/schemas/DisplayName' avatar_url: type: string description: The URL of this group's avatar image. @@ -11877,9 +11720,7 @@ components: identity: $ref: '#/components/schemas/IdentityHandle' ban_ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' required: - identity - ban_ts @@ -12188,8 +12029,7 @@ components: is_mutual_following: type: boolean join_ts: - type: string - format: date-time + $ref: '#/components/schemas/Timestamp' bio: $ref: '#/components/schemas/Bio' linked_accounts: @@ -12246,8 +12086,7 @@ components: description: Information about the identity's current status, party, and active game. properties: update_ts: - type: string - format: date-time + $ref: '#/components/schemas/Timestamp' status: $ref: '#/components/schemas/IdentityStatus' game_activity: @@ -12350,8 +12189,7 @@ components: identity_link_url: type: string expire_ts: - type: string - format: date-time + $ref: '#/components/schemas/Timestamp' required: - identity_link_token - identity_link_url @@ -12380,8 +12218,7 @@ components: identity_token: $ref: '#/components/schemas/Jwt' identity_token_expire_ts: - type: string - format: date-time + $ref: '#/components/schemas/Timestamp' identity: $ref: '#/components/schemas/IdentityProfile' required: @@ -12491,9 +12328,9 @@ components: region_id: $ref: '#/components/schemas/Identifier' provider_display_name: - type: string + $ref: '#/components/schemas/DisplayName' region_display_name: - type: string + $ref: '#/components/schemas/DisplayName' datacenter_coord: $ref: '#/components/schemas/GeoCoord' datacenter_distance_from_client: diff --git a/sdks/full/openapi_compat/openapi.yml b/sdks/full/openapi_compat/openapi.yml index 502ae594f0..8598cadfe2 100644 --- a/sdks/full/openapi_compat/openapi.yml +++ b/sdks/full/openapi_compat/openapi.yml @@ -242,12 +242,9 @@ components: format: int64 type: integer create_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' upload_id: format: uuid type: string @@ -304,9 +301,7 @@ components: description: A CDN domain for a given namespace. properties: create_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' domain: description: A valid domain name (no protocol). type: string @@ -359,12 +354,9 @@ components: format: int64 type: integer create_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' site_id: format: uuid type: string @@ -390,12 +382,9 @@ components: format: int64 type: integer create_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' upload_id: format: uuid type: string @@ -456,15 +445,12 @@ components: description: The URL of this game's banner image. type: string create_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' developer_group_id: format: uuid type: string display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' game_id: format: uuid type: string @@ -548,8 +534,7 @@ components: compression: $ref: '#/components/schemas/CloudGamesBuildCompression' display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' image_file: $ref: '#/components/schemas/UploadPrepareFile' image_tag: @@ -585,8 +570,7 @@ components: CloudGamesCreateGameCdnSiteRequest: properties: display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' files: description: A list of files preparing to upload. items: @@ -619,16 +603,10 @@ components: format: uuid type: string display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' name_id: - description: '**Deprecated** - - A human readable short identifier used to references resources. Different - than a `rivet.common#Uuid` because this is intended to be human readable. - Different than `rivet.common#DisplayName` because this should not include - special characters and be short.' - type: string + $ref: '#/components/schemas/Identifier' + description: '**Deprecated**' required: - display_name - developer_group_id @@ -646,8 +624,7 @@ components: config: $ref: '#/components/schemas/CloudVersionConfig' display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' required: - display_name - config @@ -860,8 +837,7 @@ components: CloudGamesNamespacesCreateGameNamespaceRequest: properties: display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' name_id: description: A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human @@ -1077,8 +1053,7 @@ components: CloudGamesNamespacesValidateGameNamespaceRequest: properties: display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' name_id: description: A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human @@ -1152,15 +1127,14 @@ components: CloudGamesReserveVersionNameResponse: properties: version_display_name: - type: string + $ref: '#/components/schemas/DisplayName' required: - version_display_name type: object CloudGamesValidateGameRequest: properties: display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' name_id: description: '**Deprecated** @@ -1187,8 +1161,7 @@ components: config: $ref: '#/components/schemas/CloudVersionConfig' display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' required: - display_name - config @@ -1254,9 +1227,7 @@ components: description: Analytical information about a lobby. properties: create_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' is_closed: description: Whether or not this lobby is in a closed state. type: boolean @@ -1335,8 +1306,7 @@ components: description: Whether or not the lobby failed or stopped successfully. type: boolean stop_ts: - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' required: - stop_ts - failed @@ -1346,9 +1316,7 @@ components: description: A logs summary for a lobby. properties: create_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' lobby_group_name_id: description: A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human @@ -1362,16 +1330,12 @@ components: format: uuid type: string ready_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' region_id: format: uuid type: string start_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' status: $ref: '#/components/schemas/CloudLogsLobbyStatus' required: @@ -1395,9 +1359,7 @@ components: format: uuid type: string ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' required: - label - ts @@ -1406,9 +1368,7 @@ components: description: A performance span. properties: finish_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' label: description: The label given to this performance span. type: string @@ -1416,9 +1376,7 @@ components: format: uuid type: string start_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' required: - label - start_ts @@ -1487,12 +1445,9 @@ components: config: $ref: '#/components/schemas/CloudNamespaceConfig' create_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' name_id: description: A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human @@ -1517,12 +1472,9 @@ components: description: A namespace summary. properties: create_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' name_id: description: A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human @@ -1546,9 +1498,7 @@ components: description: A previously deployed namespace version. properties: deploy_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' namespace_id: description: A universally unique identifier. type: string @@ -1567,11 +1517,9 @@ components: description: The server provider of this region. type: string provider_display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' region_display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' region_id: format: uuid type: string @@ -1770,8 +1718,7 @@ components: CloudValidateGroupRequest: properties: display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' required: - display_name type: object @@ -1917,12 +1864,9 @@ components: config: $ref: '#/components/schemas/CloudVersionConfig' create_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' version_id: format: uuid type: string @@ -1970,7 +1914,7 @@ components: CloudVersionIdentityCustomDisplayName: properties: display_name: - type: string + $ref: '#/components/schemas/DisplayName' required: - display_name type: object @@ -2465,12 +2409,9 @@ components: description: A version summary. properties: create_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' version_id: format: uuid type: string @@ -2480,6 +2421,7 @@ components: - display_name type: object DisplayName: + description: Represent a resource's readable display name. type: string Email: description: A valid email address @@ -2527,8 +2469,7 @@ components: description: A game leaderboard category. properties: display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' required: - display_name type: object @@ -2536,8 +2477,7 @@ components: description: A platform link denoting a supported platform. properties: display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' url: description: The URL to the given game's method of distribution on this platform. @@ -2558,8 +2498,7 @@ components: developer: $ref: '#/components/schemas/GroupSummary' display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' game_id: format: uuid type: string @@ -2784,9 +2723,7 @@ components: description: A banned identity. properties: ban_ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' identity: $ref: '#/components/schemas/IdentityHandle' required: @@ -2822,8 +2759,7 @@ components: GroupCreateRequest: properties: display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' required: - display_name type: object @@ -3008,8 +2944,7 @@ components: description: Detailed information about a profile. type: string display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' external: $ref: '#/components/schemas/GroupExternalLinks' group_id: @@ -3132,19 +3067,16 @@ components: description: Detailed information about a profile. type: string display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' publicity: $ref: '#/components/schemas/GroupPublicity' type: object GroupValidateProfileRequest: properties: bio: - description: Detailed information about a profile. - type: string + $ref: '#/components/schemas/DisplayName' display_name: - description: Represent a resource's readable display name. - type: string + $ref: '#/components/schemas/DisplayName' publicity: $ref: '#/components/schemas/GroupPublicity' type: object @@ -3243,8 +3175,7 @@ components: identity_token: $ref: '#/components/schemas/Jwt' identity_token_expire_ts: - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' required: - identity_token - identity_token_expire_ts @@ -3554,8 +3485,7 @@ components: IdentityPrepareGameLinkResponse: properties: expire_ts: - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' identity_link_token: description: Pass this to `GetGameLink` to get the linking status. Valid for 15 minutes. @@ -3576,8 +3506,7 @@ components: status: $ref: '#/components/schemas/IdentityStatus' update_ts: - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' required: - update_ts - status @@ -3642,8 +3571,7 @@ components: description: Whether or not this identity is registered with a linked account. type: boolean join_ts: - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' linked_accounts: items: $ref: '#/components/schemas/IdentityLinkedAccount' @@ -3712,10 +3640,7 @@ components: If this token is compromised, anyone with access to this token has control of the identity.' identity_token_expire_ts: - description: If this token is compromised, anyone with access to this token - has control of the identity. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' required: - identity_token - identity_token_expire_ts @@ -4138,9 +4063,9 @@ components: datacenter_distance_from_client: $ref: '#/components/schemas/GeoDistance' provider_display_name: - type: string + $ref: '#/components/schemas/DisplayName' region_display_name: - type: string + $ref: '#/components/schemas/DisplayName' region_id: $ref: '#/components/schemas/Identifier' required: @@ -4158,12 +4083,6 @@ components: required: - player_count type: object - ModuleCallResponse: - properties: - data: {} - required: - - data - type: object PortalGetGameProfileResponse: properties: game: @@ -6602,8 +6521,7 @@ paths: name: before_create_ts required: false schema: - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' responses: '200': content: @@ -12349,85 +12267,6 @@ paths: security: *id001 tags: - MatchmakerRegions - /module/modules/{module}/scripts/{script}/call: - post: - description: Makes a request to a module's script. - operationId: module_call - parameters: - - in: path - name: module - required: true - schema: - type: string - - in: path - name: script - required: true - schema: - type: string - - in: header - name: origin - required: false - schema: - type: string - requestBody: - content: - application/json: - schema: - properties: - data: {} - namespace_id: - format: uuid - type: string - required: - - data - type: object - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ModuleCallResponse' - description: '' - '400': - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorBody' - description: '' - '403': - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorBody' - description: '' - '404': - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorBody' - description: '' - '408': - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorBody' - description: '' - '429': - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorBody' - description: '' - '500': - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorBody' - description: '' - security: *id001 - tags: - - Module /portal/games/{game_name_id}/profile: get: description: Returns a game profile. diff --git a/sdks/full/rust-cli/.openapi-generator/FILES b/sdks/full/rust-cli/.openapi-generator/FILES index f95d096f8d..77f72c2e0c 100644 --- a/sdks/full/rust-cli/.openapi-generator/FILES +++ b/sdks/full/rust-cli/.openapi-generator/FILES @@ -315,9 +315,6 @@ docs/MatchmakerPlayersConnectedRequest.md docs/MatchmakerRegionInfo.md docs/MatchmakerRegionStatistics.md docs/MatchmakerRegionsApi.md -docs/ModuleApi.md -docs/ModuleCallRequest.md -docs/ModuleCallResponse.md docs/PortalGamesApi.md docs/PortalGetGameProfileResponse.md docs/PortalGetSuggestedGamesResponse.md @@ -366,7 +363,6 @@ src/apis/matchmaker_lobbies_api.rs src/apis/matchmaker_players_api.rs src/apis/matchmaker_regions_api.rs src/apis/mod.rs -src/apis/module_api.rs src/apis/portal_games_api.rs src/apis/portal_notifications_api.rs src/lib.rs @@ -650,8 +646,6 @@ src/models/matchmaker_players_connected_request.rs src/models/matchmaker_region_info.rs src/models/matchmaker_region_statistics.rs src/models/mod.rs -src/models/module_call_request.rs -src/models/module_call_response.rs src/models/portal_get_game_profile_response.rs src/models/portal_get_suggested_games_response.rs src/models/portal_notification_register_firebase_service.rs diff --git a/sdks/full/rust-cli/README.md b/sdks/full/rust-cli/README.md index a00e327989..fa33e01830 100644 --- a/sdks/full/rust-cli/README.md +++ b/sdks/full/rust-cli/README.md @@ -155,7 +155,6 @@ Class | Method | HTTP request | Description *MatchmakerPlayersApi* | [**matchmaker_players_disconnected**](docs/MatchmakerPlayersApi.md#matchmaker_players_disconnected) | **POST** /matchmaker/players/disconnected | *MatchmakerPlayersApi* | [**matchmaker_players_get_statistics**](docs/MatchmakerPlayersApi.md#matchmaker_players_get_statistics) | **GET** /matchmaker/players/statistics | *MatchmakerRegionsApi* | [**matchmaker_regions_list**](docs/MatchmakerRegionsApi.md#matchmaker_regions_list) | **GET** /matchmaker/regions | -*ModuleApi* | [**module_call**](docs/ModuleApi.md#module_call) | **POST** /module/modules/{module}/scripts/{script}/call | *PortalGamesApi* | [**portal_games_get_game_profile**](docs/PortalGamesApi.md#portal_games_get_game_profile) | **GET** /portal/games/{game_name_id}/profile | *PortalNotificationsApi* | [**portal_notifications_register_notifications**](docs/PortalNotificationsApi.md#portal_notifications_register_notifications) | **POST** /portal/notifications/register | *PortalNotificationsApi* | [**portal_notifications_unregister_notifications**](docs/PortalNotificationsApi.md#portal_notifications_unregister_notifications) | **DELETE** /portal/notifications/register | @@ -442,8 +441,6 @@ Class | Method | HTTP request | Description - [MatchmakerPlayersConnectedRequest](docs/MatchmakerPlayersConnectedRequest.md) - [MatchmakerRegionInfo](docs/MatchmakerRegionInfo.md) - [MatchmakerRegionStatistics](docs/MatchmakerRegionStatistics.md) - - [ModuleCallRequest](docs/ModuleCallRequest.md) - - [ModuleCallResponse](docs/ModuleCallResponse.md) - [PortalGetGameProfileResponse](docs/PortalGetGameProfileResponse.md) - [PortalGetSuggestedGamesResponse](docs/PortalGetSuggestedGamesResponse.md) - [PortalNotificationRegisterFirebaseService](docs/PortalNotificationRegisterFirebaseService.md) diff --git a/sdks/full/rust-cli/docs/CloudBuildSummary.md b/sdks/full/rust-cli/docs/CloudBuildSummary.md index 9764da74fb..6d91dd4ead 100644 --- a/sdks/full/rust-cli/docs/CloudBuildSummary.md +++ b/sdks/full/rust-cli/docs/CloudBuildSummary.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **build_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **complete** | **bool** | Whether or not this build has completely been uploaded. | **content_length** | **i64** | Unsigned 64 bit integer. | -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **display_name** | **String** | Represent a resource's readable display name. | **upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust-cli/docs/CloudCdnNamespaceDomain.md b/sdks/full/rust-cli/docs/CloudCdnNamespaceDomain.md index 633b26290d..af93fcc7d6 100644 --- a/sdks/full/rust-cli/docs/CloudCdnNamespaceDomain.md +++ b/sdks/full/rust-cli/docs/CloudCdnNamespaceDomain.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **domain** | **String** | A valid domain name (no protocol). | **verification_errors** | **Vec** | | **verification_method** | [**crate::models::CloudCdnNamespaceDomainVerificationMethod**](CloudCdnNamespaceDomainVerificationMethod.md) | | diff --git a/sdks/full/rust-cli/docs/CloudCdnSiteSummary.md b/sdks/full/rust-cli/docs/CloudCdnSiteSummary.md index f2e5d6ae5b..8292f21f3f 100644 --- a/sdks/full/rust-cli/docs/CloudCdnSiteSummary.md +++ b/sdks/full/rust-cli/docs/CloudCdnSiteSummary.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **complete** | **bool** | Whether or not this site has completely been uploaded. | **content_length** | **i64** | Unsigned 64 bit integer. | -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **display_name** | **String** | Represent a resource's readable display name. | **site_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust-cli/docs/CloudCustomAvatarSummary.md b/sdks/full/rust-cli/docs/CloudCustomAvatarSummary.md index 15b33715a2..ce06bd3020 100644 --- a/sdks/full/rust-cli/docs/CloudCustomAvatarSummary.md +++ b/sdks/full/rust-cli/docs/CloudCustomAvatarSummary.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **complete** | **bool** | Whether or not this custom avatar has completely been uploaded. | **content_length** | **i64** | Unsigned 64 bit integer. | -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **display_name** | **String** | Represent a resource's readable display name. | **upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **url** | Option<**String**> | The URL of this custom avatar image. Only present if upload is complete. | [optional] diff --git a/sdks/full/rust-cli/docs/CloudGameFull.md b/sdks/full/rust-cli/docs/CloudGameFull.md index 738e534e33..dd4d876bc8 100644 --- a/sdks/full/rust-cli/docs/CloudGameFull.md +++ b/sdks/full/rust-cli/docs/CloudGameFull.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **available_regions** | [**Vec**](CloudRegionSummary.md) | A list of region summaries. | **banner_url** | Option<**String**> | The URL of this game's banner image. | [optional] -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **developer_group_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **display_name** | **String** | Represent a resource's readable display name. | **game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust-cli/docs/CloudGamesCreateGameRequest.md b/sdks/full/rust-cli/docs/CloudGamesCreateGameRequest.md index 3e20f9dc67..7fda60818d 100644 --- a/sdks/full/rust-cli/docs/CloudGamesCreateGameRequest.md +++ b/sdks/full/rust-cli/docs/CloudGamesCreateGameRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **developer_group_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **display_name** | **String** | Represent a resource's readable display name. | -**name_id** | Option<**String**> | **Deprecated** A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | [optional] +**name_id** | Option<**String**> | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | [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/sdks/full/rust-cli/docs/CloudGamesReserveVersionNameResponse.md b/sdks/full/rust-cli/docs/CloudGamesReserveVersionNameResponse.md index 6a7a09da19..616b45e50f 100644 --- a/sdks/full/rust-cli/docs/CloudGamesReserveVersionNameResponse.md +++ b/sdks/full/rust-cli/docs/CloudGamesReserveVersionNameResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**version_display_name** | **String** | | +**version_display_name** | **String** | Represent a resource's readable display name. | [[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/sdks/full/rust-cli/docs/CloudLobbySummaryAnalytics.md b/sdks/full/rust-cli/docs/CloudLobbySummaryAnalytics.md index 6b642a72e4..168dfed374 100644 --- a/sdks/full/rust-cli/docs/CloudLobbySummaryAnalytics.md +++ b/sdks/full/rust-cli/docs/CloudLobbySummaryAnalytics.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **is_closed** | **bool** | Whether or not this lobby is in a closed state. | **is_idle** | **bool** | Whether or not this lobby is idle. | **is_outdated** | **bool** | Whether or not this lobby is outdated. | diff --git a/sdks/full/rust-cli/docs/CloudLogsLobbyStatusStopped.md b/sdks/full/rust-cli/docs/CloudLogsLobbyStatusStopped.md index 88cfecbec9..7a39226e29 100644 --- a/sdks/full/rust-cli/docs/CloudLogsLobbyStatusStopped.md +++ b/sdks/full/rust-cli/docs/CloudLogsLobbyStatusStopped.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **exit_code** | **i32** | The exit code returned by the lobby's main process when stopped. | **failed** | **bool** | Whether or not the lobby failed or stopped successfully. | -**stop_ts** | **String** | | +**stop_ts** | **String** | RFC3339 timestamp | [[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/sdks/full/rust-cli/docs/CloudLogsLobbySummary.md b/sdks/full/rust-cli/docs/CloudLogsLobbySummary.md index f28c30172a..b228893602 100644 --- a/sdks/full/rust-cli/docs/CloudLogsLobbySummary.md +++ b/sdks/full/rust-cli/docs/CloudLogsLobbySummary.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **lobby_group_name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | **lobby_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **namespace_id** | [**uuid::Uuid**](uuid::Uuid.md) | | -**ready_ts** | Option<**String**> | RFC3339 timestamp. | [optional] +**ready_ts** | Option<**String**> | RFC3339 timestamp | [optional] **region_id** | [**uuid::Uuid**](uuid::Uuid.md) | | -**start_ts** | Option<**String**> | RFC3339 timestamp. | [optional] +**start_ts** | Option<**String**> | RFC3339 timestamp | [optional] **status** | [**crate::models::CloudLogsLobbyStatus**](CloudLogsLobbyStatus.md) | | [[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/sdks/full/rust-cli/docs/CloudLogsPerfMark.md b/sdks/full/rust-cli/docs/CloudLogsPerfMark.md index 5ea917b70a..d2f018666d 100644 --- a/sdks/full/rust-cli/docs/CloudLogsPerfMark.md +++ b/sdks/full/rust-cli/docs/CloudLogsPerfMark.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **label** | **String** | The label given to this performance mark. | **ray_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] **req_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] -**ts** | **String** | RFC3339 timestamp. | +**ts** | **String** | RFC3339 timestamp | [[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/sdks/full/rust-cli/docs/CloudLogsPerfSpan.md b/sdks/full/rust-cli/docs/CloudLogsPerfSpan.md index 53ee880473..2772228a19 100644 --- a/sdks/full/rust-cli/docs/CloudLogsPerfSpan.md +++ b/sdks/full/rust-cli/docs/CloudLogsPerfSpan.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**finish_ts** | Option<**String**> | RFC3339 timestamp. | [optional] +**finish_ts** | Option<**String**> | RFC3339 timestamp | [optional] **label** | **String** | The label given to this performance span. | **req_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] -**start_ts** | **String** | RFC3339 timestamp. | +**start_ts** | **String** | RFC3339 timestamp | [[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/sdks/full/rust-cli/docs/CloudNamespaceFull.md b/sdks/full/rust-cli/docs/CloudNamespaceFull.md index 8bd13301c9..8a62def44a 100644 --- a/sdks/full/rust-cli/docs/CloudNamespaceFull.md +++ b/sdks/full/rust-cli/docs/CloudNamespaceFull.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **config** | [**crate::models::CloudNamespaceConfig**](CloudNamespaceConfig.md) | | -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **display_name** | **String** | Represent a resource's readable display name. | **name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | **namespace_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust-cli/docs/CloudNamespaceSummary.md b/sdks/full/rust-cli/docs/CloudNamespaceSummary.md index 1dee4bf3f4..58bf40d498 100644 --- a/sdks/full/rust-cli/docs/CloudNamespaceSummary.md +++ b/sdks/full/rust-cli/docs/CloudNamespaceSummary.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **display_name** | **String** | Represent a resource's readable display name. | **name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | **namespace_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust-cli/docs/CloudNamespaceVersion.md b/sdks/full/rust-cli/docs/CloudNamespaceVersion.md index 55eb6829d5..2b9e1bfa00 100644 --- a/sdks/full/rust-cli/docs/CloudNamespaceVersion.md +++ b/sdks/full/rust-cli/docs/CloudNamespaceVersion.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**deploy_ts** | **String** | RFC3339 timestamp. | +**deploy_ts** | **String** | RFC3339 timestamp | **namespace_id** | **String** | A universally unique identifier. | **version_id** | **String** | A universally unique identifier. | diff --git a/sdks/full/rust-cli/docs/CloudVersionFull.md b/sdks/full/rust-cli/docs/CloudVersionFull.md index 03eb62bc06..2368ab6f29 100644 --- a/sdks/full/rust-cli/docs/CloudVersionFull.md +++ b/sdks/full/rust-cli/docs/CloudVersionFull.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **config** | [**crate::models::CloudVersionConfig**](CloudVersionConfig.md) | | -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **display_name** | **String** | Represent a resource's readable display name. | **version_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust-cli/docs/CloudVersionIdentityCustomDisplayName.md b/sdks/full/rust-cli/docs/CloudVersionIdentityCustomDisplayName.md index 7eb7947a19..e31747bb8f 100644 --- a/sdks/full/rust-cli/docs/CloudVersionIdentityCustomDisplayName.md +++ b/sdks/full/rust-cli/docs/CloudVersionIdentityCustomDisplayName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | [[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/sdks/full/rust-cli/docs/CloudVersionSummary.md b/sdks/full/rust-cli/docs/CloudVersionSummary.md index 1d9cb4f256..820cd4b7cb 100644 --- a/sdks/full/rust-cli/docs/CloudVersionSummary.md +++ b/sdks/full/rust-cli/docs/CloudVersionSummary.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **display_name** | **String** | Represent a resource's readable display name. | **version_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust-cli/docs/GameHandle.md b/sdks/full/rust-cli/docs/GameHandle.md index f24739c715..21d5ab9809 100644 --- a/sdks/full/rust-cli/docs/GameHandle.md +++ b/sdks/full/rust-cli/docs/GameHandle.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **banner_url** | Option<**String**> | The URL of this game's banner image. | [optional] -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **logo_url** | Option<**String**> | The URL of this game's logo image. | [optional] **name_id** | **String** | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | diff --git a/sdks/full/rust-cli/docs/GameStatConfig.md b/sdks/full/rust-cli/docs/GameStatConfig.md index d43256a342..f11e6ea9ee 100644 --- a/sdks/full/rust-cli/docs/GameStatConfig.md +++ b/sdks/full/rust-cli/docs/GameStatConfig.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **aggregation** | [**crate::models::GameStatAggregationMethod**](GameStatAggregationMethod.md) | | -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **format** | [**crate::models::GameStatFormatMethod**](GameStatFormatMethod.md) | | **icon_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **postfix_plural** | Option<**String**> | A string appended to the end of a game statistic's value that is not exactly 1. Example: 45 **dollars**. | [optional] diff --git a/sdks/full/rust-cli/docs/GameSummary.md b/sdks/full/rust-cli/docs/GameSummary.md index f8c6e314f0..5d421cb8f5 100644 --- a/sdks/full/rust-cli/docs/GameSummary.md +++ b/sdks/full/rust-cli/docs/GameSummary.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **banner_url** | Option<**String**> | The URL of this game's banner image. | [optional] **developer** | [**crate::models::GroupHandle**](GroupHandle.md) | | -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **logo_url** | Option<**String**> | The URL of this game's logo image. | [optional] **name_id** | **String** | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | diff --git a/sdks/full/rust-cli/docs/GroupBannedIdentity.md b/sdks/full/rust-cli/docs/GroupBannedIdentity.md index 04e5aa227d..cd6aadff02 100644 --- a/sdks/full/rust-cli/docs/GroupBannedIdentity.md +++ b/sdks/full/rust-cli/docs/GroupBannedIdentity.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ban_ts** | **String** | RFC3339 timestamp. | +**ban_ts** | **String** | RFC3339 timestamp | **identity** | [**crate::models::IdentityHandle**](IdentityHandle.md) | | [[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/sdks/full/rust-cli/docs/GroupHandle.md b/sdks/full/rust-cli/docs/GroupHandle.md index 707ce84214..9eb1e35c46 100644 --- a/sdks/full/rust-cli/docs/GroupHandle.md +++ b/sdks/full/rust-cli/docs/GroupHandle.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **avatar_url** | Option<**String**> | The URL of this group's avatar image | [optional] -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **external** | [**crate::models::GroupExternalLinks**](GroupExternalLinks.md) | | **group_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **is_developer** | Option<**bool**> | Whether or not this group is a developer group. | [optional] diff --git a/sdks/full/rust-cli/docs/GroupSummary.md b/sdks/full/rust-cli/docs/GroupSummary.md index dc7a00eda4..9905aaf838 100644 --- a/sdks/full/rust-cli/docs/GroupSummary.md +++ b/sdks/full/rust-cli/docs/GroupSummary.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **avatar_url** | Option<**String**> | The URL of this group's avatar image. | [optional] **bio** | **String** | Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ | -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **external** | [**crate::models::GroupExternalLinks**](GroupExternalLinks.md) | | **group_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **is_current_identity_member** | **bool** | Whether or not the current identity is a member of this group. | diff --git a/sdks/full/rust-cli/docs/GroupValidateProfileRequest.md b/sdks/full/rust-cli/docs/GroupValidateProfileRequest.md index c45411d36f..ee83335004 100644 --- a/sdks/full/rust-cli/docs/GroupValidateProfileRequest.md +++ b/sdks/full/rust-cli/docs/GroupValidateProfileRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bio** | Option<**String**> | Detailed information about a profile. | [optional] +**bio** | Option<**String**> | Represent a resource's readable display name. | [optional] **display_name** | Option<**String**> | Represent a resource's readable display name. | [optional] **publicity** | Option<[**crate::models::GroupPublicity**](GroupPublicity.md)> | | [optional] diff --git a/sdks/full/rust-cli/docs/IdentityGetGameLinkNewIdentity.md b/sdks/full/rust-cli/docs/IdentityGetGameLinkNewIdentity.md index 0bfc47ce30..ca35a6612d 100644 --- a/sdks/full/rust-cli/docs/IdentityGetGameLinkNewIdentity.md +++ b/sdks/full/rust-cli/docs/IdentityGetGameLinkNewIdentity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**crate::models::IdentityProfile**](IdentityProfile.md) | | **identity_token** | **String** | Documentation at https://jwt.io/ | -**identity_token_expire_ts** | **String** | | +**identity_token_expire_ts** | **String** | RFC3339 timestamp | [[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/sdks/full/rust-cli/docs/IdentityHandle.md b/sdks/full/rust-cli/docs/IdentityHandle.md index 5200931129..629764404f 100644 --- a/sdks/full/rust-cli/docs/IdentityHandle.md +++ b/sdks/full/rust-cli/docs/IdentityHandle.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **account_number** | **i32** | | **avatar_url** | **String** | The URL of this identity's avatar image. | -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **external** | [**crate::models::IdentityExternalLinks**](IdentityExternalLinks.md) | | **identity_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **is_registered** | **bool** | Whether or not this identity is registered with a linked account. | diff --git a/sdks/full/rust-cli/docs/IdentityPrepareGameLinkResponse.md b/sdks/full/rust-cli/docs/IdentityPrepareGameLinkResponse.md index 630dbca241..dc6cd813f4 100644 --- a/sdks/full/rust-cli/docs/IdentityPrepareGameLinkResponse.md +++ b/sdks/full/rust-cli/docs/IdentityPrepareGameLinkResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**expire_ts** | **String** | | +**expire_ts** | **String** | RFC3339 timestamp | **identity_link_token** | **String** | Pass this to `GetGameLink` to get the linking status. Valid for 15 minutes. | **identity_link_url** | **String** | | diff --git a/sdks/full/rust-cli/docs/IdentityPresence.md b/sdks/full/rust-cli/docs/IdentityPresence.md index 08b85cb00a..66a71fd89e 100644 --- a/sdks/full/rust-cli/docs/IdentityPresence.md +++ b/sdks/full/rust-cli/docs/IdentityPresence.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **game_activity** | Option<[**crate::models::IdentityGameActivity**](IdentityGameActivity.md)> | | [optional] **status** | [**crate::models::IdentityStatus**](IdentityStatus.md) | | -**update_ts** | **String** | | +**update_ts** | **String** | RFC3339 timestamp | [[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/sdks/full/rust-cli/docs/IdentityProfile.md b/sdks/full/rust-cli/docs/IdentityProfile.md index 37ccb7c5bd..9c79c1ee4d 100644 --- a/sdks/full/rust-cli/docs/IdentityProfile.md +++ b/sdks/full/rust-cli/docs/IdentityProfile.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **awaiting_deletion** | Option<**bool**> | Whether or not this identity is awaiting account deletion. Only visible to when the requestee is this identity. | [optional] **bio** | **String** | Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ | **dev_state** | Option<[**crate::models::IdentityDevState**](IdentityDevState.md)> | | [optional] -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **external** | [**crate::models::IdentityExternalLinks**](IdentityExternalLinks.md) | | **follower_count** | **i64** | | **following** | **bool** | Whether or not the requestee's identity is following this identity. | @@ -22,7 +22,7 @@ Name | Type | Description | Notes **is_game_linked** | Option<**bool**> | Whether or not this game user has been linked through the Rivet dashboard. | [optional] **is_mutual_following** | **bool** | | **is_registered** | **bool** | Whether or not this identity is registered with a linked account. | -**join_ts** | **String** | | +**join_ts** | **String** | RFC3339 timestamp | **linked_accounts** | [**Vec**](IdentityLinkedAccount.md) | | **presence** | Option<[**crate::models::IdentityPresence**](IdentityPresence.md)> | | [optional] diff --git a/sdks/full/rust-cli/docs/IdentitySetupResponse.md b/sdks/full/rust-cli/docs/IdentitySetupResponse.md index 793a872c38..18f209b27b 100644 --- a/sdks/full/rust-cli/docs/IdentitySetupResponse.md +++ b/sdks/full/rust-cli/docs/IdentitySetupResponse.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **identity** | [**crate::models::IdentityProfile**](IdentityProfile.md) | | **identity_token** | **String** | Documentation at https://jwt.io/ | -**identity_token_expire_ts** | **String** | If this token is compromised, anyone with access to this token has control of the identity. | +**identity_token_expire_ts** | **String** | RFC3339 timestamp | [[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/sdks/full/rust-cli/docs/IdentitySummary.md b/sdks/full/rust-cli/docs/IdentitySummary.md index c87975d5a6..8b956b7a4e 100644 --- a/sdks/full/rust-cli/docs/IdentitySummary.md +++ b/sdks/full/rust-cli/docs/IdentitySummary.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **account_number** | **i32** | | **avatar_url** | **String** | The URL of this identity's avatar image. | -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **external** | [**crate::models::IdentityExternalLinks**](IdentityExternalLinks.md) | | **following** | **bool** | Whether or not the requestee's identity is following this identity. | **identity_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust-cli/docs/IdentityUpdateProfileRequest.md b/sdks/full/rust-cli/docs/IdentityUpdateProfileRequest.md index 94d026ecc5..bf63d3e257 100644 --- a/sdks/full/rust-cli/docs/IdentityUpdateProfileRequest.md +++ b/sdks/full/rust-cli/docs/IdentityUpdateProfileRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **account_number** | Option<**i32**> | | [optional] **bio** | Option<**String**> | Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ | [optional] -**display_name** | Option<**String**> | | [optional] +**display_name** | Option<**String**> | Represent a resource's readable display name. | [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/sdks/full/rust-cli/docs/MatchmakerJoinRegion.md b/sdks/full/rust-cli/docs/MatchmakerJoinRegion.md index 8efd1bfa09..0ba22c74ff 100644 --- a/sdks/full/rust-cli/docs/MatchmakerJoinRegion.md +++ b/sdks/full/rust-cli/docs/MatchmakerJoinRegion.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **region_id** | **String** | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | [[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/sdks/full/rust-cli/docs/MatchmakerRegionInfo.md b/sdks/full/rust-cli/docs/MatchmakerRegionInfo.md index 8aab80146b..10a2ff6747 100644 --- a/sdks/full/rust-cli/docs/MatchmakerRegionInfo.md +++ b/sdks/full/rust-cli/docs/MatchmakerRegionInfo.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **datacenter_coord** | [**crate::models::GeoCoord**](GeoCoord.md) | | **datacenter_distance_from_client** | [**crate::models::GeoDistance**](GeoDistance.md) | | -**provider_display_name** | **String** | | -**region_display_name** | **String** | | +**provider_display_name** | **String** | Represent a resource's readable display name. | +**region_display_name** | **String** | Represent a resource's readable display name. | **region_id** | **String** | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | [[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/sdks/full/rust-cli/docs/ModuleApi.md b/sdks/full/rust-cli/docs/ModuleApi.md deleted file mode 100644 index 000f72f0b7..0000000000 --- a/sdks/full/rust-cli/docs/ModuleApi.md +++ /dev/null @@ -1,42 +0,0 @@ -# \ModuleApi - -All URIs are relative to *https://api.rivet.gg* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**module_call**](ModuleApi.md#module_call) | **POST** /module/modules/{module}/scripts/{script}/call | - - - -## module_call - -> crate::models::ModuleCallResponse module_call(module, script, module_call_request, origin) - - -Makes a request to a module's script. - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**module** | **String** | | [required] | -**script** | **String** | | [required] | -**module_call_request** | [**ModuleCallRequest**](ModuleCallRequest.md) | | [required] | -**origin** | Option<**String**> | | | - -### Return type - -[**crate::models::ModuleCallResponse**](ModuleCallResponse.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### 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/sdks/full/rust-cli/docs/ModuleCallRequest.md b/sdks/full/rust-cli/docs/ModuleCallRequest.md deleted file mode 100644 index 1dd7c8c4f9..0000000000 --- a/sdks/full/rust-cli/docs/ModuleCallRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# ModuleCallRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | Option<[**serde_json::Value**](.md)> | | -**namespace_id** | Option<[**uuid::Uuid**](uuid::Uuid.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) - - diff --git a/sdks/full/rust-cli/docs/ModuleCallResponse.md b/sdks/full/rust-cli/docs/ModuleCallResponse.md deleted file mode 100644 index 5a8c9f9834..0000000000 --- a/sdks/full/rust-cli/docs/ModuleCallResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# ModuleCallResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | Option<[**serde_json::Value**](.md)> | | - -[[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/sdks/full/rust-cli/src/apis/cloud_games_namespaces_logs_api.rs b/sdks/full/rust-cli/src/apis/cloud_games_namespaces_logs_api.rs index 43e8b17d20..ad0516e80f 100644 --- a/sdks/full/rust-cli/src/apis/cloud_games_namespaces_logs_api.rs +++ b/sdks/full/rust-cli/src/apis/cloud_games_namespaces_logs_api.rs @@ -74,7 +74,7 @@ pub async fn cloud_games_namespaces_logs_get_namespace_lobby(configuration: &con } /// Returns a list of lobbies for the given game namespace. -pub async fn cloud_games_namespaces_logs_list_namespace_lobbies(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, before_create_ts: Option) -> Result> { +pub async fn cloud_games_namespaces_logs_list_namespace_lobbies(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, before_create_ts: Option<&str>) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/sdks/full/rust-cli/src/apis/mod.rs b/sdks/full/rust-cli/src/apis/mod.rs index b22b9678f0..63bc85d7f2 100644 --- a/sdks/full/rust-cli/src/apis/mod.rs +++ b/sdks/full/rust-cli/src/apis/mod.rs @@ -123,7 +123,6 @@ pub mod kv_api; pub mod matchmaker_lobbies_api; pub mod matchmaker_players_api; pub mod matchmaker_regions_api; -pub mod module_api; pub mod portal_games_api; pub mod portal_notifications_api; diff --git a/sdks/full/rust-cli/src/apis/module_api.rs b/sdks/full/rust-cli/src/apis/module_api.rs deleted file mode 100644 index 3b52315806..0000000000 --- a/sdks/full/rust-cli/src/apis/module_api.rs +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Rivet API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.1 - * - * Generated by: https://openapi-generator.tech - */ - - -use reqwest; - -use crate::apis::ResponseContent; -use super::{Error, configuration}; - - -/// struct for typed errors of method [`module_call`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum ModuleCallError { - Status400(crate::models::ErrorBody), - Status403(crate::models::ErrorBody), - Status404(crate::models::ErrorBody), - Status408(crate::models::ErrorBody), - Status429(crate::models::ErrorBody), - Status500(crate::models::ErrorBody), - UnknownValue(serde_json::Value), -} - - -/// Makes a request to a module's script. -pub async fn module_call(configuration: &configuration::Configuration, module: &str, script: &str, module_call_request: crate::models::ModuleCallRequest, origin: Option<&str>) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!("{}/module/modules/{module}/scripts/{script}/call", local_var_configuration.base_path, module=crate::apis::urlencode(module), script=crate::apis::urlencode(script)); - let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - if let Some(local_var_param_value) = origin { - local_var_req_builder = local_var_req_builder.header("origin", local_var_param_value.to_string()); - } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); - }; - local_var_req_builder = local_var_req_builder.json(&module_call_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; - Err(Error::ResponseError(local_var_error)) - } -} - diff --git a/sdks/full/rust-cli/src/models/cloud_build_summary.rs b/sdks/full/rust-cli/src/models/cloud_build_summary.rs index bf7b018438..e11928b5f4 100644 --- a/sdks/full/rust-cli/src/models/cloud_build_summary.rs +++ b/sdks/full/rust-cli/src/models/cloud_build_summary.rs @@ -22,7 +22,7 @@ pub struct CloudBuildSummary { /// Unsigned 64 bit integer. #[serde(rename = "content_length")] pub content_length: i64, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Represent a resource's readable display name. diff --git a/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain.rs b/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain.rs index e8a4456283..db81a282e7 100644 --- a/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain.rs +++ b/sdks/full/rust-cli/src/models/cloud_cdn_namespace_domain.rs @@ -14,7 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudCdnNamespaceDomain { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// A valid domain name (no protocol). diff --git a/sdks/full/rust-cli/src/models/cloud_cdn_site_summary.rs b/sdks/full/rust-cli/src/models/cloud_cdn_site_summary.rs index 4a845816a9..15f0418c57 100644 --- a/sdks/full/rust-cli/src/models/cloud_cdn_site_summary.rs +++ b/sdks/full/rust-cli/src/models/cloud_cdn_site_summary.rs @@ -20,7 +20,7 @@ pub struct CloudCdnSiteSummary { /// Unsigned 64 bit integer. #[serde(rename = "content_length")] pub content_length: i64, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Represent a resource's readable display name. diff --git a/sdks/full/rust-cli/src/models/cloud_custom_avatar_summary.rs b/sdks/full/rust-cli/src/models/cloud_custom_avatar_summary.rs index 934a8e1ab2..e3716280da 100644 --- a/sdks/full/rust-cli/src/models/cloud_custom_avatar_summary.rs +++ b/sdks/full/rust-cli/src/models/cloud_custom_avatar_summary.rs @@ -20,7 +20,7 @@ pub struct CloudCustomAvatarSummary { /// Unsigned 64 bit integer. #[serde(rename = "content_length")] pub content_length: i64, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Represent a resource's readable display name. diff --git a/sdks/full/rust-cli/src/models/cloud_game_full.rs b/sdks/full/rust-cli/src/models/cloud_game_full.rs index 58b5c9fecc..a4ffd17835 100644 --- a/sdks/full/rust-cli/src/models/cloud_game_full.rs +++ b/sdks/full/rust-cli/src/models/cloud_game_full.rs @@ -20,7 +20,7 @@ pub struct CloudGameFull { /// The URL of this game's banner image. #[serde(rename = "banner_url", skip_serializing_if = "Option::is_none")] pub banner_url: Option, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, #[serde(rename = "developer_group_id")] diff --git a/sdks/full/rust-cli/src/models/cloud_games_create_game_request.rs b/sdks/full/rust-cli/src/models/cloud_games_create_game_request.rs index bcbd19cc2f..e5fd44a582 100644 --- a/sdks/full/rust-cli/src/models/cloud_games_create_game_request.rs +++ b/sdks/full/rust-cli/src/models/cloud_games_create_game_request.rs @@ -18,7 +18,7 @@ pub struct CloudGamesCreateGameRequest { /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, - /// **Deprecated** A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + /// A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. #[serde(rename = "name_id", skip_serializing_if = "Option::is_none")] pub name_id: Option, } diff --git a/sdks/full/rust-cli/src/models/cloud_games_reserve_version_name_response.rs b/sdks/full/rust-cli/src/models/cloud_games_reserve_version_name_response.rs index 326f45c0ff..1ca6b9fd43 100644 --- a/sdks/full/rust-cli/src/models/cloud_games_reserve_version_name_response.rs +++ b/sdks/full/rust-cli/src/models/cloud_games_reserve_version_name_response.rs @@ -13,6 +13,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudGamesReserveVersionNameResponse { + /// Represent a resource's readable display name. #[serde(rename = "version_display_name")] pub version_display_name: String, } diff --git a/sdks/full/rust-cli/src/models/cloud_lobby_summary_analytics.rs b/sdks/full/rust-cli/src/models/cloud_lobby_summary_analytics.rs index 5124ba7155..e99c372fb3 100644 --- a/sdks/full/rust-cli/src/models/cloud_lobby_summary_analytics.rs +++ b/sdks/full/rust-cli/src/models/cloud_lobby_summary_analytics.rs @@ -14,7 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudLobbySummaryAnalytics { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Whether or not this lobby is in a closed state. diff --git a/sdks/full/rust-cli/src/models/cloud_logs_lobby_status_stopped.rs b/sdks/full/rust-cli/src/models/cloud_logs_lobby_status_stopped.rs index 041bd4d56f..c74fa79844 100644 --- a/sdks/full/rust-cli/src/models/cloud_logs_lobby_status_stopped.rs +++ b/sdks/full/rust-cli/src/models/cloud_logs_lobby_status_stopped.rs @@ -20,6 +20,7 @@ pub struct CloudLogsLobbyStatusStopped { /// Whether or not the lobby failed or stopped successfully. #[serde(rename = "failed")] pub failed: bool, + /// RFC3339 timestamp #[serde(rename = "stop_ts")] pub stop_ts: String, } diff --git a/sdks/full/rust-cli/src/models/cloud_logs_lobby_summary.rs b/sdks/full/rust-cli/src/models/cloud_logs_lobby_summary.rs index c5beb1be53..7f24f714de 100644 --- a/sdks/full/rust-cli/src/models/cloud_logs_lobby_summary.rs +++ b/sdks/full/rust-cli/src/models/cloud_logs_lobby_summary.rs @@ -14,7 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudLogsLobbySummary { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. @@ -24,12 +24,12 @@ pub struct CloudLogsLobbySummary { pub lobby_id: uuid::Uuid, #[serde(rename = "namespace_id")] pub namespace_id: uuid::Uuid, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "ready_ts", skip_serializing_if = "Option::is_none")] pub ready_ts: Option, #[serde(rename = "region_id")] pub region_id: uuid::Uuid, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "start_ts", skip_serializing_if = "Option::is_none")] pub start_ts: Option, #[serde(rename = "status")] diff --git a/sdks/full/rust-cli/src/models/cloud_logs_perf_mark.rs b/sdks/full/rust-cli/src/models/cloud_logs_perf_mark.rs index 9c910d5adf..7df6a121f9 100644 --- a/sdks/full/rust-cli/src/models/cloud_logs_perf_mark.rs +++ b/sdks/full/rust-cli/src/models/cloud_logs_perf_mark.rs @@ -21,7 +21,7 @@ pub struct CloudLogsPerfMark { pub ray_id: Option, #[serde(rename = "req_id", skip_serializing_if = "Option::is_none")] pub req_id: Option, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "ts")] pub ts: String, } diff --git a/sdks/full/rust-cli/src/models/cloud_logs_perf_span.rs b/sdks/full/rust-cli/src/models/cloud_logs_perf_span.rs index 3cb9623882..43429ba2c8 100644 --- a/sdks/full/rust-cli/src/models/cloud_logs_perf_span.rs +++ b/sdks/full/rust-cli/src/models/cloud_logs_perf_span.rs @@ -14,7 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudLogsPerfSpan { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "finish_ts", skip_serializing_if = "Option::is_none")] pub finish_ts: Option, /// The label given to this performance span. @@ -22,7 +22,7 @@ pub struct CloudLogsPerfSpan { pub label: String, #[serde(rename = "req_id", skip_serializing_if = "Option::is_none")] pub req_id: Option, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "start_ts")] pub start_ts: String, } diff --git a/sdks/full/rust-cli/src/models/cloud_namespace_full.rs b/sdks/full/rust-cli/src/models/cloud_namespace_full.rs index a87a934ef1..581f7008ae 100644 --- a/sdks/full/rust-cli/src/models/cloud_namespace_full.rs +++ b/sdks/full/rust-cli/src/models/cloud_namespace_full.rs @@ -16,7 +16,7 @@ pub struct CloudNamespaceFull { #[serde(rename = "config")] pub config: Box, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Represent a resource's readable display name. diff --git a/sdks/full/rust-cli/src/models/cloud_namespace_summary.rs b/sdks/full/rust-cli/src/models/cloud_namespace_summary.rs index 661d02ba13..d7e3215a51 100644 --- a/sdks/full/rust-cli/src/models/cloud_namespace_summary.rs +++ b/sdks/full/rust-cli/src/models/cloud_namespace_summary.rs @@ -14,7 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudNamespaceSummary { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Represent a resource's readable display name. diff --git a/sdks/full/rust-cli/src/models/cloud_namespace_version.rs b/sdks/full/rust-cli/src/models/cloud_namespace_version.rs index 474607d433..fcab3769a1 100644 --- a/sdks/full/rust-cli/src/models/cloud_namespace_version.rs +++ b/sdks/full/rust-cli/src/models/cloud_namespace_version.rs @@ -14,7 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudNamespaceVersion { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "deploy_ts")] pub deploy_ts: String, /// A universally unique identifier. diff --git a/sdks/full/rust-cli/src/models/cloud_version_full.rs b/sdks/full/rust-cli/src/models/cloud_version_full.rs index 1f65a6f863..ac4942fb27 100644 --- a/sdks/full/rust-cli/src/models/cloud_version_full.rs +++ b/sdks/full/rust-cli/src/models/cloud_version_full.rs @@ -17,7 +17,7 @@ pub struct CloudVersionFull { #[serde(rename = "config")] pub config: Box, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Represent a resource's readable display name. diff --git a/sdks/full/rust-cli/src/models/cloud_version_identity_custom_display_name.rs b/sdks/full/rust-cli/src/models/cloud_version_identity_custom_display_name.rs index 81305efd5f..41fcfc2245 100644 --- a/sdks/full/rust-cli/src/models/cloud_version_identity_custom_display_name.rs +++ b/sdks/full/rust-cli/src/models/cloud_version_identity_custom_display_name.rs @@ -14,6 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] #[serde(deny_unknown_fields)] pub struct CloudVersionIdentityCustomDisplayName { + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, } diff --git a/sdks/full/rust-cli/src/models/cloud_version_summary.rs b/sdks/full/rust-cli/src/models/cloud_version_summary.rs index 9fbfa15640..da670510c2 100644 --- a/sdks/full/rust-cli/src/models/cloud_version_summary.rs +++ b/sdks/full/rust-cli/src/models/cloud_version_summary.rs @@ -15,7 +15,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] #[serde(deny_unknown_fields)] pub struct CloudVersionSummary { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Represent a resource's readable display name. diff --git a/sdks/full/rust-cli/src/models/game_handle.rs b/sdks/full/rust-cli/src/models/game_handle.rs index 92dfdc921b..346a1b6a6e 100644 --- a/sdks/full/rust-cli/src/models/game_handle.rs +++ b/sdks/full/rust-cli/src/models/game_handle.rs @@ -16,6 +16,7 @@ pub struct GameHandle { /// The URL of this game's banner image. #[serde(rename = "banner_url", skip_serializing_if = "Option::is_none")] pub banner_url: Option, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "game_id")] diff --git a/sdks/full/rust-cli/src/models/game_stat_config.rs b/sdks/full/rust-cli/src/models/game_stat_config.rs index fa4aea73c6..f9c47ec3b2 100644 --- a/sdks/full/rust-cli/src/models/game_stat_config.rs +++ b/sdks/full/rust-cli/src/models/game_stat_config.rs @@ -16,6 +16,7 @@ pub struct GameStatConfig { #[serde(rename = "aggregation")] pub aggregation: crate::models::GameStatAggregationMethod, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "format")] diff --git a/sdks/full/rust-cli/src/models/game_summary.rs b/sdks/full/rust-cli/src/models/game_summary.rs index 73a107ff4f..88d337f3db 100644 --- a/sdks/full/rust-cli/src/models/game_summary.rs +++ b/sdks/full/rust-cli/src/models/game_summary.rs @@ -18,6 +18,7 @@ pub struct GameSummary { pub banner_url: Option, #[serde(rename = "developer")] pub developer: Box, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "game_id")] diff --git a/sdks/full/rust-cli/src/models/group_banned_identity.rs b/sdks/full/rust-cli/src/models/group_banned_identity.rs index e443d75959..2e552da163 100644 --- a/sdks/full/rust-cli/src/models/group_banned_identity.rs +++ b/sdks/full/rust-cli/src/models/group_banned_identity.rs @@ -14,7 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct GroupBannedIdentity { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "ban_ts")] pub ban_ts: String, #[serde(rename = "identity")] diff --git a/sdks/full/rust-cli/src/models/group_handle.rs b/sdks/full/rust-cli/src/models/group_handle.rs index 3d67b32c10..6aed5a1bfa 100644 --- a/sdks/full/rust-cli/src/models/group_handle.rs +++ b/sdks/full/rust-cli/src/models/group_handle.rs @@ -17,6 +17,7 @@ pub struct GroupHandle { /// The URL of this group's avatar image #[serde(rename = "avatar_url", skip_serializing_if = "Option::is_none")] pub avatar_url: Option, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "external")] diff --git a/sdks/full/rust-cli/src/models/group_summary.rs b/sdks/full/rust-cli/src/models/group_summary.rs index 767f5ed6a8..85ae0cfede 100644 --- a/sdks/full/rust-cli/src/models/group_summary.rs +++ b/sdks/full/rust-cli/src/models/group_summary.rs @@ -19,6 +19,7 @@ pub struct GroupSummary { /// Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ #[serde(rename = "bio")] pub bio: String, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "external")] diff --git a/sdks/full/rust-cli/src/models/group_validate_profile_request.rs b/sdks/full/rust-cli/src/models/group_validate_profile_request.rs index 935150f9ac..501acb5beb 100644 --- a/sdks/full/rust-cli/src/models/group_validate_profile_request.rs +++ b/sdks/full/rust-cli/src/models/group_validate_profile_request.rs @@ -13,7 +13,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct GroupValidateProfileRequest { - /// Detailed information about a profile. + /// Represent a resource's readable display name. #[serde(rename = "bio", skip_serializing_if = "Option::is_none")] pub bio: Option, /// Represent a resource's readable display name. diff --git a/sdks/full/rust-cli/src/models/identity_get_game_link_new_identity.rs b/sdks/full/rust-cli/src/models/identity_get_game_link_new_identity.rs index 419665f20d..7b61ef57b3 100644 --- a/sdks/full/rust-cli/src/models/identity_get_game_link_new_identity.rs +++ b/sdks/full/rust-cli/src/models/identity_get_game_link_new_identity.rs @@ -18,6 +18,7 @@ pub struct IdentityGetGameLinkNewIdentity { /// Documentation at https://jwt.io/ #[serde(rename = "identity_token")] pub identity_token: String, + /// RFC3339 timestamp #[serde(rename = "identity_token_expire_ts")] pub identity_token_expire_ts: String, } diff --git a/sdks/full/rust-cli/src/models/identity_handle.rs b/sdks/full/rust-cli/src/models/identity_handle.rs index df9c459276..3fa21c3a42 100644 --- a/sdks/full/rust-cli/src/models/identity_handle.rs +++ b/sdks/full/rust-cli/src/models/identity_handle.rs @@ -19,6 +19,7 @@ pub struct IdentityHandle { /// The URL of this identity's avatar image. #[serde(rename = "avatar_url")] pub avatar_url: String, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "external")] diff --git a/sdks/full/rust-cli/src/models/identity_prepare_game_link_response.rs b/sdks/full/rust-cli/src/models/identity_prepare_game_link_response.rs index 676ce4145a..cd0b41ea9d 100644 --- a/sdks/full/rust-cli/src/models/identity_prepare_game_link_response.rs +++ b/sdks/full/rust-cli/src/models/identity_prepare_game_link_response.rs @@ -13,6 +13,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct IdentityPrepareGameLinkResponse { + /// RFC3339 timestamp #[serde(rename = "expire_ts")] pub expire_ts: String, /// Pass this to `GetGameLink` to get the linking status. Valid for 15 minutes. diff --git a/sdks/full/rust-cli/src/models/identity_presence.rs b/sdks/full/rust-cli/src/models/identity_presence.rs index 01cf3f5f2c..2e4df976d6 100644 --- a/sdks/full/rust-cli/src/models/identity_presence.rs +++ b/sdks/full/rust-cli/src/models/identity_presence.rs @@ -18,6 +18,7 @@ pub struct IdentityPresence { pub game_activity: Option>, #[serde(rename = "status")] pub status: crate::models::IdentityStatus, + /// RFC3339 timestamp #[serde(rename = "update_ts")] pub update_ts: String, } diff --git a/sdks/full/rust-cli/src/models/identity_profile.rs b/sdks/full/rust-cli/src/models/identity_profile.rs index fda0d0dac7..920c1b42ac 100644 --- a/sdks/full/rust-cli/src/models/identity_profile.rs +++ b/sdks/full/rust-cli/src/models/identity_profile.rs @@ -27,6 +27,7 @@ pub struct IdentityProfile { pub bio: String, #[serde(rename = "dev_state", skip_serializing_if = "Option::is_none")] pub dev_state: Option, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "external")] @@ -58,6 +59,7 @@ pub struct IdentityProfile { /// Whether or not this identity is registered with a linked account. #[serde(rename = "is_registered")] pub is_registered: bool, + /// RFC3339 timestamp #[serde(rename = "join_ts")] pub join_ts: String, #[serde(rename = "linked_accounts")] diff --git a/sdks/full/rust-cli/src/models/identity_setup_response.rs b/sdks/full/rust-cli/src/models/identity_setup_response.rs index 25601285b9..d72d496270 100644 --- a/sdks/full/rust-cli/src/models/identity_setup_response.rs +++ b/sdks/full/rust-cli/src/models/identity_setup_response.rs @@ -20,7 +20,7 @@ pub struct IdentitySetupResponse { /// Documentation at https://jwt.io/ #[serde(rename = "identity_token")] pub identity_token: String, - /// If this token is compromised, anyone with access to this token has control of the identity. + /// RFC3339 timestamp #[serde(rename = "identity_token_expire_ts")] pub identity_token_expire_ts: String, } diff --git a/sdks/full/rust-cli/src/models/identity_summary.rs b/sdks/full/rust-cli/src/models/identity_summary.rs index cdfdf6ef47..585b399d60 100644 --- a/sdks/full/rust-cli/src/models/identity_summary.rs +++ b/sdks/full/rust-cli/src/models/identity_summary.rs @@ -19,6 +19,7 @@ pub struct IdentitySummary { /// The URL of this identity's avatar image. #[serde(rename = "avatar_url")] pub avatar_url: String, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "external")] diff --git a/sdks/full/rust-cli/src/models/identity_update_profile_request.rs b/sdks/full/rust-cli/src/models/identity_update_profile_request.rs index 11ed8a3b31..24d90a91c4 100644 --- a/sdks/full/rust-cli/src/models/identity_update_profile_request.rs +++ b/sdks/full/rust-cli/src/models/identity_update_profile_request.rs @@ -18,6 +18,7 @@ pub struct IdentityUpdateProfileRequest { /// Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ #[serde(rename = "bio", skip_serializing_if = "Option::is_none")] pub bio: Option, + /// Represent a resource's readable display name. #[serde(rename = "display_name", skip_serializing_if = "Option::is_none")] pub display_name: Option, } diff --git a/sdks/full/rust-cli/src/models/matchmaker_join_region.rs b/sdks/full/rust-cli/src/models/matchmaker_join_region.rs index a95fb7ad9d..7f38d680cf 100644 --- a/sdks/full/rust-cli/src/models/matchmaker_join_region.rs +++ b/sdks/full/rust-cli/src/models/matchmaker_join_region.rs @@ -14,6 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct MatchmakerJoinRegion { + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, /// A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. diff --git a/sdks/full/rust-cli/src/models/matchmaker_region_info.rs b/sdks/full/rust-cli/src/models/matchmaker_region_info.rs index cf10ffc55d..ed5df899d6 100644 --- a/sdks/full/rust-cli/src/models/matchmaker_region_info.rs +++ b/sdks/full/rust-cli/src/models/matchmaker_region_info.rs @@ -18,8 +18,10 @@ pub struct MatchmakerRegionInfo { pub datacenter_coord: Box, #[serde(rename = "datacenter_distance_from_client")] pub datacenter_distance_from_client: Box, + /// Represent a resource's readable display name. #[serde(rename = "provider_display_name")] pub provider_display_name: String, + /// Represent a resource's readable display name. #[serde(rename = "region_display_name")] pub region_display_name: String, /// A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. diff --git a/sdks/full/rust-cli/src/models/mod.rs b/sdks/full/rust-cli/src/models/mod.rs index a1fbbba440..e813767e1a 100644 --- a/sdks/full/rust-cli/src/models/mod.rs +++ b/sdks/full/rust-cli/src/models/mod.rs @@ -556,10 +556,6 @@ pub mod matchmaker_region_info; pub use self::matchmaker_region_info::MatchmakerRegionInfo; pub mod matchmaker_region_statistics; pub use self::matchmaker_region_statistics::MatchmakerRegionStatistics; -pub mod module_call_request; -pub use self::module_call_request::ModuleCallRequest; -pub mod module_call_response; -pub use self::module_call_response::ModuleCallResponse; pub mod portal_get_game_profile_response; pub use self::portal_get_game_profile_response::PortalGetGameProfileResponse; pub mod portal_get_suggested_games_response; diff --git a/sdks/full/rust-cli/src/models/module_call_request.rs b/sdks/full/rust-cli/src/models/module_call_request.rs deleted file mode 100644 index a6eff2f17b..0000000000 --- a/sdks/full/rust-cli/src/models/module_call_request.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Rivet API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.1 - * - * Generated by: https://openapi-generator.tech - */ - - - - -#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] -pub struct ModuleCallRequest { - #[serde(rename = "data", deserialize_with = "Option::deserialize")] - pub data: Option, - #[serde(rename = "namespace_id", skip_serializing_if = "Option::is_none")] - pub namespace_id: Option, -} - -impl ModuleCallRequest { - pub fn new(data: Option) -> ModuleCallRequest { - ModuleCallRequest { - data, - namespace_id: None, - } - } -} - - diff --git a/sdks/full/rust-cli/src/models/module_call_response.rs b/sdks/full/rust-cli/src/models/module_call_response.rs deleted file mode 100644 index 33ee5c2e1b..0000000000 --- a/sdks/full/rust-cli/src/models/module_call_response.rs +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Rivet API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.1 - * - * Generated by: https://openapi-generator.tech - */ - - - - -#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] -pub struct ModuleCallResponse { - #[serde(rename = "data", deserialize_with = "Option::deserialize")] - pub data: Option, -} - -impl ModuleCallResponse { - pub fn new(data: Option) -> ModuleCallResponse { - ModuleCallResponse { - data, - } - } -} - - diff --git a/sdks/full/rust/.openapi-generator/FILES b/sdks/full/rust/.openapi-generator/FILES index f95d096f8d..77f72c2e0c 100644 --- a/sdks/full/rust/.openapi-generator/FILES +++ b/sdks/full/rust/.openapi-generator/FILES @@ -315,9 +315,6 @@ docs/MatchmakerPlayersConnectedRequest.md docs/MatchmakerRegionInfo.md docs/MatchmakerRegionStatistics.md docs/MatchmakerRegionsApi.md -docs/ModuleApi.md -docs/ModuleCallRequest.md -docs/ModuleCallResponse.md docs/PortalGamesApi.md docs/PortalGetGameProfileResponse.md docs/PortalGetSuggestedGamesResponse.md @@ -366,7 +363,6 @@ src/apis/matchmaker_lobbies_api.rs src/apis/matchmaker_players_api.rs src/apis/matchmaker_regions_api.rs src/apis/mod.rs -src/apis/module_api.rs src/apis/portal_games_api.rs src/apis/portal_notifications_api.rs src/lib.rs @@ -650,8 +646,6 @@ src/models/matchmaker_players_connected_request.rs src/models/matchmaker_region_info.rs src/models/matchmaker_region_statistics.rs src/models/mod.rs -src/models/module_call_request.rs -src/models/module_call_response.rs src/models/portal_get_game_profile_response.rs src/models/portal_get_suggested_games_response.rs src/models/portal_notification_register_firebase_service.rs diff --git a/sdks/full/rust/README.md b/sdks/full/rust/README.md index a00e327989..fa33e01830 100644 --- a/sdks/full/rust/README.md +++ b/sdks/full/rust/README.md @@ -155,7 +155,6 @@ Class | Method | HTTP request | Description *MatchmakerPlayersApi* | [**matchmaker_players_disconnected**](docs/MatchmakerPlayersApi.md#matchmaker_players_disconnected) | **POST** /matchmaker/players/disconnected | *MatchmakerPlayersApi* | [**matchmaker_players_get_statistics**](docs/MatchmakerPlayersApi.md#matchmaker_players_get_statistics) | **GET** /matchmaker/players/statistics | *MatchmakerRegionsApi* | [**matchmaker_regions_list**](docs/MatchmakerRegionsApi.md#matchmaker_regions_list) | **GET** /matchmaker/regions | -*ModuleApi* | [**module_call**](docs/ModuleApi.md#module_call) | **POST** /module/modules/{module}/scripts/{script}/call | *PortalGamesApi* | [**portal_games_get_game_profile**](docs/PortalGamesApi.md#portal_games_get_game_profile) | **GET** /portal/games/{game_name_id}/profile | *PortalNotificationsApi* | [**portal_notifications_register_notifications**](docs/PortalNotificationsApi.md#portal_notifications_register_notifications) | **POST** /portal/notifications/register | *PortalNotificationsApi* | [**portal_notifications_unregister_notifications**](docs/PortalNotificationsApi.md#portal_notifications_unregister_notifications) | **DELETE** /portal/notifications/register | @@ -442,8 +441,6 @@ Class | Method | HTTP request | Description - [MatchmakerPlayersConnectedRequest](docs/MatchmakerPlayersConnectedRequest.md) - [MatchmakerRegionInfo](docs/MatchmakerRegionInfo.md) - [MatchmakerRegionStatistics](docs/MatchmakerRegionStatistics.md) - - [ModuleCallRequest](docs/ModuleCallRequest.md) - - [ModuleCallResponse](docs/ModuleCallResponse.md) - [PortalGetGameProfileResponse](docs/PortalGetGameProfileResponse.md) - [PortalGetSuggestedGamesResponse](docs/PortalGetSuggestedGamesResponse.md) - [PortalNotificationRegisterFirebaseService](docs/PortalNotificationRegisterFirebaseService.md) diff --git a/sdks/full/rust/docs/CloudBuildSummary.md b/sdks/full/rust/docs/CloudBuildSummary.md index 9764da74fb..6d91dd4ead 100644 --- a/sdks/full/rust/docs/CloudBuildSummary.md +++ b/sdks/full/rust/docs/CloudBuildSummary.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **build_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **complete** | **bool** | Whether or not this build has completely been uploaded. | **content_length** | **i64** | Unsigned 64 bit integer. | -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **display_name** | **String** | Represent a resource's readable display name. | **upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust/docs/CloudCdnNamespaceDomain.md b/sdks/full/rust/docs/CloudCdnNamespaceDomain.md index 633b26290d..af93fcc7d6 100644 --- a/sdks/full/rust/docs/CloudCdnNamespaceDomain.md +++ b/sdks/full/rust/docs/CloudCdnNamespaceDomain.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **domain** | **String** | A valid domain name (no protocol). | **verification_errors** | **Vec** | | **verification_method** | [**crate::models::CloudCdnNamespaceDomainVerificationMethod**](CloudCdnNamespaceDomainVerificationMethod.md) | | diff --git a/sdks/full/rust/docs/CloudCdnSiteSummary.md b/sdks/full/rust/docs/CloudCdnSiteSummary.md index f2e5d6ae5b..8292f21f3f 100644 --- a/sdks/full/rust/docs/CloudCdnSiteSummary.md +++ b/sdks/full/rust/docs/CloudCdnSiteSummary.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **complete** | **bool** | Whether or not this site has completely been uploaded. | **content_length** | **i64** | Unsigned 64 bit integer. | -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **display_name** | **String** | Represent a resource's readable display name. | **site_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust/docs/CloudCustomAvatarSummary.md b/sdks/full/rust/docs/CloudCustomAvatarSummary.md index 15b33715a2..ce06bd3020 100644 --- a/sdks/full/rust/docs/CloudCustomAvatarSummary.md +++ b/sdks/full/rust/docs/CloudCustomAvatarSummary.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **complete** | **bool** | Whether or not this custom avatar has completely been uploaded. | **content_length** | **i64** | Unsigned 64 bit integer. | -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **display_name** | **String** | Represent a resource's readable display name. | **upload_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **url** | Option<**String**> | The URL of this custom avatar image. Only present if upload is complete. | [optional] diff --git a/sdks/full/rust/docs/CloudGameFull.md b/sdks/full/rust/docs/CloudGameFull.md index 738e534e33..dd4d876bc8 100644 --- a/sdks/full/rust/docs/CloudGameFull.md +++ b/sdks/full/rust/docs/CloudGameFull.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **available_regions** | [**Vec**](CloudRegionSummary.md) | A list of region summaries. | **banner_url** | Option<**String**> | The URL of this game's banner image. | [optional] -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **developer_group_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **display_name** | **String** | Represent a resource's readable display name. | **game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust/docs/CloudGamesCreateGameRequest.md b/sdks/full/rust/docs/CloudGamesCreateGameRequest.md index 3e20f9dc67..7fda60818d 100644 --- a/sdks/full/rust/docs/CloudGamesCreateGameRequest.md +++ b/sdks/full/rust/docs/CloudGamesCreateGameRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **developer_group_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **display_name** | **String** | Represent a resource's readable display name. | -**name_id** | Option<**String**> | **Deprecated** A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | [optional] +**name_id** | Option<**String**> | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | [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/sdks/full/rust/docs/CloudGamesReserveVersionNameResponse.md b/sdks/full/rust/docs/CloudGamesReserveVersionNameResponse.md index 6a7a09da19..616b45e50f 100644 --- a/sdks/full/rust/docs/CloudGamesReserveVersionNameResponse.md +++ b/sdks/full/rust/docs/CloudGamesReserveVersionNameResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**version_display_name** | **String** | | +**version_display_name** | **String** | Represent a resource's readable display name. | [[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/sdks/full/rust/docs/CloudLobbySummaryAnalytics.md b/sdks/full/rust/docs/CloudLobbySummaryAnalytics.md index 6b642a72e4..168dfed374 100644 --- a/sdks/full/rust/docs/CloudLobbySummaryAnalytics.md +++ b/sdks/full/rust/docs/CloudLobbySummaryAnalytics.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **is_closed** | **bool** | Whether or not this lobby is in a closed state. | **is_idle** | **bool** | Whether or not this lobby is idle. | **is_outdated** | **bool** | Whether or not this lobby is outdated. | diff --git a/sdks/full/rust/docs/CloudLogsLobbyStatusStopped.md b/sdks/full/rust/docs/CloudLogsLobbyStatusStopped.md index 88cfecbec9..7a39226e29 100644 --- a/sdks/full/rust/docs/CloudLogsLobbyStatusStopped.md +++ b/sdks/full/rust/docs/CloudLogsLobbyStatusStopped.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **exit_code** | **i32** | The exit code returned by the lobby's main process when stopped. | **failed** | **bool** | Whether or not the lobby failed or stopped successfully. | -**stop_ts** | **String** | | +**stop_ts** | **String** | RFC3339 timestamp | [[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/sdks/full/rust/docs/CloudLogsLobbySummary.md b/sdks/full/rust/docs/CloudLogsLobbySummary.md index f28c30172a..b228893602 100644 --- a/sdks/full/rust/docs/CloudLogsLobbySummary.md +++ b/sdks/full/rust/docs/CloudLogsLobbySummary.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **lobby_group_name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | **lobby_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **namespace_id** | [**uuid::Uuid**](uuid::Uuid.md) | | -**ready_ts** | Option<**String**> | RFC3339 timestamp. | [optional] +**ready_ts** | Option<**String**> | RFC3339 timestamp | [optional] **region_id** | [**uuid::Uuid**](uuid::Uuid.md) | | -**start_ts** | Option<**String**> | RFC3339 timestamp. | [optional] +**start_ts** | Option<**String**> | RFC3339 timestamp | [optional] **status** | [**crate::models::CloudLogsLobbyStatus**](CloudLogsLobbyStatus.md) | | [[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/sdks/full/rust/docs/CloudLogsPerfMark.md b/sdks/full/rust/docs/CloudLogsPerfMark.md index 5ea917b70a..d2f018666d 100644 --- a/sdks/full/rust/docs/CloudLogsPerfMark.md +++ b/sdks/full/rust/docs/CloudLogsPerfMark.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **label** | **String** | The label given to this performance mark. | **ray_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] **req_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] -**ts** | **String** | RFC3339 timestamp. | +**ts** | **String** | RFC3339 timestamp | [[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/sdks/full/rust/docs/CloudLogsPerfSpan.md b/sdks/full/rust/docs/CloudLogsPerfSpan.md index 53ee880473..2772228a19 100644 --- a/sdks/full/rust/docs/CloudLogsPerfSpan.md +++ b/sdks/full/rust/docs/CloudLogsPerfSpan.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**finish_ts** | Option<**String**> | RFC3339 timestamp. | [optional] +**finish_ts** | Option<**String**> | RFC3339 timestamp | [optional] **label** | **String** | The label given to this performance span. | **req_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] -**start_ts** | **String** | RFC3339 timestamp. | +**start_ts** | **String** | RFC3339 timestamp | [[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/sdks/full/rust/docs/CloudNamespaceFull.md b/sdks/full/rust/docs/CloudNamespaceFull.md index 8bd13301c9..8a62def44a 100644 --- a/sdks/full/rust/docs/CloudNamespaceFull.md +++ b/sdks/full/rust/docs/CloudNamespaceFull.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **config** | [**crate::models::CloudNamespaceConfig**](CloudNamespaceConfig.md) | | -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **display_name** | **String** | Represent a resource's readable display name. | **name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | **namespace_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust/docs/CloudNamespaceSummary.md b/sdks/full/rust/docs/CloudNamespaceSummary.md index 1dee4bf3f4..58bf40d498 100644 --- a/sdks/full/rust/docs/CloudNamespaceSummary.md +++ b/sdks/full/rust/docs/CloudNamespaceSummary.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **display_name** | **String** | Represent a resource's readable display name. | **name_id** | **String** | A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. | **namespace_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust/docs/CloudNamespaceVersion.md b/sdks/full/rust/docs/CloudNamespaceVersion.md index 55eb6829d5..2b9e1bfa00 100644 --- a/sdks/full/rust/docs/CloudNamespaceVersion.md +++ b/sdks/full/rust/docs/CloudNamespaceVersion.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**deploy_ts** | **String** | RFC3339 timestamp. | +**deploy_ts** | **String** | RFC3339 timestamp | **namespace_id** | **String** | A universally unique identifier. | **version_id** | **String** | A universally unique identifier. | diff --git a/sdks/full/rust/docs/CloudVersionFull.md b/sdks/full/rust/docs/CloudVersionFull.md index 03eb62bc06..2368ab6f29 100644 --- a/sdks/full/rust/docs/CloudVersionFull.md +++ b/sdks/full/rust/docs/CloudVersionFull.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **config** | [**crate::models::CloudVersionConfig**](CloudVersionConfig.md) | | -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **display_name** | **String** | Represent a resource's readable display name. | **version_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust/docs/CloudVersionIdentityCustomDisplayName.md b/sdks/full/rust/docs/CloudVersionIdentityCustomDisplayName.md index 7eb7947a19..e31747bb8f 100644 --- a/sdks/full/rust/docs/CloudVersionIdentityCustomDisplayName.md +++ b/sdks/full/rust/docs/CloudVersionIdentityCustomDisplayName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | [[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/sdks/full/rust/docs/CloudVersionSummary.md b/sdks/full/rust/docs/CloudVersionSummary.md index 1d9cb4f256..820cd4b7cb 100644 --- a/sdks/full/rust/docs/CloudVersionSummary.md +++ b/sdks/full/rust/docs/CloudVersionSummary.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**create_ts** | **String** | RFC3339 timestamp. | +**create_ts** | **String** | RFC3339 timestamp | **display_name** | **String** | Represent a resource's readable display name. | **version_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust/docs/GameHandle.md b/sdks/full/rust/docs/GameHandle.md index f24739c715..21d5ab9809 100644 --- a/sdks/full/rust/docs/GameHandle.md +++ b/sdks/full/rust/docs/GameHandle.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **banner_url** | Option<**String**> | The URL of this game's banner image. | [optional] -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **logo_url** | Option<**String**> | The URL of this game's logo image. | [optional] **name_id** | **String** | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | diff --git a/sdks/full/rust/docs/GameStatConfig.md b/sdks/full/rust/docs/GameStatConfig.md index d43256a342..f11e6ea9ee 100644 --- a/sdks/full/rust/docs/GameStatConfig.md +++ b/sdks/full/rust/docs/GameStatConfig.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **aggregation** | [**crate::models::GameStatAggregationMethod**](GameStatAggregationMethod.md) | | -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **format** | [**crate::models::GameStatFormatMethod**](GameStatFormatMethod.md) | | **icon_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **postfix_plural** | Option<**String**> | A string appended to the end of a game statistic's value that is not exactly 1. Example: 45 **dollars**. | [optional] diff --git a/sdks/full/rust/docs/GameSummary.md b/sdks/full/rust/docs/GameSummary.md index f8c6e314f0..5d421cb8f5 100644 --- a/sdks/full/rust/docs/GameSummary.md +++ b/sdks/full/rust/docs/GameSummary.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **banner_url** | Option<**String**> | The URL of this game's banner image. | [optional] **developer** | [**crate::models::GroupHandle**](GroupHandle.md) | | -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **logo_url** | Option<**String**> | The URL of this game's logo image. | [optional] **name_id** | **String** | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | diff --git a/sdks/full/rust/docs/GroupBannedIdentity.md b/sdks/full/rust/docs/GroupBannedIdentity.md index 04e5aa227d..cd6aadff02 100644 --- a/sdks/full/rust/docs/GroupBannedIdentity.md +++ b/sdks/full/rust/docs/GroupBannedIdentity.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ban_ts** | **String** | RFC3339 timestamp. | +**ban_ts** | **String** | RFC3339 timestamp | **identity** | [**crate::models::IdentityHandle**](IdentityHandle.md) | | [[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/sdks/full/rust/docs/GroupHandle.md b/sdks/full/rust/docs/GroupHandle.md index 707ce84214..9eb1e35c46 100644 --- a/sdks/full/rust/docs/GroupHandle.md +++ b/sdks/full/rust/docs/GroupHandle.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **avatar_url** | Option<**String**> | The URL of this group's avatar image | [optional] -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **external** | [**crate::models::GroupExternalLinks**](GroupExternalLinks.md) | | **group_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **is_developer** | Option<**bool**> | Whether or not this group is a developer group. | [optional] diff --git a/sdks/full/rust/docs/GroupSummary.md b/sdks/full/rust/docs/GroupSummary.md index dc7a00eda4..9905aaf838 100644 --- a/sdks/full/rust/docs/GroupSummary.md +++ b/sdks/full/rust/docs/GroupSummary.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **avatar_url** | Option<**String**> | The URL of this group's avatar image. | [optional] **bio** | **String** | Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ | -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **external** | [**crate::models::GroupExternalLinks**](GroupExternalLinks.md) | | **group_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **is_current_identity_member** | **bool** | Whether or not the current identity is a member of this group. | diff --git a/sdks/full/rust/docs/GroupValidateProfileRequest.md b/sdks/full/rust/docs/GroupValidateProfileRequest.md index c45411d36f..ee83335004 100644 --- a/sdks/full/rust/docs/GroupValidateProfileRequest.md +++ b/sdks/full/rust/docs/GroupValidateProfileRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bio** | Option<**String**> | Detailed information about a profile. | [optional] +**bio** | Option<**String**> | Represent a resource's readable display name. | [optional] **display_name** | Option<**String**> | Represent a resource's readable display name. | [optional] **publicity** | Option<[**crate::models::GroupPublicity**](GroupPublicity.md)> | | [optional] diff --git a/sdks/full/rust/docs/IdentityGetGameLinkNewIdentity.md b/sdks/full/rust/docs/IdentityGetGameLinkNewIdentity.md index 0bfc47ce30..ca35a6612d 100644 --- a/sdks/full/rust/docs/IdentityGetGameLinkNewIdentity.md +++ b/sdks/full/rust/docs/IdentityGetGameLinkNewIdentity.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**crate::models::IdentityProfile**](IdentityProfile.md) | | **identity_token** | **String** | Documentation at https://jwt.io/ | -**identity_token_expire_ts** | **String** | | +**identity_token_expire_ts** | **String** | RFC3339 timestamp | [[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/sdks/full/rust/docs/IdentityHandle.md b/sdks/full/rust/docs/IdentityHandle.md index 5200931129..629764404f 100644 --- a/sdks/full/rust/docs/IdentityHandle.md +++ b/sdks/full/rust/docs/IdentityHandle.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **account_number** | **i32** | | **avatar_url** | **String** | The URL of this identity's avatar image. | -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **external** | [**crate::models::IdentityExternalLinks**](IdentityExternalLinks.md) | | **identity_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **is_registered** | **bool** | Whether or not this identity is registered with a linked account. | diff --git a/sdks/full/rust/docs/IdentityPrepareGameLinkResponse.md b/sdks/full/rust/docs/IdentityPrepareGameLinkResponse.md index 630dbca241..dc6cd813f4 100644 --- a/sdks/full/rust/docs/IdentityPrepareGameLinkResponse.md +++ b/sdks/full/rust/docs/IdentityPrepareGameLinkResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**expire_ts** | **String** | | +**expire_ts** | **String** | RFC3339 timestamp | **identity_link_token** | **String** | Pass this to `GetGameLink` to get the linking status. Valid for 15 minutes. | **identity_link_url** | **String** | | diff --git a/sdks/full/rust/docs/IdentityPresence.md b/sdks/full/rust/docs/IdentityPresence.md index 08b85cb00a..66a71fd89e 100644 --- a/sdks/full/rust/docs/IdentityPresence.md +++ b/sdks/full/rust/docs/IdentityPresence.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **game_activity** | Option<[**crate::models::IdentityGameActivity**](IdentityGameActivity.md)> | | [optional] **status** | [**crate::models::IdentityStatus**](IdentityStatus.md) | | -**update_ts** | **String** | | +**update_ts** | **String** | RFC3339 timestamp | [[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/sdks/full/rust/docs/IdentityProfile.md b/sdks/full/rust/docs/IdentityProfile.md index 37ccb7c5bd..9c79c1ee4d 100644 --- a/sdks/full/rust/docs/IdentityProfile.md +++ b/sdks/full/rust/docs/IdentityProfile.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **awaiting_deletion** | Option<**bool**> | Whether or not this identity is awaiting account deletion. Only visible to when the requestee is this identity. | [optional] **bio** | **String** | Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ | **dev_state** | Option<[**crate::models::IdentityDevState**](IdentityDevState.md)> | | [optional] -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **external** | [**crate::models::IdentityExternalLinks**](IdentityExternalLinks.md) | | **follower_count** | **i64** | | **following** | **bool** | Whether or not the requestee's identity is following this identity. | @@ -22,7 +22,7 @@ Name | Type | Description | Notes **is_game_linked** | Option<**bool**> | Whether or not this game user has been linked through the Rivet dashboard. | [optional] **is_mutual_following** | **bool** | | **is_registered** | **bool** | Whether or not this identity is registered with a linked account. | -**join_ts** | **String** | | +**join_ts** | **String** | RFC3339 timestamp | **linked_accounts** | [**Vec**](IdentityLinkedAccount.md) | | **presence** | Option<[**crate::models::IdentityPresence**](IdentityPresence.md)> | | [optional] diff --git a/sdks/full/rust/docs/IdentitySetupResponse.md b/sdks/full/rust/docs/IdentitySetupResponse.md index 793a872c38..18f209b27b 100644 --- a/sdks/full/rust/docs/IdentitySetupResponse.md +++ b/sdks/full/rust/docs/IdentitySetupResponse.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **game_id** | [**uuid::Uuid**](uuid::Uuid.md) | | **identity** | [**crate::models::IdentityProfile**](IdentityProfile.md) | | **identity_token** | **String** | Documentation at https://jwt.io/ | -**identity_token_expire_ts** | **String** | If this token is compromised, anyone with access to this token has control of the identity. | +**identity_token_expire_ts** | **String** | RFC3339 timestamp | [[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/sdks/full/rust/docs/IdentitySummary.md b/sdks/full/rust/docs/IdentitySummary.md index c87975d5a6..8b956b7a4e 100644 --- a/sdks/full/rust/docs/IdentitySummary.md +++ b/sdks/full/rust/docs/IdentitySummary.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **account_number** | **i32** | | **avatar_url** | **String** | The URL of this identity's avatar image. | -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **external** | [**crate::models::IdentityExternalLinks**](IdentityExternalLinks.md) | | **following** | **bool** | Whether or not the requestee's identity is following this identity. | **identity_id** | [**uuid::Uuid**](uuid::Uuid.md) | | diff --git a/sdks/full/rust/docs/IdentityUpdateProfileRequest.md b/sdks/full/rust/docs/IdentityUpdateProfileRequest.md index 94d026ecc5..bf63d3e257 100644 --- a/sdks/full/rust/docs/IdentityUpdateProfileRequest.md +++ b/sdks/full/rust/docs/IdentityUpdateProfileRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **account_number** | Option<**i32**> | | [optional] **bio** | Option<**String**> | Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ | [optional] -**display_name** | Option<**String**> | | [optional] +**display_name** | Option<**String**> | Represent a resource's readable display name. | [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/sdks/full/rust/docs/MatchmakerJoinRegion.md b/sdks/full/rust/docs/MatchmakerJoinRegion.md index 8efd1bfa09..0ba22c74ff 100644 --- a/sdks/full/rust/docs/MatchmakerJoinRegion.md +++ b/sdks/full/rust/docs/MatchmakerJoinRegion.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **region_id** | **String** | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | [[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/sdks/full/rust/docs/MatchmakerRegionInfo.md b/sdks/full/rust/docs/MatchmakerRegionInfo.md index 8aab80146b..10a2ff6747 100644 --- a/sdks/full/rust/docs/MatchmakerRegionInfo.md +++ b/sdks/full/rust/docs/MatchmakerRegionInfo.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **datacenter_coord** | [**crate::models::GeoCoord**](GeoCoord.md) | | **datacenter_distance_from_client** | [**crate::models::GeoDistance**](GeoDistance.md) | | -**provider_display_name** | **String** | | -**region_display_name** | **String** | | +**provider_display_name** | **String** | Represent a resource's readable display name. | +**region_display_name** | **String** | Represent a resource's readable display name. | **region_id** | **String** | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | [[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/sdks/full/rust/docs/ModuleApi.md b/sdks/full/rust/docs/ModuleApi.md deleted file mode 100644 index 000f72f0b7..0000000000 --- a/sdks/full/rust/docs/ModuleApi.md +++ /dev/null @@ -1,42 +0,0 @@ -# \ModuleApi - -All URIs are relative to *https://api.rivet.gg* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**module_call**](ModuleApi.md#module_call) | **POST** /module/modules/{module}/scripts/{script}/call | - - - -## module_call - -> crate::models::ModuleCallResponse module_call(module, script, module_call_request, origin) - - -Makes a request to a module's script. - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**module** | **String** | | [required] | -**script** | **String** | | [required] | -**module_call_request** | [**ModuleCallRequest**](ModuleCallRequest.md) | | [required] | -**origin** | Option<**String**> | | | - -### Return type - -[**crate::models::ModuleCallResponse**](ModuleCallResponse.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### 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/sdks/full/rust/docs/ModuleCallRequest.md b/sdks/full/rust/docs/ModuleCallRequest.md deleted file mode 100644 index 1dd7c8c4f9..0000000000 --- a/sdks/full/rust/docs/ModuleCallRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# ModuleCallRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | Option<[**serde_json::Value**](.md)> | | -**namespace_id** | Option<[**uuid::Uuid**](uuid::Uuid.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) - - diff --git a/sdks/full/rust/docs/ModuleCallResponse.md b/sdks/full/rust/docs/ModuleCallResponse.md deleted file mode 100644 index 5a8c9f9834..0000000000 --- a/sdks/full/rust/docs/ModuleCallResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# ModuleCallResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | Option<[**serde_json::Value**](.md)> | | - -[[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/sdks/full/rust/src/apis/cloud_games_namespaces_logs_api.rs b/sdks/full/rust/src/apis/cloud_games_namespaces_logs_api.rs index 43e8b17d20..ad0516e80f 100644 --- a/sdks/full/rust/src/apis/cloud_games_namespaces_logs_api.rs +++ b/sdks/full/rust/src/apis/cloud_games_namespaces_logs_api.rs @@ -74,7 +74,7 @@ pub async fn cloud_games_namespaces_logs_get_namespace_lobby(configuration: &con } /// Returns a list of lobbies for the given game namespace. -pub async fn cloud_games_namespaces_logs_list_namespace_lobbies(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, before_create_ts: Option) -> Result> { +pub async fn cloud_games_namespaces_logs_list_namespace_lobbies(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, before_create_ts: Option<&str>) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/sdks/full/rust/src/apis/mod.rs b/sdks/full/rust/src/apis/mod.rs index b22b9678f0..63bc85d7f2 100644 --- a/sdks/full/rust/src/apis/mod.rs +++ b/sdks/full/rust/src/apis/mod.rs @@ -123,7 +123,6 @@ pub mod kv_api; pub mod matchmaker_lobbies_api; pub mod matchmaker_players_api; pub mod matchmaker_regions_api; -pub mod module_api; pub mod portal_games_api; pub mod portal_notifications_api; diff --git a/sdks/full/rust/src/apis/module_api.rs b/sdks/full/rust/src/apis/module_api.rs deleted file mode 100644 index 3b52315806..0000000000 --- a/sdks/full/rust/src/apis/module_api.rs +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Rivet API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.1 - * - * Generated by: https://openapi-generator.tech - */ - - -use reqwest; - -use crate::apis::ResponseContent; -use super::{Error, configuration}; - - -/// struct for typed errors of method [`module_call`] -#[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(untagged)] -pub enum ModuleCallError { - Status400(crate::models::ErrorBody), - Status403(crate::models::ErrorBody), - Status404(crate::models::ErrorBody), - Status408(crate::models::ErrorBody), - Status429(crate::models::ErrorBody), - Status500(crate::models::ErrorBody), - UnknownValue(serde_json::Value), -} - - -/// Makes a request to a module's script. -pub async fn module_call(configuration: &configuration::Configuration, module: &str, script: &str, module_call_request: crate::models::ModuleCallRequest, origin: Option<&str>) -> Result> { - let local_var_configuration = configuration; - - let local_var_client = &local_var_configuration.client; - - let local_var_uri_str = format!("{}/module/modules/{module}/scripts/{script}/call", local_var_configuration.base_path, module=crate::apis::urlencode(module), script=crate::apis::urlencode(script)); - let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - - if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { - local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); - } - if let Some(local_var_param_value) = origin { - local_var_req_builder = local_var_req_builder.header("origin", local_var_param_value.to_string()); - } - if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { - local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); - }; - local_var_req_builder = local_var_req_builder.json(&module_call_request); - - let local_var_req = local_var_req_builder.build()?; - let local_var_resp = local_var_client.execute(local_var_req).await?; - - let local_var_status = local_var_resp.status(); - let local_var_content = local_var_resp.text().await?; - - if !local_var_status.is_client_error() && !local_var_status.is_server_error() { - serde_json::from_str(&local_var_content).map_err(Error::from) - } else { - let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); - let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; - Err(Error::ResponseError(local_var_error)) - } -} - diff --git a/sdks/full/rust/src/models/cloud_build_summary.rs b/sdks/full/rust/src/models/cloud_build_summary.rs index bf7b018438..e11928b5f4 100644 --- a/sdks/full/rust/src/models/cloud_build_summary.rs +++ b/sdks/full/rust/src/models/cloud_build_summary.rs @@ -22,7 +22,7 @@ pub struct CloudBuildSummary { /// Unsigned 64 bit integer. #[serde(rename = "content_length")] pub content_length: i64, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Represent a resource's readable display name. diff --git a/sdks/full/rust/src/models/cloud_cdn_namespace_domain.rs b/sdks/full/rust/src/models/cloud_cdn_namespace_domain.rs index e8a4456283..db81a282e7 100644 --- a/sdks/full/rust/src/models/cloud_cdn_namespace_domain.rs +++ b/sdks/full/rust/src/models/cloud_cdn_namespace_domain.rs @@ -14,7 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudCdnNamespaceDomain { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// A valid domain name (no protocol). diff --git a/sdks/full/rust/src/models/cloud_cdn_site_summary.rs b/sdks/full/rust/src/models/cloud_cdn_site_summary.rs index 4a845816a9..15f0418c57 100644 --- a/sdks/full/rust/src/models/cloud_cdn_site_summary.rs +++ b/sdks/full/rust/src/models/cloud_cdn_site_summary.rs @@ -20,7 +20,7 @@ pub struct CloudCdnSiteSummary { /// Unsigned 64 bit integer. #[serde(rename = "content_length")] pub content_length: i64, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Represent a resource's readable display name. diff --git a/sdks/full/rust/src/models/cloud_custom_avatar_summary.rs b/sdks/full/rust/src/models/cloud_custom_avatar_summary.rs index 934a8e1ab2..e3716280da 100644 --- a/sdks/full/rust/src/models/cloud_custom_avatar_summary.rs +++ b/sdks/full/rust/src/models/cloud_custom_avatar_summary.rs @@ -20,7 +20,7 @@ pub struct CloudCustomAvatarSummary { /// Unsigned 64 bit integer. #[serde(rename = "content_length")] pub content_length: i64, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Represent a resource's readable display name. diff --git a/sdks/full/rust/src/models/cloud_game_full.rs b/sdks/full/rust/src/models/cloud_game_full.rs index 58b5c9fecc..a4ffd17835 100644 --- a/sdks/full/rust/src/models/cloud_game_full.rs +++ b/sdks/full/rust/src/models/cloud_game_full.rs @@ -20,7 +20,7 @@ pub struct CloudGameFull { /// The URL of this game's banner image. #[serde(rename = "banner_url", skip_serializing_if = "Option::is_none")] pub banner_url: Option, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, #[serde(rename = "developer_group_id")] diff --git a/sdks/full/rust/src/models/cloud_games_create_game_request.rs b/sdks/full/rust/src/models/cloud_games_create_game_request.rs index bcbd19cc2f..e5fd44a582 100644 --- a/sdks/full/rust/src/models/cloud_games_create_game_request.rs +++ b/sdks/full/rust/src/models/cloud_games_create_game_request.rs @@ -18,7 +18,7 @@ pub struct CloudGamesCreateGameRequest { /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, - /// **Deprecated** A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. + /// A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. #[serde(rename = "name_id", skip_serializing_if = "Option::is_none")] pub name_id: Option, } diff --git a/sdks/full/rust/src/models/cloud_games_reserve_version_name_response.rs b/sdks/full/rust/src/models/cloud_games_reserve_version_name_response.rs index 326f45c0ff..1ca6b9fd43 100644 --- a/sdks/full/rust/src/models/cloud_games_reserve_version_name_response.rs +++ b/sdks/full/rust/src/models/cloud_games_reserve_version_name_response.rs @@ -13,6 +13,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudGamesReserveVersionNameResponse { + /// Represent a resource's readable display name. #[serde(rename = "version_display_name")] pub version_display_name: String, } diff --git a/sdks/full/rust/src/models/cloud_lobby_summary_analytics.rs b/sdks/full/rust/src/models/cloud_lobby_summary_analytics.rs index 5124ba7155..e99c372fb3 100644 --- a/sdks/full/rust/src/models/cloud_lobby_summary_analytics.rs +++ b/sdks/full/rust/src/models/cloud_lobby_summary_analytics.rs @@ -14,7 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudLobbySummaryAnalytics { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Whether or not this lobby is in a closed state. diff --git a/sdks/full/rust/src/models/cloud_logs_lobby_status_stopped.rs b/sdks/full/rust/src/models/cloud_logs_lobby_status_stopped.rs index 041bd4d56f..c74fa79844 100644 --- a/sdks/full/rust/src/models/cloud_logs_lobby_status_stopped.rs +++ b/sdks/full/rust/src/models/cloud_logs_lobby_status_stopped.rs @@ -20,6 +20,7 @@ pub struct CloudLogsLobbyStatusStopped { /// Whether or not the lobby failed or stopped successfully. #[serde(rename = "failed")] pub failed: bool, + /// RFC3339 timestamp #[serde(rename = "stop_ts")] pub stop_ts: String, } diff --git a/sdks/full/rust/src/models/cloud_logs_lobby_summary.rs b/sdks/full/rust/src/models/cloud_logs_lobby_summary.rs index c5beb1be53..7f24f714de 100644 --- a/sdks/full/rust/src/models/cloud_logs_lobby_summary.rs +++ b/sdks/full/rust/src/models/cloud_logs_lobby_summary.rs @@ -14,7 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudLogsLobbySummary { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// A human readable short identifier used to references resources. Different than a `rivet.common#Uuid` because this is intended to be human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. @@ -24,12 +24,12 @@ pub struct CloudLogsLobbySummary { pub lobby_id: uuid::Uuid, #[serde(rename = "namespace_id")] pub namespace_id: uuid::Uuid, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "ready_ts", skip_serializing_if = "Option::is_none")] pub ready_ts: Option, #[serde(rename = "region_id")] pub region_id: uuid::Uuid, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "start_ts", skip_serializing_if = "Option::is_none")] pub start_ts: Option, #[serde(rename = "status")] diff --git a/sdks/full/rust/src/models/cloud_logs_perf_mark.rs b/sdks/full/rust/src/models/cloud_logs_perf_mark.rs index 9c910d5adf..7df6a121f9 100644 --- a/sdks/full/rust/src/models/cloud_logs_perf_mark.rs +++ b/sdks/full/rust/src/models/cloud_logs_perf_mark.rs @@ -21,7 +21,7 @@ pub struct CloudLogsPerfMark { pub ray_id: Option, #[serde(rename = "req_id", skip_serializing_if = "Option::is_none")] pub req_id: Option, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "ts")] pub ts: String, } diff --git a/sdks/full/rust/src/models/cloud_logs_perf_span.rs b/sdks/full/rust/src/models/cloud_logs_perf_span.rs index 3cb9623882..43429ba2c8 100644 --- a/sdks/full/rust/src/models/cloud_logs_perf_span.rs +++ b/sdks/full/rust/src/models/cloud_logs_perf_span.rs @@ -14,7 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudLogsPerfSpan { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "finish_ts", skip_serializing_if = "Option::is_none")] pub finish_ts: Option, /// The label given to this performance span. @@ -22,7 +22,7 @@ pub struct CloudLogsPerfSpan { pub label: String, #[serde(rename = "req_id", skip_serializing_if = "Option::is_none")] pub req_id: Option, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "start_ts")] pub start_ts: String, } diff --git a/sdks/full/rust/src/models/cloud_namespace_full.rs b/sdks/full/rust/src/models/cloud_namespace_full.rs index a87a934ef1..581f7008ae 100644 --- a/sdks/full/rust/src/models/cloud_namespace_full.rs +++ b/sdks/full/rust/src/models/cloud_namespace_full.rs @@ -16,7 +16,7 @@ pub struct CloudNamespaceFull { #[serde(rename = "config")] pub config: Box, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Represent a resource's readable display name. diff --git a/sdks/full/rust/src/models/cloud_namespace_summary.rs b/sdks/full/rust/src/models/cloud_namespace_summary.rs index 661d02ba13..d7e3215a51 100644 --- a/sdks/full/rust/src/models/cloud_namespace_summary.rs +++ b/sdks/full/rust/src/models/cloud_namespace_summary.rs @@ -14,7 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudNamespaceSummary { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Represent a resource's readable display name. diff --git a/sdks/full/rust/src/models/cloud_namespace_version.rs b/sdks/full/rust/src/models/cloud_namespace_version.rs index 474607d433..fcab3769a1 100644 --- a/sdks/full/rust/src/models/cloud_namespace_version.rs +++ b/sdks/full/rust/src/models/cloud_namespace_version.rs @@ -14,7 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudNamespaceVersion { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "deploy_ts")] pub deploy_ts: String, /// A universally unique identifier. diff --git a/sdks/full/rust/src/models/cloud_version_full.rs b/sdks/full/rust/src/models/cloud_version_full.rs index b37b01344a..05edda9dd6 100644 --- a/sdks/full/rust/src/models/cloud_version_full.rs +++ b/sdks/full/rust/src/models/cloud_version_full.rs @@ -16,7 +16,7 @@ pub struct CloudVersionFull { #[serde(rename = "config")] pub config: Box, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Represent a resource's readable display name. diff --git a/sdks/full/rust/src/models/cloud_version_identity_custom_display_name.rs b/sdks/full/rust/src/models/cloud_version_identity_custom_display_name.rs index 52e23457ad..8c4087fc33 100644 --- a/sdks/full/rust/src/models/cloud_version_identity_custom_display_name.rs +++ b/sdks/full/rust/src/models/cloud_version_identity_custom_display_name.rs @@ -13,6 +13,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudVersionIdentityCustomDisplayName { + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, } diff --git a/sdks/full/rust/src/models/cloud_version_summary.rs b/sdks/full/rust/src/models/cloud_version_summary.rs index 227b16489a..52f47690d2 100644 --- a/sdks/full/rust/src/models/cloud_version_summary.rs +++ b/sdks/full/rust/src/models/cloud_version_summary.rs @@ -14,7 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct CloudVersionSummary { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "create_ts")] pub create_ts: String, /// Represent a resource's readable display name. diff --git a/sdks/full/rust/src/models/game_handle.rs b/sdks/full/rust/src/models/game_handle.rs index 92dfdc921b..346a1b6a6e 100644 --- a/sdks/full/rust/src/models/game_handle.rs +++ b/sdks/full/rust/src/models/game_handle.rs @@ -16,6 +16,7 @@ pub struct GameHandle { /// The URL of this game's banner image. #[serde(rename = "banner_url", skip_serializing_if = "Option::is_none")] pub banner_url: Option, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "game_id")] diff --git a/sdks/full/rust/src/models/game_stat_config.rs b/sdks/full/rust/src/models/game_stat_config.rs index fa4aea73c6..f9c47ec3b2 100644 --- a/sdks/full/rust/src/models/game_stat_config.rs +++ b/sdks/full/rust/src/models/game_stat_config.rs @@ -16,6 +16,7 @@ pub struct GameStatConfig { #[serde(rename = "aggregation")] pub aggregation: crate::models::GameStatAggregationMethod, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "format")] diff --git a/sdks/full/rust/src/models/game_summary.rs b/sdks/full/rust/src/models/game_summary.rs index 73a107ff4f..88d337f3db 100644 --- a/sdks/full/rust/src/models/game_summary.rs +++ b/sdks/full/rust/src/models/game_summary.rs @@ -18,6 +18,7 @@ pub struct GameSummary { pub banner_url: Option, #[serde(rename = "developer")] pub developer: Box, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "game_id")] diff --git a/sdks/full/rust/src/models/group_banned_identity.rs b/sdks/full/rust/src/models/group_banned_identity.rs index e443d75959..2e552da163 100644 --- a/sdks/full/rust/src/models/group_banned_identity.rs +++ b/sdks/full/rust/src/models/group_banned_identity.rs @@ -14,7 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct GroupBannedIdentity { - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "ban_ts")] pub ban_ts: String, #[serde(rename = "identity")] diff --git a/sdks/full/rust/src/models/group_handle.rs b/sdks/full/rust/src/models/group_handle.rs index 3d67b32c10..6aed5a1bfa 100644 --- a/sdks/full/rust/src/models/group_handle.rs +++ b/sdks/full/rust/src/models/group_handle.rs @@ -17,6 +17,7 @@ pub struct GroupHandle { /// The URL of this group's avatar image #[serde(rename = "avatar_url", skip_serializing_if = "Option::is_none")] pub avatar_url: Option, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "external")] diff --git a/sdks/full/rust/src/models/group_summary.rs b/sdks/full/rust/src/models/group_summary.rs index 767f5ed6a8..85ae0cfede 100644 --- a/sdks/full/rust/src/models/group_summary.rs +++ b/sdks/full/rust/src/models/group_summary.rs @@ -19,6 +19,7 @@ pub struct GroupSummary { /// Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ #[serde(rename = "bio")] pub bio: String, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "external")] diff --git a/sdks/full/rust/src/models/group_validate_profile_request.rs b/sdks/full/rust/src/models/group_validate_profile_request.rs index 935150f9ac..501acb5beb 100644 --- a/sdks/full/rust/src/models/group_validate_profile_request.rs +++ b/sdks/full/rust/src/models/group_validate_profile_request.rs @@ -13,7 +13,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct GroupValidateProfileRequest { - /// Detailed information about a profile. + /// Represent a resource's readable display name. #[serde(rename = "bio", skip_serializing_if = "Option::is_none")] pub bio: Option, /// Represent a resource's readable display name. diff --git a/sdks/full/rust/src/models/identity_get_game_link_new_identity.rs b/sdks/full/rust/src/models/identity_get_game_link_new_identity.rs index 419665f20d..7b61ef57b3 100644 --- a/sdks/full/rust/src/models/identity_get_game_link_new_identity.rs +++ b/sdks/full/rust/src/models/identity_get_game_link_new_identity.rs @@ -18,6 +18,7 @@ pub struct IdentityGetGameLinkNewIdentity { /// Documentation at https://jwt.io/ #[serde(rename = "identity_token")] pub identity_token: String, + /// RFC3339 timestamp #[serde(rename = "identity_token_expire_ts")] pub identity_token_expire_ts: String, } diff --git a/sdks/full/rust/src/models/identity_handle.rs b/sdks/full/rust/src/models/identity_handle.rs index df9c459276..3fa21c3a42 100644 --- a/sdks/full/rust/src/models/identity_handle.rs +++ b/sdks/full/rust/src/models/identity_handle.rs @@ -19,6 +19,7 @@ pub struct IdentityHandle { /// The URL of this identity's avatar image. #[serde(rename = "avatar_url")] pub avatar_url: String, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "external")] diff --git a/sdks/full/rust/src/models/identity_prepare_game_link_response.rs b/sdks/full/rust/src/models/identity_prepare_game_link_response.rs index 676ce4145a..cd0b41ea9d 100644 --- a/sdks/full/rust/src/models/identity_prepare_game_link_response.rs +++ b/sdks/full/rust/src/models/identity_prepare_game_link_response.rs @@ -13,6 +13,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct IdentityPrepareGameLinkResponse { + /// RFC3339 timestamp #[serde(rename = "expire_ts")] pub expire_ts: String, /// Pass this to `GetGameLink` to get the linking status. Valid for 15 minutes. diff --git a/sdks/full/rust/src/models/identity_presence.rs b/sdks/full/rust/src/models/identity_presence.rs index 01cf3f5f2c..2e4df976d6 100644 --- a/sdks/full/rust/src/models/identity_presence.rs +++ b/sdks/full/rust/src/models/identity_presence.rs @@ -18,6 +18,7 @@ pub struct IdentityPresence { pub game_activity: Option>, #[serde(rename = "status")] pub status: crate::models::IdentityStatus, + /// RFC3339 timestamp #[serde(rename = "update_ts")] pub update_ts: String, } diff --git a/sdks/full/rust/src/models/identity_profile.rs b/sdks/full/rust/src/models/identity_profile.rs index fda0d0dac7..920c1b42ac 100644 --- a/sdks/full/rust/src/models/identity_profile.rs +++ b/sdks/full/rust/src/models/identity_profile.rs @@ -27,6 +27,7 @@ pub struct IdentityProfile { pub bio: String, #[serde(rename = "dev_state", skip_serializing_if = "Option::is_none")] pub dev_state: Option, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "external")] @@ -58,6 +59,7 @@ pub struct IdentityProfile { /// Whether or not this identity is registered with a linked account. #[serde(rename = "is_registered")] pub is_registered: bool, + /// RFC3339 timestamp #[serde(rename = "join_ts")] pub join_ts: String, #[serde(rename = "linked_accounts")] diff --git a/sdks/full/rust/src/models/identity_setup_response.rs b/sdks/full/rust/src/models/identity_setup_response.rs index 25601285b9..d72d496270 100644 --- a/sdks/full/rust/src/models/identity_setup_response.rs +++ b/sdks/full/rust/src/models/identity_setup_response.rs @@ -20,7 +20,7 @@ pub struct IdentitySetupResponse { /// Documentation at https://jwt.io/ #[serde(rename = "identity_token")] pub identity_token: String, - /// If this token is compromised, anyone with access to this token has control of the identity. + /// RFC3339 timestamp #[serde(rename = "identity_token_expire_ts")] pub identity_token_expire_ts: String, } diff --git a/sdks/full/rust/src/models/identity_summary.rs b/sdks/full/rust/src/models/identity_summary.rs index cdfdf6ef47..585b399d60 100644 --- a/sdks/full/rust/src/models/identity_summary.rs +++ b/sdks/full/rust/src/models/identity_summary.rs @@ -19,6 +19,7 @@ pub struct IdentitySummary { /// The URL of this identity's avatar image. #[serde(rename = "avatar_url")] pub avatar_url: String, + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, #[serde(rename = "external")] diff --git a/sdks/full/rust/src/models/identity_update_profile_request.rs b/sdks/full/rust/src/models/identity_update_profile_request.rs index 11ed8a3b31..24d90a91c4 100644 --- a/sdks/full/rust/src/models/identity_update_profile_request.rs +++ b/sdks/full/rust/src/models/identity_update_profile_request.rs @@ -18,6 +18,7 @@ pub struct IdentityUpdateProfileRequest { /// Follows regex ^(?:[^\\n\\r]+\\n?|\\n){1,5}$ #[serde(rename = "bio", skip_serializing_if = "Option::is_none")] pub bio: Option, + /// Represent a resource's readable display name. #[serde(rename = "display_name", skip_serializing_if = "Option::is_none")] pub display_name: Option, } diff --git a/sdks/full/rust/src/models/matchmaker_join_region.rs b/sdks/full/rust/src/models/matchmaker_join_region.rs index a95fb7ad9d..7f38d680cf 100644 --- a/sdks/full/rust/src/models/matchmaker_join_region.rs +++ b/sdks/full/rust/src/models/matchmaker_join_region.rs @@ -14,6 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct MatchmakerJoinRegion { + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, /// A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. diff --git a/sdks/full/rust/src/models/matchmaker_region_info.rs b/sdks/full/rust/src/models/matchmaker_region_info.rs index cf10ffc55d..ed5df899d6 100644 --- a/sdks/full/rust/src/models/matchmaker_region_info.rs +++ b/sdks/full/rust/src/models/matchmaker_region_info.rs @@ -18,8 +18,10 @@ pub struct MatchmakerRegionInfo { pub datacenter_coord: Box, #[serde(rename = "datacenter_distance_from_client")] pub datacenter_distance_from_client: Box, + /// Represent a resource's readable display name. #[serde(rename = "provider_display_name")] pub provider_display_name: String, + /// Represent a resource's readable display name. #[serde(rename = "region_display_name")] pub region_display_name: String, /// A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. diff --git a/sdks/full/rust/src/models/mod.rs b/sdks/full/rust/src/models/mod.rs index a1fbbba440..e813767e1a 100644 --- a/sdks/full/rust/src/models/mod.rs +++ b/sdks/full/rust/src/models/mod.rs @@ -556,10 +556,6 @@ pub mod matchmaker_region_info; pub use self::matchmaker_region_info::MatchmakerRegionInfo; pub mod matchmaker_region_statistics; pub use self::matchmaker_region_statistics::MatchmakerRegionStatistics; -pub mod module_call_request; -pub use self::module_call_request::ModuleCallRequest; -pub mod module_call_response; -pub use self::module_call_response::ModuleCallResponse; pub mod portal_get_game_profile_response; pub use self::portal_get_game_profile_response::PortalGetGameProfileResponse; pub mod portal_get_suggested_games_response; diff --git a/sdks/full/rust/src/models/module_call_request.rs b/sdks/full/rust/src/models/module_call_request.rs deleted file mode 100644 index a6eff2f17b..0000000000 --- a/sdks/full/rust/src/models/module_call_request.rs +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Rivet API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.1 - * - * Generated by: https://openapi-generator.tech - */ - - - - -#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] -pub struct ModuleCallRequest { - #[serde(rename = "data", deserialize_with = "Option::deserialize")] - pub data: Option, - #[serde(rename = "namespace_id", skip_serializing_if = "Option::is_none")] - pub namespace_id: Option, -} - -impl ModuleCallRequest { - pub fn new(data: Option) -> ModuleCallRequest { - ModuleCallRequest { - data, - namespace_id: None, - } - } -} - - diff --git a/sdks/full/rust/src/models/module_call_response.rs b/sdks/full/rust/src/models/module_call_response.rs deleted file mode 100644 index 33ee5c2e1b..0000000000 --- a/sdks/full/rust/src/models/module_call_response.rs +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Rivet API - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.1 - * - * Generated by: https://openapi-generator.tech - */ - - - - -#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] -pub struct ModuleCallResponse { - #[serde(rename = "data", deserialize_with = "Option::deserialize")] - pub data: Option, -} - -impl ModuleCallResponse { - pub fn new(data: Option) -> ModuleCallResponse { - ModuleCallResponse { - data, - } - } -} - - diff --git a/sdks/full/typescript/archive.tgz b/sdks/full/typescript/archive.tgz index f259e6543f..6cf7dfe839 100644 --- a/sdks/full/typescript/archive.tgz +++ b/sdks/full/typescript/archive.tgz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7af7ef55fa7de4e210995e5285ec9b0bda5cac7b36a4aa66ea89f93963ee223e -size 620901 +oid sha256:660cda6f4018c830572a2a32e0171f6fdc9baabe63a4cd29921d17737afa7351 +size 625719 diff --git a/sdks/full/typescript/src/Client.ts b/sdks/full/typescript/src/Client.ts index 573a2d47bf..a9837380a2 100644 --- a/sdks/full/typescript/src/Client.ts +++ b/sdks/full/typescript/src/Client.ts @@ -9,7 +9,6 @@ import { Cloud } from "./api/resources/cloud/client/Client"; import { Group } from "./api/resources/group/client/Client"; import { Identity } from "./api/resources/identity/client/Client"; import { Kv } from "./api/resources/kv/client/Client"; -import { Module } from "./api/resources/module/client/Client"; import { Auth } from "./api/resources/auth/client/Client"; import { Job } from "./api/resources/job/client/Client"; import { Matchmaker } from "./api/resources/matchmaker/client/Client"; @@ -61,12 +60,6 @@ export class RivetClient { return (this._kv ??= new Kv(this._options)); } - protected _module: Module | undefined; - - public get module(): Module { - return (this._module ??= new Module(this._options)); - } - protected _auth: Auth | undefined; public get auth(): Auth { diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/client/Client.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/client/Client.ts index c59613c483..02b92f341e 100644 --- a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/client/Client.ts +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/client/Client.ts @@ -43,7 +43,7 @@ export class Logs { const { beforeCreateTs } = request; const _queryParams: Record = {}; if (beforeCreateTs != null) { - _queryParams["before_create_ts"] = beforeCreateTs.toISOString(); + _queryParams["before_create_ts"] = beforeCreateTs; } const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/client/requests/ListNamespaceLobbiesRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/client/requests/ListNamespaceLobbiesRequest.ts index 8fcbac5d2a..dd9c830ba3 100644 --- a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/client/requests/ListNamespaceLobbiesRequest.ts +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/client/requests/ListNamespaceLobbiesRequest.ts @@ -2,9 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Rivet from "../../../../../../../../../.."; + export interface ListNamespaceLobbiesRequest { /** * Returns lobbies created before this timestamp. */ - beforeCreateTs?: Date; + beforeCreateTs?: Rivet.Timestamp; } diff --git a/sdks/full/typescript/src/api/resources/index.ts b/sdks/full/typescript/src/api/resources/index.ts index 3715de8a32..ecd5d6df83 100644 --- a/sdks/full/typescript/src/api/resources/index.ts +++ b/sdks/full/typescript/src/api/resources/index.ts @@ -3,7 +3,6 @@ export * as cloud from "./cloud"; export * as group from "./group"; export * as identity from "./identity"; export * as kv from "./kv"; -export * as module_ from "./module"; export * as auth from "./auth"; export * as captcha from "./captcha"; export * as common from "./common"; diff --git a/sdks/full/typescript/src/api/resources/module/client/Client.ts b/sdks/full/typescript/src/api/resources/module/client/Client.ts deleted file mode 100644 index fc3733a828..0000000000 --- a/sdks/full/typescript/src/api/resources/module/client/Client.ts +++ /dev/null @@ -1,162 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Rivet from "../../.."; -import * as serializers from "../../../../serialization"; -import urlJoin from "url-join"; -import * as errors from "../../../../errors"; - -export declare namespace Module { - interface Options { - environment?: core.Supplier; - token?: core.Supplier; - fetcher?: core.FetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - maxRetries?: number; - } -} - -export class Module { - constructor(protected readonly _options: Module.Options = {}) {} - - /** - * Makes a request to a module's script. - * @throws {@link Rivet.InternalError} - * @throws {@link Rivet.RateLimitError} - * @throws {@link Rivet.ForbiddenError} - * @throws {@link Rivet.UnauthorizedError} - * @throws {@link Rivet.NotFoundError} - * @throws {@link Rivet.BadRequestError} - */ - public async call( - module: string, - script: string, - request: Rivet.module_.FindLobbyRequest, - requestOptions?: Module.RequestOptions - ): Promise { - const { origin, ..._body } = request; - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, - `/module/modules/${module}/scripts/${script}/call` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - origin: origin != null ? origin : undefined, - }, - contentType: "application/json", - body: await serializers.module_.FindLobbyRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.module_.CallResponse.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }); - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 500: - throw new Rivet.InternalError( - await serializers.ErrorBody.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 429: - throw new Rivet.RateLimitError( - await serializers.ErrorBody.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 403: - throw new Rivet.ForbiddenError( - await serializers.ErrorBody.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 408: - throw new Rivet.UnauthorizedError( - await serializers.ErrorBody.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 404: - throw new Rivet.NotFoundError( - await serializers.ErrorBody.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - case 400: - throw new Rivet.BadRequestError( - await serializers.ErrorBody.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }) - ); - default: - throw new errors.RivetError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.RivetError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case "timeout": - throw new errors.RivetTimeoutError(); - case "unknown": - throw new errors.RivetError({ - message: _response.error.errorMessage, - }); - } - } - - protected async _getAuthorizationHeader() { - const bearer = await core.Supplier.get(this._options.token); - if (bearer != null) { - return `Bearer ${bearer}`; - } - - return undefined; - } -} diff --git a/sdks/full/typescript/src/api/resources/module/client/index.ts b/sdks/full/typescript/src/api/resources/module/client/index.ts deleted file mode 100644 index 415726b7fe..0000000000 --- a/sdks/full/typescript/src/api/resources/module/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/sdks/full/typescript/src/api/resources/module/client/requests/FindLobbyRequest.ts b/sdks/full/typescript/src/api/resources/module/client/requests/FindLobbyRequest.ts deleted file mode 100644 index 323b1b3d3e..0000000000 --- a/sdks/full/typescript/src/api/resources/module/client/requests/FindLobbyRequest.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface FindLobbyRequest { - origin?: string; - namespaceId?: string; - data?: unknown; -} diff --git a/sdks/full/typescript/src/api/resources/module/client/requests/index.ts b/sdks/full/typescript/src/api/resources/module/client/requests/index.ts deleted file mode 100644 index 4b5febbca6..0000000000 --- a/sdks/full/typescript/src/api/resources/module/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { FindLobbyRequest } from "./FindLobbyRequest"; diff --git a/sdks/full/typescript/src/api/resources/module/index.ts b/sdks/full/typescript/src/api/resources/module/index.ts deleted file mode 100644 index c9240f83b4..0000000000 --- a/sdks/full/typescript/src/api/resources/module/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./types"; -export * from "./client"; diff --git a/sdks/full/typescript/src/serialization/resources/index.ts b/sdks/full/typescript/src/serialization/resources/index.ts index fb4ec320f6..0810f872ac 100644 --- a/sdks/full/typescript/src/serialization/resources/index.ts +++ b/sdks/full/typescript/src/serialization/resources/index.ts @@ -3,7 +3,6 @@ export * as cloud from "./cloud"; export * as group from "./group"; export * as identity from "./identity"; export * as kv from "./kv"; -export * as module_ from "./module"; export * as auth from "./auth"; export * as captcha from "./captcha"; export * as common from "./common"; diff --git a/sdks/full/typescript/src/serialization/resources/module/client/index.ts b/sdks/full/typescript/src/serialization/resources/module/client/index.ts deleted file mode 100644 index 415726b7fe..0000000000 --- a/sdks/full/typescript/src/serialization/resources/module/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/sdks/full/typescript/src/serialization/resources/module/client/requests/FindLobbyRequest.ts b/sdks/full/typescript/src/serialization/resources/module/client/requests/FindLobbyRequest.ts deleted file mode 100644 index dc5273b0bc..0000000000 --- a/sdks/full/typescript/src/serialization/resources/module/client/requests/FindLobbyRequest.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../.."; -import * as Rivet from "../../../../../api"; -import * as core from "../../../../../core"; - -export const FindLobbyRequest: core.serialization.Schema< - serializers.module_.FindLobbyRequest.Raw, - Omit -> = core.serialization.object({ - namespaceId: core.serialization.property("namespace_id", core.serialization.string().optional()), - data: core.serialization.unknown(), -}); - -export declare namespace FindLobbyRequest { - interface Raw { - namespace_id?: string | null; - data?: unknown; - } -} diff --git a/sdks/full/typescript/src/serialization/resources/module/client/requests/index.ts b/sdks/full/typescript/src/serialization/resources/module/client/requests/index.ts deleted file mode 100644 index 4b5febbca6..0000000000 --- a/sdks/full/typescript/src/serialization/resources/module/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { FindLobbyRequest } from "./FindLobbyRequest"; diff --git a/sdks/full/typescript/src/serialization/resources/module/index.ts b/sdks/full/typescript/src/serialization/resources/module/index.ts deleted file mode 100644 index c9240f83b4..0000000000 --- a/sdks/full/typescript/src/serialization/resources/module/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./types"; -export * from "./client"; diff --git a/sdks/runtime/go/matchmaker/types.go b/sdks/runtime/go/matchmaker/types.go index b172126aeb..bcaed2d7df 100644 --- a/sdks/runtime/go/matchmaker/types.go +++ b/sdks/runtime/go/matchmaker/types.go @@ -246,11 +246,11 @@ func (l *LobbyInfo) String() string { // A region that the player can connect to. type RegionInfo struct { - RegionId sdk.Identifier `json:"region_id"` - ProviderDisplayName string `json:"provider_display_name"` - RegionDisplayName string `json:"region_display_name"` - DatacenterCoord *geo.Coord `json:"datacenter_coord,omitempty"` - DatacenterDistanceFromClient *geo.Distance `json:"datacenter_distance_from_client,omitempty"` + RegionId sdk.Identifier `json:"region_id"` + ProviderDisplayName sdk.DisplayName `json:"provider_display_name"` + RegionDisplayName sdk.DisplayName `json:"region_display_name"` + DatacenterCoord *geo.Coord `json:"datacenter_coord,omitempty"` + DatacenterDistanceFromClient *geo.Distance `json:"datacenter_distance_from_client,omitempty"` _rawJSON json.RawMessage } diff --git a/sdks/runtime/go/types.go b/sdks/runtime/go/types.go index ef41e56498..83f85d8780 100644 --- a/sdks/runtime/go/types.go +++ b/sdks/runtime/go/types.go @@ -8,6 +8,7 @@ import ( core "sdk/core" ) +// Represent a resource's readable display name. type DisplayName = string type ErrorBody struct { diff --git a/sdks/runtime/openapi/openapi.yml b/sdks/runtime/openapi/openapi.yml index b81c9b33c5..371d3df1a6 100644 --- a/sdks/runtime/openapi/openapi.yml +++ b/sdks/runtime/openapi/openapi.yml @@ -1464,6 +1464,7 @@ components: - index DisplayName: type: string + description: Represent a resource's readable display name. ErrorMetadata: description: Unstructured metadata relating to an error. Must be manually parsed. ErrorBody: @@ -1595,9 +1596,9 @@ components: region_id: $ref: '#/components/schemas/Identifier' provider_display_name: - type: string + $ref: '#/components/schemas/DisplayName' region_display_name: - type: string + $ref: '#/components/schemas/DisplayName' datacenter_coord: $ref: '#/components/schemas/GeoCoord' datacenter_distance_from_client: diff --git a/sdks/runtime/openapi_compat/openapi.yml b/sdks/runtime/openapi_compat/openapi.yml index b3c953aa49..bf0383bc20 100644 --- a/sdks/runtime/openapi_compat/openapi.yml +++ b/sdks/runtime/openapi_compat/openapi.yml @@ -25,6 +25,7 @@ components: - client_response type: object DisplayName: + description: Represent a resource's readable display name. type: string ErrorBody: properties: @@ -408,9 +409,9 @@ components: datacenter_distance_from_client: $ref: '#/components/schemas/GeoDistance' provider_display_name: - type: string + $ref: '#/components/schemas/DisplayName' region_display_name: - type: string + $ref: '#/components/schemas/DisplayName' region_id: $ref: '#/components/schemas/Identifier' required: diff --git a/sdks/runtime/rust/docs/MatchmakerJoinRegion.md b/sdks/runtime/rust/docs/MatchmakerJoinRegion.md index 8efd1bfa09..0ba22c74ff 100644 --- a/sdks/runtime/rust/docs/MatchmakerJoinRegion.md +++ b/sdks/runtime/rust/docs/MatchmakerJoinRegion.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**display_name** | **String** | | +**display_name** | **String** | Represent a resource's readable display name. | **region_id** | **String** | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | [[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/sdks/runtime/rust/docs/MatchmakerRegionInfo.md b/sdks/runtime/rust/docs/MatchmakerRegionInfo.md index 8aab80146b..10a2ff6747 100644 --- a/sdks/runtime/rust/docs/MatchmakerRegionInfo.md +++ b/sdks/runtime/rust/docs/MatchmakerRegionInfo.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **datacenter_coord** | [**crate::models::GeoCoord**](GeoCoord.md) | | **datacenter_distance_from_client** | [**crate::models::GeoDistance**](GeoDistance.md) | | -**provider_display_name** | **String** | | -**region_display_name** | **String** | | +**provider_display_name** | **String** | Represent a resource's readable display name. | +**region_display_name** | **String** | Represent a resource's readable display name. | **region_id** | **String** | A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. | [[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/sdks/runtime/rust/src/models/matchmaker_join_region.rs b/sdks/runtime/rust/src/models/matchmaker_join_region.rs index a95fb7ad9d..7f38d680cf 100644 --- a/sdks/runtime/rust/src/models/matchmaker_join_region.rs +++ b/sdks/runtime/rust/src/models/matchmaker_join_region.rs @@ -14,6 +14,7 @@ #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct MatchmakerJoinRegion { + /// Represent a resource's readable display name. #[serde(rename = "display_name")] pub display_name: String, /// A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. diff --git a/sdks/runtime/rust/src/models/matchmaker_region_info.rs b/sdks/runtime/rust/src/models/matchmaker_region_info.rs index cf10ffc55d..ed5df899d6 100644 --- a/sdks/runtime/rust/src/models/matchmaker_region_info.rs +++ b/sdks/runtime/rust/src/models/matchmaker_region_info.rs @@ -18,8 +18,10 @@ pub struct MatchmakerRegionInfo { pub datacenter_coord: Box, #[serde(rename = "datacenter_distance_from_client")] pub datacenter_distance_from_client: Box, + /// Represent a resource's readable display name. #[serde(rename = "provider_display_name")] pub provider_display_name: String, + /// Represent a resource's readable display name. #[serde(rename = "region_display_name")] pub region_display_name: String, /// A human readable short identifier used to references resources. Different than a `uuid` because this is intended to be human readable. Different than `DisplayName` because this should not include special characters and be short. diff --git a/sdks/runtime/typescript/archive.tgz b/sdks/runtime/typescript/archive.tgz index 19dd5aed7f..64bc60b9bc 100644 --- a/sdks/runtime/typescript/archive.tgz +++ b/sdks/runtime/typescript/archive.tgz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c6a6ebe3724f08a24f0338753a426262cff0af22c5ce0035a2dbc097d9ec40f8 -size 371621 +oid sha256:3ded85716ef689ec3b5c28c796889a71006fe235ab808643fc805bda48019567 +size 371620 diff --git a/svc/Cargo.lock b/svc/Cargo.lock index 2fd7e93032..9619090ca0 100644 --- a/svc/Cargo.lock +++ b/svc/Cargo.lock @@ -3715,8 +3715,10 @@ checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" name = "global-error" version = "0.1.5" dependencies = [ + "async-trait", "formatted-error", "http 0.2.11", + "reqwest", "serde", "serde_json", "thiserror", diff --git a/svc/api/matchmaker/src/route/lobbies.rs b/svc/api/matchmaker/src/route/lobbies.rs index a74dab1554..2b492cedb4 100644 --- a/svc/api/matchmaker/src/route/lobbies.rs +++ b/svc/api/matchmaker/src/route/lobbies.rs @@ -1028,12 +1028,15 @@ async fn find_inner( debug: None, }) .await?; - let lobby_id = match find_res - .map_err(|msg| backend::matchmaker::lobby_find::ErrorCode::from_i32(msg.error_code)) - { + let lobby_id = match find_res { Ok(res) => unwrap_ref!(res.lobby_id).as_uuid(), - Err(Some(code)) => { - use backend::matchmaker::lobby_find::ErrorCode::*; + Err(err) => { + use backend::matchmaker::lobby_find::ErrorCode::{self, *}; + + let code = unwrap!( + ErrorCode::from_i32(err.error_code), + "failed to parse find error code" + ); match code { Unknown => bail!("unknown find error code"), @@ -1058,7 +1061,6 @@ async fn find_inner( RegistrationRequired => bail_with!(MATCHMAKER_REGISTRATION_REQUIRED), }; } - Err(None) => bail!("failed to parse find error code"), }; // Fetch lobby data diff --git a/svc/pkg/cf-custom-hostname/worker/src/lib.rs b/svc/pkg/cf-custom-hostname/worker/src/lib.rs index 3719b10aa8..df31ad5f98 100644 --- a/svc/pkg/cf-custom-hostname/worker/src/lib.rs +++ b/svc/pkg/cf-custom-hostname/worker/src/lib.rs @@ -1 +1,12 @@ pub mod workers; + +#[derive(Debug, Deserialize)] +struct CloudflareError { + errors: Vec, +} + +#[derive(Debug, Deserialize)] +struct CloudflareErrorEntry { + code: usize, + message: String, +} diff --git a/svc/pkg/cf-custom-hostname/worker/src/workers/create.rs b/svc/pkg/cf-custom-hostname/worker/src/workers/create.rs index 7d76b9b142..c074300027 100644 --- a/svc/pkg/cf-custom-hostname/worker/src/workers/create.rs +++ b/svc/pkg/cf-custom-hostname/worker/src/workers/create.rs @@ -3,6 +3,8 @@ use proto::backend::{self, pkg::*}; use serde::Deserialize; use serde_json::json; +use crate::CloudflareError; + #[derive(Debug, Deserialize)] struct CloudflareResponse { result: CloudflareResult, @@ -20,17 +22,6 @@ struct CloudflareOwnershipVerificationHttp { http_body: Uuid, } -#[derive(Debug, Deserialize)] -struct CloudflareError { - errors: Vec, -} - -#[derive(Debug, Deserialize)] -struct CloudflareErrorEntry { - code: usize, - // message: String, -} - /// Send a lobby create fail message and cleanup the lobby if needed. #[tracing::instrument] async fn fail( diff --git a/svc/pkg/cf-custom-hostname/worker/src/workers/delete.rs b/svc/pkg/cf-custom-hostname/worker/src/workers/delete.rs index d98809a0af..9f737972c1 100644 --- a/svc/pkg/cf-custom-hostname/worker/src/workers/delete.rs +++ b/svc/pkg/cf-custom-hostname/worker/src/workers/delete.rs @@ -2,16 +2,7 @@ use chirp_worker::prelude::*; use proto::backend::pkg::*; use serde::Deserialize; -#[derive(Debug, Deserialize)] -struct CloudflareError { - errors: Vec, -} - -#[derive(Debug, Deserialize)] -struct CloudflareErrorEntry { - code: usize, - // message: String, -} +use crate::CloudflareError; #[worker(name = "cf-custom-hostname-delete")] async fn worker( diff --git a/svc/pkg/external/ops/request-validate/src/lib.rs b/svc/pkg/external/ops/request-validate/src/lib.rs index 9eb903fbc5..084ea55588 100644 --- a/svc/pkg/external/ops/request-validate/src/lib.rs +++ b/svc/pkg/external/ops/request-validate/src/lib.rs @@ -1,7 +1,7 @@ use http::{uri::Scheme, HeaderName, HeaderValue, Uri}; use std::{net::IpAddr, str::FromStr}; -use proto::backend::pkg::*; +use proto::{backend::pkg::*, common}; use rivet_operation::prelude::*; #[operation(name = "external-request-validate")] @@ -78,7 +78,7 @@ async fn handle( Ok(external::request_validate::Response { errors: errors .into_iter() - .map(|path| external::request_validate::response::Error { path }) + .map(|path| common::ValidationError { path }) .collect::>(), }) } diff --git a/svc/pkg/external/types/request-validate.proto b/svc/pkg/external/types/request-validate.proto index 893cc38125..5cba29bc64 100644 --- a/svc/pkg/external/types/request-validate.proto +++ b/svc/pkg/external/types/request-validate.proto @@ -10,9 +10,5 @@ message Request { } message Response { - message Error { - repeated string path = 1; - } - - repeated Error errors = 1; + repeated rivet.common.ValidationError errors = 1; } diff --git a/svc/pkg/game/ops/create/src/lib.rs b/svc/pkg/game/ops/create/src/lib.rs index 3a8e9bb8d3..7059db9f19 100644 --- a/svc/pkg/game/ops/create/src/lib.rs +++ b/svc/pkg/game/ops/create/src/lib.rs @@ -22,8 +22,6 @@ async fn handle( }) .await?; if !validation_res.errors.is_empty() { - tracing::warn!(errors = ?validation_res.errors, "validation errors"); - let readable_errors = validation_res .errors .iter() diff --git a/svc/pkg/game/ops/namespace-validate/src/lib.rs b/svc/pkg/game/ops/namespace-validate/src/lib.rs index fb9d588be7..993df87913 100644 --- a/svc/pkg/game/ops/namespace-validate/src/lib.rs +++ b/svc/pkg/game/ops/namespace-validate/src/lib.rs @@ -1,4 +1,4 @@ -use proto::backend::pkg::*; +use proto::{backend::pkg::*, common}; use rivet_operation::prelude::*; #[operation(name = "game-namespace-validate")] @@ -43,7 +43,7 @@ async fn handle( Ok(game::namespace_validate::Response { errors: errors .into_iter() - .map(|path| game::namespace_validate::response::Error { path }) + .map(|path| common::ValidationError { path }) .collect::>(), }) } diff --git a/svc/pkg/game/ops/token-development-validate/src/lib.rs b/svc/pkg/game/ops/token-development-validate/src/lib.rs index 8de04de0df..2ae752813d 100644 --- a/svc/pkg/game/ops/token-development-validate/src/lib.rs +++ b/svc/pkg/game/ops/token-development-validate/src/lib.rs @@ -1,5 +1,6 @@ -use proto::backend::{ - matchmaker::lobby_runtime::ProxyProtocol as LobbyRuntimeProxyProtocol, pkg::*, +use proto::{ + backend::{matchmaker::lobby_runtime::ProxyProtocol as LobbyRuntimeProxyProtocol, pkg::*}, + common, }; use rivet_operation::prelude::*; @@ -115,7 +116,7 @@ async fn handle( Ok(game::token_development_validate::Response { errors: errors .into_iter() - .map(|path| game::token_development_validate::response::Error { path }) + .map(|path| common::ValidationError { path }) .collect::>(), }) } diff --git a/svc/pkg/game/ops/validate/src/lib.rs b/svc/pkg/game/ops/validate/src/lib.rs index afac219976..f669dbeb4d 100644 --- a/svc/pkg/game/ops/validate/src/lib.rs +++ b/svc/pkg/game/ops/validate/src/lib.rs @@ -1,4 +1,4 @@ -use proto::backend::pkg::*; +use proto::{backend::pkg::*, common}; use rivet_operation::prelude::*; #[operation(name = "game-validate")] @@ -40,7 +40,7 @@ async fn handle( Ok(game::validate::Response { errors: errors .into_iter() - .map(|path| game::validate::response::Error { path }) + .map(|path| common::ValidationError { path }) .collect::>(), }) } diff --git a/svc/pkg/game/ops/version-validate/src/lib.rs b/svc/pkg/game/ops/version-validate/src/lib.rs index 3e446bd247..0facdb3572 100644 --- a/svc/pkg/game/ops/version-validate/src/lib.rs +++ b/svc/pkg/game/ops/version-validate/src/lib.rs @@ -1,15 +1,18 @@ use std::convert::TryInto; -use proto::backend::{ - self, - matchmaker::{ +use proto::{ + backend::{ self, - lobby_runtime::{ - NetworkMode as LobbyRuntimeNetworkMode, ProxyKind as LobbyRuntimeProxyKind, - ProxyProtocol as LobbyRuntimeProxyProtocol, + matchmaker::{ + self, + lobby_runtime::{ + NetworkMode as LobbyRuntimeNetworkMode, ProxyKind as LobbyRuntimeProxyKind, + ProxyProtocol as LobbyRuntimeProxyProtocol, + }, }, + pkg::*, }, - pkg::*, + common, }; use rivet_operation::prelude::*; @@ -1251,7 +1254,7 @@ async fn handle( Ok(game::version_validate::Response { errors: errors .into_iter() - .map(|path| game::version_validate::response::Error { path }) + .map(|path| common::ValidationError { path }) .collect::>(), }) } diff --git a/svc/pkg/game/types/namespace-validate.proto b/svc/pkg/game/types/namespace-validate.proto index b4d3670adf..6c32135b92 100644 --- a/svc/pkg/game/types/namespace-validate.proto +++ b/svc/pkg/game/types/namespace-validate.proto @@ -11,9 +11,5 @@ message Request { } message Response { - message Error { - repeated string path = 1; - } - - repeated Error errors = 1; + repeated rivet.common.ValidationError errors = 1; } diff --git a/svc/pkg/game/types/token-development-validate.proto b/svc/pkg/game/types/token-development-validate.proto index 22e209fb73..49f691e798 100644 --- a/svc/pkg/game/types/token-development-validate.proto +++ b/svc/pkg/game/types/token-development-validate.proto @@ -11,9 +11,5 @@ message Request { } message Response { - message Error { - repeated string path = 1; - } - - repeated Error errors = 1; + repeated rivet.common.ValidationError errors = 1; } diff --git a/svc/pkg/game/types/validate.proto b/svc/pkg/game/types/validate.proto index bfb464efe4..3de36733b9 100644 --- a/svc/pkg/game/types/validate.proto +++ b/svc/pkg/game/types/validate.proto @@ -10,9 +10,5 @@ message Request { } message Response { - message Error { - repeated string path = 1; - } - - repeated Error errors = 1; + repeated rivet.common.ValidationError errors = 1; } diff --git a/svc/pkg/game/types/version-validate.proto b/svc/pkg/game/types/version-validate.proto index 54a76d1b1b..781690335c 100644 --- a/svc/pkg/game/types/version-validate.proto +++ b/svc/pkg/game/types/version-validate.proto @@ -12,9 +12,5 @@ message Request { } message Response { - message Error { - repeated string path = 1; - } - - repeated Error errors = 1; + repeated rivet.common.ValidationError errors = 1; } diff --git a/svc/pkg/load-test/standalone/api-cloud/src/lib.rs b/svc/pkg/load-test/standalone/api-cloud/src/lib.rs index 066a08c4ac..a4c40d2bb4 100644 --- a/svc/pkg/load-test/standalone/api-cloud/src/lib.rs +++ b/svc/pkg/load-test/standalone/api-cloud/src/lib.rs @@ -147,9 +147,7 @@ pub async fn run_from_env(_ts: i64) -> GlobalResult<()> { let config = config.clone(); tokio::spawn(async move { // Taint - match rivet_api::apis::cloud_games_games_api::cloud_games_games_get_games(&config, None) - .await - { + match rivet_api::apis::cloud_games_api::cloud_games_get_games(&config, None).await { Ok(_) => {} Err(err) => tracing::error!(?err, "error"), } diff --git a/svc/pkg/mm-config/ops/namespace-config-validate/src/lib.rs b/svc/pkg/mm-config/ops/namespace-config-validate/src/lib.rs index bb88c33cf4..9f4a120f68 100644 --- a/svc/pkg/mm-config/ops/namespace-config-validate/src/lib.rs +++ b/svc/pkg/mm-config/ops/namespace-config-validate/src/lib.rs @@ -1,4 +1,4 @@ -use proto::backend::pkg::*; +use proto::{backend::pkg::*, common}; use rivet_operation::prelude::*; #[operation(name = "mm-config-namespace-config-validate")] @@ -37,7 +37,7 @@ async fn handle( Ok(mm_config::namespace_config_validate::Response { errors: errors .into_iter() - .map(|path| mm_config::namespace_config_validate::response::Error { path }) + .map(|path| common::ValidationError { path }) .collect::>(), }) } diff --git a/svc/pkg/mm-config/types/namespace-config-validate.proto b/svc/pkg/mm-config/types/namespace-config-validate.proto index 01ebe4a860..d37e24a7ba 100644 --- a/svc/pkg/mm-config/types/namespace-config-validate.proto +++ b/svc/pkg/mm-config/types/namespace-config-validate.proto @@ -15,9 +15,5 @@ message Request { } message Response { - message Error { - repeated string path = 1; - } - - repeated Error errors = 1; + repeated rivet.common.ValidationError errors = 1; } diff --git a/svc/pkg/mm/util/src/verification.rs b/svc/pkg/mm/util/src/verification.rs index 1f9a7a7d28..69d54c5636 100644 --- a/svc/pkg/mm/util/src/verification.rs +++ b/svc/pkg/mm/util/src/verification.rs @@ -163,12 +163,6 @@ pub async fn verify_config( reason = r#""private" publicity not allowed with this custom game mode"# ); } - _ => { - bail_with!( - MATCHMAKER_CUSTOM_LOBBY_CONFIG_INVALID, - reason = "given publicity not allowed" - ); - } } // Verify lobby count diff --git a/svc/pkg/team/ops/profile-validate/src/lib.rs b/svc/pkg/team/ops/profile-validate/src/lib.rs index 3867ee10e7..415d2459a6 100644 --- a/svc/pkg/team/ops/profile-validate/src/lib.rs +++ b/svc/pkg/team/ops/profile-validate/src/lib.rs @@ -1,4 +1,4 @@ -use proto::backend::pkg::*; +use proto::{backend::pkg::*, common}; use rivet_operation::prelude::*; #[operation(name = "team-profile-validate")] @@ -52,7 +52,7 @@ async fn handle( Ok(team::profile_validate::Response { errors: errors .into_iter() - .map(|path| team::profile_validate::response::Error { path }) + .map(|path| common::ValidationError { path }) .collect::>(), }) } diff --git a/svc/pkg/team/ops/validate/src/lib.rs b/svc/pkg/team/ops/validate/src/lib.rs index 6b612ad891..43654a6be2 100644 --- a/svc/pkg/team/ops/validate/src/lib.rs +++ b/svc/pkg/team/ops/validate/src/lib.rs @@ -1,4 +1,4 @@ -use proto::backend::pkg::*; +use proto::{backend::pkg::*, common}; use rivet_operation::prelude::*; #[operation(name = "team-validate")] @@ -40,7 +40,7 @@ async fn handle( Ok(team::validate::Response { errors: errors .into_iter() - .map(|path| team::validate::response::Error { path }) + .map(|path| common::ValidationError { path }) .collect::>(), }) } diff --git a/svc/pkg/team/types/profile-validate.proto b/svc/pkg/team/types/profile-validate.proto index 2a16aa23d2..c7998c0afb 100644 --- a/svc/pkg/team/types/profile-validate.proto +++ b/svc/pkg/team/types/profile-validate.proto @@ -10,9 +10,5 @@ message Request { } message Response { - message Error { - repeated string path = 1; - } - - repeated Error errors = 1; + repeated rivet.common.ValidationError errors = 1; } diff --git a/svc/pkg/team/types/validate.proto b/svc/pkg/team/types/validate.proto index eca7b06472..eca005b030 100644 --- a/svc/pkg/team/types/validate.proto +++ b/svc/pkg/team/types/validate.proto @@ -9,9 +9,5 @@ message Request { } message Response { - message Error { - repeated string path = 1; - } - - repeated Error errors = 1; + repeated rivet.common.ValidationError errors = 1; } diff --git a/svc/pkg/user-presence/ops/get/src/lib.rs b/svc/pkg/user-presence/ops/get/src/lib.rs index e8ddd6bbe2..2d6d84c049 100644 --- a/svc/pkg/user-presence/ops/get/src/lib.rs +++ b/svc/pkg/user-presence/ops/get/src/lib.rs @@ -38,18 +38,15 @@ async fn handle( ); } - pipe.query_async::<_, Vec< - Vec<( - Option, - Option, - Option, - Option, - Option, - )>, - >>(&mut redis) + pipe.query_async::<_, Vec<( + Option, + Option, + Option, + Option, + Option, + )>>(&mut redis) .await? .into_iter() - .flatten() .map( |(user_id, game_id, message, public_metadata, friend_metadata)| { if user_id.is_none() { @@ -90,10 +87,9 @@ async fn handle( ); } - pipe.query_async::<_, Vec, Option, Option)>>>(&mut redis) + pipe.query_async::<_, Vec<(Option, Option, Option)>>(&mut redis) .await? .into_iter() - .flatten() .map(|(user_id, update_ts, status)| { if user_id.is_none() { return GlobalResult::Ok(None); diff --git a/svc/pkg/user/ops/profile-validate/src/lib.rs b/svc/pkg/user/ops/profile-validate/src/lib.rs index 14a96b7827..bc8be9b0ff 100644 --- a/svc/pkg/user/ops/profile-validate/src/lib.rs +++ b/svc/pkg/user/ops/profile-validate/src/lib.rs @@ -1,4 +1,4 @@ -use proto::backend::pkg::*; +use proto::{backend::pkg::*, common}; use rivet_operation::prelude::*; #[operation(name = "user-profile-validate")] @@ -100,7 +100,7 @@ async fn handle( Ok(user::profile_validate::Response { errors: errors .into_iter() - .map(|path| user::profile_validate::response::Error { path }) + .map(|path| common::ValidationError { path }) .collect::>(), }) } diff --git a/svc/pkg/user/types/profile-validate.proto b/svc/pkg/user/types/profile-validate.proto index 8369b92495..e2f5ecba95 100644 --- a/svc/pkg/user/types/profile-validate.proto +++ b/svc/pkg/user/types/profile-validate.proto @@ -12,9 +12,5 @@ message Request { } message Response { - message Error { - repeated string path = 1; - } - - repeated Error errors = 1; + repeated rivet.common.ValidationError errors = 1; } diff --git a/svc/pkg/user/worker/src/workers/delete.rs b/svc/pkg/user/worker/src/workers/delete.rs index bc9ac2d88c..f50b011710 100644 --- a/svc/pkg/user/worker/src/workers/delete.rs +++ b/svc/pkg/user/worker/src/workers/delete.rs @@ -72,8 +72,8 @@ async fn worker(ctx: &OperationContext) -> GlobalRes // Filter out teams where the user is the owner let non_owner_teams = teams_res .teams - .iter() - .cloned() + .clone() + .into_iter() .filter(|team| team.owner_user_id != ctx.user_id); futures_util::stream::iter(non_owner_teams) .map(|team| {